Bug 1075025 - Leftovers files after mongodb packages removal
Summary: Leftovers files after mongodb packages removal
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Software Collections
Classification: Red Hat
Component: rh-mongodb32
Version: rh-mongodb32
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 2.2
Assignee: Marek Skalický
QA Contact: Vaclav Danek
URL:
Whiteboard:
Depends On: 1072319 1079203
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-11 11:29 UTC by Miroslav Hradílek
Modified: 2016-05-31 10:19 UTC (History)
10 users (show)

Fixed In Version: rh-mongodb32-2.2-5.el7
Doc Type: Bug Fix
Doc Text:
Cause: Not all files in RPM were correctly owned. Consequence: After removing the whole collection, there were still some files in /opt/<provider>/<collection>/root. Fix: Files in the collection are owned properly. Result: After removing the whole collection, there are no unneeded files under /opt/<provider>/<collection>/root.
Clone Of:
Environment:
Last Closed: 2016-05-31 10:19:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:1158 0 normal SHIPPED_LIVE new packages: rh-mongodb32 2016-05-31 13:58:36 UTC

Description Miroslav Hradílek 2014-03-11 11:29:08 UTC
Looks like some files are not owned by the mongodb24 collection causing leftovers. Is this expected?


:: [   LOG    ] :: Using common prefix mongodb24
:: [   FAIL   ] :: All files in /opt/rh/mongodb24 owned by that collection 
:: [   LOG    ] :: Files in the question:
:: [   LOG    ] :: /opt/rh/mongodb24/root/usr/share/java
:: [   LOG    ] :: /opt/rh/mongodb24/root/usr/share/javadoc
:: [   LOG    ] :: /opt/rh/mongodb24/root/usr/share/maven-fragments
:: [   LOG    ] :: /opt/rh/mongodb24/root/usr/share/maven-poms
:: [   LOG    ] :: /opt/rh/mongodb24/root/var/lib/mongodb/journal
:: [   LOG    ] :: /opt/rh/mongodb24/root/var/lib/mongodb/journal/prealloc.0
:: [   LOG    ] :: /opt/rh/mongodb24/root/var/lib/mongodb/journal/prealloc.1
:: [   LOG    ] :: /opt/rh/mongodb24/root/var/lib/mongodb/journal/prealloc.2
:: [   LOG    ] :: /opt/rh/mongodb24/root/var/lib/mongodb/local.0
:: [   LOG    ] :: /opt/rh/mongodb24/root/var/lib/mongodb/local.ns
:: [   LOG    ] :: /opt/rh/mongodb24/root/var/lib/mongodb/mongod.lock
:: [   LOG    ] :: /opt/rh/mongodb24/root/var/lib/mongodb/testdb.0
:: [   LOG    ] :: /opt/rh/mongodb24/root/var/lib/mongodb/testdb.1
:: [   LOG    ] :: /opt/rh/mongodb24/root/var/lib/mongodb/testdb.ns
:: [   LOG    ] :: Duration: 1s
:: [   LOG    ] :: Assertions: 0 good, 1 bad
:: [   FAIL   ] :: RESULT: mongodb24
:: [  DEBUG   ] :: rljClosePhase: Phase mongodb24 closed
:: [  DEBUG   ] :: rlReport: result: FAIL, score: 1, log: /var/tmp/beakerlib-19722263/journal.txt
:: [  DEBUG   ] :: rljAddPhase: Phase Destructive part started

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: Destructive part
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   LOG    ] :: Using common prefix mongodb24
:: [   FAIL   ] :: No files left after the yum remove 
:: [   LOG    ] :: /opt/rh/mongodb24/root/usr/share/java
:: [   LOG    ] :: /opt/rh/mongodb24/root/usr/share/javadoc
:: [   LOG    ] :: /opt/rh/mongodb24/root/usr/share/maven-fragments
:: [   LOG    ] :: /opt/rh/mongodb24/root/usr/share/maven-poms
:: [   LOG    ] :: /opt/rh/mongodb24/root/var/lib/mongodb/journal/prealloc.0
:: [   LOG    ] :: /opt/rh/mongodb24/root/var/lib/mongodb/journal/prealloc.1
:: [   LOG    ] :: /opt/rh/mongodb24/root/var/lib/mongodb/journal/prealloc.2
:: [   LOG    ] :: /opt/rh/mongodb24/root/var/lib/mongodb/local.0
:: [   LOG    ] :: /opt/rh/mongodb24/root/var/lib/mongodb/local.ns
:: [   LOG    ] :: /opt/rh/mongodb24/root/var/lib/mongodb/mongod.lock
:: [   LOG    ] :: /opt/rh/mongodb24/root/var/lib/mongodb/testdb.0
:: [   LOG    ] :: /opt/rh/mongodb24/root/var/lib/mongodb/testdb.1
:: [   LOG    ] :: /opt/rh/mongodb24/root/var/lib/mongodb/testdb.ns

