New Question
0

cloudbase-init errors intermittently after image is created

asked 2019-01-30 19:57:48 +0200

kb269 gravatar image

Hello, I have a Instance I created from a windows 2016 image (which already has cloudbase.it installed). I added secure join domain to the unattend.xml file in the cloudbase folder. I then sysprep Instance pointing to the unattend.xml file, create a snapshot of image, from snapshot I create a volume and uploaded the volume to Image and allow users to build instances using that image. Here is the problem I can create 10 instances and out of the 10 - 2 would fail, or I could create 6 and 1 would fail ect... The good instances created I am able to join the domain with no problems.

I looked at the logs and it looks like cloudbase-init.log is trying to add the hostname - whereas the ones created properly cloudbase-init-unattend.log is where the hostname gets created. I would rather not have hostname created by openstack name and would like it to be the default windows name win-xxxxxx. We would rather not have our users (students) create server names in AD.

Any help would be great. I believe I am getting confused over the conf files. I am assuming cloudbase-init-unattend.conf file gets ran first as the logs show in cloudbase-init.logs show it skips because it was already done. Its almost like the cloudbase-init.conf gets ahead of the cloudbase-init-unattend.conf.

Thanks Kb269

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2019-02-06 13:13:04 +0200

avladu gravatar image

Hello,

You can disable the hostname plugin in the cloudbase-init configuration (both configurations, the unattend and service one).

Make sure that in the cloudbase-init configuration you define the plugins, minus the cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin.

plugins=plugin1, plugin2 # except the cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin

If in the configuration of cloudbase-init you do not have the plugins entry set, these are the default ones executed:

plugins=cloudbaseinit.plugins.common.mtu.MTUPlugin,cloudbaseinit.plugins.windows.ntpclient.NTPClientPlugin,cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin,cloudbaseinit.plugins.windows.createuser.CreateUserPlugin,cloudbaseinit.plugins.common.networkconfig.NetworkConfigPlugin,cloudbaseinit.plugins.windows.licensing.WindowsLicensingPlugin,cloudbaseinit.plugins.common.sshpublickeys.SetUserSSHPublicKeysPlugin,cloudbaseinit.plugins.windows.extendvolumes.ExtendVolumesPlugin,cloudbaseinit.plugins.common.userdata.UserDataPlugin,cloudbaseinit.plugins.common.setuserpassword.SetUserPasswordPlugin,cloudbaseinit.plugins.windows.winrmlistener.ConfigWinRMListenerPlugin,cloudbaseinit.plugins.windows.winrmcertificateauth.ConfigWinRMCertificateAuthPlugin,cloudbaseinit.plugins.common.localscripts.LocalScriptsPlugin,

More info here: https://github.com/openstack/cloudbas...

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-01-30 19:57:48 +0200

Seen: 352 times

Last updated: Feb 06 '19