Bug 1217463

Summary: mock fails on gzip warning
Product: [Community] Copr Reporter: Jose A. Rivera <jarrpa>
Component: backendAssignee: Miroslav Suchý <msuchy>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecified   
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: 2015-04-30 12:46:22 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 Jose A. Rivera 2015-04-30 12:33:49 UTC
mock fails on a gzip warning, though it won't tell me what the warning is. Also I don't think it should necessarily fail... but I'm not sure. At least I shuld know what the warning was.

Build in question: https://copr.fedoraproject.org/coprs/jarrpa/Samba/build/89347/

Relevant log lines:

root.log:

DEBUG util.py:518:  child environment: None
DEBUG util.py:452:  Executing command: /usr/bin/gzip -9 /var/tmp/mockremote-uqxNV/build/results/epel-7-x86_64/libldb-1.1.20-1.el7rhs/root.log with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/sh', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} and shell True
DEBUG util.py:499:  Child return code was: 2


mockchain.log:

INFO: mock.py version 1.2.8 starting (python version = 2.6.6)...
Start: init plugins
INFO: selinux enabled
INFO: compress_logs: initialized
Finish: init plugins
Start: run
INFO: Start(/tmp/tmpz1NVtv/libldb-1.1.20-1.el7rhs.src.rpm)  Config(epel-7-x86_64)
Start: clean chroot
Finish: clean chroot
Start: chroot init
INFO: calling preinit hooks
Mock Version: 1.2.8
INFO: Mock Version: 1.2.8
Start: yum install
Finish: yum install
Finish: chroot init
INFO: Installed packages:
Start: build phase for libldb-1.1.20-1.el7rhs.src.rpm
Start: build setup for libldb-1.1.20-1.el7rhs.src.rpm
ERROR: Exception(/tmp/tmpz1NVtv/libldb-1.1.20-1.el7rhs.src.rpm) Config(epel-7-x86_64) 2 minutes 58 seconds
INFO: Results and/or logs in: /var/tmp/mockremote-uqxNV/build/results/epel-7-x86_64/libldb-1.1.20-1.el7rhs
INFO: Cleaning up build root ('cleanup_on_failure=True')
Start: clean chroot
Finish: clean chroot
ERROR: Command failed. See logs for output.
 # /usr/bin/gzip -9 /var/tmp/mockremote-uqxNV/build/results/epel-7-x86_64/libldb-1.1.20-1.el7rhs/root.log

Comment 1 Miroslav Suchý 2015-04-30 12:46:22 UTC
Yes, this problem today morning cause by mock getting into updates testing before we managed to alter config.
Now our config correctly use
 gzip -9 --force
so it overwrite previous logs.

In other words, please respin your job. It is fixed already.