Cloud init stoped working within the last 14 days.
When I create a new droplet using the api, cloud-init doesn’t work.
I can’t use ssh to log in with the ssh key defined in digital ocean. After at power cycle however the ssh key works again.
The supplied user_data (yaml file supplied in the api call) dont execute, meaning that the droplet isn’t configured the way I need it to be.
cloud-init.log contains two tracebacks:
2019-06-04 08:28:33,688 - util.py[DEBUG]: failed stage init Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 655, in status_wrapper ret = functor(name, args) File "/usr/local/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 284, in main_init sys.stderr.write("%s\n" % (netinfo.debug_info())) File "/usr/local/lib/python2.7/site-packages/cloudinit/netinfo.py", line 448, in debug_info netdev_lines = netdev_pformat().splitlines() File "/usr/local/lib/python2.7/site-packages/cloudinit/netinfo.py", line 393, in netdev_pformat (dev, data["up"], addr["ip"], empty, addr["scope6"], KeyError: 'scope6'
2019-06-04 08:28:40,634 - util.py[DEBUG]: Running module ssh-authkey-fingerprints (<module 'cloudinit.config.cc_ssh_authkey_fingerprints' from '/usr/local/lib/python2.7/site-packages/cloudinit/config/cc_ssh_ authkey_fingerprints.pyc'>) failed Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/cloudinit/stages.py", line 800, in _run_modules freq=freq) File "/usr/local/lib/python2.7/site-packages/cloudinit/cloud.py", line 54, in run return self._runners.run(name, functor, args, freq, clear_on_fail) File "/usr/local/lib/python2.7/site-packages/cloudinit/helpers.py", line 187, in run results = functor(*args) File "/usr/local/lib/python2.7/site-packages/cloudinit/config/cc_ssh_authkey_fingerprints.py", line 107, in handle (key_fn, key_entries) = ssh_util.extract_authorized_keys(user_name) File "/usr/local/lib/python2.7/site-packages/cloudinit/ssh_util.py", line 209, in extract_authorized_keys (ssh_dir, pw_ent) = users_ssh_info(username) File "/usr/local/lib/python2.7/site-packages/cloudinit/ssh_util.py", line 202, in users_ssh_info pw_ent = pwd.getpwnam(username) KeyError: 'getpwnam(): name not found: freebsd'
If I skip the user_data part cloud-init still fails to init my ssh key.
I tried for 7 days to log into the support portal but I keep getting an SSO failure. Now im posting here instead.
I really need to get in touch with the support team at Digital Ocean to get this solved.