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 1779717 - Failed to get unit file state for ksm.service: No such file or directory
Summary: Failed to get unit file state for ksm.service: No such file or directory
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: tuned
Version: 8.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.0
Assignee: Jaroslav Škarvada
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On: 1591431
Blocks: 1932086
TreeView+ depends on / blocked
 
Reported: 2019-12-04 15:07 UTC by Jaroslav Škarvada
Modified: 2021-06-02 06:44 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1591431
Environment:
Last Closed: 2021-06-02 06:44:46 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 1 Ondřej Lysoněk 2020-09-02 15:18:52 UTC
The issue is still reproducible with tuned-2.14.0-3.el8.noarch, but the error is a bit different:

2020-09-02 11:14:26,870 ERROR    tuned.plugins.plugin_script: script '/usr/lib/tuned/cpu-partitioning/script.sh' error output: 'Unit ksm.service does not exist, proceeding anyway.
Unit ksmtuned.service does not exist, proceeding anyway.'

We should be able to fix it with a similar patch as posted here
https://bugzilla.redhat.com/show_bug.cgi?id=1591431#c2

Comment 4 Prasad Pandit 2021-06-02 06:44:46 UTC
===
# systemctl mask ksm ksmtuned
Unit ksm.service does not exist, proceeding anyway.
Unit ksmtuned.service does not exist, proceeding anyway.
Created symlink /etc/systemd/system/ksm.service → /dev/null.
Created symlink /etc/systemd/system/ksmtuned.service → /dev/null.

# systemctl unmask ksm ksmtuned
Removed /etc/systemd/system/ksm.service.
Removed /etc/systemd/system/ksmtuned.service.
#
===

* Above error is reported by systemctl(1) if ksm/ksmtuned services are not installed.

* ksm/ksmtuned services are installed via qemu-kvm-common package
  qemu-kvm-common package is installed as dependency for qemu-kvm package

   qemu-kvm -> qemu-kvm-core -> qemu-kvm-common

* Above error is unlikely to occur on virt-rt systems which will have
  above packages installed.

* Recent tuned(8) upstream change removes usage of enable_ksm/disable_ksm functions
  from -realtime profile

* ie. this issue does does not seem relevant for RHEL-8/virt-rt scenario.

* A possible solution is to define 'qemu-kvm-common' package as 'Requirement'
  for tuned-profiles package which use ksm, ksmtuned services.

* Closing this bug here.


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