Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1601705

Summary: RPM scriptlet failure for restraint-rhts on RHEL4
Product: [Retired] Restraint Reporter: Roman Joost <rjoost>
Component: generalAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact: Matt Tyson 🤬 <mtyson>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.1.35CC: asavkov, bpeck, dcallagh, mtyson, rjoost
Target Milestone: 0.1.36   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-17 05:53:15 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 Roman Joost 2018-07-17 05:22:54 UTC
Description of problem:

In our workflow-selftests I ran into aborted jobs when trying to install restraint-rhts on RHEL4:

 Installing: restraint-rhts 1 % done 2/3 Installing: restraint-rhts 2 % done 2/3 Installing: restraint-rhts 3 % done 2/3 Installing: restraint-rhts 4 % done 2/3 Installing: restraint-rhts 18 % done 2/3 Installing: restraint-rhts 19 % done 2/3 Installing: restraint-rhts 20 % done 2/3 Installing: restraint-rhts 21 % done 2/3 Installing: restraint-rhts 23 % done 2/3 Installing: restraint-rhts 24 % done 2/3 Installing: restraint-rhts 25 % done 2/3 Installing: restraint-rhts 48 % done 2/3 Installing: restraint-rhts 50 % done 2/3 Installing: restraint-rhts 70 % done 2/3 Installing: restraint-rhts 82 % done 2/3 Installing: restraint-rhts 83 % done 2/3 Installing: restraint-rhts 85 % done 2/3 Installing: restraint-rhts 86 % done 2/3 Installing: restraint-rhts 87 % done 2/3 Installing: restraint-rhts 88 % done 2/3 Installing: restraint-rhts 90 % done 2/3 Installing: restraint-rhts 98 % done 2/3 Installing: restraint-rhts 100 % done 2/3 
/var/tmp/rpm-tmp.54788: line 2: syntax error near unexpected token `fi'
/var/tmp/rpm-tmp.54788: line 2: `fi'
error: %post(restraint-rhts-0.1.35-1.git.6.1d68355.el4_8.x86_64) scriptlet failed, exit status 2
 Installing: restraint-rhts 1 % done 3/3 Installing: restraint-rhts 2 % done 3/3 Installing: restraint-rhts 3 % done 3/3 Installing: restraint-rhts 4 % done 3/3 Installing: restraint-rhts 18 % done 3/3 Installing: restraint-rhts 19 % done 3/3 Installing: restraint-rhts 20 % done 3/3 Installing: restraint-rhts 21 % done 3/3 Installing: restraint-rhts 23 % done 3/3 Installing: restraint-rhts 24 % done 3/3 Installing: restraint-rhts 25 % done 3/3 Installing: restraint-rhts 48 % done 3/3 Installing: restraint-rhts 50 % done 3/3 Installing: restraint-rhts 70 % done 3/3 Installing: restraint-rhts 82 % done 3/3 Installing: restraint-rhts 83 % done 3/3 Installing: restraint-rhts 85 % done 3/3 Installing: restraint-rhts 86 % done 3/3 Installing: restraint-rhts 87 % done 3/3 Installing: restraint-rhts 88 % done 3/3 Installing: restraint-rhts 90 % done 3/3 Installing: restraint-rhts 98 % done 3/3 Installing: restraint-rhts 100 % done 3/3 
/var/tmp/rpm-tmp.54788: line 2: syntax error near unexpected token `fi'
/var/tmp/rpm-tmp.54788: line 2: `fi'
error: %post(restraint-rhts-0.1.35-1.git.6.1d68355.el4_8.i386) scriptlet failed, exit status 2


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

How reproducible:
100%

Steps to Reproduce:
1. Provision RHEL4-U9 AS x86_64
2. Job should die during installation when installing restraint-rhts


Actual results:
scriptlet failure

Expected results:
no scriptlet failure, restraint-rhts installs fine

Additional info:

Comment 5 Matt Tyson 🤬 2018-08-23 05:51:32 UTC
I've verified Dan's tests in comment 4.  I reserved a machine on beaker-devel with RHEL4 and harness=restraint-rhts.

Restraint installs without errors.

http://lab-devel-02.rhts.eng.bos.redhat.com/beaker/logs/recipes/25+/25399/console.log

Installing: restraint-rhts 99 % done 3/3 
Installing: restraint-rhts 100 % done 3/3 

Installed: restraint-rhts.i386 0:0.1.35-1.git.17.c90da2e.el4bkr restraint-rhts.x86_64 0:0.1.35-1.git.17.c90da2e.el4bkr
Dependency Installed: restraint.x86_64 0:0.1.35-1.git.17.c90da2e.el4bkr
Complete!

Comment 6 Dan Callaghan 2018-09-17 05:53:15 UTC
Restraint 0.1.36 was released on 24 August.