New Question

Password not reading from configdrive

asked 2019-07-26 21:29:32 +0300

hashimji2008 gravatar image


I am trying to configure the cloudbaseinit with windows 2008R2. But the setuserpassword plugin not working. I find out that The getpassword() function is returning "None".

That leading to the function getadminpassword(self): of

Please let me know how to configure this function so that it correctly return the password from my below USER DATA

In my setup, Password is in the file \OPENSTACK\LATEST/USER_DATA

with a file structure of


hostname: win

manageetchosts: true

user: Administrator

password: testpasswordexample!


expire: False


- default
package_upgrade: true

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2019-08-19 17:31:26 +0300

avladu gravatar image


Using cloud-config to create users / setting passwords is currently not supported in cloudbase-init. There is a patch to add that functionality:

But OpenStack should provide the password setting functionality out of the box and you might not want to rely on the userdata, as the userdata can be read by other users on that machine.

Here is a good example on how to use OpenStack functionality:

Thank you,
Adrian Vladu

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2019-07-26 21:29:32 +0300

Seen: 705 times

Last updated: Aug 19 '19