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

Carlos Konstanski ckonstanski at pippiandcarlos.com
Wed Apr 12 18:06:26 UTC 2017

It does look funny at first. But that's actually two separate
users. This cloud.cfg has been verified in an enterprise cloud. Apart
from the passwd stuff (which I will remove) I am certain it should
work. It specifies that the default user should be created as normal,
and it adds a second ckonstanski user with sudo, ssh-key, etc.

m foster <mfosterm at gmail.com> writes:

> 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
>> 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

More information about the OpenStack-operators mailing list