nova-scheduler: UnicodeDecodeError in host aggregates handling
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Incomplete
|
Medium
|
Unassigned | ||
Mitaka |
Confirmed
|
Medium
|
Nazeema Begum |
Bug Description
nova-scheduler doesn't seem to like when there are non-asci characters in the host aggregate objects.
Steps to reproduce:
1. Create a host aggregate with some non-asci chars in properties, e.g.:
$ openstack aggregate show test_aggr
+------
| Field | Value |
+------
| availability_zone | nova |
| created_at | 2016-09-
| deleted | False |
| deleted_at | None |
| hosts | [u'node-
| id | 54 |
| name | test_aggr |
| properties | test_meta='проверка мета' |
| updated_at | None |
+------
2. Start an instance
Expected result: instance started.
Actual result: instance creating failed, exception in the nova-scheduler.log attached.
This is reproducible with Mitaka, didn't try master.
Changed in nova: | |
status: | In Progress → Incomplete |
Changed in nova: | |
assignee: | Andrey Volkov (avolkov) → nobody |
Yeah the failure is logging the aggregates here:
https:/ /github. com/openstack/ nova/blob/ fe21d29fa8b02f3 e6437f035b0af6c 58f8f454bb/ nova/scheduler/ host_manager. py#L171
With the unicode. This is similar to bug 1514325.