Bug 1075025
| Summary: | Leftovers files after mongodb packages removal | ||
|---|---|---|---|
| Product: | Red Hat Software Collections | Reporter: | Miroslav Hradílek <mhradile> |
| Component: | rh-mongodb32 | Assignee: | Marek Skalický <mskalick> |
| Status: | CLOSED ERRATA | QA Contact: | Vaclav Danek <vdanek> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rh-mongodb32 | CC: | databases-maint, drieden, hhorak, jorton, jprokes, kanderso, lzachar, mhradile, mskalick, vdanek |
| Target Milestone: | rc | ||
| Target Release: | 2.2 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| 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.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-05-31 10:19:12 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: | 1072319, 1079203 | ||
| Bug Blocks: | |||
|
Description
Miroslav Hradílek
2014-03-11 11:29:08 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. 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). 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 |