Explorar el Código

Merge "ovn-metadata-agent: dsvm-functional issues due to str conversion" into stable/rocky

tags/5.1.0
Zuul Gerrit Code Review hace 6 meses
padre
commit
d34d574f0a
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      networking_ovn/agent/metadata/agent.py

+ 3
- 1
networking_ovn/agent/metadata/agent.py Ver fichero

@@ -237,7 +237,9 @@ class MetadataAgent(object):
which were serving metadata but are no longer needed.
"""
metadata_namespaces = self.ensure_all_networks_provisioned()
system_namespaces = ip_lib.list_network_namespaces()
system_namespaces = tuple(
ns.decode('utf-8') if isinstance(ns, bytes) else ns
for ns in ip_lib.list_network_namespaces())
unused_namespaces = [ns for ns in system_namespaces if
ns.startswith(NS_PREFIX) and
ns not in metadata_namespaces]


Cargando…
Cancelar
Guardar