Bug 1376180

Summary: package fails to build because CI-only patch is being picked up
Product: Red Hat OpenStack Reporter: melanie witt <mwitt>
Component: python-novaclientAssignee: melanie witt <mwitt>
Status: CLOSED CURRENTRELEASE QA Contact: nlevinki <nlevinki>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0 (Mitaka)CC: berrange, dasmith, eglynn, jruzicka, jschluet, kchamart, sbauza, sferdjao, sgordon, srevivo, vromanso
Target Milestone: ---Keywords: ZStream
Target Release: 9.0 (Mitaka)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-14 22:31:42 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:

Description melanie witt 2016-09-14 19:12:40 UTC
Description of problem:

When trying to build the python-novaclient package, it fails with an error:

...
Patch #1 (0001-Add-jenkins-config.yml-DROP-IN-RPM.patch):
+ echo 'Patch #1 (0001-Add-jenkins-config.yml-DROP-IN-RPM.patch):'
+ /usr/bin/cat /builddir/build/SOURCES/0001-Add-jenkins-config.yml-DROP-IN-RPM.patch
+ /usr/bin/patch -p1 --fuzz=0
can't find file to patch at input line 20
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 255cad32371a00796f6e7dc3ab940a780cf7641c Mon Sep 17 00:00:00 2001
|From: Michal Pryc <mpryc>
|Date: Tue, 10 May 2016 08:56:29 +0200
|Subject: [PATCH] Add jenkins-config.yml - DROP-IN-RPM
|
|Change-Id: Ia1cba62a660e1868d5512031444638d03797c793
|Reviewed-on: https://code.engineering.redhat.com/gerrit/74001
|Tested-by: RHOS Jenkins <apevec+rhosci>
|Reviewed-by: Kashyap Chamarthy <kchamart>
|---
| .gitreview         |  10 +++--
| jenkins-config.yml | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++++
| 2 files changed, 125 insertions(+), 4 deletions(-)
| create mode 100755 jenkins-config.yml
|
|diff --git a/.gitreview b/.gitreview
|index 6db3217..7575e7f 100644
|--- a/.gitreview
|+++ b/.gitreview
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored
patching file jenkins-config.yml
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.uC0gYD (%prep)
    Bad exit status from /var/tmp/rpm-tmp.uC0gYD (%prep)
Child returncode was: 1
EXCEPTION: Command failed. See logs for output.


How reproducible:

Always

Steps to Reproduce:
1. git checkout rhos-9.0-rhel-7
2. rdopkg update-patches
2. rhpkg srpm
3. rhpkg scratch-build --srpm <srpm built in step 2>


Actual results:

Failed scratch build.


Expected results:

Successful scratch build.