Bug 610182
Summary: | Timeout on initial "refresh" of pool | ||
---|---|---|---|
Product: | [Community] Candlepin | Reporter: | Mark Sechrest <msechres> |
Component: | candlepin | Assignee: | Bryan Kearney <bkearney> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 0.5 | CC: | bkearney, kbanerje |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-12-10 15:36:59 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: |
Description
Mark Sechrest
2010-07-01 17:39:13 UTC
This should be solved after we have our async process framework in place, schedule for sprint 13 I think Bryan wanted some tuning to be done, prior to making this an async process Here's a sync that seems to always fail: curl -u calfonso:redhat -k --header "Content-type: application/json" --header "Accept: application/json" --request PUT https://cert-fte-candlepin.devlab.redhat.com:443/candlepin/owners/4596037/subscriptions this is now an async process, and should no longer time out. Verified using following setup candlepin : candlepin1 [root@rhel6-alpha product]# curl -u candlepin_system_admin:admin -k --header "Content-type: application/json" --header "Accept: application/json" --request PUT https://candlepin1.devlab.phx1.redhat.com:443/candlepin/owners/4969868/subscriptions {"id":"refresh_pools_04ee5a0c-d32b-41a2-a838-60c0d0cf63ee","state":"CREATED","startTime":null,"result":null,"finishTime":null,"statusPath":"/jobs/refresh_pools_04ee5a0c-d32b-41a2-a838-60c0d0cf63ee","updated":"2010-10-18T15:45:46.953+0000","created":"2010-10-18T15:45:46.953+0000"}[root@rhel6-alpha product]# Working fine Moving defect status from ON_QA to Verified VERIFIED AGAINST OWNER 1070642 (owner of user account test1) ON CANDLEPIN1 HOSTED ENVIRONMENT: Note that due to the design change (making pool refreshes an async process), the initial request to refresh a pool returns a JSON object with an initial state of CREATED. I then query the jobDetail looking at the state which eventually changes to "FINISHED". Hence the design change to make refresh pools an async request avoids the request timeouts observed in the initial problem description. [root@jsefler-itclient01 ~]# curl -k -u candlepin_system_admin:admin --request PUT https://candlepin1.devlab.phx1.redhat.com:443/candlepin/owners/1070642/subscriptions {"id":"refresh_pools_156a1535-b37d-42f8-bf2a-eabd48a1c369","state":"CREATED","startTime":null,"result":null,"finishTime":null,"statusPath":"/jobs/refresh_pools_156a1535-b37d-42f8-bf2a-eabd48a1c369","updated":"2010-10-18T15:54:18.468+0000","created":"2010-10-18T15:54:18.468+0000"}[root@jsefler-itclient01 ~]# [root@jsefler-itclient01 ~]# curl -k -u candlepin_system_admin:admin --request GET https://candlepin1.devlab.phx1.redhat.com:443/candlepin/jobs/refresh_pools_156a1535-b37d-42f8-bf2a-eabd48a1c369 {"id":"refresh_pools_156a1535-b37d-42f8-bf2a-eabd48a1c369","state":"CREATED","startTime":"2010-10-18T15:54:18.000+0000","result":null,"finishTime":"2010-10-18T15:54:18.000+0000","statusPath":"/jobs/refresh_pools_156a1535-b37d-42f8-bf2a-eabd48a1c369","updated":"2010-10-18T15:54:18.000+0000","created":"2010-10-18T15:54:18.000+0000"}[root@jsefler-itclient01 ~]# curl -k -u candlepin_system_admin:admin --request GET https://candlepin1.refresh_pools_156a1535-b37d-42f8-bf2a-eabd48a1c369 {"id":"refresh_pools_156a1535-b37d-42f8-bf2a-eabd48a1c369","state":"CREATED","startTime":"2010-10-18T15:54:18.000+0000","result":null,"finishTime":"2010-10-18T15:54:18.000+0000","statusPath":"/jobs/refresh_pools_156a1535-b37d-42f8-bf2a-eabd48a1c369","updated":"2010-10-18T15:54:18.000+0000","created":"2010-10-18T15:54:18.000+0000"}[root@jsefler-itclient01 ~]# curl -k -u candlepin_system_admin:admin --request GET https://candlepin1.refresh_pools_156a1535-b37d-42f8-bf2a-eabd48a1c369 {"id":"refresh_pools_156a1535-b37d-42f8-bf2a-eabd48a1c369","state":"CREATED","startTime":"2010-10-18T15:54:18.000+0000","result":null,"finishTime":"2010-10-18T15:54:18.000+0000","statusPath":"/jobs/refresh_pools_156a1535-b37d-42f8-bf2a-eabd48a1c369","updated":"2010-10-18T15:54:18.000+0000","created":"2010-10-18T15:54:18.000+0000"}[root@jsefler-itclient01 ~]# curl -k -u candlepin_system_admin:admin --request GET https://candlepin1.refresh_pools_156a1535-b37d-42f8-bf2a-eabd48a1c369 {"id":"refresh_pools_156a1535-b37d-42f8-bf2a-eabd48a1c369","state":"FINISHED","startTime":"2010-10-18T15:57:26.000+0000","result":"Pools refreshed for owner 1070642","finishTime":"2010-10-18T15:57:28.000+0000","statusPath":"/jobs/refresh_pools_156a1535-b37d-42f8-bf2a-eabd48a1c369","updated":"2010-10-18T15:57:28.000+0000","created":"2010-10-18T15:54:18.000+0000"}[root@jsefler-itclient01 ~]# MOVING TO VERIFIED Group move of VERIFIED Candlepin component bugs to RELEASE_PENDING I am closing out some old bugs from 2015. So, closing these out as current release. If this is still an issue for me, please reach out. |