Bug 1377062

Summary: /var/tmp/rpm-tmp.KPCugR: line 2: /bin/systemctl: No such file or directory
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Atin Mukherjee <amukherj>
Component: buildAssignee: Milind Changire <mchangir>
Status: CLOSED ERRATA QA Contact: Byreddy <bsrirama>
Severity: medium Docs Contact:
Priority: medium    
Version: rhgs-3.1CC: amainkar, asrivast, bsrirama, bugs, jstodola, mbanas, mchangir, ndevos, rcyriac, rhs-bugs, sankarshan, storage-qa-internal
Target Milestone: ---Keywords: Triaged
Target Release: RHGS 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.8.4-7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1376385 Environment:
Last Closed: 2017-03-23 05:47:24 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:
Bug Depends On: 1375181, 1376385, 1399031, 1400635    
Bug Blocks: 1350694, 1351528    
Attachments:
Description Flags
ISO package installation log none

Comment 2 Atin Mukherjee 2016-09-18 06:48:51 UTC
Upstream mainline : http://review.gluster.org/15469

Comment 4 Atin Mukherjee 2016-09-28 06:18:58 UTC
upstream mainline patch : http://review.gluster.org/15469
upstream 3.9 patch : http://review.gluster.org/#/c/15508/
downstream patch : https://code.engineering.redhat.com/gerrit/#/c/85550/

All the patches are merged now. Moving the state to Modified.

Comment 6 Byreddy 2016-11-24 09:46:57 UTC
Still i am seeing this issue in rhel7 rhgs3.2 iso

01:38:21,271 INFO packaging: glusterfs-3.8.4-5.el7rhgs.x86_64 (154/751)

01:38:21,272 INFO packaging: /var/tmp/rpm-tmp.06bjWR: line 2: /bin/systemctl: No such file or directory

Comment 7 Byreddy 2016-11-24 10:06:32 UTC
Moving to assigned state to fix this one.

Comment 9 Atin Mukherjee 2016-11-28 06:23:52 UTC
http://review.gluster.org/#/c/15936 is posted for review.

Comment 10 Byreddy 2016-11-30 05:28:47 UTC
Created attachment 1226160 [details]
ISO package installation log

Comment 11 Niels de Vos 2016-11-30 07:46:11 UTC
Attachment 1226160 [details] confirms that the glusterfs package is installed before systemd. Here a snippet with the line numbers:

1864 23:36:48,781 INFO packaging: glusterfs-3.8.4-5.el7rhgs.x86_64 (154/751)
1865 
1866 23:36:48,781 INFO packaging: /var/tmp/rpm-tmp.tDkwFT: line 2: /bin/systemctl: No such file or directory
....
2582 23:36:48,904 INFO packaging: systemd-219-30.el7_3.6.x86_64 (512/751)


This means that dropping the absolute path to /bin/systemctl is not sufficient. The glusterfs sub-package needs to have a dependency on systemd, like

  Requires(post): systemd

or, preferably correct these dependencies for all sub-packages that need to execute systemctl commands to:

  %systemd_requires

Comment 12 Atin Mukherjee 2016-12-02 05:41:51 UTC
upstream mainline : http://review.gluster.org/15936
upstream 3.9 : http://review.gluster.org/#/c/15999
downstream : https://code.engineering.redhat.com/gerrit/#/c/91958/

Comment 13 Milind Changire 2016-12-06 06:22:20 UTC
Added BZ to erratum RHEA-2016:24866-02
Moving to ON_QA

Comment 14 Byreddy 2016-12-12 06:23:44 UTC
Verified this issue using latest available rhgs3.2 rhel7 iso.
Issue no more exists so moving the bz to verified state.

Comment 17 errata-xmlrpc 2017-03-23 05:47:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2017-0486.html