In today's Fedora Rawhide compose, FreeIPA server deployment broke. The logs make it fairly clear why - it broke during client deployment with this error:
2018-06-06T14:54:35Z DEBUG The ipa-client-install command failed, exception: CalledProcessError: CalledProcessError(Command ['/bin/systemctl', 'restart', 'fedora-domainname.service'] returned non-zero exit status 5: 'Failed to restart fedora-domainname.service: Unit fedora-domainname.service not found.\n')
The reason that service wasn't found is that it got renamed, from fedora-domainname to nis-domainname . It was then subsequently moved from the initscripts package to the hostname package, but that shouldn't matter as initscripts depends on hostname. But ipaplatform/fedora/services.py obviously needs updating somehow to cover that the service is likely to stay fedora-domainname on Fedora 28 and earlier, but will be nis-domainname on F29+.
ipaplatform/fedora/services.py
fedora-domainname
nis-domainname
@dkaspar
Downstream bug (for blocker tracking purposes): https://bugzilla.redhat.com/show_bug.cgi?id=1588192
Sorry guys for the complications. We needed to make the change finally, so we wouldn't have to rename the fedora-* services for the downstream in the future again and again. Once this change is complete, there shouldn't be any need to renaming of services for new releases of RHEL, CentOS, whatever. :)
For that change I have created a PR for fedora-release to take this into account, but I'm unsure how much will that help you (https://pagure.io/fedora-release/pull-request/142). The PR has been merged IIRC, but it seems to be unreachable ATM.
fedora-release
There's also BZ for it for Rawhide: https://bugzilla.redhat.com/show_bug.cgi?id=1584645
The change to hostname should be already merged in dist-git, but the new package hasn't been built yet. Putting @landgraf into CC.
Metadata Update from @rcritten: - Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1588192
Issue linked to Bugzilla: Bug 1588192
Metadata Update from @cheimes: - Issue assigned to cheimes
This change is actually good for us. Eventually we can remove a lot of Fedora-specific hacks and consolidate Fedora and RHEL platform specification.
I created https://github.com/freeipa/freeipa/pull/2014 to fix Fedora 29 and rawhide.
Metadata Update from @cheimes: - Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/2014
PR 2014 changes the handling of domainname service:
domainname
redhat
rhel
fedora
) now defines
fedora-domainname.service
/usr/lib/systemd/system/fedora-domainname.service
master:
Metadata Update from @cheimes: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.