[Openstack-operators] [openstack-operators] [nova] cloud.cfg not applied

m foster mfosterm at gmail.com
Wed Apr 12 18:00:56 UTC 2017


The only thing I can think of is that the default user should just be
"default", not qualified with "name". Perhaps that is clobbering your next
entry or just creating a syntax error.

On Wed, Apr 12, 2017 at 11:34 AM, Carlos Konstanski <
ckonstanski at pippiandcarlos.com> wrote:

> I cannot get a simple cloud.cfg to be applied to a newly created
> instance. This is the cloud.cfg: (sensitive info removed)
>
> users:
>   - name: default
>   - name: ckonstanski
>     groups: sudo
>     shell: /bin/bash
>     sudo: ['ALL=(ALL) NOPASSWD:ALL']
>     passwd: <my password hash taken from /etc/shadow>
>     lock_passwd: False
>     ssh-authorized-keys:
>       - ssh-rsa <my ssh pubkey taken from ~/.ssh/id_rsa.pub>
>
>
> I'm not usually in the habit of setting passwords, but I had hoped that
> perhaps it only the SSH pubkey part that wasn't working. Turns out none
> of it works, the user isn't created at all.
>
> I tried with a variety of OS images: gentoo, ubuntu 14.04, ubuntu 16.04,
> centos 7. I downloaded official cloud images for all of these.
>
> If I shell onto the instances and run:
>
> curl http://169.254.169.254/2009-04-04/user-data
>
> the cloud.cfg is returned.
>
> I built this openstack according to the official newton install guide.
>
> Looking for ways to troubleshoot this. What is the mechanism that gets
> the cloud.cfg applied? Any info would be helpful, even a link.
>
> Sincerely,
>
> Carlos Konstanski
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20170412/f2eae2c9/attachment.html>


More information about the OpenStack-operators mailing list