New Question
0

config_drive not running user data script on boot with Windows

asked 2016-09-27 14:49:36 +0300

mloebl gravatar image

We have a Windows 2012 instance we are deploying which is the Cloudbase sample one. The config drive is being attached and I can see the user data script and such. However it's not executing the script. If I view the cloudbase logs, I see it trying to access the network, but not the config drive. I also validated that these values are set in both config files: configdriverawhhd=true configdrive_cdrom=true

Is there something we're missing? thanks!

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2016-09-28 10:59:59 +0300

avladu gravatar image

Hello,

By default, cloudbase-init is set to try all the metadata providers. If a metadata provider is found, only that one will be used. In your case, it might have been the case the http provider was used, as it takes precedence over the configdrive one. Can you provide the cloudbase-init logs in order to check if the behaviour you got is the documented one?

Thank you,

Adrian Vladu

edit flag offensive delete link more
0

answered 2016-09-27 21:46:07 +0300

mloebl gravatar image

We think we found the problem, within the cloudbase config file, we added:

plugins=cloudbaseinit.plugins.common.userdata.UserDataPlugin metadata_services=cloudbaseinit.metadata.services.configdrive.ConfigDriveService

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

[hide preview]

Question Tools

1 follower

Stats

Asked: 2016-09-27 14:49:36 +0300

Seen: 95 times

Last updated: Sep 28 '16