Bug 2107580 - [osp17] Tripleo_nova_libvirt_guests fails after reboot
Summary: [osp17] Tripleo_nova_libvirt_guests fails after reboot
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ga
: 17.1
Assignee: Bogdan Dobrelya
QA Contact: Khomesh Thakre
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-15 12:58 UTC by Khomesh Thakre
Modified: 2023-08-17 13:26 UTC (History)
7 users (show)

Fixed In Version: openstack-tripleo-heat-templates-14.3.1-1.20220920001118.2b27b46.el9ost
Doc Type: Bug Fix
Doc Text:
Before this update, the shutdown script that director uses to stop `libvirtd` stored outdated `libvirt` container names from RHOSP versions before RHOSP 17.0, and instances did not shut down gracefully. With this update, the script stores correct `libvirt` container names, and instances are gracefully shut down when `libvirtd` is stopped.
Clone Of:
Environment:
Last Closed: 2023-08-16 01:11:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1967021 0 None None None 2022-07-25 15:14:05 UTC
OpenStack gerrit 843159 0 None MERGED Fix libvirt-guests handling post virt-guest-shutdown 2023-01-04 20:51:55 UTC
Red Hat Issue Tracker OSP-17657 0 None None None 2022-07-15 13:04:49 UTC
Red Hat Product Errata RHEA-2023:4577 0 None None None 2023-08-16 01:11:57 UTC

Description Khomesh Thakre 2022-07-15 12:58:22 UTC
Description of problem:

After a reboot of compute node, we see Tripleo_nova_libvirt_guests in the failed state.
It calls for a libvirt-guests.sh from inside the nova_libvirt container, which doesn't exist in osp17.

~~~
[root@compute-1 ~]# journalctl  -u tripleo_nova_libvirt_guests
Jul 15 12:37:02 compute-1 systemd[1]: Starting Suspend libvirt Guests in tripleo...
Jul 15 12:37:02 compute-1 podman[2864]: time="2022-07-15T12:37:02Z" level=warning msg=" binary not found, container dns will not be enabled"
Jul 15 12:37:02 compute-1 podman[2864]: Error: no container with name or ID "nova_libvirt" found: no such container
Jul 15 12:37:02 compute-1 systemd[1]: tripleo_nova_libvirt_guests.service: Main process exited, code=exited, status=125/n/a
Jul 15 12:37:02 compute-1 systemd[1]: tripleo_nova_libvirt_guests.service: Failed with result 'exit-code'.
Jul 15 12:37:02 compute-1 systemd[1]: Failed to start Suspend libvirt Guests in tripleo.



[root@compute-1 ~]# systemctl status tripleo_nova_libvirt_guests.service 
× tripleo_nova_libvirt_guests.service - Suspend libvirt Guests in tripleo
     Loaded: loaded (/etc/systemd/system/tripleo_nova_libvirt_guests.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Fri 2022-07-15 12:37:02 UTC; 17min ago
       Docs: man:libvirtd(8)
             https://libvirt.org
   Main PID: 2864 (code=exited, status=125)
        CPU: 75ms

Jul 15 12:37:02 compute-1 systemd[1]: Starting Suspend libvirt Guests in tripleo...
Jul 15 12:37:02 compute-1 podman[2864]: time="2022-07-15T12:37:02Z" level=warning msg=" binary not found, container dns will not be enabled"
Jul 15 12:37:02 compute-1 podman[2864]: Error: no container with name or ID "nova_libvirt" found: no such container
Jul 15 12:37:02 compute-1 systemd[1]: tripleo_nova_libvirt_guests.service: Main process exited, code=exited, status=125/n/a
Jul 15 12:37:02 compute-1 systemd[1]: tripleo_nova_libvirt_guests.service: Failed with result 'exit-code'.
Jul 15 12:37:02 compute-1 systemd[1]: Failed to start Suspend libvirt Guests in tripleo.
[root@compute-1 ~]# 
~~~

Version-Release number of selected component (if applicable):
RHOS-17.0-RHEL-9-20220711.n.1

openstack-tripleo-heat-templates-14.3.1-0.20220706080800.feca772.el9ost.noarch


How reproducible:
100%

Steps to Reproduce:
1. Deploy osp17 with NovaResumeGuestsStateOnHostBoot enable 
2. reboot any of the compute node
3.

Actual results:
Service failed after reboot

Expected results:
tripleo_nova_libvirt_guests should execute successfully

Additional info:

Comment 2 Bogdan Dobrelya 2022-07-25 15:06:16 UTC
There is an upstream patch for it, linked it.

Comment 6 Artom Lifshitz 2022-08-23 17:39:37 UTC
This will need a bugfix doctext to follow up on the known issue (https://bugzilla.redhat.com/show_bug.cgi?id=2120773).

Comment 22 errata-xmlrpc 2023-08-16 01:11:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 17.1 (Wallaby)), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2023:4577


Note You need to log in before you can comment on or make changes to this bug.