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

Bug 1111414

Summary: puppet preun script has a syntax error
Product: Red Hat OpenStack Reporter: Mike Burns <mburns>
Component: puppetAssignee: Mike Burns <mburns>
Status: CLOSED ERRATA QA Contact: Jaroslav Henner <jhenner>
Severity: high Docs Contact:
Priority: high    
Version: 5.0 (RHEL 7)CC: lhh, mburns, sclewis, yeylon
Target Milestone: rc   
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: puppet-3.4.3-2.el7_0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-08 15:15:36 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:
Attachments:
Description Flags
patch none

Description Mike Burns 2014-06-20 02:06:27 UTC
Description of problem:

Running transaction
/var/tmp/rpm-tmp.vOaXcx: line 21: syntax error: unexpected end of file
error: %preun(puppet-3.4.3-1.el7.noarch) scriptlet failed, exit status 2
Error in PREUN scriptlet in rpm package puppet-3.4.3-1.el7.noarch

In %preun script, there is a syntax error, using end to close an if block instead of fi.


Version-Release number of selected component (if applicable):
3.4.3-1.el7

How reproducible:
always

Steps to Reproduce:
1.install this version
2.yum erase this version
3.

Actual results:
fails to uninstall

Expected results:
uninstall successfully

Additional info:

Comment 1 Mike Burns 2014-06-20 02:08:33 UTC
Created attachment 910607 [details]
patch

Comment 5 Jaroslav Henner 2014-06-30 17:09:04 UTC
[root@jhenner-node-permanent-7v0 ~(keystone_admin)]# yum remove puppet
Loaded plugins: priorities
Resolving Dependencies
--> Running transaction check
---> Package puppet.noarch 0:3.4.3-1.el7 will be erased
---> Package puppet.noarch 0:3.4.3-2.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================
 Package            Arch               Version                    Repository               Size
================================================================================================
Removing:
 puppet             noarch             3.4.3-1.el7                @puddle-old             3.6 M
 puppet             noarch             3.4.3-2.el7                @puddle                 3.6 M

Transaction Summary
================================================================================================
Remove  2 Packages

Installed size: 7.2 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : puppet.noarch                                                                1/2 
/var/tmp/rpm-tmp.1PRVRz: line 21: syntax error: unexpected end of file
error: %preun(puppet-3.4.3-1.el7.noarch) scriptlet failed, exit status 2
Error in PREUN scriptlet in rpm package puppet
puppet-3.4.3-1.el7.noarch was supposed to be removed but is not!
  Verifying  : puppet-3.4.3-1.el7.noarch                                                    1/2 
  Verifying  : puppet-3.4.3-2.el7.noarch                                                    2/2 

Removed:
  puppet.noarch 0:3.4.3-2.el7                                                                   

Failed:
  puppet.noarch 0:3.4.3-1.el7                                                                   

Complete!

Comment 7 errata-xmlrpc 2014-07-08 15:15:36 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.

http://rhn.redhat.com/errata/RHEA-2014-0845.html