Bug 916369
| Summary: | insecure in rhsm.comf should not be updated when using --insecure option if command fails | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Sharath Dwaral <fsharath> |
| Component: | subscription-manager | Assignee: | Bryan Kearney <bkearney> |
| Status: | CLOSED ERRATA | QA Contact: | IDM QE LIST <seceng-idm-qe-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 5.10 | CC: | bkearney, jesusr, jgalipea, jsefler |
| Target Milestone: | beta | ||
| Target Release: | 5.10 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause:
The parameter parsing code was always updating the configuration whenever the --insecure option was present.
Consequence:
The --insecure option would always overwrite the configuration value.
Fix:
Delayed the insecure value persistence until after the command completes.
Result:
A more consistent experience for the user.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-09-30 22:58:02 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: | |||
| Bug Blocks: | 840995, 920191 | ||
|
Description
Sharath Dwaral
2013-02-27 22:47:45 UTC
Related to Bug 844411 commit b539676648028688d3018f0a04c2f7ea0e4372b8
Author: Bryan Kearney <bkearney>
Date: Mon Mar 4 16:41:15 2013 -0500
916369: Do not persist config changes until the action completes
# rpm -qa | egrep "subscription-manager|python-rhsm" subscription-manager-firstboot-1.8.4-1.el7.x86_64 python-rhsm-1.8.7-1.el7.x86_64 subscription-manager-gui-1.8.4-1.el7.x86_64 subscription-manager-migration-1.8.4-1.el7.x86_64 subscription-manager-1.8.4-1.el7.x86_64 subscription-manager-debuginfo-1.8.4-1.el7.x86_64 # subscription-manager identity This system is not yet registered. Try 'subscription-manager register --help' for more information. # cat /etc/rhsm/rhsm.conf | grep insecure insecure=0 # subscription-manager register --serverurl fsharath-candlepin.usersys.redhat.com:8443/candlepin --insecure Username: ^C User interrupted process. # cat /etc/rhsm/rhsm.conf | grep insecure insecure=0 # subscription-manager register --serverurl fsharath-candlepin.usersys.redhat.com:8443/candlepin --insecure Username: testuser1 Password: User interrupted process. # cat /etc/rhsm/rhsm.conf | grep insecure insecure=0 # subscription-manager register --serverurl fsharath-candlepin.usersys.redhat.com:8443/candlepin --insecure Username: testuser1 Password: Organization: ^C User interrupted process. # cat /etc/rhsm/rhsm.conf | grep insecure #insecure = 0 insecure=0 # subscription-manager register --serverurl fsharath-candlepin.usersys.redhat.com:8443/candlepin --insecure Username: testuser1 Password: Organization: snowwhite The system has been registered with id: a763a15f-6655-4454-9503-806a0aa8f8ed Verified This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release. 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. http://rhn.redhat.com/errata/RHBA-2013-1332.html |