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

Bug 1426434

Summary: Swift restarts on update even with no changes
Product: Red Hat OpenStack Reporter: Alex Schultz <aschultz>
Component: puppet-tripleoAssignee: Alex Schultz <aschultz>
Status: CLOSED ERRATA QA Contact: Gurenko Alex <agurenko>
Severity: high Docs Contact:
Priority: high    
Version: 10.0 (Newton)CC: jjoyce, jschluet, ohochman, slinaber, tvignaud, vaggarwa
Target Milestone: asyncKeywords: Triaged, ZStream
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: puppet-tripleo-5.5.0-4.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-06 19:38:14 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:    
Bug Blocks: 1421883    

Description Alex Schultz 2017-02-23 22:10:22 UTC
Description of problem:
The swift client is attempted to be reinstalled every time the update runs which causes the swift services to be restarted. This is caused by the norpm puppet provider which does not properly handle virtual packages. In puppet-swift we use 'python-swiftclient' to ensure the package is installed but the package  name is actually 'python2-swiftclient'.

Version-Release number of selected component (if applicable):
puppet-tripleo-5.5.0-2.el7ost.noarch.rpm

How reproducible:
Every time an update to the stack is run.

Simple test case:
cat >test.pp <<EOF
include ::tripleo::packages
include ::swift::client
EOF
puppet apply --modulepath=/etc/puppet/modules test.pp

Actual results:
Output will contain:
Notice: /Stage[main]/Swift::Client/Package[swiftclient]/ensure: created

Expected results:
Output should not contain:
Notice: /Stage[main]/Swift::Client/Package[swiftclient]/ensure: created

Related BZ 1421883

Comment 2 Alex Schultz 2017-03-03 17:56:59 UTC
Verified package no longer reports being installed when already installed.

Comment 4 errata-xmlrpc 2017-03-06 19:38:14 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/RHBA-2017-0451.html

Comment 5 Alex Schultz 2017-04-17 15:46:19 UTC
*** Bug 1442595 has been marked as a duplicate of this bug. ***

Comment 6 Alex Schultz 2017-04-18 15:14:23 UTC
*** Bug 1442595 has been marked as a duplicate of this bug. ***