Bug 1133453

Summary: Sometimes virt-who failed to communication with subscription manager
Product: Red Hat Satellite Reporter: Liushihui <shihliu>
Component: CandlepinAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED UPSTREAM QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: UnspecifiedCC: csnyder, dgoodwin, liliu, sgao, shihliu
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-01 21:52:32 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:    
Bug Blocks: 1125249    
Attachments:
Description Flags
rhsm.log
none
rhsm.log-20141124
none
rhsm.log-20141124new
none
candlepin.log
none
candlepin-error.log
none
katello-debug-log none

Description Liushihui 2014-08-25 07:56:31 UTC
Description of problem:
After system has been registered to SAM server, Though virt-who run normally, it will pop up some error message during communicate with subscription manager occasionally.

Version-Release number of selected component (if applicable):
subscription-manager-1.12.12-1.el6.x86_64
python-rhsm-1.12.5-1.el6.x86_64
virt-who-0.10-6.el6.noarch

How reproducible:
Always

Steps to Reproduce:
1. Register system to SAM server and make sure virt-who run at libvirtd mode normally
virt-who configuration:
VIRTWHO_BACKGROUND=1
VIRTWHO_DEBUG=1
VIRTWHO_INTERVAL=5
2. Check the virt-who status
[root@dhcp-128-110 libvirt-test-API]# service virt-who status
virt-who (pid  32168) is running...
3. Check the virt-who's log in the /var/log/rhsm/rhsm.log

Actual results:
virt-who run normally, But sometimes it will generate some error log when communicate with subscription-manager as the following, please see detail in the attachment.
"RestlibException: Runtime Error Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched:81" 

Expected results:
virt-who should communicate with subscription-manager normally when it's running .it shouldn't pop up any error messages in the log file.


Additional info:

Comment 1 Liushihui 2014-08-25 07:57:29 UTC
Created attachment 930358 [details]
rhsm.log

Comment 3 Bryan Kearney 2014-09-29 17:24:51 UTC
Moving bugs to 6.7

Comment 4 Bryan Kearney 2014-11-03 19:48:27 UTC
Moving bugs to 6.7

Comment 5 Bryan Kearney 2014-11-03 19:49:23 UTC
Moving bugs to 6.7

Comment 6 Bryan Kearney 2014-11-03 19:54:13 UTC
Moving bugs to 6.7

Comment 7 Devan Goodwin 2014-11-21 15:15:34 UTC
This is a problem server side in candlepin, moving components.

Liushihui if you could provide information about the version of SAM being used, and if possible the candlepin.log or a katello-debug tar.gz from the SAM server after this has happened, that would be ideal. With just this one line we're probably not going to be able to tell exactly what happened server side, though it looks like an issue that is likely already fixed in candlepin master.

Comment 8 RHEL Program Management 2014-11-21 15:43:44 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 10 Liushihui 2014-11-24 08:01:39 UTC
Do the same test with latest rhel6.6 against SAM-1.4.1-RHEL-6-20141113.0, it still occurred on this build,please see the rhsm.log, candlepin.log and katello-debug tar.gz in the attachment.

Version-Release number of selected component (if applicable):
subscription-manager-1.12.14-7.el6.x86_64
python-rhsm-1.12.5-2.el6.x86_64
virt-who-0.10-8.el6.noarch
katello-headpin-1.4.3.28-1.el6sam_splice.noarch
candlepin-0.9.6.5-1.el6sam.noarch

Comment 11 Liushihui 2014-11-24 08:03:12 UTC
Created attachment 960592 [details]
rhsm.log-20141124

Comment 12 Liushihui 2014-11-24 08:08:12 UTC
Please ignore the rhsm.log-20141124, it should be rhsm.log-20141124new

Comment 13 Liushihui 2014-11-24 08:08:54 UTC
Created attachment 960594 [details]
rhsm.log-20141124new

Comment 14 Liushihui 2014-11-24 08:10:17 UTC
Created attachment 960595 [details]
candlepin.log

Comment 15 Liushihui 2014-11-24 08:11:40 UTC
Created attachment 960596 [details]
candlepin-error.log

Comment 16 Liushihui 2014-11-24 08:28:09 UTC
Created attachment 960604 [details]
katello-debug-log