forget to release resource before rescheduling
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Tiantian Gao |
Bug Description
The master code.
If an exception raised in libvirt.
An easy reproduction:
0. setup all-in-one devstack.
1. settting vncserver_listen = 1.2.3.4 in nova.conf. The configuration is to make libvirt.
2. nova boot --flavor 1 --image XXXX vm1
3.
ubuntu@dev-stack:~$ nova list
+------
| ID | Name | Status | Networks |
+------
| a8872a5a-
+------
nova show vm1
+------
| Property | Value |
+------
| status | ERROR |
| updated | 2013-03-
| OS-EXT-
| key_name | None |
| image | cirros-
| hostId | 409593d0d130d1b
| OS-EXT-STS:vm_state | error |
| flavor | m1.tiny (1) |
| id | a8872a5a-
| security_groups | [{u'name': u'default'}] |
| user_id | 9694194fd660483
| name | vm1 |
| created | 2013-03-
| fault | {u'message': u'NoValidHost', u'code': 500, u'created': u'2013-
| OS-DCF:diskConfig | MANUAL |
| metadata | {} |
| accessIPv4 | |
| accessIPv6 | |
| tenant_id | 6cc57820330644c
| OS-EXT-
| OS-EXT-
| config_drive | |
+------
4. ubuntu@dev-stack:~$ sudo iptables-save |grep 10.0.0.2
-A nova-compute-local -d 10.0.0.2/32 -j nova-compute-inst-1
If there is more than one host, the instance will be rescheduled to other host. but the resources in this host will not release forever.
summary: |
- forget to release resource if exception in libvirt.spawn() + forget to release resource before rescheduling |
Changed in nova: | |
milestone: | none → grizzly-rc1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-rc1 → 2013.1 |
Fix proposed to branch: master /review. openstack. org/24282
Review: https:/