New Question
0

Password not reading from configdrive

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

hashimji2008 gravatar image

Hello,

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 baseopenstackservice.py

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

cloud-config


hostname: win

manageetchosts: true

user: Administrator

password: testpasswordexample!

chpasswd:

expire: False

users:

- default
package_upgrade: true

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

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

avladu gravatar image

Hello,

Using cloud-config to create users / setting passwords is currently not supported in cloudbase-init. There is a patch to add that functionality: https://review.opendev.org/#/c/379354/

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: https://cloudbase.it/openstack-window...

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

Stats

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

Seen: 40 times

Last updated: Aug 19