Bug 891422
Summary: | Compute Node should check for VM state inconsistencies on service startup vs. waiting for 10 minutes | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Perry Myers <pmyers> |
Component: | openstack-nova | Assignee: | Nikola Dipanov <ndipanov> |
Status: | CLOSED ERRATA | QA Contact: | Yaniv Kaul <ykaul> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 2.0 (Folsom) | CC: | eglynn, jkt, ndipanov |
Target Milestone: | snapshot2 | Keywords: | Triaged |
Target Release: | 2.1 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openstack-nova-2012.2.2-9.el6ost | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-14 18:24:34 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Perry Myers
2013-01-02 21:50:55 UTC
There is an option called "resume_guests_state_on_host_boot" that will change the behavior of this use case (see init_host() in nova/compute/manager.py). When enabled, it would have automatically restarted the instances that were supposed to be running when nova-compute starts up. Personally that is what I would expect to happen by default. We could consider changing this to be on by default in RHOS, I suppose. There are cases covered by the sync_power_states periodic task that are not covered by init_host(). It seems like those two methods need a bit of refactoring so that init_host can sync the power state of every instance as it traverses them. However, it does seem like doing sync_power_states() in init_host() would be good, too. Pretend the last sentence in my last comment isn't there ... Note to QE: test both service shutdown and restart as well as host cycle work with that parameter: 1. That VMs re-run on that host. 2. That if you opt to run that VM on a different host, they do NOT run. Verified on: [root@cougar10 ~]# rpm -qa |grep nova python-novaclient-2.10.0-2.el6ost.noarch python-nova-2012.2.2-9.el6ost.noarch openstack-nova-network-2012.2.2-9.el6ost.noarch openstack-nova-common-2012.2.2-9.el6ost.noarch openstack-nova-compute-2012.2.2-9.el6ost.noarch Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0260.html |