Comment 2 for bug 1970755

Revision history for this message
Juan Pablo Martí (yampilop) wrote :

Please re-open this bug.

I'm getting failure again in RHOSP 16.2.2 since there's no nova_libvirt_launcher.sh process anymore.

[root@overcloud-computeovsdpdk-0 ~]# cat /etc/rhosp-release
Red Hat OpenStack Platform release 16.2.2 (Train)
[root@overcloud-computeovsdpdk-0 ~]# ps aux | grep nova_libvirt_launcher
root 9556 0.0 0.0 12136 1156 pts/0 S+ 17:40 0:00 grep --color=auto nova_libvirt_launcher

In roles/check_nfv_ovsdpdk_zero_packet_loss/tasks/main.yml from the validations:

- name: Get nova_libvirt_launcher Process
  become: true
  shell: |-
    ps -Leaf | grep nova_libvirt_launcher.sh | grep -v pts -m 1 | awk '{print $2}'
  register: nova_libvirt_launcher

- name: Get nova libvirt namespace processes
  become: true
  shell: |-
    pgrep --ns {{ nova_libvirt_launcher.stdout }}
  register: nova_libvirt_proceses

It's trying to get the PID of the process belonging to the same namespace as nova_libvirt_launcher.sh.

As there is no more running process related to nova_libvirt_launcher.sh, I searched the script to see the contents:

[root@overcloud-computeovsdpdk-0 ~]# cat /var/lib/container-config-scripts/nova_libvirt_launcher.sh
#!/bin/bash
set -xe
if [[ -f /usr/lib/systemd/kvm-setup ]]; then
  /usr/lib/systemd/kvm-setup
fi
exec systemd-run --scope --slice=system /usr/sbin/libvirtd

So probably we need to change the task to:

- name: Get nova_libvirt_launcher Process
  become: true
  shell: |-
    ps -Leaf | grep libvirtd | grep -v pts -m 1 | awk '{print $2}'
  register: nova_libvirt_launcher

Is that right? Did I get the logic of how it works?