Bug 955142
Summary: | Core limit info is not added to the entitlement certs | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Shwetha Kallesh <skallesh> |
Component: | subscription-manager | Assignee: | Michael Stead <mstead> |
Status: | CLOSED ERRATA | QA Contact: | IDM QE LIST <seceng-idm-qe-list> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 5.10 | CC: | bkearney, fsharath, jesusr, jsefler, mstead, redakkan, skallesh, spandey |
Target Milestone: | beta | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
No description necessary
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-09-30 23:06:44 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: | 840995, 920191 |
Description
Shwetha Kallesh
2013-04-22 13:23:30 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release. Fix committed to master branch. Commit: 4272b72cce52cbbc161d17cb543a4615ff127ebc Available in subscription-manager-1.8.6-1 NOTE: Requires python-rhsm-1.8.10-1+ Version: # subscription-manager version server type: This system is currently not registered. subscription management server: Unknown subscription-manager: 1.8.7-1.el5 python-rhsm: 1.8.10-1.el5 (BREW Build) Steps: # subscription-manager register Username: testuser1 Password: Organization: admin The system has been registered with ID: febb86d6-3a8c-43bf-8a02-15606bd287e8 # subscription-manager list --available | grep -i -A3 -B4 core +-------------------------------------------+ Available Subscriptions +-------------------------------------------+ Subscription Name: Stackable Cores Package (8 cores) SKU: cores-8-stackable Pool ID: 8a90f8333ec621ae013ec622ed6303f8 Quantity: 10 Service Level: -- Multi-Entitlement: Yes Ends: 05/20/2014 System Type: Physical Subscription Name: Cores Package (26 cores) SKU: cores-26 Pool ID: 8a90f8333ec621ae013ec622f2720540 Quantity: 5 Service Level: -- Multi-Entitlement: No Ends: 05/20/2014 System Type: Physical ... ... ... ... # subscription-manager subscribe --pool 8a90f8333ec621ae013ec622f2720540 Successfully attached a subscription for: Cores Package (26 cores) # ls /etc/pki/entitlement 7354959509058079989-key.pem 7354959509058079989.pem # rct cat-cert 7354959509058079989.pem Traceback (most recent call last): File "/usr/bin/rct", line 44, in ? sys.exit(abs(main() or 0)) File "/usr/bin/rct", line 39, in main return RctCLI().main() File "/usr/share/rhsm/subscription_manager/cli.py", line 160, in main return cmd.main() File "/usr/share/rhsm/rct/commands.py", line 39, in main return_code = self._do_command() File "/usr/share/rhsm/rct/cert_commands.py", line 73, in _do_command skip_products=self.options.no_products) File "/usr/share/rhsm/rct/printing.py", line 210, in printc printer.printc(cert) File "/usr/share/rhsm/rct/printing.py", line 113, in printc print self.cert_to_str(cert) File "/usr/share/rhsm/rct/printing.py", line 171, in cert_to_str s.append("\n%s" % content_printer.as_str(c)) File "/usr/share/rhsm/rct/printing.py", line 90, in as_str s.append("\t%s: %s" % (_("Arches"), ", ".join(content.arches))) AttributeError: 'Content' object has no attribute 'arches' Moving back to NEW This bug was fixed correctly, and the last error reported has nothing to do with cores. There was another change made in subscription-manager-1.8.7-1 that required a new version of python-rhsm but the required version was not updated in subscription-manager.spec. This has now been addressed in subscription-manager-1.8.8-1. To retest with subscription-manager-1.8.7-1, python-rhsm-1.8.11-1+ is required which provides content.arches. Version:
# subscription-manager clean
All local data removed
# subscription-manager register
Username: testuser1
Password:
Organization: admin
The system has been registered with ID: 800445fa-3fa6-4b41-8021-11f4313993e3
# subscription-manager list --available | grep -i core -A4
Subscription Name: RAM/Cores Package (8GB, 4 cores)
SKU: ram-cores-8gb-4cores
Pool ID: 8a90f8333f136060013f1362a7650538
Quantity: 4
Service Level:
Service Type:
--
Subscription Name: RAM/Cores Package (8GB, 4 cores)
SKU: ram-cores-8gb-4cores
Pool ID: 8a90f8333f136060013f1362a74a052f
Quantity: 10
Service Level:
Service Type:
....
....
....
....
# subscription-manager subscribe --pool 8a90f8333f136060013f1362a74a052f
Successfully attached a subscription for: RAM/Cores Package (8GB, 4 cores)
# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: RAM/Cores Package (8GB, 4 cores)
Provides: RAM Limiting Product
SKU: ram-cores-8gb-4cores
Contract: 187
Account: 12331131231
Serial: 813510301470028853
Pool ID: 8a90f8333f136060013f1362a74a052f
Active: True
Quantity Used: 1
Service Level:
Service Type:
Status Details:
Starts: 06/04/2013
Ends: 06/04/2014
# rct cat-cert /etc/pki/entitlement/813510301470028853.pem
+-------------------------------------------+
Entitlement Certificate
+-------------------------------------------+
Certificate:
Path: 813510301470028853.pem
Version: 3.2
Serial: 813510301470028853
Start Date: 2013-06-05 00:00:00+00:00
End Date: 2014-06-05 00:00:00+00:00
Pool ID: 8a90f8333f136060013f1362a74a052f
Subject:
CN: 8a90f8333f136060013f16741ffb292c
Issuer:
C: US
CN: fsharath-candlepin.usersys.redhat.com
L: Raleigh
Product:
ID: 801
Name: RAM Limiting Product
Version: 1.0
Arch: x86_64
Tags:
Order:
Name: RAM/Cores Package (8GB, 4 cores)
Number: order-8675309
SKU: ram-cores-8gb-4cores
Contract: 187
Account: 12331131231
Service Level:
Service Type:
Quantity: 10
Quantity Used: 1
Socket Limit:
RAM Limit: 8
>> Core Limit: 4 <<<<<<<<<<<< VERIFIED
Virt Limit:
Virt Only: False
Subscription:
Stacking ID:
Warning Period: 0
Provides Management: False
Content:
Type: yum
Name: always-enabled-content
Label: always-enabled-content
Vendor: test-vendor
URL: /foo/path/always/$releasever
GPG: /foo/path/always/gpg
Enabled: True
Expires: 200
Required Tags:
Arches: x86_64
Content:
Type: yum
Name: awesomeos
Label: awesomeos
Vendor: Red Hat
URL: /path/to/$basearch/$releasever/awesomeos
GPG: /path/to/awesomeos/gpg/
Enabled: True
Expires: 3600
Required Tags:
Arches: x86_64
....
....
....
....
....
Core Limit info present
VERIFIED
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-1332.html |