CentaurusInfra / mizar

Mizar – Experimental, High Scale and High Performance Cloud Network https://mizar.readthedocs.io
https://mizar.readthedocs.io
GNU General Public License v2.0
112 stars 50 forks source link

Fix issue: Arkto pod stuck at ContainerCreating due to cni error 'NoneType' object has no attribute 'metadata' #638 #640

Closed Hong-Chang closed 2 years ago

Hong-Chang commented 2 years ago

This pr is to fix issue 638. It's a known issue that currently if cluster is arktos, and the namespace belongs to a tenant, kube_get_namespace will return None because the kubernetes client is not for arktos and it cannot retrieve the namespace of non-system tenant. For now we have to ignore the namespace of non-system tenant.

couple month ago there was a member tried to solve the issue by sending needed namespace info from arktos to mizar. But the work was not done successfully and the member left the project. In the future we shall consider how to resolve this known issue.

What type of PR is this? /kind bug

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #638

Special notes for your reviewer:

Does this PR introduce a user-facing change?: