Ask Your Question

Cloud init doesn't run

asked 2015-06-29 16:51:46 -0500

danielbrunos gravatar image


I'm creating an instance from an image that I previously saved to install some libs, and in this image I got the error in /var/log/cloud-init.log:

2015-06-29 13:46:20,332 -[DEBUG]: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/", line 89, in handle
    apply_credentials(keys, user, disable_root, disable_root_opts, log)
  File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/", line 99, in apply_credentials
    sshutil.setup_user_keys(keys, user, '', log)
  File "/usr/lib/python2.7/dist-packages/cloudinit/", line 146, in setup_user_keys
    pwent = pwd.getpwnam(user)
KeyError: 'getpwnam(): name not found: ubuntu'

2015-06-29 13:46:20,332 -[WARNING]: applying credentials failed!
  • The user ubuntu do not exist in the original image too.

  • I'm running it on Rackspace Public Cloud.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-07-01 10:01:53 -0500

danielbrunos gravatar image

This key doesn't exist and it is not mentioned in any setting.

edit flag offensive delete link more

answered 2015-06-30 11:27:51 -0500

its appears to be looking to inject the keypair named ubuntu. Do those keys exist ?

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-06-29 16:51:46 -0500

Seen: 639 times

Last updated: Jul 01 '15