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
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.
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).
Fixed in commit http://pkgs.devel.redhat.com/cgit/rpms/mongodb/commit/?h=rhscl-1.1-mongodb24-rhel-7&id=c73afb0e5d1955e7f40871b3037991094314d68a (build mongodb24-mongodb-2.4.9-5.el7).
Fixed in commit http://pkgs.devel.redhat.com/cgit/rpms/mongodb24/commit/?h=rhscl-1.1-mongodb24-rhel-7&id=c58fd1015a0337b2a28103f2a352c53a96951525 (build mongodb24-1.1-4.el7).
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).
Fixed in commit http://pkgs.devel.redhat.com/cgit/rpms/mongodb/commit/?h=rhscl-1.1-mongodb24-rhel-6&id=0f66fca597534689a12fe4741c66326da58f92d4 (build mongodb24-mongodb-2.4.9-5.el6).
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
(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.
This bug should now be fixed - last commits into rh-mongodb26, mongodb and mongo-java-driver.
oving this bug to new rh-mongodb32 SCL where it should be fixed.
Sorry: Moving this bug to new rh-mongodb32 SCL where it should be fixed.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 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
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