Bug 1402009
Summary: | subscription-manager stdout contains ESC[?1034h | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Rehana <redakkan> |
Component: | subscription-manager | Assignee: | Kevin Howell <khowell> |
Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.9 | CC: | bkearney, khowell, redakkan, skallesh, thozza, vrjain |
Target Milestone: | rc | Keywords: | Regression, Triaged |
Target Release: | 6.9 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | subscription-manager-1.18.8-1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-03-21 10:57:52 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
Rehana
2016-12-06 15:01:17 UTC
Also fails for me on subscription-manager-1.18.5-1.el6 RHEL69 It does NOT happen on subscription-manager-1.17.15-1.el7 RHEL73 It does NOT happen on subscription-manager-1.16.8-8.el7 RHEL68 Therefore it is a regression. Reviewing rhsm.log, you'll see that the first poolid from the stdin pipe gets prefixed with some extraneous chars "%1B%5B%3F1034h" which certainly will not be found on the server... @connection.py:525 - Response: status=404, request="POST /subscription/consumers/53581475-3342-409e-861c-aceb8e907cfc/entitlements?pool=%1B%5B%3F1034h8a99f983582a9598015843b018d74412" This fails.... [root@jsefler-rhel6 ~]# subscription-manager list --available --match-installed --pool-only | subscription-manager attach --file - Pool with id 8a99f9815582f734015585f99c47511c could not be found. Successfully attached a subscription for: Red Hat Enterprise Linux Server, Premium (8 sockets) (Up to 4 guests) Successfully attached a subscription for: Red Hat Enterprise Linux Server, Premium (Physical or Virtual Nodes) [root@jsefler-rhel6 ~]# This fails too... [root@jsefler-rhel6 ~]# subscription-manager list --available --match-installed --pool-only > file_of_pool_ids [root@jsefler-rhel6 ~]# subscription-manager attach --file file_of_pool_ids Pool with id 8a99f9815582f734015585f99c47511c could not be found. Successfully attached a subscription for: Red Hat Enterprise Linux Server, Premium (8 sockets) (Up to 4 guests) Successfully attached a subscription for: Red Hat Enterprise Linux Server, Premium (Physical or Virtual Nodes) [root@jsefler-rhel6 ~]# Yet the file looks good... [root@jsefler-rhel6 ~]# cat file_of_pool_ids 8a99f9815582f734015585f99c47511c 8a99f9815582f734015585f99973509a 8a99f9815582f734015585f99e9d519d [root@jsefler-rhel6 ~]# Once again, notice extraneous chars "%1B%5B%3F1034h" in my rhsm.log too... 2016-12-06 11:11:30,648 [INFO] subscription-manager:11395:MainThread @connection.py:525 - Response: status=404, request="POST /subscription/consumers/130d5672-aa98-49e0-91c4-c41692d5c9e6/entitlements?pool=%1B%5B%3F1034h8a99f9815582f734015585f99c47511c" 2016-12-06 11:11:30,649 [ERROR] subscription-manager:11395:MainThread @managercli.py:1587 - Pool with id ^[[?1034h8a99f9815582f734015585f99c47511c could not be found. Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/subscription_manager/managercli.py", line 1577, in _do_command ents = self.cp.bindByEntitlementPool(self.identity.uuid, pool, self.options.quantity) File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 1097, in bindByEntitlementPool return self.conn.request_post(method) File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 626, in request_post return self._request("POST", method, params) File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 534, in _request self.validateResponse(result, request_type, handler) File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 587, in validateResponse raise RestlibException(response['status'], error_msg, response.get('headers')) RestlibException: Pool with id ^[[?1034h8a99f9815582f734015585f99c47511c could not be found. Subscription-manager list --avail output doesnot contain esc character anymore , so first pool gets attached successfully [root@dhcp35-71 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 2.0.21-1 subscription management rules: 5.20 subscription-manager: 1.18.8-1.el6 python-rhsm: 1.18.6-1.el6 [root@dhcp35-71 ~]# subscription-manager list --available --match-installed --no-overlap --pool-only | subscription-manager attach --file - Successfully attached a subscription for: Awesome OS Unlimited Quantity Virt Limit Successfully attached a subscription for: Stackable with Awesome OS for x86_64 Successfully attached a subscription for: Awesome OS Unlimited Quantity Virt Limit Successfully attached a subscription for: RAM Limiting Package (2GB stackable) Successfully attached a subscription for: Awesome OS Instance Based (Standard Support) Successfully attached a subscription for: Multi-Attribute Stackable (2 GB) Successfully attached a subscription for: Multi-Attribute Stackable (4 cores) Successfully attached a subscription for: Admin OS Instance Based one socket Successfully attached a subscription for: Awesome OS Instance Based (Standard Support) Successfully attached a subscription for: Awesome OS for x86_64 Successfully attached a subscription for: Awesome OS with up to 4 virtual guests Successfully attached a subscription for: Awesome OS Stackable guest limit 4 Successfully attached a subscription for: Awesome OS for All Arch (just x86_64 content) Successfully attached a subscription for: Awesome OS for x86_64/i686/ia64/ppc/ppc64/s390x/s390 [root@dhcp35-71 ~]# subscription-manager list --available --match-installed --pool-only > file.txt [root@dhcp35-71 ~]# subscription-manager attach --file file.txt Successfully attached a subscription for: Awesome OS Unlimited Quantity Virt Limit Successfully attached a subscription for: Stackable with Awesome OS for x86_64 Successfully attached a subscription for: Awesome OS Unlimited Quantity Virt Limit Successfully attached a subscription for: RAM Limiting Package (2GB stackable) Successfully attached a subscription for: Awesome OS Instance Based (Standard Support) Successfully attached a subscription for: Multi-Attribute Stackable (2 GB) Successfully attached a subscription for: Multi-Attribute Stackable (4 cores) Successfully attached a subscription for: Admin OS Instance Based one socket Successfully attached a subscription for: Awesome OS Instance Based (Standard Support) Successfully attached a subscription for: Awesome OS for x86_64 Successfully attached a subscription for: Awesome OS with up to 4 virtual guests Successfully attached a subscription for: Awesome OS Stackable guest limit 4 Successfully attached a subscription for: Awesome OS for All Arch (just x86_64 content) Successfully attached a subscription for: Awesome OS for x86_64/i686/ia64/ppc/ppc64/s390x/s390 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/RHSA-2017-0698.html |