瀏覽代碼

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

tags/5.1.0
Zuul Gerrit Code Review 6 月之前
父節點
當前提交
d34d574f0a
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      networking_ovn/agent/metadata/agent.py

+ 3
- 1
networking_ovn/agent/metadata/agent.py 查看文件

@@ -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…
取消
儲存