Cloudbase-init applies config drive with attached CD on every boot

asked 2016-07-19 15:15:07 +0300

aburluka gravatar image

updated 2016-11-11 22:30:00 +0300

Claudiu Belu gravatar image

Hello! My case: win2k12, config drive CD (openstack/latest/metadata.json, openstack/latest/userdata) with cmd script in user data. Cloudbase-init executes script, all is fine. But if I leave CD attached after VM restart script is applied again. I read sources and manual, found: ... Based on their return codes, you can instruct the system to reboot or even re-execute the plugin on the next boot: • 1001 - reboot and don’t run the plugin again on next boot • 1002 - don’t reboot now and run the plugin again on next boot • 1003 - reboot and run the plugin again on next boot ... But it does not fit my needs.

What should I do to make user data executed only one time with CD attached?

edit retag flag offensive close merge delete