Parcourir la source

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

tags/5.1.0
Zuul Gerrit Code Review il y a 3 mois
Parent
révision
d34d574f0a
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. +3
    -1
      networking_ovn/agent/metadata/agent.py

+ 3
- 1
networking_ovn/agent/metadata/agent.py Voir le fichier

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


Chargement…
Annuler
Enregistrer