Bug 964971 - oddjobd is not started by realmd
oddjobd is not started by realmd
Product: Fedora
Classification: Fedora
Component: realmd (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Stef Walter
Fedora Extras Quality Assurance
Depends On: 963722
Blocks: 959458 967023
  Show dependency treegraph
Reported: 2013-05-20 04:34 EDT by Patrik Kis
Modified: 2013-06-05 22:25 EDT (History)
3 users (show)

See Also:
Fixed In Version: realmd-0.14.2-1.fc19
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 967023 (view as bug list)
Last Closed: 2013-06-05 22:25:29 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
FreeDesktop.org 64903 None None None Never

  None (edit)
Description Patrik Kis 2013-05-20 04:34:39 EDT
Description of problem:
oddjobd is being enabled during realm join but not started
Note, that oddjobd cannot be started through d-bus as it is probably expected, as stated in bug 963722, so it is necessary to start it as normal service.

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

How reproducible:

Steps to Reproduce:
# realm -v join -U Bender-admin ad.baseos.qe
 * Resolving: _ldap._tcp.dc._msdcs.ad.baseos.qe
 * Sending MS-CLDAP ping to:
 * Successfully discovered: ad.baseos.qe
Password for Bender-admin: 
 * Required files: /usr/sbin/sssd, /usr/bin/net
 * LANG=C LOGNAME=root /usr/bin/net -s /var/cache/realmd/realmd-smb-conf.I269WW -U Bender-admin ads join ad.baseos.qe createupn
Enter Bender-admin's password:
Using short domain name -- AD
Joined 'PKIS' to dns domain 'ad.baseos.qe'
DNS Update for pkis.ipa.baseos.qe failed: ERROR_DNS_UPDATE_FAILED
 * LANG=C LOGNAME=root /usr/bin/net -s /var/cache/realmd/realmd-smb-conf.I269WW -U Bender-admin ads keytab create
Enter Bender-admin's password:
 * /usr/bin/systemctl enable sssd.service
ln -s '/usr/lib/systemd/system/sssd.service' '/etc/systemd/system/multi-user.target.wants/sssd.service'
 * /usr/bin/systemctl restart sssd.service
 * /usr/bin/sh -c /usr/sbin/authconfig --update --enablesssd --enablesssdauth --enablemkhomedir --nostart && /usr/bin/systemctl enable sssd.service
 * Successfully enrolled machine in realm

# ps -ef |grep oddjo
root      4698  1268  0 10:22 pts/0    00:00:00 grep --color=auto oddjo
# systemctl list-unit-files |grep oddjob
oddjobd.service                             enabled 

The problem is probably here, with --nostart:

 * /usr/bin/sh -c /usr/sbin/authconfig --update --enablesssd --enablesssdauth --enablemkhomedir --nostart && /usr/bin/systemctl enable sssd.service

and only sssd is started afterwards.
Comment 1 Stef Walter 2013-05-24 06:41:30 EDT
Patch available upstream.
Comment 2 Stef Walter 2013-05-27 07:26:00 EDT
Work around pushed upstream:

commit a5a5ed0a7f3116e54387134a1d88dc1e53fc9671
Author: Stef Walter <stefw@redhat.com>
Date:   Mon May 27 11:34:43 2013 +0200

    Hack around the fact that oddjobd does not autostart via DBus
    This is pretty awkward, but various oddjobd services cannot
    be started via the standard oddjobd auto-start mechanisms.
    So manually enable it to start at boot.
Comment 3 Fedora Update System 2013-05-27 08:07:26 EDT
realmd-0.14.2-1.fc19 has been submitted as an update for Fedora 19.
Comment 4 Fedora Update System 2013-05-27 13:01:18 EDT
Package realmd-0.14.2-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing realmd-0.14.2-1.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Comment 5 Fedora Update System 2013-06-05 22:25:29 EDT
realmd-0.14.2-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

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