New Question

Revision history [back]

click to hide/show revision 1
initial version

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

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?

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

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?