Bug 673677
Summary: | RFE: RESTful api call to refresh pools for all owners | ||
---|---|---|---|
Product: | [Community] Candlepin | Reporter: | John Sefler <jsefler> |
Component: | candlepin | Assignee: | Bryan Kearney <bkearney> |
Status: | CLOSED WONTFIX | QA Contact: | John Sefler <jsefler> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 0.5 | CC: | acarter, bkearney, cduryee |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Solaris | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-07-18 19:09:23 UTC | Type: | --- |
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: | 682238 |
Description
John Sefler
2011-01-29 15:30:16 UTC
Here's another user whose pools were created during prior deployment of candlepin and is getting the same errors.... [root@jsefler-betaqa-1 ~]# subscription-manager register --username=jsefler-qabetauser-5 --password=redhat 9acb48ac-86a9-4f9f-9082-2939e6524495 jsefler-betaqa-1.usersys.redhat.com [root@jsefler-betaqa-1 ~]# subscription-manager list --available +-------------------------------------------+ Available Subscriptions +-------------------------------------------+ ProductName: Red Hat Enterprise Linux Server Entitlement Beta for Certified Engineers and System Administrators - NOT FOR SALE ProductId: RH3036913 PoolId: 8a9b90882da9ac9f012dc48fa47b297e Quantity: 10 Expires: 2011-07-19 [root@jsefler-betaqa-1 ~]# subscription-manager subscribe --pool 8a9b90882da9ac9f012dc48fa47b297e Runtime Error java.lang.IllegalArgumentException: Entitlement #8a9b90882dce731d012dd2634c8304d9 's endDt[2011-07-19 23:59:59.0] must equal Subscription #1978858 's endDt[Tue Jul 19 00:00:00 EDT 2011] at com.google.common.base.Preconditions.checkArgument:111 Because this error does NOT happen with a brand new user with new pools, I suspect that a simple refresh pools is the fix. The problem with a simple refresh pools is that the burden is currently on the user, and it's not simple! He has no idea that he needs to refresh pools AND he has no idea how to refresh pools. There is no Kingpin, nor subscription-manager client tooling to click a refresh my pools button. It seems to me that the re-deployment of a newer candlepin version in the QA/Stage/Prod environment must include an automated refresh pool of ALL the existing subscriptions in the candlepin database. Or something to that effect. John, Justin and I were able to reproduce this issue in QA, using jsefler-qabetaperson-1 (owner ID: 6238647). We refreshed the pools for that user, and the issue went away, which proves your hypothesis. We did some basic functionality tests around the subscription, and everything looks correct. The issue is related to changes in the IT subscription adapter, I would say that the onus is on IT to ensure that pools get refreshed if they make these types of alterations to the adapter. Let me know if you are okay with this, and we can reassign to msechrest. moving back to ASSIGNED and changed Component to IT-Candlepin After discussing the causes for this runtime error with msechrest, we both believe that candlepin is working as designed and that this error is really the result of a deficiency in IT's workflow process for rolling out newer versions of candlepin in a Prod/Stage/QA environment: namely the need to refresh all owner pools. Unfortunately there is currently no single RESTful api call to refresh pools for all owners in candlepin. Currently, IT would have to make a loop of multiple api calls to candlepin to refresh pools for each owner. To simplify this process, we are going to flip this bugzilla back onto candlepin as a backlog request for enhancement. As an IT administrator for candlepin, I would like a RESTful api call to refresh pools for all owners. moving back to NEW and changed Component to Candlepin Amanda.. Do you have needs for this? If not I agree with Bowes and plan to close this as a WONTFIX. |