Ignore traits with a COMPUTE_ prefix in wait for placement
Traits with a COMPUTE_ prefix are for signalling driver capabilities in nova. These may be expected to change over time, so ignore them all. Change-Id: I8cb667bc456e88abad0283970e69bb1cdb1cd249 Story: 2005675 Task: 30986
This commit is contained in:
parent
b47839e77e
commit
26fcfd5c74
@ -239,12 +239,11 @@ def are_resources_available(module, specifiers, expected):
|
||||
"""
|
||||
providers_raw = get_providers(module)
|
||||
providers = []
|
||||
nova_internal_traits = {'COMPUTE_NET_ATTACH_INTERFACE'}
|
||||
for provider in providers_raw:
|
||||
uuid = provider["uuid"]
|
||||
traits = get_traits(module, uuid)
|
||||
# Don't include traits assigned by the nova compute driver.
|
||||
traits = traits - nova_internal_traits
|
||||
traits = {t for t in traits if not t.startswith('COMPUTE_')}
|
||||
inventory = get_inventory(module, uuid)
|
||||
provider = Provider(
|
||||
uuid=uuid,
|
||||
|
Loading…
Reference in New Issue
Block a user