Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1221273
Summary: | if 'register' --serverurl foo.example.com --servicelevel BogusService level fails, server options are not persisted | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Adrian Likins <alikins> |
Component: | subscription-manager | Assignee: | William Poteat <wpoteat> |
Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.1 | CC: | crog, skallesh, wpoteat |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-19 11:48:27 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: | 1121117 |
Description
Adrian Likins
2015-05-13 15:23:40 UTC
In my opinion... subscription-manager register --serverurl http://whatever.example.com --auto-attach --servicelevel AServiceLevelThatDoesExist - should result in a successful registration to whatever.example.com - the rhsm.conf file should be updated with the new server.hostname whatever.example.com - no subscriptions should be attached because AServiceLevelThatDoesExist - the serviceLevel preference on the consumer should not be set - the single exit code is questionable. If you call module subscribe --servicelevel=AServiceLevelThatDoesExist then the exit code will be 70 (EX_SOFTWARE). My vote would be for the register module to also return this same exitCode. commit fef344066a4d5e40a21188797d6c6197e03a1638 Author: William Poteat <wpoteat> Date: Thu Aug 6 10:40:01 2015 -0400 1221273: Auto-attach failure should not short-circuit other parts of registration The registration occurs and is successful regardless of auto-bind. If the serverurl is set as per the bug, then the received identity cert is from an entitlement engine that is no longer reflected in the system configuration. With this change the config is updated to match the parameters of the registration. Marking verified!! [root@dhcp35-236 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 2.0.6-1 subscription management rules: 5.16 subscription-manager: 1.15.9-6.el7 python-rhsm: 1.15.4-3.el7 [root@dhcp35-236 ~]# subscription-manager register --serverurl=10.70.35.150:8443/candlepin --force --servicelevel foo --auto-attach Registering to: 10.70.35.150:8443/candlepin Username: admin Password: Organization: admin The system has been registered with ID: 289f5807-2862-4ec6-ba45-4a0df6f91d2c Service level 'foo' is not available to units of organization admin. Installed Product Current Status: Product Name: Awesome OS for S390 Bits Status: Not Subscribed Product Name: Stackable with Awesome OS for x86_64 Bits Status: Not Subscribed Product Name: Awesome OS for x86_64/i686/ia64/ppc/ppc64/s390x/s390 Bits Status: Not Subscribed Product Name: Awesome OS Workstation Bits Status: Not Subscribed Unable to find available subscriptions for all your installed products. [root@dhcp35-236 ~]# cat /etc/rhsm/rhsm.conf| grep hostname # Server hostname: hostname = 10.70.35.150 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://rhn.redhat.com/errata/RHBA-2015-2122.html |