Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

How to persist OpenStack / DevStack configurations across rebooting of the hosting machine

 

This page documents the instructions on how to persist OpenStack / DevStack configurations across rebooting of the hosting machine, and tips on troubleshooting OpenStack / DevStack from Rui's experience.

...

  1. Run "./unstack.sh".
    This cleanly stops the stack services and screen processes.
  2. Reboot the machine.
  3. Manually start the RabbitMQ server.
    Somehow the RabbitMQ server is not automatically started. Do "sudo service rabbitmq-server start".  This takes a while, about 2 minutes. Use Then do "sudo service rabbitmq-server status" to verify that it is started successfully.
  4. After reboot, do NOT use Run "./rejoin-stack.sh" to start the stack, but , do NOT use "./rejoin-stack.sh" to start the stack.
    This will use the "stack-screenrc" file, restart the stack, and keep all the configurations that have been made, such as uploaded images, VM instances in suspended (or shelved, but Rui did not test the shelved state) state, and uploaded key pairs. (smile) For example, the VM instances can be seen both in the "nova list" result and the web UI, and "nova resume ..." of suspended VM instances work.

...