[ovirt-users] cloud-init woes w/ templates

Michal Skrivanek michal.skrivanek at redhat.com
Thu Apr 17 12:05:36 UTC 2014


On Apr 17, 2014, at 13:13 , Andrew Lau <andrew at andrewklau.com> wrote:

> On Thu, Apr 17, 2014 at 7:40 PM, Michal Skrivanek
> <michal.skrivanek at redhat.com> wrote:
>> 
>> On Apr 12, 2014, at 15:39 , Andrew Lau <andrew at andrewklau.com> wrote:
>> 
>>> Hi,
>>> 
>>> Has anyone had any success with cloud-init and templates with ovirt
>>> 3.4? So far, it seems to be able to configure things like networks
>>> etc. But when it goes to do with passwords, it must be set again in
>>> the "run once" or in the "Initial Run" even if "Use already configured
>>> password" is set.
>> 
>> Hi,
>> which version you're talking about?
> It seems the key won't save unless a password is specified.

sorry, I mean which oVirt version you're talking about:)

> 
>> 
>>> 
>>> Another thing, why is it only setup to change the root password? By
>>> default cloud-init will block root, so nearly all images need to be
>>> modified ie.
>>> sed -i 's/disable_root: 1/disable_root: 0\nchpasswd: { expire: False
>>> }/g' /etc/cloud/cloud.cfg
>> 
>> yeah. this has been fixed recently
> That's good news!
> 
>> 
>>> 
>>> Otherwise, you'll login and it'll ask you to change your password.
>>> Defeats the purpose of setting it through cloud-init? I'm also not
>>> being able to just set an SSH key, it insists a password otherwise the
>>> key won't get uploaded.
>> 
>> hm, not sure, Shahar?
>> 
>>> 
>>> Finally, templates seem to be lacking validation. Where "Initial Run"
>>> and "Run Once" will give the red box if you have the wrong syntax
>>> while templates don't care.
>> 
>> syntax of what?
> eg. you put a netmask of 24 instead of the 255.255.255.0 it wants, in
> the template section it won't give that red box warning it's invalid.
> Initial Run/Run Once will..

ah, ok, good catch, definitely a bug ….(however there was a general validation issue in the Edit VM….Martin? related/same issue?)

> 
>> 
>> Thanks,
>> michal
>> 
>>> 
>>> Thanks,
>>> Andrew
>>> _______________________________________________
>>> Users mailing list
>>> Users at ovirt.org
>>> http://lists.ovirt.org/mailman/listinfo/users
>> 




More information about the Users mailing list