when hard-reboot a instance with serial-port multiple times, instance will not start for port exhausted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Sahid Orentino | ||
Liberty |
Fix Released
|
Medium
|
Unassigned | ||
Mitaka |
Fix Released
|
Medium
|
Sahid Orentino |
Bug Description
My running environment is
openstack-
python-
openstack-
openstack-
openstack-
openstack-
openstack-
openstack-
openstack-
In my nova.conf ,port_range=
I boot a instance with two serial-port ,it works well.
When i hard reboot this instance muti-times,it can't start and its status is shut-off
The log is below :
2015-08-28 17:06:46.635 7258 TRACE oslo_messaging.
river.py", line 3830, in _create_
2015-08-28 17:06:46.635 7258 TRACE oslo_messaging.
2015-08-28 17:06:46.635 7258 TRACE oslo_messaging.
ckutils.py", line 445, in inner
2015-08-28 17:06:46.635 7258 TRACE oslo_messaging.
2015-08-28 17:06:46.635 7258 TRACE oslo_messaging.
.py", line 82, in acquire_port
2015-08-28 17:06:46.635 7258 TRACE oslo_messaging.
ost)
after check code,i thought the hard-reboot code process has some problem。
The function release_port() is only in function cleanup()
When a instance is deleted ,function cleanup() is called
But when a instance is hard-boot,in _hard_reboot function it only call _destroy().
and then it call _get_guest_xml() and in it acquire_port() function is called.
so the instance will always acquire port but not release. at last port will be exhausted in logic
I think in _hard_reboot() of libvrit/
.....
self._destroy(
if CONF.serial_
serials = self._get_
for hostname, port in serials:
....
tags: | added: console libvirt |
Changed in nova: | |
assignee: | nobody → Chung Chih, Hung (lyanchih) |
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
assignee: | Markus Zoeller (markus_z) (mzoeller) → Marco Pavone (pavone) |
Changed in nova: | |
assignee: | Marco Pavone (pavone) → Markus Zoeller (markus_z) (mzoeller) |
tags: | added: liberty-backport-potential |
summary: |
- when hard-reboot a instance with serial-port mutil times ,instance will - not start for port exhausted + when hard-reboot a instance with serial-port multiple times, instance + will not start for port exhausted |
Changed in nova: | |
assignee: | sahid (sahid-ferdjaoui) → Dan Smith (danms) |
Changed in nova: | |
assignee: | Dan Smith (danms) → sahid (sahid-ferdjaoui) |
importance: | Undecided → Medium |
This problem is fixed when the changes for bug 1455252 are merged. I'll not mark this as duplicate because it describes a different problem, but I'll add a "closes bug" reference when I push the code for the next patchset.