Bug 889204
| Summary: | encountering the following stderr msg when subscription name contains UTF8 chars: [priority,] message string | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | John Sefler <jsefler> |
| Component: | subscription-manager | Assignee: | Bryan Kearney <bkearney> |
| Status: | CLOSED ERRATA | QA Contact: | IDM QE LIST <seceng-idm-qe-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.4 | CC: | bkearney, tlavigne |
| 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: | 2013-02-21 09:05:53 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: | 771481, 863175 | ||
|
Description
John Sefler
2012-12-20 13:53:32 UTC
This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. Fixed in master at https://github.com/candlepin/subscription-manager/pull/471 commit 8da0f99018371c754aea5a87b2d1eb8eb0ccc4df
Author: Bryan Kearney <bkearney>
Date: Wed Jan 2 14:49:05 2013 -0500
889204: Encode the unicode string to utf-8 to avoid syslog errors
also see similar bug 890296 Verifying Version...
[root@jsefler-6 ~]# rpm -q subscription-manager
subscription-manager-1.1.19-1.el6.x86_64
[root@jsefler-6 ~]# subscription-manager list --avail
+-------------------------------------------+
Available Subscriptions
+-------------------------------------------+
Subscription Name: Subscription name containing UTF–8 character \u2013
SKU: utf8-subscription-sku
Pool Id: 8a90f81d3c159143013c16fd0baa0cb9
Quantity: 20
Service Level:
Service Type:
Multi-Entitlement: No
Ends: 01/22/2013
System Type: Physical
[root@jsefler-6 ~]# subscription-manager subscribe --pool 8a90f81d3c159143013c16fd0baa0cb9
Successfully attached a subscription for: Subscription name containing UTF–8 character \u2013
[root@jsefler-6 ~]# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Subscription name containing UTF–8 character \u2013
Provides:
SKU: utf8-subscription-sku
Contract: 1554692394
Account: 237306038
Serial Number: 8286469716699169978
Active: True
Quantity Used: 1
Service Level:
Service Type:
Starts: 01/06/2013
Ends: 01/22/2013
[root@jsefler-6 ~]# rct cat-cert /etc/pki/entitlement/8286469716699169978.pem
+-------------------------------------------+
Entitlement Certificate
+-------------------------------------------+
Certificate:
Path: /etc/pki/entitlement/8286469716699169978.pem
Version: 3.1
Serial: 8286469716699169978
Start Date: 2013-01-06 21:49:06+00:00
End Date: 2013-01-22 21:49:06+00:00
Subject:
CN: 8a90f81d3c159143013c171cf5470ce1
Order:
Name: Subscription name containing UTF–8 character \u2013
Number: 8a90f81d3c159143013c16fd06f50cb7
SKU: utf8-subscription-sku
Contract: 1554692394
Account: 237306038
Service Level:
Service Type:
Quantity: 20
Quantity Used: 1
Socket Limit:
RAM Limit:
Virt Limit:
Virt Only: False
Subscription:
Stacking ID:
Warning Period: 0
Provides Management: False
[root@jsefler-6 ~]# subscription-manager unsubscribe --serial 8286469716699169978
Successfully removed serial numbers:
8286469716699169978
[root@jsefler-6 ~]# subscription-manager subscribe --pool 8a90f81d3c159143013c16fd0baa0cb9
Successfully attached a subscription for: Subscription name containing UTF–8 character \u2013
[root@jsefler-6 ~]# subscription-manager unsubscribe --all
1 subscription removed from this system.
[root@jsefler-6 ~]# echo $?
0
VERIFIED: The subscription-manager calls above no longer throw "TypeError: [priority,] message string" to stderr when encountering an entitlement whose subscription name contains UTF8 characters
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-2013-0350.html |