Set cgroupns=host for neutron_dhcp and ovn-metadata
Without this change on Centos Stream 9 we will get errors like the following: + nsenter --net=/run/netns/qdhcp-7083ee69-e139-4844-8af8-7efa798a3c49 --preserve-credentials -m -t 1 podman run --detach --log-driver k8s-file --log-opt path=/var/log/containers/stdouts/neutron-dnsmasq-qdhcp-7083ee69-e139-4844-8af8-7efa798a3c49.log -v /var/lib/config-data/puppet-generated/neutron/etc/neutron:/etc/neutron:ro -v /run/netns:/run/netns:shared -v /var/lib/neutron:/var/lib/neutron:shared -v /dev/log:/dev/log --net host --pid host --cgroupns host --privileged -u root --name neutron-dnsmasq-qdhcp-7083ee69-e139-4844-8af8-7efa798a3c49 undercloud-0.ctlplane.home.arpa:8787/tripleomastercentos9/openstack-neutron-dhcp-agent:8f4fa80dca5a62ca9a9049b664a60868 /usr/sbin/dnsmasq -k --no-hosts --no-resolv --pid-file=/var/lib/neutron/dhcp/7083ee69-e139-4844-8af8-7efa798a3c49/pid --dhcp-hostsfile=/var/lib/neutron/dhcp/7083ee69-e139-4844-8af8-7efa798a3c49/host --addn-hosts=/var/lib/neutron/dhcp/7083ee69-e139-4844-8af8-7efa798a3c49/addn_hosts --dhcp-optsfile=/var/lib/neutron/dhcp/7083ee69-e139-4844-8af8-7efa798a3c49/opts --dhcp-leasefile=/var/lib/neutron/dhcp/7083ee69-e139-4844-8af8-7efa798a3c49/leases --dhcp-match=set:ipxe,175 --dhcp-userclass=set:ipxe6,iPXE --local-service --bind-dynamic --dhcp-range=set:subnet-eaf4f552-0023-4e4a-9b6e-b5f3727e647e,192.168.24.0,static,255.255.255.0,86400s --dhcp-option-force=option:mtu,1500 --dhcp-lease-max=256 --conf-file=/dev/null --domain=home.arpa Error: create directory `/sys/fs/cgroup/../../libpod-b43b25a3bf3af73d24d3f4c52b983334ead7d28462e9ed8ba83f207e4264b1ed.scope`: No such file or directory: OCI runtime attempted to invoke a command that was not found See also the related libvirt/nova issue in https://bugs.launchpad.net/tripleo/+bug/1936005 Tested and with this change the error is gone and dhcp/ovn-metadata is functional again. Closes-Bug: #1944522 Change-Id: I8a5b885782386a89c463ff0b7afd7ace91958278
This commit is contained in:
parent
ed7ad7ca68
commit
60d77b37ec
@ -309,6 +309,7 @@ outputs:
|
|||||||
image: {get_param: ContainerNeutronDHCPImage}
|
image: {get_param: ContainerNeutronDHCPImage}
|
||||||
net: host
|
net: host
|
||||||
pid: host
|
pid: host
|
||||||
|
cgroupns: host
|
||||||
privileged: true
|
privileged: true
|
||||||
restart: always
|
restart: always
|
||||||
security_opt:
|
security_opt:
|
||||||
|
@ -271,6 +271,7 @@ outputs:
|
|||||||
image: {get_param: ContainerOvnMetadataImage}
|
image: {get_param: ContainerOvnMetadataImage}
|
||||||
net: host
|
net: host
|
||||||
pid: host
|
pid: host
|
||||||
|
cgroupns: host
|
||||||
privileged: true
|
privileged: true
|
||||||
restart: always
|
restart: always
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
Loading…
Reference in New Issue
Block a user