| Summary: | refresh pools FAILS WITH: org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (rules#737)] | ||
|---|---|---|---|
| Product: | [Community] Candlepin | Reporter: | John Sefler <jsefler> |
| Component: | candlepin | Assignee: | Bryan Kearney <bkearney> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Eric Sammons <esammons> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 0.5 | CC: | cwelton, wpoteat |
| 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: | 2012-07-17 13:04:56 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 738066 | ||
|
Description
John Sefler
2012-03-27 20:08:43 UTC
commit 61923ea0b9406899e0da61e3cf1ebc799081d1f5 on master. Verify Version... [root@jsefler-f14-candlepin candlepin]# git show-ref | grep master 82216d9e5e38fe3d2d62d7d9860cc3d346832919 refs/heads/master 82216d9e5e38fe3d2d62d7d9860cc3d346832919 refs/remotes/origin/master Re-executing same scenario in comment 0 ... [root@jsefler-f14-candlepin candlepin]# curl --stderr /dev/null --insecure --user admin:admin --request POST --data '{"id":"9000","name":"Awesome OS for null sockets BITS","attributes":[{"name":"warning_period","value":"30"},{"name":"sockets"},{"name":"arch","value":"ALL"},{"name":"type","value":"SVC"},{"name":"variant","value":"server"},{"name":"version","value":"0.0"}],"multiplier":1}' --header 'accept: application/json' --header 'content-type: application/json' https://jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin/products | python -m simplejson/tool { "attributes": [ { "created": "2012-04-17T16:51:52.906+0000", "name": "variant", "updated": "2012-04-17T16:51:52.906+0000", "value": "server" }, { "created": "2012-04-17T16:51:52.906+0000", "name": "arch", "updated": "2012-04-17T16:51:52.906+0000", "value": "ALL" }, { "created": "2012-04-17T16:51:52.906+0000", "name": "type", "updated": "2012-04-17T16:51:52.906+0000", "value": "SVC" }, { "created": "2012-04-17T16:51:52.906+0000", "name": "warning_period", "updated": "2012-04-17T16:51:52.906+0000", "value": "30" }, { "created": "2012-04-17T16:51:52.906+0000", "name": "sockets", "updated": "2012-04-17T16:51:52.906+0000", "value": null }, { "created": "2012-04-17T16:51:52.906+0000", "name": "version", "updated": "2012-04-17T16:51:52.906+0000", "value": "0.0" } ], "created": "2012-04-17T16:51:52.905+0000", "dependentProductIds": [], "href": "/products/9000", "id": "9000", "multiplier": 1, "name": "Awesome OS for null sockets BITS", "productContent": [], "updated": "2012-04-17T16:51:52.905+0000" } [root@jsefler-f14-candlepin candlepin]# [root@jsefler-f14-candlepin candlepin]# [root@jsefler-f14-candlepin candlepin]# curl --stderr /dev/null --insecure --user admin:admin --request POST --data '{"id":"null-sockets","name":"Awesome OS for null sockets","attributes":[{"name":"warning_period","value":"30"},{"name":"sockets"},{"name":"arch","value":"ALL"},{"name":"type","value":"MKT"},{"name":"variant","value":"server"},{"name":"version","value":"0.0"}],"multiplier":1}' --header 'accept: application/json' --header 'content-type: application/json' https://jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin/products | python -m simplejson/tool { "attributes": [ { "created": "2012-04-17T16:53:34.023+0000", "name": "variant", "updated": "2012-04-17T16:53:34.023+0000", "value": "server" }, { "created": "2012-04-17T16:53:34.023+0000", "name": "arch", "updated": "2012-04-17T16:53:34.023+0000", "value": "ALL" }, { "created": "2012-04-17T16:53:34.023+0000", "name": "type", "updated": "2012-04-17T16:53:34.023+0000", "value": "MKT" }, { "created": "2012-04-17T16:53:34.023+0000", "name": "warning_period", "updated": "2012-04-17T16:53:34.023+0000", "value": "30" }, { "created": "2012-04-17T16:53:34.024+0000", "name": "sockets", "updated": "2012-04-17T16:53:34.024+0000", "value": null }, { "created": "2012-04-17T16:53:34.024+0000", "name": "version", "updated": "2012-04-17T16:53:34.024+0000", "value": "0.0" } ], "created": "2012-04-17T16:53:34.023+0000", "dependentProductIds": [], "href": "/products/null-sockets", "id": "null-sockets", "multiplier": 1, "name": "Awesome OS for null sockets", "productContent": [], "updated": "2012-04-17T16:53:34.023+0000" } [root@jsefler-f14-candlepin candlepin]# [root@jsefler-f14-candlepin candlepin]# [root@jsefler-f14-candlepin candlepin]# curl --stderr /dev/null --insecure --user admin:admin --request POST --data '{"product":{"id":"null-sockets"},"startDate":"Mon, 26 Mar 2012 15:13:20 -0400","accountNumber":705701520,"quantity":20,"endDate":"Wed, 31 Dec 2014 00:00:00 -0400","contractNumber":351264786,"providedProducts":[{"id":"9000"}]}' --header 'accept: application/json' --header 'content-type: application/json' https://jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin/owners/admin/subscriptions | python -m simplejson/tool { "accountNumber": "705701520", "certificate": null, "contractNumber": "351264786", "created": "2012-04-17T16:55:01.147+0000", "endDate": "2014-12-31T04:00:00.000+0000", "id": "8a90f81436c0c9c80136c13a8b1b0a9a", "modified": null, "owner": { "displayName": "Admin Owner", "href": "/owners/admin", "id": "8a90f81436c0c9c80136c0c9ebf80002", "key": "admin" }, "product": { "attributes": [ { "created": "2012-04-17T16:53:34.023+0000", "name": "variant", "updated": "2012-04-17T16:53:34.023+0000", "value": "server" }, { "created": "2012-04-17T16:53:34.023+0000", "name": "arch", "updated": "2012-04-17T16:53:34.023+0000", "value": "ALL" }, { "created": "2012-04-17T16:53:34.023+0000", "name": "type", "updated": "2012-04-17T16:53:34.023+0000", "value": "MKT" }, { "created": "2012-04-17T16:53:34.023+0000", "name": "warning_period", "updated": "2012-04-17T16:53:34.023+0000", "value": "30" }, { "created": "2012-04-17T16:53:34.024+0000", "name": "sockets", "updated": "2012-04-17T16:53:34.024+0000", "value": null }, { "created": "2012-04-17T16:53:34.024+0000", "name": "version", "updated": "2012-04-17T16:53:34.024+0000", "value": "0.0" } ], "created": "2012-04-17T16:53:34.023+0000", "dependentProductIds": [], "href": "/products/null-sockets", "id": "null-sockets", "multiplier": 1, "name": "Awesome OS for null sockets", "productContent": [], "updated": "2012-04-17T16:53:34.023+0000" }, "providedProducts": [ { "attributes": [ { "created": "2012-04-17T16:51:52.906+0000", "name": "variant", "updated": "2012-04-17T16:51:52.906+0000", "value": "server" }, { "created": "2012-04-17T16:51:52.906+0000", "name": "arch", "updated": "2012-04-17T16:51:52.906+0000", "value": "ALL" }, { "created": "2012-04-17T16:51:52.906+0000", "name": "type", "updated": "2012-04-17T16:51:52.906+0000", "value": "SVC" }, { "created": "2012-04-17T16:51:52.906+0000", "name": "warning_period", "updated": "2012-04-17T16:51:52.906+0000", "value": "30" }, { "created": "2012-04-17T16:51:52.906+0000", "name": "sockets", "updated": "2012-04-17T16:51:52.906+0000", "value": null }, { "created": "2012-04-17T16:51:52.906+0000", "name": "version", "updated": "2012-04-17T16:51:52.906+0000", "value": "0.0" } ], "created": "2012-04-17T16:51:52.905+0000", "dependentProductIds": [], "href": "/products/9000", "id": "9000", "multiplier": 1, "name": "Awesome OS for null sockets BITS", "productContent": [], "updated": "2012-04-17T16:51:52.905+0000" } ], "quantity": 20, "startDate": "2012-03-26T19:13:20.000+0000", "updated": "2012-04-17T16:55:01.147+0000", "upstreamPoolId": null } [root@jsefler-f14-candlepin candlepin]# [root@jsefler-f14-candlepin candlepin]# [root@jsefler-f14-candlepin candlepin]# curl --stderr /dev/null --insecure --user admin:admin --request PUT https://jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin/owners/admin/subscriptions | python -m simplejson/tool{ "created": "2012-04-17T16:55:29.747+0000", "finishTime": null, "group": "async group", "id": "refresh_pools_4ec900f2-1668-4080-85df-5248cd14f0ca", "principalName": "admin", "result": null, "startTime": null, "state": "CREATED", "statusPath": "/jobs/refresh_pools_4ec900f2-1668-4080-85df-5248cd14f0ca", "targetId": "admin", "targetType": "owner", "updated": "2012-04-17T16:55:29.747+0000" } [root@jsefler-f14-candlepin candlepin]# curl --stderr /dev/null --insecure --user admin:admin --request GET https://jsefler-f14-candlepin.usersys.redhat.com:8443/candlepin/jobs/refresh_pools_4ec900f2-1668-4080-85df-5248cd14f0ca | python -m simplejson/tool{ "created": "2012-04-17T16:55:29.747+0000", "finishTime": "2012-04-17T16:55:30.475+0000", "group": "async group", "id": "refresh_pools_4ec900f2-1668-4080-85df-5248cd14f0ca", "principalName": "admin", "result": "Pools refreshed for owner Admin Owner", "startTime": "2012-04-17T16:55:29.750+0000", "state": "FINISHED", "statusPath": "/jobs/refresh_pools_4ec900f2-1668-4080-85df-5248cd14f0ca", "targetId": "admin", "targetType": "owner", "updated": "2012-04-17T16:55:30.490+0000" } ^^^ VERIFIED - Refresh pools job successfully finished [root@jsefler-r63-server ~]# subscription-manager register --username testuser1 --password password --org admin --force The system with UUID a3f98d91-ac3a-4a18-b0e2-b5c7e7229913 has been unregistered The system has been registered with id: 1b044cb5-5a56-4894-a345-6215555e52ce [root@jsefler-r63-server ~]# subscription-manager list --avail | grep "null-sockets" -B1 -A8 Product Name: Awesome OS for null sockets Product Id: null-sockets Pool Id: 8a90f81436c0c9c80136c13afd910a9b Quantity: 20 Service Level: Service Type: Multi-Entitlement: No Expires: 12/31/2014 Machine Type: physical [root@jsefler-r63-server ~]# ^^^ Also VERIFIED the pool is successfully available. Marking all community bugs modified or beyong as closed. |