Bug 1163363 - openstack-puppet-modules leaves directory behind on uninstall
Summary: openstack-puppet-modules leaves directory behind on uninstall
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-puppet-modules
Version: 5.0 (RHEL 7)
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: z1
: 7.0 (Kilo)
Assignee: Javier Peña
QA Contact: Ofer Blaut
URL:
Whiteboard:
Depends On:
Blocks: 1257701
TreeView+ depends on / blocked
 
Reported: 2014-11-12 14:54 UTC by Marko Myllynen
Modified: 2023-02-22 23:02 UTC (History)
5 users (show)

Fixed In Version: openstack-puppet-modules-2014.2.15-5.el7ost
Doc Type: Bug Fix
Doc Text:
Previously, the openstack-puppet-module package did not own its directories. As a consequence, when uninstalled, the package left unused directories in the file system. This update has fixed the package specification, so the package does not leave any directory on uninstall.
Clone Of:
: 1257701 (view as bug list)
Environment:
Last Closed: 2015-09-03 17:27:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gerrithub.io 243202 0 None None None Never
Red Hat Product Errata RHBA-2015:1720 0 normal SHIPPED_LIVE openstack-puppet-modules bug fix advisory 2015-09-03 21:27:38 UTC

Description Marko Myllynen 2014-11-12 14:54:04 UTC
Description of problem:
openstack-puppet-modules leaves /usr/share/openstack-puppet/modules behind on uninstall (it's unclear whether /usr/share/openstack-puppet should be owned by openstack-puppet-modules or by openstack-packstack-puppet).

Version-Release number of selected component (if applicable):
openstack-puppet-modules-2014.1-24.el7ost.noarch

Comment 2 Ivan Chavero 2014-12-05 06:12:57 UTC
I've reproduced this behaviour installing and uninstalling only the openstack-puppet-modules package by itself 

Gonna check the spec file to see how to deal with this problem

Comment 6 Javier Peña 2015-08-14 10:45:31 UTC
The spec file for OPM did not contain the directories, just the files inside them. I have proposed https://review.gerrithub.io/243202 for RDO Trunk. Once it is verified, we will cascade the fix to the specs for other releases.

Comment 13 Ofer Blaut 2015-09-01 08:12:09 UTC
tested

[root@controller ~(keystone_admin)]# yum remove openstack-puppet-modules
Resolving Dependencies
--> Running transaction check
---> Package openstack-puppet-modules.noarch 0:2015.1.8-12.el7ost will be erased
--> Processing Dependency: openstack-puppet-modules >= 2014.2.10 for package: openstack-packstack-2015.1-0.11.dev1589.g1d6372f.el7ost.noarch
--> Running transaction check
---> Package openstack-packstack.noarch 0:2015.1-0.11.dev1589.g1d6372f.el7ost will be erased
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================
 Package                                         Arch                          Version                                                       Repository                                  Size
==============================================================================================================================================================================================
Removing:
 openstack-puppet-modules                        noarch                        2015.1.8-12.el7ost                                            @rhelosp-7.0-puddle                        5.4 M
Removing for dependencies:
 openstack-packstack                             noarch                        2015.1-0.11.dev1589.g1d6372f.el7ost                           @rhelosp-7.0-puddle                        978 k

Transaction Summary
==============================================================================================================================================================================================
Remove  1 Package (+1 Dependent package)

Installed size: 6.4 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : openstack-packstack-2015.1-0.11.dev1589.g1d6372f.el7ost.noarch                                                                                                             1/2 
  Erasing    : openstack-puppet-modules-2015.1.8-12.el7ost.noarch                                                                                                                         2/2 
  Verifying  : openstack-packstack-2015.1-0.11.dev1589.g1d6372f.el7ost.noarch                                                                                                             1/2 
  Verifying  : openstack-puppet-modules-2015.1.8-12.el7ost.noarch                                                                                                                         2/2 

Removed:
  openstack-puppet-modules.noarch 0:2015.1.8-12.el7ost                                                                                                                                        

Dependency Removed:
  openstack-packstack.noarch 0:2015.1-0.11.dev1589.g1d6372f.el7ost                                                                                                                            

Complete!
[root@controller ~(keystone_admin)]# ll /usr/share/openstack-puppet/modules/
total 0
drwxr-xr-x. 5 root root 77 Aug 30 09:52 packstack

Comment 15 errata-xmlrpc 2015-09-03 17:27:45 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://access.redhat.com/errata/RHBA-2015:1720


Note You need to log in before you can comment on or make changes to this bug.