Instance creation fails with error "Failed to bind socket to /var/run/openvswitch/vhuce264a4d-20: Permission denied"

Solution Verified - Updated -

Issue

  • Evaluating the nova-compute logs on the compute node, the request fails with an error mentioned below.

    2021-07-31 04:43:34.543 7 ERROR nova.compute.manager [req-9a35bad0-0793-4ed8-8803-660e8fcc9b03 087bf2bcee5045aaa09c128c32038853 ef1ce0af949c467da9d376984fbc20b8 - default default] [instance: 46df9abf-80ad-4477-8cde-b670be0d3fea] Instance failed to spawn: libvirt.libvirtError: internal error: process exited while connecting to monitor: 2021-07-31T04:43:34.302286Z qemu-kvm: -chardev socket,id=charnet0,path=/var/run/openvswitch/vhuce264a4d-20,server: Failed to bind socket to /var/run/openvswitch/vhuce264a4d-20: Permission denied
    2021-07-31 04:43:34.543 7 ERROR nova.compute.manager [instance: 46df9abf-80ad-4477-8cde-b670be0d3fea] Traceback (most recent call last):
    2021-07-31 04:43:34.543 7 ERROR nova.compute.manager [instance: 46df9abf-80ad-4477-8cde-b670be0d3fea]   File "/usr/lib/python3.6/site-packages/nova/compute/manager.py", line 2668, in _build_resources
    2021-07-31 04:43:34.543 7 ERROR nova.compute.manager [instance: 46df9abf-80ad-4477-8cde-b670be0d3fea]     yield resources
    
    [...]
    
    2021-07-31 04:43:34.543 7 ERROR nova.compute.manager [instance: 46df9abf-80ad-4477-8cde-b670be0d3fea]   File "/usr/lib64/python3.6/site-packages/libvirt.py", line 1265, in createWithFlags
    2021-07-31 04:43:34.543 7 ERROR nova.compute.manager [instance: 46df9abf-80ad-4477-8cde-b670be0d3fea]     if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)
    2021-07-31 04:43:34.543 7 ERROR nova.compute.manager [instance: 46df9abf-80ad-4477-8cde-b670be0d3fea] libvirt.libvirtError: internal error: process exited while connecting to monitor: 2021-07-31T04:43:34.302286Z qemu-kvm: -chardev socket,id=charnet0,path=/var/run/openvswitch/vhuce264a4d-20,server: Failed to bind socket to /var/run/openvswitch/vhuce264a4d-20: Permission denied
    

Environment

  • Red Hat OpenStack Platform 16.1
  • ML2-OVN with DPDK

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content