[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: cloudstack reset VM password files

Hey Rene and Ivan,

	During tests my setup was utilizing Rene scripts:
- 99_CloudStack.cfg script successfully makes cloud-init to use Cloudstack data.
- 80_root.cfg script was preventing  cloud_init to start during boot (missing parameters error message) so I removed it and used the default config.cfg instead.
	Regarding the password change I figured it out - the password script is made to be run once per instance. The data about the password setup is kept by /var/lib/cloud/instances/<instance uuild>/sem/config_set_passwords file.  If you delete this file the next boot will fetch the ACD password but it will apply it for the user that has been set in cloud-init config file.

Possible workarounds:
- ugly - make sure the file is deleted after boot with the custom script cloud-init option.
- clean - change the password script execution frequency per boot instead of per instance. Unfortunately I could not find the file that defines the frequency for the datasource file (/usr/lib/python2.7/site-packages/cloudinit/sources/ 

Best regards,

-----Original Message-----
From: Ivan Kudryavtsev [mailto:kudryavtsev_ia@xxxxxxxxx] 
Sent: Friday, November 9, 2018 9:48 PM
To: mail@xxxxxxxxxxxxx
Cc: users <users@xxxxxxxxxxxxxxxxxxxxx>
Subject: Re: cloudstack reset VM password files

Rene, thank you for your confirmation that it works. I'll check it again, but my configuration looks like yours (haven't checked line by line) and password reset doesn't work with cloud-init from ubuntu apt repository. Our engineer rebuilds template delivery CI/CD pipeline now and we will have a chance to test again.

пт, 9 нояб. 2018 г. в 14:41, Rene Moser <mail@xxxxxxxxxxxxx>:

> Hi again
> Seems no one seems to read my stuff.
> cloud-init is able to reset the password (similar the scripts), see
> /
> Note that it uses the default user, e.g. for CentOS it is centos. That 
> is why we configure the default user.
> Look at the conifgs I wrote in the first mail.
> Regards
> René

With best regards, Ivan Kudryavtsev
Bitworks LLC
Cell RU: +7-923-414-1515
Cell USA: +1-201-257-1512
WWW: <>