Fail to createVM with extra_spec using ComputeCapabilitiesFilter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Dimitri Mazmanov |
Bug Description
Fails to createVM with extra_spec using ComputeCapabili
------------
Here's the test steps:
1. Create an aggregate, and set its metadata, like ssd=True.
2. Add one host to this aggregate.
3. Create a new flavor, set extra_spcs like ssd=True.
4. Create a new VM using this flavor.
5. Creation failed due to no valid hosts.
-------------
Let's look at the codes:
In ComputeCapabili
Before in Grizzly, there's a periodic_task named '_report_
But in Havana, the task is canceled. So the capacities won't be updated, the value is always 'None'.
So, if you boot a VM with extra_spec, those hosts will be filtered out.
And the exception will be raised.
-----------------
Some observations with this filter:
1- only first level properties can be used without 'capabilities' scope
This will be correct:
hypervisor_type = QEMU
This will fail:
cpu_
cpu_info:vendor = Intel
From the docs:
ComputeCapabili
Matches properties defined in an instance type's extra specs against compute capabilities.
If an extra specs key contains a colon ":", anything before the colon is treated as a namespace, and anything after the colon is treated as the key to be matched. If a namespace is present and is not 'capabilities', it is ignored by this filter.
2- If you use both filters, ComputeCapabili
https:/
https:/
http://
3- cpu_info data is loaded as unicode in HostState. ComputeCapabili
This will fail:
capabilitie
This last one is addressed here:
https:/
Changed in nova: | |
assignee: | nobody → Juan Manuel Ollé (juan-m-olle) |
Changed in nova: | |
importance: | Undecided → Low |
Changed in nova: | |
assignee: | Juan Manuel Ollé (juan-m-olle) → Facundo Maldonado (facundo-n-maldonado) |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in nova: | |
assignee: | nobody → Satyanarayana Patibandla (satya-patibandla) |
Changed in nova: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | liberty-1 → 12.0.0 |
I can reproduce this too. ceExtraSpecFilt ers seems to work ok.
But using AggregateInstan