Bug 1048776

Summary: /virt/install: Duplicated data in console logs on RHEL5 xen guests
Product: [Retired] Beaker Reporter: Jan Stancek <jstancek>
Component: testsAssignee: Nick Coghlan <ncoghlan>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.14CC: aigao, asaha, bpeck, dcallagh, jburke, llim, pbunyan, qwan, rmancy, xjia
Target Milestone: 0.15.3   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-03 05:03:09 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:

Description Jan Stancek 2014-01-06 10:35:56 UTC
Description of problem:
Console logs on RHEL5 xen guest are duplicated after each reboot.

Problem is that when xen guest restarts, "virsh console" process on host will end. zrhel5_write_consolelogs.py will restart it, but output is getting appened to console log file. "logguestconsoles.c" will notice this via inotify IN_CLOSE_WRITE and resets file offset to begining, which is wrong, because file wasn't truncated. As result same data will be uploaded again.

Proposed patch: http://gerrit.beaker-project.org/#/c/2630/

Version-Release number of selected component (if applicable):
distribution-distribution-virt-install-4.0-79

How reproducible:
100%

Steps to Reproduce:
1. install RHEL5 xen guest
2. make couple reboots

Actual results:
data in console log is duplicated
for example, following message is present in logs multiple times:
12/13/13 18:55:14  JobID:561449 Test:/distribution/install Response:1

Expected results:
data in console log is not duplicated after reboot

Additional info:
https://lists.fedorahosted.org/pipermail/beaker-devel/2013-December/000917.html

Comment 7 Nick Coghlan 2014-02-03 05:03:09 UTC
This change has now been published as http://beaker-project.org/tasks/distribution-distribution-virt-install-4.0-80.noarch.rpm