Bug 1285004
Summary: | subscription-manager remove --pool throws: Runtime Error Could not find resource for relative of full path | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | John Sefler <jsefler> |
Component: | subscription-manager | Assignee: | Chris Snyder <csnyder> |
Status: | CLOSED ERRATA | QA Contact: | Jan Stavel <jstavel> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 6.8 | CC: | bcourt, csnyder, skallesh |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-05-10 20:38: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: |
Description
John Sefler
2015-11-24 16:16:43 UTC
A PR with new implementation of the original RFE that avoids this situation entirely by not using any new candlepin api methods is available at the link below: https://github.com/candlepin/subscription-manager/pull/1348 Two PRs that solve this bug in the initial implementation: https://github.com/candlepin/candlepin/pull/1033 https://github.com/candlepin/subscription-manager/pull/1355 Testing Version.... [root@jsefler-6 ~]# rpm -q subscription-manager subscription-manager-1.16.5-1.git.50.2a52dfd.el6.x86_64 [root@jsefler-6 ~]# subscription-manager unsubscribe --pool=1234567890abcdef1234567890abcdef 1>/tmp/stdout 2>/tmp/stderr [root@jsefler-6 ~]# echo $? 69 [root@jsefler-6 ~]# cat /tmp/stdout Error: The registered entitlement server does not support remove --pool. Instead, use the remove --serial option. [root@jsefler-6 ~]# cat /tmp/stderr [root@jsefler-6 ~]# With a non-zero exitCode of 69 (EX_UNAVAILABLE), notice that the error message is being written to stdout. For consistency with other errors, this should be written to stderr. John, As of the below a fix for your comment has been put into master commit d9a82d3135a1770f794c2c8181f44e7e4628e0b6 Author: Christopher Snyder <csnyder> Date: Fri Dec 4 11:50:54 2015 -0500 Output of errors now goes to stderr Failed_qa as the error is still being written to stdout [root@pogo-cn1100-01 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.9.51.11-1 subscription management rules: 5.15 subscription-manager: 1.16.6-1.el6 python-rhsm: 1.16.4-1.el6 [root@pogo-cn1100-01 ~]# subscription-manager remove --pool 8a85f9843affb61f013b1fae79e26a75 Error: The registered entitlement server does not support remove --pool. Instead, use the remove --serial option. [root@pogo-cn1100-01 ~]# subscription-manager remove --pool 8a85f9843affb61f013b1fae79e26a75 1>/tmp/stdout 2>/tmp/stderr [root@pogo-cn1100-01 ~]# cat /tmp/stderr [root@pogo-cn1100-01 ~]# cat /tmp/stdout Error: The registered entitlement server does not support remove --pool. Instead, use the remove --serial option. The commit listed in comment 4 was not pulled in to the present build (subman 1.16.6-1.el6). It is now in master and should be pulled in to the next build after we tag. Due to this I am moving the bug back to modified. The next build will be done in January. The bug is verified. [root@localhost ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.8 Beta (Santiago) [root@localhost ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.9.51.15-1 subscription management rules: 5.15.1 subscription-manager: 1.16.7-1.el6 python-rhsm: 1.16.5-1.el6 [root@localhost ~]# subscription-manager remove --pool=8a85f9823e3d5e43013e3ddd4e9509c4 Error: The registered entitlement server does not support remove --pool. Instead, use the remove --serial option. [root@localhost ~]# I have added informations about stdout, stderr using: [root@localhost ~]# subscription-manager remove --pool=8a85f9823e3d5e43013e3ddd4e9509c4 1> /tmp/stdout 2> /tmp/stderr [root@localhost ~]# echo $? 69 [root@localhost ~]# cat /tmp/stdout [root@localhost ~]# cat /tmp/stderr Error: The registered entitlement server does not support remove --pool. Instead, use the remove --serial option. It was verified: root@localhost ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.8 Beta (Santiago) [root@localhost ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.9.51.15-1 subscription management rules: 5.15.1 subscription-manager: 1.16.7-1.el6 python-rhsm: 1.16.5-1.el6 [root@localhost ~]# subscription-manager remove --pool=8a85f9823e3d5e43013e3ddd4e9509c4 1> /tmp/stdout 2> /tmp/stderr [root@localhost ~]# echo $? 69 [root@localhost ~]# cat /tmp/stdout [root@localhost ~]# cat /tmp/stderr Error: The registered entitlement server does not support remove --pool. Instead, use the remove --serial option. 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-2016-0797.html |