Bug 785141

Summary: [RHEL 5] uuidd service not active by default
Product: Red Hat Enterprise Linux 5 Reporter: Alexander Hass <alexander.hass>
Component: e2fsprogsAssignee: Eric Sandeen <esandeen>
Status: CLOSED NOTABUG QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: high Docs Contact:
Priority: high    
Version: 5.7CC: fdanapfe, linux, sct, syeghiay
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-29 16:36:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Alexander Hass 2012-01-27 12:43:20 UTC
After the installation of the uuidd-package additional manual configuration is still needed to prevent the system from generating duplicate UUIDs as non-root user.
It is required either to set 'chmod 6755 /usr/sbin/uuidd' in order to activate the UUID daemon on-demand or to activate the uuidd service via 'service uuidd start' (resp. chkconfig uuidd on) to run the daemon permanently.

Please implement one of those solutions so even after a default installation of the uuidd-package the UUID daemon can be used properly and duplicate UUIDs can no longer be generated.

Comment 1 Eric Sandeen 2012-01-27 17:33:19 UTC
The RPM scripts do add the initscript:

# rpm -q uuidd
package uuidd is not installed
# yum install uuidd
...
Installed:
  uuidd.x86_64 0:1.39-23.el5   
# chkconfig --list uuidd
uuidd          	0:off	1:off	2:on	3:on	4:on	5:on	6:off

so it is enabled for those runlevels post-install.  However, it's not started automatically until the next reboot, and it will need to be started automatically, as you note.

This is normal behavior - services are never started automatically as a result of installation; same is true of sshd, httpd, et al.

Comment 2 Eric Sandeen 2012-02-08 19:18:59 UTC
Alexander, because this package does not behave any differently from other daemon packages in terms of requiring a manual start after installation, I don't consider this a bug.  It's more of a policy, actually, that package installation does not automatically trigger a service start.  Perhaps you can just add the service start to your provisioning scripts?

-Eric

Comment 3 Alexander Hass 2012-02-08 23:25:21 UTC
Hello Eric,

thank you for your explanation. I have to admit that I mixed up the situation on RHEL 5 and RHEL 6 unfortunately. 
Since the installation of the package uuidd on RHEL 5 at least activates the service automatically after a reboot, I could live with the situation on RHEL 5.
But as no configuration of the service itself is needed at all, I can only see a disadvantage by not simply starting it automatically.
Would it be possible to change the policy in that case and trigger the service start after the package installation automatically? 

Thanks and Regards,
 Alexander.

Comment 4 Eric Sandeen 2012-02-08 23:36:54 UTC
Just to be clear, this bug is filed for RHEL5 - and, as far as I know, we do configure the initscripts to enable uuidd on both RHEL5 and RHEL6, have you seen otherwise?  If so that is a bug, but checking scripts just now it looks like "chkconfig add" is done on both OSes.

As for the auto-start - it's more than just a configuration issue; we don't start services automatically post-install for other reasons, including the fact that they may be installed in changeroots, in an installer context, or in other situations where we don't want the service autostarted.

How does uuidd wind up on your systems - something like a provisioning script post-install, or?  In most cases I think you could script the automatic start of the service as needed.

I realize that it's an extra step, but there are decent reasons for the "no auto start" policy, too.

Thanks,
-Eric

Comment 5 Frank Danapfel 2012-02-13 15:29:34 UTC
Eric, as you can see in https://bugzilla.redhat.com/show_bug.cgi?id=785142#c4 it looks like on RHEL6 the initscript for uuidd is disabled by default.

Comment 6 Eric Sandeen 2012-02-13 15:51:08 UTC
Ah, to be honest I had forgotten that it moved to the new package.

Comment 7 Eric Sandeen 2012-03-29 16:36:26 UTC
Ok, for RHEL5 though it is enabled by default:

[root@host ~]# chkconfig --list uuidd
error reading information on service uuidd: No such file or directory
[root@host ~]# yum install uuidd
...
Installed:
  uuidd.x86_64 0:1.39-23.el5                                                                                                            

Complete!
[root@host ~]# chkconfig --list uuidd
uuidd          	0:off	1:off	2:on	3:on	4:on	5:on	6:off

But it is not started for the policy reasons cited above, and in the RHEL6 bug.

I'm going to close this bug because we do install and enable the uuidd service, and it is against policy to activate it by default.  If further action is needed, please re-open with the further requirements.

Thanks,
-Eric