Instances with non-ASCII encoded names are not resumed when the host reboots
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Fix Released
|
Low
|
MOS Nova |
Bug Description
Seen on 5.1 and 6.0-42-
When in nova.conf this option is enabled:
resume_
VMs are not resumed correctly after a compute node reboot, if their name contains non-ASCII characters:
root@node-1:~# nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 2a3735c1-
| 0d2080c8-
+------
root@node-2:~# virsh list
Id Name State
-------
2 instance-00000001 running
3 instance-00000002 running
root@node-2:~# reboot
root@node-2:~# virsh list
Id Name State
-------
2 instance-00000001 running
3 instance-00000002 running
When the instance name contains non-ASCII characters, the instance is not resumed:
root@node-1:~# nova rename cirros2 cirròs
root@node-1:~# nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 2a3735c1-
| 0d2080c8-
+------
root@node-2:~# reboot
root@node-1:~# nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 2a3735c1-
| 0d2080c8-
+------
root@node-2:~# virsh list
Id Name State
-------
2 instance-00000002 running
On 5.1, all instances on the host are not resumed.
On 6.0-42-
Extract of nova-compute.log on 5.1:
2014-10-21 16:25:09.354 2593 AUDIT nova.service [-] Starting compute node (version 2014.1.1)
2014-10-21 16:25:10.529 2593 INFO nova.compute.
2014-10-21 16:25:10.560 2593 INFO nova.virt.
2014-10-21 16:25:10.631 2593 WARNING nova.compute.utils [-] [instance: c0119920-
2014-10-21 16:25:11.396 2593 INFO nova.compute.
2014-10-21 16:25:11.403 2593 INFO nova.virt.
Changed in fuel: | |
milestone: | none → 6.0 |
Changed in fuel: | |
status: | New → Confirmed |
Changed in fuel: | |
importance: | Undecided → Medium |
importance: | Medium → Low |
Changed in fuel: | |
assignee: | nobody → MOS Nova (mos-nova) |
tags: | added: nova |
affects: | fuel → mos |
Changed in mos: | |
milestone: | 6.0 → none |
milestone: | none → 6.0 |
Confirmed on 6.0
This is not only the problem with instances, which names are in non-ASCII, after reboot
I can not even start the instances with names in non-ASCII
| fault | {"message": "No valid host was found. ", "code": 500, "details": " File \"/usr/ lib/python2. 7/dist- packages/ nova/conductor/ manager. py\", line 614, in build_instances | lib/python2. 7/dist- packages/ nova/scheduler/ client/ __init_ _.py\", line 49, in select_destinations | lib/python2. 7/dist- packages/ nova/scheduler/ client/ __init_ _.py\", line 35, in __run_method | self.instance, __name)(*args, **kwargs) | lib/python2. 7/dist- packages/ nova/scheduler/ client/ query.py\ ", line 34, in select_destinations | lib/python2. 7/dist- packages/ nova/scheduler/ rpcapi. py\", line 107, in select_destinations | spec=request_ spec, filter_ properties= filter_ properties) | lib/python2. 7/dist- packages/ oslo/messaging/ rpc/client. py\", line 152, in call | lib/python2. 7/dist- packages/ oslo/messaging/ transport. py\", line 90, in _send | lib/python2. 7/dist- packages/ oslo/messaging/ _drivers/ am...
| | request_spec, filter_properties) |
| | File \"/usr/
| | context, request_spec, filter_properties) |
| | File \"/usr/
| | return getattr(
| | File \"/usr/
| | context, request_spec, filter_properties) |
| | File \"/usr/
| | request_
| | File \"/usr/
| | retry=self.retry) |
| | File \"/usr/
| | timeout=timeout, retry=retry) |
| | File \"/usr/