Ask Your Question
4

after reboot doesn't run guest

asked 2013-09-17 04:01:18 -0500

dsatava gravatar image

updated 2013-09-18 05:28:59 -0500

Hi, after rebooting my Openstack server all my instances are shutdown. I am looking scripts for run instances after reboot server. For example: I had 5 instances shutdown and three instances running, after reboot server I want again 5 instances shutdown and 3 instances running. My Openstack server running on Ubuntu.

Thank you

edit retag flag offensive close merge delete

Comments

Hi, could you mention a few more details like Installation Procedure and Tools used in the process, Configuration of Nova, etc? Thanks.

Sirushti Murugesan gravatar imageSirushti Murugesan ( 2013-09-17 05:33:50 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
7

answered 2013-09-17 07:39:10 -0500

Sirushti Murugesan gravatar image

updated 2013-09-17 07:50:16 -0500

It seems like this flag inside nova.conf should work in your case.

resume_guests_state_on_host_boot=true

Although, I hear this option may be quite error-prone.

By the way, The start_guests_on_host_boot=true functionality has been removed in grizzly.

edit flag offensive delete link more

Comments

Thank you, I changed my nova.conf from start_guests_on_host_boot=true to resume_guests_state_on_host_boot=true. I fixed nova.conf from control node It's right ??

dsatava gravatar imagedsatava ( 2013-09-17 08:31:49 -0500 )edit

Should be changed in the hosts running the nova-compute service since they're the hosts that are actually running the instances.

Sirushti Murugesan gravatar imageSirushti Murugesan ( 2013-09-17 09:42:32 -0500 )edit

Thank you, it works. Another problem, after reboot, all instances with status pause or suspended gets power state shutdown but it should look like: instance with status pause has power state pause.

dsatava gravatar imagedsatava ( 2013-09-18 07:21:01 -0500 )edit

I updated nova.conf

dsatava gravatar imagedsatava ( 2013-09-18 07:44:28 -0500 )edit

That option only resumes guests that were running before the host rebooted. Rest all states are ignored by implementation. Agreed, the name 'resume_guests_state...' is kinda misleading. Doubt there's an option for what you're asking though.

Sirushti Murugesan gravatar imageSirushti Murugesan ( 2013-09-18 09:42:41 -0500 )edit
0

answered 2013-09-17 06:12:52 -0500

dsatava gravatar image

updated 2013-09-18 07:42:56 -0500

Nova.conf compute node

# General
verbose=True
rabbit_host=00.0.00.00
rabbit_password=password

resume_guests_state_on_host_boot=true
auth_strategy=keystone

ec2_host=00.0.00.00
ec2_url=http://00.0.00.00:8773/services/Cloud
osapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensions
ec2_dmz_host=00.0.00.00
s3_host=00.0.00.00
enabled_apis=ec2,osapi_compute,metadata

# LOGS/STATE
verbose=True
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
rootwrap_config=/etc/nova/rootwrap.conf
api_paste_config=/etc/nova/api-paste.ini

# Networking
libvirt_use_virtio_for_bridges=True
network_api_class=nova.network.quantumv2.api.API
quantum_url=http://00.0.00.00:9696
quantum_auth_strategy=keystone
quantum_admin_tenant_name=service
quantum_admin_username=quantum
quantum_admin_password=quantum
quantum_admin_auth_url=http://00.0.00.00:35357/v2.0

#FIX ssh keyx
multi_host=True
enabled_apis=metadata

#quota
quota_driver=nova.quota.DbQuotaDriver

# Security Groups
firewall_driver=nova.virt.firewall.NoopFirewallDriver
security_group_api=quantum

# Compute #
compute_driver=libvirt.LibvirtDriver
connection_type=libvirt

# Cinder
volume_api_class=nova.volume.cinder.API

# Glance
glance_api_servers=00.0.00.00:9292
image_service=nova.image.glance.GlanceImageService

# novnc
vnc_enabled=true
#vnc_enabled=false
vncserver_proxyclient_address=00.0.00.00

#novncproxy_base_url=http://00.0.00.00:6081/vnc_auto.html
#novncproxy_base_url=http://openstack-devel.xxxxx.cz:6081/vnc_auto.html
#hst novncproxy_base_url=http://openstack.xxxx.cz:6080/vnc_auto.html
novncproxy_base_url=http://openstack-devel.xxxxx.cz:6080/vnc_auto.html

vncserver_listen=0.0.0.0

##
# spice
##

# location of spice html5 console proxy, in the form
# "http://127.0.0.1:6080/spice_auto.html" (string value)
#html5proxy_base_url=http://openstack.xxxxx.cz:6080/spice_auto.html

# IP address on which instance spice server should listen
# (string value)
#server_listen=127.0.0.1
#server_listen=0.0.0.0

# the address to which proxy clients (like nova-
# spicehtml5proxy) should connect (string value)
#server_proxyclient_address=127.0.0.1
#server_proxyclient_address=00.0.00.00

# enable spice related features (boolean value)
#enabled=true

# enable spice guest agent support (boolean value)
#agent_enabled=true

# keymap for spice (string value)
#keymap=en-us

Nova grizzly release. It's manual instalation from http://docs.openstack.org/trunk/openstack-compute/install/yum/content/

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

Get to know Ask OpenStack

Resources for moderators

Question Tools

5 followers

Stats

Asked: 2013-09-17 04:01:18 -0500

Seen: 3,994 times

Last updated: Sep 18 '13