Partial-Revert:Skip port if missing mandatory tag
We need to be more specific when to allow ports without mandatory tags. We can ignore OVN mac ports, but we do care about the overcloud node ctlplane ports. Add the raise MissingMandatoryNeutronResourceTag back in _ports_by_role_and_host. Change-Id: Ie7bd84f40f3a0bf5155c0bd455815fa3ecacdef4 Closes-Bug: #1928926
This commit is contained in:
parent
14441478f9
commit
d328637713
|
@ -137,10 +137,10 @@ class NeutronData(object):
|
|||
continue
|
||||
|
||||
tags = self._tags_to_dict(port.tags)
|
||||
# In case of missing required tag, this is not a node port and
|
||||
# should be ignored.
|
||||
# In case of missing required tags, raise an error.
|
||||
# neutron is useless as a inventory source in this case.
|
||||
if not mandatory_tags.issubset(tags):
|
||||
continue
|
||||
raise exception.MissingMandatoryNeutronResourceTag()
|
||||
|
||||
hostname = port.dns_name
|
||||
network_id = port.network_id
|
||||
|
|
Loading…
Reference in New Issue