Browse Source

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

changes/28/683928/2
Zuul Gerrit Code Review 2 months ago
parent
commit
d34d574f0a
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      networking_ovn/agent/metadata/agent.py

+ 3
- 1
networking_ovn/agent/metadata/agent.py View File

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


Loading…
Cancel
Save