Knowledge Base
2025.10
GENERIC
Networking
Storage
Compute
Designate
Orchestration
Self-Hosted
Install
UPGRADE
Monitoring
Add-Ons
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
VM Creation Failure Due to Glance Host and Stale OVN NetNS Issue
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
VM creation was failing at the volume-from-image stage due to the Glance host being in a failed state. The failure was linked to a stale OVN metadata network namespace, which caused the pf9-neutron-ovn-metadata-agent to crash, impacting Glance functionality.
Environment
- Private Cloud Director Virtualization - v2025.4 and Higher
- Private Cloud Director Kubernetes – v2025.4 and Higher
- Self-Hosted Private Cloud Director Virtualization - v2025.4 and Higher
- Self-Hosted Private Cloud Director Kubernetes - v2025.4 and Higher
Cause
The root cause was traced to the Glance host being in a failed state. Additionally, a stale/corrupted OVN metadata namespace caused the pf9-neutron-ovn-metadata-agent service to fail, which contributed to network namespace issues affecting Glance and possibly Cinder volume creation.
Diagnostics
Key findings during the investigation:
- Glance backend was not visible in the
openstack volume backend pool listcommand output. pf9-neutron-ovn-metadata-agentwas in a failed state with the following critical log in/var/log/pf9/pf9-neutron-ovn-metadata-agent.log:
Affected Host
[TimeStamp] CRITICAL neutron [-] Unhandled error: OSError: [Errno 22] failed to open netns- Stale/invalid NETNS entry found under
/var/run/netns:
Affected Host
​x
$ ip netns listovnmeta-[ovnnetns-id-1] (id: 0)ovnmeta-[ovnnetns-id-2]​$ ls -l /var/run/netnstotal 0-r--r--r-- 1 root root 0 [Time Stamp] ovnmeta-[ovnnetns-id-1]---------- 1 root root 0 [Time Stamp] ovnmeta-[ovnnetns-id-2]- The invalid namespace had no permissions and was inaccessible..
Resolution
- Identified that
pf9-neutron-ovn-metadata-agentwas in a failed state. - Found a stale NETNS entry with invalid permissions:
Affected Host
---------- 1 root root 0 Jun [Time Stamp] ovnmeta-[ovnnetns-id-2]- Deleted the stale netns:
Affected Host
$ sudo ip netns delete ovnmeta-<OVS_NETNS_ID_2>- Restarted the metadata agent:
Affected Host
$ sudo systemctl restart pf9-neutron-ovn-metadata-agent- Restarted the
glance-apiservice to ensure backend availability:
Affected Host
$ sudo systemctl restart pf9-glance-apiValidation
- Post-remediation,
pf9-neutron-ovn-metadata-agentstarted successfully without errors. - Glance backend was registered properly.
- VM creation using image-backed volume was tested and succeeded.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Was this page helpful?
Next to read:
Unable to Delete Stale Compute ServiceDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message