Bug 1226007
Summary: | rpm-ostree rebase can cause wrong remote to get used | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Dusty Mabe <dustymabe> |
Component: | subscription-manager | Assignee: | Chris Snyder <csnyder> |
Status: | CLOSED NOTABUG | QA Contact: | John Sefler <jsefler> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 7.2 | CC: | csnyder, dustymabe, ghelleks, gscrivan, hpopal, jkrieger, miabbott, ovasik, redakkan, skallesh, vrjain |
Target Milestone: | rc | Keywords: | Extras, Rebase, Triaged |
Target Release: | 7.4 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Rebase: Bug Fixes and Enhancements | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-10-05 20:42:53 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: |
Description
Dusty Mabe
2015-05-28 18:00:38 UTC
My best guess here is the subscription manager daemon `rhsmcertd` is coming in and overwriting things. Try: systemctl stop rhsmcertd systemctl mask rhsmcertd ? (In reply to Colin Walters from comment #2) > My best guess here is the subscription manager daemon `rhsmcertd` is coming > in and overwriting things. > > Try: > systemctl stop rhsmcertd > systemctl mask rhsmcertd > > ? At what point in the process (the one described in the description) do you want those two commands to be run? (In reply to Colin Walters from comment #2) > My best guess here is the subscription manager daemon `rhsmcertd` is coming > in and overwriting things. > > Try: > systemctl stop rhsmcertd > systemctl mask rhsmcertd > > ? That seems to work if I disable/mask rhsmcertd right after I run *subscription-manager register --auto-attach*. One thing that might be of interest is that I see these denials when I run *subscription-manager register --auto-attach*: [ 125.083645] type=1400 audit(1433086915.767:5): avc: denied { write } for pid=9505 comm="rhsmcertd-worke" name=".dbenv.lock" dev="dm-0" ino=4199789 scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=file [ 219.084882] type=1400 audit(1433087009.767:6): avc: denied { write } for pid=9505 comm="rhsmcertd-worke" name="21bd99f9f37727358454866bf4f0d51fe53c2f03fc74f2e69c75cbef0383a3f1.0.origin" dev="dm-0" ino=4199523 scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=file [ 220.419414] type=1400 audit(1433087011.102:7): avc: denied { write } for pid=9513 comm="rhsmcertd-worke" name=".dbenv.lock" dev="dm-0" ino=4199789 scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=file [ 225.179294] type=1400 audit(1433087015.863:8): avc: denied { write } for pid=9513 comm="rhsmcertd-worke" name="21bd99f9f37727358454866bf4f0d51fe53c2f03fc74f2e69c75cbef0383a3f1.0.origin" dev="dm-0" ino=4199523 scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=file I need a bit of clarification on the use case here. This comment might be more appropriate for the RFE bz above but nevertheless I will place it here. What use case is being tested here? It seems the subscription manager ostree plugin assumes the only valid configurations for remotes will be in '/etc/ostree/remotes.d/redhat.conf'. Is there a valid use case in this bug that is not covered by the RFE? Is it expected and valid to add a remote not included in an entitlement cert and rebase off said remote? If the answer to the above is 'no' I will close this bug in favor of the RFG bug 1378495 Thank you in advance for your response. Hey Chris, I don't know the answers to your questions. Is rebasing something that needs to be supported? Maybe? I guess that depends on if we ever offer different trees to our customers. I think what I was trying to report here is a situation where the software is behaving in a way it shouldn't. Upstream rpm-ostree has a feature that allows you to rebase to another tree, and in the case I outlined above I rebased to a different tree, did an upgrade, and then it no longer knows how to contact the remote. I was just trying to report the issue, as there is some bug here (or was at the time I was trying this out). This works as designed. Switching from a tree that was provided by a subscription to a tree that was added through some other means is unsupported. For any parties interested in that functionality please refer to bug 1378495 as the work to support that functionality will be completed there. |