Comment 2 Marcela Mašláňová 2014-03-19 11:21:38 UTC
It's only on RHEL-7, right? On RHEL-7 must be used in files section:
%files -f filesystem 

It's not very nice, but it will fix the problem.

Comment 5 jpacner 2014-03-28 14:30:32 UTC
Fixed in commit http://pkgs.devel.redhat.com/cgit/rpms/mongo-java-driver/commit/?h=rhscl-1.1-mongodb24-rhel-7&id=81760df9ddcd6a58af0e43ba71c77d02dd31e4fd (build mongodb24-mongo-java-driver-2.11.4-2.el7).

Comment 8 jpacner 2014-03-28 14:43:00 UTC
Fixed in commit http://pkgs.devel.redhat.com/cgit/rpms/mongo-java-driver/commit/?h=rhscl-1.1-mongodb24-rhel-6&id=e1bb489ee195171980eb384e7f744936e36eb01d (build mongodb24-mongo-java-driver-2.11.4-2.el6).

Comment 19 Marek Skalický 2015-02-12 08:08:51 UTC
Unfortunately this does not seem to be fixed.

rh-mongodb26-mongodb-server on rhel7 left these files

/opt/rh/rh-mongodb26/
`-- register.content
    |-- etc
    |   |-- logrotate.d
    |   `-- opt
    |       `-- rh
    |           `-- scls
    |               `-- rh-mongodb26
    |                   `-- sysconfig
    `-- usr
        `-- lib
            |-- systemd
            |   `-- system
            `-- tmpfiles.d

(rhel6 differ in init scripts location)

So there is missing ownership of these directories:
/opt/rh/rh-mongodb26/register.content/etc/logrotate.d
/opt/rh/rh-mongodb26/register.content/etc/opt/rh/scls/rh-mongodb26/sysconfig
/opt/rh/rh-mongodb26/register.content/usr
/opt/rh/rh-mongodb26/register.content/usr/lib
/opt/rh/rh-mongodb26/register.content/usr/lib/systemd
/opt/rh/rh-mongodb26/register.content/usr/lib/systemd/system
/opt/rh/rh-mongodb26/register.content/usr/lib/tmpfiles.d

Comment 20 Honza Horak 2015-02-12 10:12:55 UTC
(In reply to Marek Skalický from comment #19)
> So there is missing ownership of these directories:
> /opt/rh/rh-mongodb26/register.content/etc/logrotate.d
> /opt/rh/rh-mongodb26/register.content/etc/opt/rh/scls/rh-mongodb26/sysconfig
> /opt/rh/rh-mongodb26/register.content/usr
> /opt/rh/rh-mongodb26/register.content/usr/lib
> /opt/rh/rh-mongodb26/register.content/usr/lib/systemd
> /opt/rh/rh-mongodb26/register.content/usr/lib/systemd/system
> /opt/rh/rh-mongodb26/register.content/usr/lib/tmpfiles.d

It was decided that register feature is not necessary for databases, so we should get rid of those issues by removing the register functionality.

Comment 21 Marek Skalický 2015-03-19 16:48:07 UTC
This bug should now be fixed - last commits into rh-mongodb26, mongodb and mongo-java-driver.

Comment 29 Marek Skalický 2016-02-17 09:22:14 UTC
oving this bug to new rh-mongodb32 SCL where it should be fixed.

Comment 30 Marek Skalický 2016-02-17 09:25:51 UTC
Sorry:
 Moving this bug to new rh-mongodb32 SCL where it should be fixed.

Comment 33 Vaclav Danek 2016-04-21 13:15:53 UTC
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: rh-mongodb32
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   LOG    ] :: Using package list
:: [   PASS   ] :: All files in /opt/rh/rh-mongodb32 owned by that collection 
:: [   LOG    ] :: Duration: 7s
:: [   LOG    ] :: Assertions: 1 good, 0 bad
:: [   PASS   ] :: RESULT: rh-mongodb32

Fixed in rh-mongodb-32 -> Verified

Comment 35 errata-xmlrpc 2016-05-31 10:19:12 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/RHEA-2016:1158


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