Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1608034

Summary: Hypervisor Update jobs can fail due to PersistentObjectException
Product: [Community] Candlepin (Migrated to Jira) Reporter: Alex Wood <awood>
Component: candlepinAssignee: Alex Wood <awood>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 2.5CC: awood, candlepin-bugs, katello-qa-list, khowell, redakkan, skallesh, sriley
Target Milestone: ---Keywords: Triaged
Target Release: 2.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: candlepin-2.5.6-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1600695 Environment:
Last Closed: 2018-09-21 15:39:53 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:
Embargoed:
Bug Depends On: 1600695    
Bug Blocks: 1608033    

Description Alex Wood 2018-07-24 19:16:33 UTC
+++ This bug was initially created as a clone of Bug #1600695 +++

Description of problem:
On the Customer Portal, some customers reporting that their hypervisor Last checkin date are older than expected. Digging into the cause, it appears virt-who checkins are fine, but on the Candlepin side, the job's status is "FAILED".

Digging more, the abbreviated cause of the jobs' failures:
org.quartz.JobExecutionException: javax.persistence.RollbackException: Error while committing the transaction
Caused by: javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist: org.candlepin.model.GuestId
Caused by: org.hibernate.PersistentObjectException: detached entity passed to persist: org.candlepin.model.GuestId

Version-Release number of selected component (if applicable):
Candlepin 2.3.8


How reproducible:
Only affects some orgs, but some of those orgs' hypervisor checkin jobs occasionally succeed.


Steps to Reproduce:
Details to follow. It involves submitting an asynchronous hypervisor checkin.


Actual results:
Hypervisor checkin fails.


Expected results:
Hypervisor checkin succeed.


Additional info:
Logs indicate this became an issue 2018-07-10 at 8:00pm EDT, which is when we went live with Candlepin 2.3.8

--- Additional comment from Shayne Riley on 2018-07-12 15:43 EDT ---



--- Additional comment from Shayne Riley on 2018-07-13 15:30:27 EDT ---

Candlepin in PROD is now rolled back to 2.2.3, the version we were on before, which doesn't have the issue.

So far, looks like the hypervisor checkin jobs are completing successfully. Hypervisors should start showing on Customer Portal with up-to-date information.