nova-scheduler: UnicodeDecodeError in host aggregates handling

Bug #1624277 reported by Roman Bogorodskiy
16
This bug affects 3 people
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-09T17:31:12.000000 |
| deleted | False |
| deleted_at | None |
| hosts | [u'node-6.domain.tld', u'node-7.domain.tld'] |
| 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.

Revision history for this message
Roman Bogorodskiy (novel) wrote :
description: updated
Revision history for this message
Matt Riedemann (mriedem) wrote :

Yeah the failure is logging the aggregates here:

https://github.com/openstack/nova/blob/fe21d29fa8b02f3e6437f035b0af6c58f8f454bb/nova/scheduler/host_manager.py#L171

With the unicode. This is similar to bug 1514325.

Changed in nova:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Andrey Volkov (avolkov) wrote :

With high probability, it's related to oslo.log library bug https://bugs.launchpad.net/oslo.log/+bug/1563295.

I prepared backport to upstream stable mitaka https://review.openstack.org/371582
which should fix the issue.

Changed in nova:
status: Confirmed → In Progress
assignee: nobody → Andrey Volkov (avolkov)
Sean Dague (sdague)
Changed in nova:
status: In Progress → Incomplete
Sean Dague (sdague)
Changed in nova:
assignee: Andrey Volkov (avolkov) → nobody
Revision history for this message
Sam Morrison (sorrison) wrote :

We have started to see this in Pike

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.