Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1879449

Summary: Not possible to shutdown virtual machine - qemu-guest-agent.service: Failed with result 'core-dump'
Product: Red Hat Enterprise Linux 8 Reporter: Milan Lysonek <mlysonek>
Component: qemu-kvmAssignee: Marc-Andre Lureau <marcandre.lureau>
qemu-kvm sub component: Guest Agent QA Contact: dehanmeng <demeng>
Status: CLOSED DUPLICATE Docs Contact:
Severity: unspecified    
Priority: medium CC: jinzhao, juzhang, virt-maint
Version: 8.3Flags: pm-rhel: mirror+
Target Milestone: rc   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-04 16:15:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
journalctl log with an attempt to shutdown a virtual machine none

Description Milan Lysonek 2020-09-16 10:24:58 UTC
Created attachment 1715058 [details]
journalctl log with an attempt to shutdown a virtual machine

Description of problem:
Freshly installed virtual machine that was installed with a security policy can't be shutdown gracefully. Thus to stop the virtual machine it needs to be forced (virsh destroy).

Version-Release number of selected component (if applicable):
qemu-guest-agent-4.2.0-33.module+el8.3.0+7705+f09d73e4.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Install RHEL8.3 virtual machine with selected "Protection Profile for General Purpose Operating Systems" security policy
2. Run the virtual machine
3. Try to shutdown the virtual machine via `virsh shutdown rhel8.3`

Actual results:
Virtual machine is not shutted down.

Expected results:
Virtual machine is shutted down.

Additional info:
See attached journalctl log. The shutdown attempt is around line 22200:

Sep 16 05:26:19 localhost.localdomain qemu-ga[1214]: info: guest-shutdown called, mode: powerdown
Sep 16 05:26:20 localhost.localdomain systemd-logind[1246]: Creating /run/nologin, blocking further logins...
Sep 16 05:26:20 localhost.localdomain qemu-ga[1214]: **
Sep 16 05:26:20 localhost.localdomain qemu-ga[1214]: ERROR:qga/main.c:532:send_response: assertion failed: (rsp && s->channel)
Sep 16 05:26:20 localhost.localdomain systemd-logind[1246]: System is powering down (hypervisor initiated shutdown).
Sep 16 05:26:20 localhost.localdomain systemd[1]: qemu-guest-agent.service: Main process exited, code=dumped, status=6/ABRT
Sep 16 05:26:20 localhost.localdomain systemd[1]: qemu-guest-agent.service: Failed with result 'core-dump'.
Sep 16 05:26:20 localhost.localdomain systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Sep 16 05:26:20 localhost.localdomain systemd[1]: qemu-guest-agent.service: Stop job pending for unit, delaying automatic restart.

Comment 1 dehanmeng 2020-09-27 02:20:13 UTC
Tried to install RHEL830 guest without security policy and shutdown guest normally and gracefully.
But when I  tried to select "Protection Profile for General Purpose Operating Systems" security policy during guest installation ,I would hit any unknown problems ,although I could login the guest that was non-function one, in another words, I couldn't hit this issue so far. and on the other hand,I was given some info that there are some exist bug related security policy.:
https://bugzilla.redhat.com/show_bug.cgi?id=1267867

Could you give me any suggestions with that ?

Comment 3 Marc-Andre Lureau 2020-10-04 16:15:16 UTC
That bug is being handled in rhbz#1884531. Closing

*** This bug has been marked as a duplicate of bug 1884531 ***