Bug 1443101
Summary: | register --force option , doesnot actually re-register when provided with --serverurl option | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Shwetha Kallesh <skallesh> |
Component: | subscription-manager | Assignee: | Kevin Howell <khowell> |
Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 7.4 | CC: | jmolet, khowell, redakkan, skallesh |
Target Milestone: | rc | Keywords: | Regression, Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | subscription-manager-1.19.11-1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-08-01 19:22:43 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
Shwetha Kallesh
2017-04-18 13:06:20 UTC
Observe that it worked fine on rhel7.3 with following RHSM version , so adding keyword regression [root@bkr-hv03-guest21 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.9.51.21-1 subscription management rules: 5.15.1 subscription-manager: 1.17.15-1.el7 python-rhsm: 1.17.9-1.el7 [root@bkr-hv03-guest21 ~]# subscription-manager register --force --serverurl subscription.rhsm.stage.redhat.com Registering to: subscription.rhsm.stage.redhat.com:443/subscription Username: qa Password: The system has been registered with ID: 08f1b990-eb01-400b-a36e-06ac574d749c [root@bkr-hv03-guest21 ~]# subscription-manager register --force --serverurl Shwetha-candlepin.usersys.redhat.com:8443/candlepin Registering to: Shwetha-candlepin.usersys.redhat.com:8443/candlepin Username: admin Password: Organization: admin The system has been registered with ID: 7ad2ccbc-fa7b-4aea-a839-aae8028433c3 [root@bkr-hv03-guest21 ~]# [root@bkr-hv03-guest21 ~]# subscription-manager register --force --serverurl subscription.rhsm.stage.redhat.com:443/subscription Registering to: subscription.rhsm.stage.redhat.com:443/subscription Username: qa Password: The system has been registered with ID: 439777f4-f8f1-4c04-8a77-9e119609b8b6 Agreed! This is a Regression affecting many automated tests. The last time this worked as expected was with... subscription-manager-1.19.4-1.el7.x86_64 I suspect the commit 3b0586f9c15fa5fbb0291f6b50fa444b496a34a7 for Bug 1429657 might be the cause. Shwetha et al, After some discussion with bcourt and jsefler, here is what we decided: the use case of switching from one entitlement server to another should be handled with two commands: unregister and then register. What we would like to change as part of this bug is making it clear what is happening with `register --force`, and especially, providing more details when a failure happens. Pseudo-example: Unregistering from: candlepin.example.com:8443/candlepin using identity {uuid}. Unable to unregister: Invalid credentials. [root@dhcp71-191 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.9.51.21-1 subscription management rules: 5.15.1 subscription-manager: 1.19.12-1.el7 python-rhsm: 1.19.6-1.el7 [root@dhcp71-191 ~]# subscription-manager register --force --serverurl subscription.rhsm.redhat.com Unregistering from: subscription.rhsm.redhat.com:443/subscription Invalid credentials. 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/RHBA-2017:2083 |