| Summary: | Async Bind by product ID Job throws ClassCastException | ||
|---|---|---|---|
| Product: | [Community] Candlepin | Reporter: | Michael Stead <mstead> |
| Component: | candlepin | Assignee: | Michael Stead <mstead> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 2.0 | CC: | bcourt, redakkan |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-09-24 14:16:25 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: | |
|
Description
Michael Stead
2016-03-23 19:12:08 UTC
This appears to have been broken for quite a while and hasn't been reported. I'm assuming this is because the feature is not being used. Fix Pending Review: master: https://github.com/candlepin/candlepin/pull/1155 retested with ; [root@F21-candlepin po]# git show | head -1commit 9a6c89d622d570e6c29e076790b88a95f83b7cdb [root@F21-candlepin po]# git branch * master [root@F21-candlepin po]# curl -k -u admin:admin -X POST "https://localhost:8443/candlepin/consumers/3004e709-669b-47e6-8910-310e0067327c/entitlements?product=awesomeos-server-basic&async=true" | python -mjson.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 447 0 447 0 0 2974 0 --:--:-- --:--:-- --:--:-- 2980 { "created": "2016-05-19T09:19:30+0000", "done": false, "finishTime": null, "group": "async group", "id": "bind_by_products_ed4c014e-fa7d-437f-b264-644e38dc6104", "ownerId": "admin", "principalName": "admin", "result": null, "resultData": null, "startTime": null, "state": "CREATED", "statusPath": "/jobs/bind_by_products_ed4c014e-fa7d-437f-b264-644e38dc6104", "targetId": "3004e709-669b-47e6-8910-310e0067327c", "targetType": "consumer", "updated": "2016-05-19T09:19:30+0000" } [root@F21-candlepin po]# curl -k -u admin:admin "https://localhost:8443/candlepin/jobs/bind_by_products_e891d0a9-2cbf-4685-aa3f-53addccbaaf6" | python -mjson.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 526 0 526 0 0 8222 0 --:--:-- --:--:-- --:--:-- 8349 { "created": "2016-05-19T09:17:51+0000", "done": true, "finishTime": "2016-05-19T09:17:52+0000", "group": "async group", "id": "bind_by_products_e891d0a9-2cbf-4685-aa3f-53addccbaaf6", "ownerId": "admin", "principalName": "admin", "result": "Entitlements created for owner", "resultData": "[cloaked]", "startTime": "2016-05-19T09:17:51+0000", "state": "FINISHED", "statusPath": "/jobs/bind_by_products_e891d0a9-2cbf-4685-aa3f-53addccbaaf6", "targetId": "3004e709-669b-47e6-8910-310e0067327c", "targetType": "consumer", "updated": "2016-05-19T09:17:52+0000" } ^^ State is now marked as "FINISHED" with the result "Entitlements created for owner", and no error was seen in the candlepin log. [root@F21-candlepin po]# tail -f /var/log/candlepin/candlepin.log 2016-05-19 14:49:34,444 [thread=http-bio-8443-exec-1] [req=d263adf1-818d-42cf-8e90-01225d75631d, org=] INFO org.candlepin.common.filter.LoggingFilter - Request: verb=GET, uri=/candlepin/ 2016-05-19 14:49:34,446 [thread=http-bio-8443-exec-1] [req=d263adf1-818d-42cf-8e90-01225d75631d, org=] INFO org.candlepin.common.filter.LoggingFilter - Response: status=200, content-type="application/json", time=2 2016-05-19 14:49:34,460 [thread=http-bio-8443-exec-10] [req=3dd9dddf-200d-4568-9209-5980c7c22b76, org=] INFO org.candlepin.common.filter.LoggingFilter - Request: verb=GET, uri=/candlepin/consumers/3004e709-669b-47e6-8910-310e0067327c/content_overrides 2016-05-19 14:49:34,517 [thread=http-bio-8443-exec-10] [req=3dd9dddf-200d-4568-9209-5980c7c22b76, org=] INFO org.candlepin.common.filter.LoggingFilter - Response: status=200, content-type="application/json", time=57 2016-05-19 14:49:34,543 [thread=http-bio-8443-exec-3] [req=fac2f3e0-6db9-4e7c-ba38-655f94fca4dc, org=] INFO org.candlepin.common.filter.LoggingFilter - Request: verb=GET, uri=/candlepin/consumers/3004e709-669b-47e6-8910-310e0067327c 2016-05-19 14:49:34,958 [thread=http-bio-8443-exec-3] [req=fac2f3e0-6db9-4e7c-ba38-655f94fca4dc, org=admin] INFO org.candlepin.common.filter.LoggingFilter - Response: status=200, content-type="application/json", time=415 2016-05-19 14:49:34,975 [thread=http-bio-8443-exec-11] [req=92c03d60-0b48-48b8-b267-03aec31ee328, org=] INFO org.candlepin.common.filter.LoggingFilter - Request: verb=GET, uri=/candlepin/consumers/3004e709-669b-47e6-8910-310e0067327c/content_overrides 2016-05-19 14:49:35,022 [thread=http-bio-8443-exec-11] [req=92c03d60-0b48-48b8-b267-03aec31ee328, org=] INFO org.candlepin.common.filter.LoggingFilter - Response: status=200, content-type="application/json", time=47 2016-05-19 14:49:41,523 [thread=http-bio-8443-exec-5] [req=7a846a41-c66d-4392-a0c0-f8ebcde187fe, org=] INFO org.candlepin.common.filter.LoggingFilter - Request: verb=GET, uri=/candlepin/jobs/bind_by_products_e891d0a9-2cbf-4685-aa3f-53addccbaaf6 2016-05-19 14:49:41,526 [thread=http-bio-8443-exec-5] [req=7a846a41-c66d-4392-a0c0-f8ebcde187fe, org=] INFO org.candlepin.common.filter.LoggingFilter - Response: status=200, content-type="application/json", time=3 Marking as Verified!!! |