Skip to content

Instantly share code, notes, and snippets.

@jkordish
Last active December 11, 2015 17:29
Show Gist options
  • Save jkordish/4635019 to your computer and use it in GitHub Desktop.
Save jkordish/4635019 to your computer and use it in GitHub Desktop.
#OpenStack start_guest_on_host_boot nova-compute bug See https://bugs.launchpad.net/nova/+bug/1081808 for more info
Add the following lines into /etc/nova/nova.conf
start_guests_on_host_boot=false
resume_guests_state_on_host_boot=true
Otherwise if you are using the RCBOPS cookbooks from https://github.com/rcbops-cookbooks/ you can do the following
----
$ sudo -i
# knife exec -E '@e=Chef::Environment.load("rpcs"); \
[email protected]_attributes; \
a["nova"].merge!({"config" => {"start_guests_on_host_boot" => false}}); \
@e.override_attributes(a); @e.save'
# knife exec -E '@e=Chef::Environment.load("rpcs"); \
[email protected]_attributes; \
a["nova"].merge!({"config" => {"resume_guests_state_on_host_boot" => true}}); \
@e.override_attributes(a); @e.save'
#chef-client && chef-client
#service nova-compute restart
---
Found the following worked way better
# knife exec -E '@e=Chef::Environment.load("rpcs"); \
[email protected]_attributes; \
a["nova"].merge!({"config" => {"start_guests_on_host_boot" => false, "resume_guests_state_on_host_boot" => true}}); \
@e.override_attributes(a); @e.save'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment