Hi All, In this particular case, we don't need to login to any containers. To use virsh utility on the compute node we can simply install libvirt-client and execute the command as such:
[root@overcloud-novacompute-1 ~]# virsh -c qemu:///system list Id Name State ----------------------------------- 1 instance-00000143 running 5 instance-0000019d running 8 instance-0000032d running 10 instance-00000160 running 22 instance-000003d4 running 30 instance-000004b0 running 32 instance-0000015c running 37 instance-0000053e running 41 instance-000009f4 running 47 instance-00000e97 running 54 instance-00000e9b running
[root@overcloud-novacompute-1 ~]#
With regards, Swogat Pradhan
On Fri, Aug 25, 2023 at 1:07 PM Swogat Pradhan swogatpradhan22@gmail.com wrote:
Hi, I can't seem to get it to work:
[root@dcn01-hci-2 ~]# podman ps | grep nova 10d981158842 172.25.201.68:8787/tripleomaster/openstack-nova-libvirt:current-tripleo kolla_start 2 months ago Up 2 months ago nova_virtlogd_wrapper e91667516afc 172.25.201.68:8787/tripleomaster/openstack-nova-libvirt:current-tripleo kolla_start 2 months ago Up 2 months ago nova_virtsecretd a4b07fe0e833 172.25.201.68:8787/tripleomaster/openstack-nova-libvirt:current-tripleo kolla_start 2 months ago Up 2 months ago nova_virtnodedevd d7e1db393e9c 172.25.201.68:8787/tripleomaster/openstack-nova-libvirt:current-tripleo kolla_start 2 months ago Up 2 months ago nova_virtstoraged 5308a171793e 172.25.201.68:8787/tripleomaster/openstack-nova-libvirt:current-tripleo kolla_start 2 months ago Up 2 months ago nova_virtqemud f490a6249ba1 172.25.201.68:8787/tripleomaster/openstack-nova-libvirt:current-tripleo kolla_start 2 months ago Up 6 weeks ago nova_virtproxyd ab0441e56957 172.25.201.68:8787/tripleomaster/openstack-nova-compute:current-tripleo kolla_start 2 months ago Up 2 months ago (healthy) nova_migration_target f35fbba5b690 172.25.201.68:8787/tripleomaster/openstack-nova-compute:current-tripleo kolla_start 2 months ago Up 6 weeks ago (unhealthy) nova_compute 82bc01993106 172.25.201.68:8787/tripleomaster/openstack-nova-libvirt:current-tripleo /usr/sbin/virtlog... 2 months ago Up 2 months ago nova_virtlogd [root@dcn01-hci-2 ~]# podman exec -it 5308a171793e /bin/bash [root@dcn01-hci-2 /]# exit exit [root@dcn01-hci-2 ~]# podman exec -it nova_virtqemud /bin/bash [root@dcn01-hci-2 /]# virsh list error: failed to connect to the hypervisor error: no connection driver available for <null>
[root@dcn01-hci-2 /]# virsh uri error: failed to connect to the hypervisor error: no connection driver available for <null>
[root@dcn01-hci-2 /]# exit exit [root@dcn01-hci-2 ~]# podman exec nova_compute virsh uri qemu:///session
[root@dcn01-hci-2 ~]# podman exec f35fbba5b690 virsh -c qemu:///session list --all Id Name State
[root@dcn01-hci-2 ~]# exit logout [heat-admin@dcn01-hci-2 ~]$ sudo -i [root@dcn01-hci-2 ~]# podman exec -it nova_virtqemud /bin/bash [root@dcn01-hci-2 /]# podman exec f35fbba5b690 virsh -c qemu:///session list --all Error: 'overlay' is not supported over overlayfs, a mount_program is required: backing file system is unsupported for this graph driver [root@dcn01-hci-2 /]#
On Fri, Aug 25, 2023 at 12:29 PM Yatin Karel ykarel@redhat.com wrote:
Hi Swogat,
Yes the commands are correct, snippet from local system:- [root@compute-0 ~]# podman exec -it nova_virtqemud /bin/bash [root@compute-0 /]# virsh list --all Id Name State
[root@compute-0 /]# virsh uri qemu:///system
[root@compute-0 /]# virsh -c qemu:///system list --all Id Name State
[root@compute-0 /]# virsh -c qemu:///session list --all Id Name State
[root@compute-0 /]
Thanks and Regards Yatin Karel
On Fri, Aug 25, 2023 at 11:52 AM Swogat Pradhan swogatpradhan22@gmail.com wrote:
Hi Yatin, It doesn't seem to work. I am not sure if i am running the right command tough can you please confirm?
[root@dcn01-hci-2 ~]# podman exec -it nova_virtqemud /bin/bash [root@dcn01-hci-2 /]# virsh list error: failed to connect to the hypervisor error: no connection driver available for <null>
[root@dcn01-hci-2 /]#
With regards, Swogat Pradhan
On Fri, Aug 25, 2023 at 10:46 AM Yatin Karel ykarel@redhat.com wrote:
Hi Swogat
You can use the virsh commands from "nova_virtqemud" container in stable/wallaby+.
Thanks and Regards Yatin Karel
On Fri, Aug 25, 2023 at 10:38 AM Swogat Pradhan swogatpradhan22@gmail.com wrote:
Hi, Can someone please tell me how can i access the virsh utility on the compute node on openstack wallaby?
Previously we used nova_libvirt but in wallaby there are multiple containers and i am unable to use virsh utility to edit my domain.xml file.
List of containers: [root@dcn01-hci-2 ~]# podman ps | grep nova 10d981158842 172.25.201.68:8787/tripleomaster/openstack-nova-libvirt:current-tripleo kolla_start 2 months ago Up 2 months ago nova_virtlogd_wrapper e91667516afc 172.25.201.68:8787/tripleomaster/openstack-nova-libvirt:current-tripleo kolla_start 2 months ago Up 2 months ago nova_virtsecretd a4b07fe0e833 172.25.201.68:8787/tripleomaster/openstack-nova-libvirt:current-tripleo kolla_start 2 months ago Up 2 months ago nova_virtnodedevd d7e1db393e9c 172.25.201.68:8787/tripleomaster/openstack-nova-libvirt:current-tripleo kolla_start 2 months ago Up 2 months ago nova_virtstoraged 5308a171793e 172.25.201.68:8787/tripleomaster/openstack-nova-libvirt:current-tripleo kolla_start 2 months ago Up 2 months ago nova_virtqemud f490a6249ba1 172.25.201.68:8787/tripleomaster/openstack-nova-libvirt:current-tripleo kolla_start 2 months ago Up 6 weeks ago nova_virtproxyd ab0441e56957 172.25.201.68:8787/tripleomaster/openstack-nova-compute:current-tripleo kolla_start 2 months ago Up 2 months ago (healthy) nova_migration_target f35fbba5b690 172.25.201.68:8787/tripleomaster/openstack-nova-compute:current-tripleo kolla_start 2 months ago Up 6 weeks ago (unhealthy) nova_compute 82bc01993106 172.25.201.68:8787/tripleomaster/openstack-nova-libvirt:current-tripleo /usr/sbin/virtlog... 2 months ago Up 2 months ago Can someone please suggest how I can i edit an instance xml file in this setup?
With regards, Swogat Pradhan