| Summary: | [RHEL6:RPM:PERL] site perl paths cause failure with yum upgrade/update with a read only /usr/local | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Travis Gummels <tgummels> |
| Component: | rpm | Assignee: | Panu Matilainen <pmatilai> |
| Status: | CLOSED NOTABUG | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.1 | CC: | karlamrhein, mvadkert, pknirsch, sforsber |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-07-02 10:16:27 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Travis Gummels
2011-06-16 15:25:00 UTC
Perl package creating /usr/local directories might be a bit questionable but the same issue happens with filesystem package wherever /usr/local and such are nfs-mounted. This is practically the same as bug 594519, and the simple cure which works with all rpm versions is to make rpm aware of the nfs-mount: echo "%_netsharedpath /usr/local" > /etc/rpm/macros.nfs There are other aspects to consider though: - rpm should spot attempt to write to a read-only mount and abort early (this currently only caught for files which would require additional space on the fs) - rpm could ignore the unpack errors on write-mounted but root-squashed fs when the permissions dont change (upstream rpm does this now) Is the workaround using %_netsharedpath sufficient for SLAC? As Panu mentioned, for a more complete fix we'd need to backport a fix from a newer version of rpm and maybe even extend that a bit more for more exotic which would mean we'd have to target RHEL-6.3 for that. Thanks & regards, Phil Since RHEL 6.3 External Beta has begun, and this bug remains unresolved, it has been rejected as it is not proposed as exception or blocker. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. (In reply to comment #0) > We think the rpm update should not fail because of a non-writable > /usr/local. We believe rpm should be configurable to allow /usr/local to be > a known non-writable space, so the rpm update does not fail. As explained in comments 2-3, there already is such a configuration option (%_netsharedpath) specifically for these kind of setups -> closing NOTABUG. |