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.
Description of problem:
We're adding document (nfs.systemd(7) man page) about how to disable rpc.gssd (Bug 1334510 comment #53). However, just found only masking "rpc-gssd" is not sufficient, we need to mask "nfs-secure" also
(like https://bugzilla.redhat.com/show_bug.cgi?id=1334510#c55 mentions).
As nfs-secure.service is a symlink to rpc-gssd.service, so masking just rpc-gssd.service should mask both of them effectively. And there's no need to process its symlink IMO.
I have checked other similar services e.g. rpc-statd.service, it can work as expected.
Version-Release number of selected component (if applicable):
systemd-219-61.el7
How reproducible:
always
Steps to Reproduce:
1. systemctl mask rpc-gssd.service
2. systemctl restart rpc-gssd.service
3. systemctl status rpc-gssd.service
Actual results:
[root ~]# rpm -q nfs-utils systemd
nfs-utils-1.3.0-0.60.el7.x86_64
systemd-219-61.el7.x86_64
[root ~]#
[root ~]# ll /usr/lib/systemd/system | grep rpc-gssd.service
lrwxrwxrwx. 1 root root 16 Sep 16 22:02 nfs-secure.service -> rpc-gssd.service
-rw-r--r--. 1 root root 402 Aug 20 14:29 rpc-gssd.service
lrwxrwxrwx. 1 root root 16 Sep 16 22:02 rpcgssd.service -> rpc-gssd.service
[root ~]# systemctl mask rpc-gssd.service
Created symlink from /etc/systemd/system/rpc-gssd.service to /dev/null.
[root ~]# systemctl restart rpc-gssd.service
[root ~]# systemctl status rpc-gssd.service
● rpc-gssd.service - RPC security service for NFS client and server
Loaded: loaded (/usr/lib/systemd/system/rpc-gssd.service; masked; vendor preset: disabled)
Active: inactive (dead)
Condition: start condition failed at Tue 2018-09-18 04:23:26 EDT; 4s ago
ConditionPathExists=/etc/krb5.keytab was not met
[root ~]# touch /etc/krb5.keytab <<<<<<<<<<<< workaround
[root ~]# systemctl restart rpc-gssd.service
[root ~]# systemctl status rpc-gssd.service
● rpc-gssd.service - RPC security service for NFS client and server
Loaded: loaded (/usr/lib/systemd/system/rpc-gssd.service; masked; vendor preset: disabled)
Active: active (running) since Tue 2018-09-18 04:23:40 EDT; 2s ago
Process: 4695 ExecStart=/usr/sbin/rpc.gssd $GSSDARGS (code=exited, status=0/SUCCESS)
Main PID: 4696 (rpc.gssd)
CGroup: /system.slice/rpc-gssd.service
└─4696 /usr/sbin/rpc.gssd
Sep 18 04:23:40 rhel-7.6.rhts.eng.pek2.redhat.com systemd[1]: Starting RPC security service for NFS client and server...
Sep 18 04:23:40 rhel-7.6.rhts.eng.pek2.redhat.com systemd[1]: Started RPC security service for NFS client and server.
[root ~]#
[root ~]# ll /etc/systemd/system/rpc-gssd.service
lrwxrwxrwx. 1 root root 9 Sep 18 04:23 /etc/systemd/system/rpc-gssd.service -> /dev/null
[root ~]#
Expected results:
Should not bring rpc-gssd.service up as the unit is masked.
Additional info:
Masking "nfs-secure" also can work as expected:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[root ~]# systemctl mask nfs-secure.service
Created symlink from /etc/systemd/system/nfs-secure.service to /dev/null.
[root ~]# ll /etc/systemd/system/ | grep null
lrwxrwxrwx. 1 root root 9 Sep 18 04:25 nfs-secure.service -> /dev/null
lrwxrwxrwx. 1 root root 9 Sep 18 04:23 rpc-gssd.service -> /dev/null
[root ~]# systemctl restart rpc-gssd
Failed to restart rpc-gssd.service: Unit is masked.
[root ~]#
Comment 4RHEL Program Management
2021-02-15 07:42:48 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.