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 2062051 - power-button-action doesn't work on RHEL8.5 KVM
Summary: power-button-action doesn't work on RHEL8.5 KVM
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: gnome-settings-daemon
Version: 8.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Felipe Borges
QA Contact: Jiri Prajzner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-09 03:21 UTC by Lili Huang
Modified: 2023-05-16 10:12 UTC (History)
5 users (show)

Fixed In Version: gnome-settings-daemon-3.32.0-18.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-16 08:42:37 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-114899 0 None None None 2022-03-09 03:28:47 UTC
Red Hat Product Errata RHBA-2023:2905 0 None None None 2023-05-16 08:43:09 UTC

Description Lili Huang 2022-03-09 03:21:39 UTC
Description of problem:

power-button-action doesn't work on RHEL8.5 KVM. 

Host OS:
-----------------
# virsh shutdown --mode=acpi <KVM name>
-----------------

Guest OS:
-----------------
# gsettings get org.gnome.settings-daemon.plugins.power power-button-action
'nothing'
# cat /etc/systemd/logind.conf | grep -v ^#

[Login]
HandlePowerKey=ignore
-----------------

The test result is,

RHEL8.4 Host + RHEL8.4 Guest, "power-button-action=nothing" works fine, when trying to shutdown the KVM via --mode=acpi , the KVM dose nothing (will not shutdown).

RHEL8.4 Host + RHEL8.5 Guest, "power-button-action=nothing" doesn't work. KVM shutdown even if use --mode=acpi.

BTW, "HandlePowerKey=ignore" is effective because boot the RHEL8.5 Guest to runlevel 3, the KVM will not shutdown when use acpi mode.

But When the host machine is updated to 8.5, both on 8.4 guest and 8.5 guest, the "power-button-action=nothing" doesn't take effect.

I'm not sure it's an issue of power-button-action key or virt of 8.5


Version-Release number of selected component (if applicable):


How reproducible:
100% reproducible.

Steps to Reproduce:

1. On KVM guest machine, setup as below,

/etc/dconf/db/local.d/01-power
[org/gnome/settings-daemon/plugins/power]
power-button-action='nothing'

/etc/dconf/db/local.d/locks/01-power
/org/gnome/settings-daemon/plugins/power/power-button-action

# dconf update

/etc/systemd/logind.conf 
[Login]
HandlePowerKey=ignore

2. On Host machine run # virsh shutdown --mode=acpi <KVM name>

3. Check if the guest is shutdown or not.

Actual results:
the guest OS is shutdown even if set power-button-action to nothing.

Expected results:
the guest OS should not shutdown when power-button-action='nothing'

Additional info:

Comment 12 errata-xmlrpc 2023-05-16 08:42:37 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 (gnome-settings-daemon 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/RHBA-2023:2905


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