Bug 874624
| Summary: | Contract Numbers are not showing in contract selection dialog | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Community] Candlepin | Reporter: | J.C. Molet <jmolet> | ||||
| Component: | candlepin | Assignee: | candlepin-bugs | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 0.9 | CC: | acarter, bkearney, dcrissman, dgoodwin, fsharath, jsefler | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-09-29 19:05:32 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: | 863175 | ||||||
| Attachments: |
|
||||||
|
Description
J.C. Molet
2012-11-08 14:44:16 UTC
Created attachment 640853 [details]
missing contract numbers
screenshot!
Doesn't look like this is client side. I can reproduce but: curl -u stage_test_12:redhat -k https://subscription.rhn.stage.redhat.com/subscription/pools/8a99f9843a7a3a9d013a8c036c383788 | json.py | less Which means the server is not populating this somehow. And yet if I subscribe, the resulting entitlement cert has an appropriate contract number.... [root@rhel6-dev ~]# subscription-manager subscribe --pool=8a99f9843a7a3a9d013a8c036c383788 [root@rhel6-dev ~]# subscription-manager list --consumed +-------------------------------------------+ Consumed Subscriptions +-------------------------------------------+ Subscription Name: Red Hat Enterprise Linux Server, Premium (8 sockets) (Up to 4 guests) Provides: Red Hat Enterprise Linux Server Red Hat Beta SKU: RH0103708 Contract: 10011052 Account: 5206751 Serial Number: 5066229454596988618 Active: True Quantity Used: 1 Service Level: Premium Service Type: L1-L3 Starts: 12/31/2011 Ends: 12/31/2012 This indicates that the candlepin pool has no subscription ID, but the backing subscription does. (now) Talking to Amanda it seems there is a known issue where some subscriptions did not have contract IDs which is now fixed. Looking at the code I don't think this triggers as a change during refresh pools. So this is a server side but, not client side, and we need to fix refresh pools to detect a changing contract ID as a change and update the pool in CP. Ok we're boxed in here again by javascript limitations. The javascript rules are responsible for detecting changes to pools and updating them, see Pool namespace method updatePools. The correct fix for this would be to update PoolUpdate to add a new field for contract changed, or perhaps make one of the existing fields more generic so we don't need one per change. However we cannot do this because the rules will then go into a manifest, and out to older candlepins, which do not have this change to PoolUpdate and the rules will break. However since this is definitely a server side bug and we're focusing on client right now, re-aligning this to Candlepin and setting back to NEW for now. I believe this is a dupe of 949684. I am moving this to ON_QA to be verified.
commit 0ce7d02f7f1dc3df90f3cf4f583cb4fdda6c6dd7
Author: Bryan Kearney <bkearney>
Date: Mon Apr 15 10:24:14 2013 -0400
949684: Update the contract information on pools when subcriptions changed.
Automation exists for this bug
$ git show
commit 7d75a30e231e410e2f12a0b3a95dbdf526f1e7bc
Author: Sharath Nagaraj Dwaral <fsharath>
Date: Fri Oct 11 17:20:37 2013 -0400
Automation for Bug 874624 - Contract Numbers are not showing in contract selection dialog
Test path: /src/rhsm/gui/tests/subscribe_tests.clj
Test name: check_contract_number
This test passes for the below version:
# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.29-1
subscription-manager: 1.9.9-1.el6
python-rhsm: 1.9.6-1.el6
VERIFIED
These bugs were fixed during 7.0 but not moved to CLOSED. They have been delivered |