Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1096777

Summary: bad URI error while trying to remove subscriptions using subscription-manager --serial <serial>
Product: Red Hat Enterprise Linux 6 Reporter: Shwetha Kallesh <skallesh>
Component: subscription-managerAssignee: William Poteat <wpoteat>
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.5CC: bkearney, jesusr, skallesh
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
no documentation required
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-14 07:46:55 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: 1014343    

Description Shwetha Kallesh 2014-05-12 12:21:09 UTC
Description of problem:
 bad URI error while trying to remove subscriptions using subscription-manager --serial <serial> 

Version-Release number of selected component (if applicable):
[root@shwetha-workstation ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 1.5.0-19.el6sat-Katello
subscription-manager: 1.11.6-1.git.0.9c712b7.el6
python-rhsm: 1.11.4-1.git.0.3536b12.el6
 

How reproducible:


Steps to Reproduce:
[root@shwetha-workstation ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS with up to 4 virtual guests
Provides:          Awesome OS Server Bits
SKU:               awesomeos-virt-4
Contract:          4
Account:           12331131231
Serial:            3377641380824596814
Pool ID:           8ac149f445aea4490145aead2883021e
Active:            True
Quantity Used:     1
Service Level:    
Service Type:      
Status Details:    
Subscription Type: Multi-Entitleable
Starts:            04/22/2014
Ends:              04/22/2015
System Type:       Physical
 
Subscription Name: Awesome OS with up to 4 virtual guests
Provides:          Awesome OS Server Bits
SKU:               awesomeos-virt-4
Contract:          4
Account:           12331131231
Serial:            3482872516714389125
Pool ID:           8ac149f445aea4490145aead2883021e
Active:            True
Quantity Used:     1
Service Level:    
Service Type:      
Status Details:    
Subscription Type: Multi-Entitleable
Starts:            04/22/2014
Ends:              04/22/2015
System Type:       Physical
 
[root@shwetha-workstation ~]# subscription-manager remove --serial 8ac149f445aea4490145aead2883021e
Error: '8ac149f445aea4490145aead2883021e' is not a valid serial number
[root@shwetha-workstation ~]# subscription-manager remove --serial 3482872516714389125
Serial numbers unsuccessfully removed at the server:
   bad URI(is not URI?): https://localhost:8443/candlepin/consumers/consumer:%20name="shwetha-workstation",%20uuid=76824cb5-22f8-4212-a91a-bfcef5680300/certificates/3482872516714389125

[root@shwetha-workstation ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS with up to 4 virtual guests
Provides:          Awesome OS Server Bits
SKU:               awesomeos-virt-4
Contract:          4
Account:           12331131231
Serial:            3377641380824596814
Pool ID:           8ac149f445aea4490145aead2883021e
Active:            True
Quantity Used:     1
Service Level:    
Service Type:      
Status Details:    
Subscription Type: Multi-Entitleable
Starts:            04/22/2014
Ends:              04/22/2015
System Type:       Physical
 
Subscription Name: Awesome OS with up to 4 virtual guests
Provides:          Awesome OS Server Bits
SKU:               awesomeos-virt-4
Contract:          4
Account:           12331131231
Serial:            3482872516714389125
Pool ID:           8ac149f445aea4490145aead2883021e
Active:            True
Quantity Used:     1
Service Level:    
Service Type:      
Status Details:    
Subscription Type: Multi-Entitleable
Starts:            04/22/2014
Ends:              04/22/2015
System Type:       Physical

Actual results:


Expected results:


Additional info:

Comment 2 William Poteat 2014-05-21 18:39:57 UTC
commmit 913519015dccb0ea0606274cef23233e465eaaa6

Comment 4 Shwetha Kallesh 2014-07-03 15:32:02 UTC
[root@dhcp-0-177 ~]# subscription-manager version
server type: RHN Classic and Red Hat Subscription Management
subscription management server: 0.9.20-1
subscription management rules: 5.10
subscription-manager: 1.12.6-1.el6
python-rhsm: 1.12.3-1.el6


[root@dhcp-0-177 ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS Instance Based (Standard Support)
Provides:          Awesome OS Instance Server Bits
SKU:               awesomeos-instancebased
Contract:          1
Account:           12331131231
Serial:            3537497260865297486
Pool ID:           0000000046e324020146e325670c091e
Active:            True
Quantity Used:     4
Service Level:     Standard
Service Type:      L1-L3
Status Details:    
Subscription Type: Instance Based
Starts:            06/28/2014
Ends:              06/28/2015
System Type:       Physical

[root@dhcp-0-177 ~]# subscription-manager remove --serial 3537497260865297486
Serial numbers successfully removed at the server:
   3537497260865297486
1 local certificate has been deleted.
[root@dhcp-0-177 ~]# subscription-manager list --consumed
No consumed subscription pools to list

Comment 5 errata-xmlrpc 2014-10-14 07:46:55 UTC
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-2014-1384.html