RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2041610 - virt-install: "ERROR internal error: cannot parse process status data for pid" on guest reboot
Summary: virt-install: "ERROR internal error: cannot parse process status data for pid...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: libvirt
Version: 8.6
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: Michal Privoznik
QA Contact: Hongzhou Liu
URL:
Whiteboard:
Depends On:
Blocks: 1929792 1885765
TreeView+ depends on / blocked
 
Reported: 2022-01-17 21:06 UTC by Eric Auger
Modified: 2022-05-10 13:41 UTC (History)
18 users (show)

Fixed In Version: libvirt-8.0.0-2.module+el8.6.0+14025+ca131e0a
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2043579 (view as bug list)
Environment:
Last Closed: 2022-05-10 13:25:20 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-108352 0 None None None 2022-01-17 21:16:04 UTC
Red Hat Product Errata RHSA-2022:1759 0 None None None 2022-05-10 13:25:59 UTC

Description Eric Auger 2022-01-17 21:06:34 UTC
When the virt-install of an 8.6 aarch64 guest is complete and we are asked whether we want to reboot and reply 'yes', one gets:

[  OK  ] Started Reboot.
[  OK  ] Reached target Reboot.
dracut Warning: Killing all remaining processes
Rebooting.
[ 7478.584400] reboot: Restarting system

ERROR    internal error: cannot parse process status data for pid '99994/0'

The VM gets stopped.

Then it is possible to start it again but the guest should reboot without this user involvement.

Comment 2 Peter Krempa 2022-01-18 08:16:27 UTC
Seems to be caused by:

commit 938382b60ae5bd1f83b5cb09e1ce68b9a88f679a
Author: Ani Sinha <ani>
Date:   Tue Jan 11 15:50:43 2022 +0530

    report error when virProcessGetStatInfo() is unable to parse data
    
    Currently virProcessGetStatInfo() always returns success and only logs error
    when it is unable to parse the data. Make this function actually report the
    error and return a negative value in this error scenario.
    
    Fix the callers so that they do not override the error generated.
    Also fix non-linux implementation of this function so as to report error.
    
    Signed-off-by: Ani Sinha <ani>
    Signed-off-by: Michal Privoznik <mprivozn>
    Reviewed-by: Michal Privoznik <mprivozn>

[...]

diff --git a/src/util/virprocess.c b/src/util/virprocess.c
index b559a4257e..85d8c8e747 100644
--- a/src/util/virprocess.c
+++ b/src/util/virprocess.c
@@ -1784,7 +1784,10 @@ virProcessGetStatInfo(unsigned long long *cpuTime,
         virStrToLong_ullp(proc_stat[VIR_PROCESS_STAT_STIME], NULL, 10, &systime) < 0 ||
         virStrToLong_l(proc_stat[VIR_PROCESS_STAT_RSS], NULL, 10, &rss) < 0 ||
         virStrToLong_i(proc_stat[VIR_PROCESS_STAT_PROCESSOR], NULL, 10, &cpu) < 0) {
-        VIR_WARN("cannot parse process status data");
+        virReportError(VIR_ERR_INTERNAL_ERROR,
+                       _("cannot parse process status data for pid '%d/%d'"),
+                       (int) pid, (int) tid);
+        return -1;
     }

     /* We got jiffies

Comment 3 Michal Privoznik 2022-01-18 11:46:00 UTC
Ooops, revert proposed on the list:

https://listman.redhat.com/archives/libvir-list/2022-January/msg00778.html

Comment 5 Michal Privoznik 2022-01-20 16:54:49 UTC
Pushed into master as:

commit 105dace22cc7b5b18d72a4dcad4a2cf386ce5c99
Author:     Michal Prívozník <mprivozn>
AuthorDate: Tue Jan 18 12:40:09 2022 +0100
Commit:     Michal Prívozník <mprivozn>
CommitDate: Thu Jan 20 17:51:07 2022 +0100

    Revert "report error when virProcessGetStatInfo() is unable to parse data"
    
    This reverts commit 938382b60ae5bd1f83b5cb09e1ce68b9a88f679a.
    
    Turns out, the commit did more harm than good. It changed
    semantics on some public APIs. For instance, while
    qemuDomainGetInfo() previously did not returned an error it does
    now. While the calls to virProcessGetStatInfo() is guarded with
    virDomainObjIsActive() it doesn't necessarily mean that QEMU's
    PID is still alive. QEMU might be gone but we just haven't
    realized it (e.g. because the eof handler thread is waiting for a
    job).
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2041610
    Signed-off-by: Michal Privoznik <mprivozn>
    Reviewed-by: Andrea Bolognani <abologna>

v8.0.0-129-g105dace22c

Comment 10 Alexander Todorov 2022-01-25 08:13:11 UTC
We're seeing this on x86_64 as well and it is a test blocker for osbuild-composer:
https://gitlab.com/osbuild/ci/osbuild-composer/-/jobs/2011663415

Comment 18 Hongzhou Liu 2022-01-28 02:30:45 UTC
Verify this bug with 

libvirt-8.0.0-2.module+el8.6.0+14025+ca131e0a

Step 1:

Install a vm using virt-install
# virt-install --name=rhel8.6-1 --memory=4096 --vcpus=2   --location http://download.eng.pek2.redhat.com/released/rhel-6-7-8/rhel-8/RHEL-8/8.4.0/BaseOS/x86_64/os/

Step 2:

Click reboot system to finish install

Result: vm can reboot successfully.

Step 3:
Check the status for vm
# virsh domstate rhel8.6-1 
running

Base on this result I change the verified status to tested, Thanks

Comment 22 errata-xmlrpc 2022-05-10 13:25:20 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 (Moderate: virt:rhel and virt-devel:rhel security, bug fix, and enhancement update), 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/RHSA-2022:1759


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