Bug 1255210

Summary: systemd in older Fedora releases needs .service suffix
Product: [Retired] Beaker Reporter: Dan Callaghan <dcallagh>
Component: generalAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dcallagh, dowang, mjia, rjoost
Target Milestone: 21.1Keywords: FutureFeature, Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-21 03:25:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dan Callaghan 2015-08-20 01:48:07 UTC
Description of problem:
Recent versions of systemd will assume a suffix of .service when you specify a unit name with no suffix, for example:

systemctl enable beah-srv

is equivalent to

systemctl enable beah-srv.service

However older versions did not have this heuristic.

Bug 1202075 has made it possible to provision EOL'ed Fedora releases, and in testing that we discovered this next problem affecting Fedora 17-19.

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

How reproducible:
easily, with the patch for bug 1202075

Steps to Reproduce:
1. Provision Fedora 19 with ks_meta="no_updates_repos"

Actual results:
Tasks never start because in kickstart %post, beah services fail to be enabled:
+ systemctl enable beah-srv
Operation failed: Invalid argument
...

Expected results:
Kickstart %post succeeds, beah services are enabled and recipe runs successfully.

Additional info:
This is essentially an RFE in the sense that we have never tried to support EOL'ed Fedora releases before.

Comment 1 Dan Callaghan 2015-08-20 03:06:19 UTC
http://gerrit.beaker-project.org/4360

I'm not sure if it's a good idea to cram this into 21.0, given that it affects every single generated kickstart. I am more inclined to leave this for 21.1 (or even 22.0?) and call bug 1202075 done based on the fact that it got past the first error, even though F17-19 are still not able to be provisioned due to this bug.

Comment 4 Dan Callaghan 2015-10-21 03:25:34 UTC
Beaker 21.1 has been released.