Ver código fonte

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

tags/5.1.0
Zuul Gerrit Code Review 3 meses atrás
pai
commit
d34d574f0a
1 arquivos alterados com 3 adições e 1 exclusões
  1. +3
    -1
      networking_ovn/agent/metadata/agent.py

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

@@ -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]


Carregando…
Cancelar
Salvar