| Summary: | NPE against a fresh deploy of candlepin onpremise followed by a register --autosubscribe | ||
|---|---|---|---|
| Product: | [Community] Candlepin | Reporter: | John Sefler <jsefler> |
| Component: | candlepin | Assignee: | Bryan Kearney <bkearney> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | John Sefler <jsefler> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 0.5 | CC: | jharris, jmolet, spandey |
| 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-05-30 20:43:44 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: | 568421 | ||
|
Description
John Sefler
2011-02-22 16:28:42 UTC
[root@jsefler-f14-candlepin proxy]# git show-ref master a884304ce0cb9f9a399961619ba41c6bd8c05c37 refs/heads/master 2cc34e37691e9e06aad2ad3da394dabc24186ca7 refs/remotes/origin/master Not sure what changed between master git hashes a884304ce0cb9f9a399961619ba41c6bd8c05c37 and bb30cb4b09b6e510f633c9a7a60581c4ddf96272, but the NullPointerException seems to have disappeared. 3. register with autosubscribe is wororking again [root@jsefler-onprem03 ~]# subscription-manager register --username=testuser1 --password=password --autosubscribe 9a63ba95-4f0f-47da-b645-69cc3915e2bd jsefler-onprem03.usersys.redhat.com Installed Products: Multiplier Product Bits - Not Subscribed Load Balancing Bits - Subscribed Awesome OS Server Bits - Subscribed Management Bits - Subscribed Awesome OS Scalable Filesystem Bits - Subscribed Shared Storage Bits - Subscribed Large File Support Bits - Subscribed Awesome OS Workstation Bits - Subscribed Awesome OS Premium Architecture Bits - Not Subscribed Awesome OS for S390X Bits - Not Subscribed Awesome OS Developer Basic - Not Subscribed Clustering Bits - Subscribed Awesome OS Developer Bits - Not Subscribed Awesome OS Modifier Bits - Subscribed Leaving bug state as NEW for dev to look at the stack trace and see if there's something to be fixed. Otherwise this is currently working for me. I'm not exactly sure why this was happening in the first place, but I added a quick null check to make sure that auto-subscribing to a non-existent product doesn't blow up like that. This will just silently skip those products though, so you may not have all of the subscriptions that you want. This might be due to the test data and the generated certs getting out of sync. Commit: 8bc35af0addf736ad5366fbad92f188b92701271 Verifying Version.... [root@jsefler-f14-candlepin candlepin]# git show-ref 0.2 3a300aa9e5724df9602995b5631be1e941b69d2d refs/heads/0.2 9c13d6bf6d83070bbc78638f6ca3bc1dc5267977 refs/remotes/origin/0.2 [root@jsefler-f14-candlepin candlepin]# git log | grep 8bc35af0addf736ad5366fbad92f188b92701271 commit 8bc35af0addf736ad5366fbad92f188b92701271 [root@jsefler-onprem03 bug629670]# subscription-manager register --username=testuser1 --password=password --autosubscribe ca79f558-8c9c-438a-892a-029102c02a44 jsefler-onprem03.usersys.redhat.com Installed Products: Awesome OS Modifier Bits - Subscribed Awesome OS Scalable Filesystem Bits - Subscribed Awesome OS Server Bits - Subscribed Large File Support Bits - Subscribed Management Bits - Subscribed Shared Storage Bits - Subscribed Clustering Bits - Subscribed Load Balancing Bits - Subscribed Awesome OS Workstation Bits - Subscribed Multiplier Product Bits - Not Subscribed Awesome OS Premium Architecture Bits - Not Subscribed Awesome OS for S390X Bits - Not Subscribed Awesome OS Developer Basic - Not Subscribed Awesome OS Developer Bits - Not Subscribed [root@jsefler-f14-candlepin candlepin]# tail -f /var/log/tomcat6/catalina.out Mar 10 16:34:56 [http-8443-1] INFO org.fedoraproject.candlepin.policy.js.entitlement.EntitlementRules - Selecting best entitlement pool for product: [37080, 100000000000000, 37068, 1, 37065, 37090, 1144, 37069, 37060, 27060, 37070, 917571, 37062, 37067] Mar 10 16:34:56 [http-8443-1] INFO org.fedoraproject.candlepin.policy.js.entitlement.EntitlementRules - Excuted javascript rule: select_pool_global NPE was not thrown during the re-create steps. I'm not confident that this really tested what jharris put in the fix, but the original problem did not happen again. Moving to VERIFIED. Group move of VERIFIED Candlepin component bugs to RELEASE_PENDING |