migrate does not work after deleting flavor
Bug #1674490 reported by
Dmitry Sutyagin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Won't Fix
|
Medium
|
Alexey Stupnikov |
Bug Description
Reproduced on MOS 7.0 with latest MU to date.
steps:
1. boot an instance
2. delete it's flavor (nova flavor-delete)
3. migrate the instance.
Resulting error - "Flavor 7 could not be found." # 7 is the flavor id in MySQL.
This bug is not reproducible in Juno (MOS6.1) or in Liberty (MOS 8.0) or Mitaka (MOS9.0) -only reproducible in Kilo.
There is a matching bug upstream - https:/
Changed in mos: | |
status: | New → Confirmed |
importance: | High → Medium |
assignee: | nobody → MOS Maintenance (mos-maintenance) |
milestone: | none → 7.0-updates |
Changed in mos: | |
milestone: | 7.0-updates → 7.0-mu-8 |
Changed in mos: | |
assignee: | MOS Maintenance (mos-maintenance) → Alexey Stupnikov (astupnikov) |
To post a comment you must log in.
The analysis so far showed that the issue is triggered here - https:/ /github. com/openstack/ nova/blob/ kilo-eol/ nova/compute/ manager. py#L4027
For some reason, when nova-api calls https:/ /github. com/openstack/ nova/blob/ kilo-eol/ nova/compute/ api.py# L2743 and passes new_instance_type of type 'objects.Flavor', the call is sent through RabbitMQ to nova-compute, which receives this argument as type 'dict' instead of 'objects.Flavor'. Looks like there's some problem with serialization/ deserialization of this argument when it goes through oslo_messaging / RabbitMQ.
If this "if" clause in manager.py is commented out, migration works fine.