build-srpms unable to edit a variety of packages

Bug #1792001 reported by Tao Liu
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Abraham Arce

Bug Description

Brief Description
-----------------
When I used the build-srpms --edit command to edit the puppet-nova package I encountered the following errors.

-bash-4.2$ build-srpms --edit puppet-nova
build-srpms-parallel --edit puppet-nova
MAX_WORKERS=8
CLEAN_FLAG=0
11:40:45 build-srpms-parallel --edit puppet-nova
11:40:45 make: puppet-nova
11:40:51 b2: found target 'puppet-nova' in 'puppet-nova-11.4.0-1.el7.src.rpm'
11:40:51 b2: ===== Build SRPM for 'puppet-nova' =====
11:40:51 b2: PKG_BASE=/localdisk/designer/tliu/starlingx-0/cgcs-root/stx/stx-integ/config/puppet-modules/openstack/puppet-nova-11.4.0
11:40:51 b2: BUILD_DIR=puppet-nova/rpmbuild
11:40:51 b2: SRPM_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/SRPMS
11:40:51 b2: Wrote: /localdisk/loadbuild/tliu/starlingx-0/std/rpmbuild/SOURCES/puppet-nova/srpm_input.md5
11:40:51 b2: Rebuild required due to missing directory: '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/SRPMS'
11:40:51 b2: srpm + patches = classify /localdisk/designer/tliu/starlingx-0/cgcs-root/stx/stx-integ/config/puppet-modules/openstack/puppet-nova-11.4.0
11:40:51 b2: OK to edit /localdisk/designer/tliu/starlingx-0/cgcs-root/stx/stx-integ/config/puppet-modules/openstack/puppet-nova-11.4.0
11:40:51 b2: srpm_extract_to_git '/localdisk/designer/tliu/starlingx-0/cgcs-root/cgcs-centos-repo/Source/puppet-nova-11.4.0-1.el7.src.rpm' '/localdisk/designer/tliu/starlingx-0/cgcs-root/stx/stx-integ/config/puppet-modules/openstack/puppet-nova-11.4.0' '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work' 'puppet-nova/rpmbuild' 'puppet-nova-11.4.0-1.el7' '0' '7'
11:40:51 b2: /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/.git not found, creating a new git
11:40:51 b2: git init @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild
11:40:51 b2: Initialized empty Git repository in /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/.git/
11:40:51 b2: git add . @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild
11:40:51 b2: git commit --allow-empty -m 'ORIGINAL: initial commit' @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild
11:40:51 b2: [master (root-commit) a46066b] ORIGINAL: initial commit
11:40:51 b2: Already on 'master'
11:40:51 b2: git checkout -b puppet-nova-11.4.0-1.el7
11:40:51 b2: Switched to a new branch 'puppet-nova-11.4.0-1.el7'
11:40:51 b2: rpm -i --nosignature --root=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work --define='%_topdir puppet-nova/rpmbuild' /localdisk/designer/tliu/starlingx-0/cgcs-root/cgcs-centos-repo/Source/puppet-nova-11.4.0-1.el7.src.rpm
11:40:51 b2: git add . @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild
11:40:51 b2: git commit --allow-empty -m 'ORIGINAL: srpm extract' @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild
11:40:51 b2: [puppet-nova-11.4.0-1.el7 2ac90ee] ORIGINAL: srpm extract
11:40:51 b2: 2 files changed, 58 insertions(+)
11:40:51 b2: create mode 100644 SOURCES/puppet-nova-11.4.0.tar.gz
11:40:51 b2: create mode 100644 SPECS/puppet-nova.spec
11:40:51 b2: git tag pre_wrs_puppet-nova-11.4.0-1.el7 @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild
11:40:51 b2: puppet-nova.spec
11:40:51 b2: puppet-nova-11.4.0
11:40:51 b2: tarball_extract SPEC_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/SPECS SPEC=puppet-nova.spec SPEC_GIT=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec SOURCE_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/SOURCES BRANCH=puppet-nova-11.4.0-1.el7 ORIG_BRANCH= TAR_DIR=puppet-nova-11.4.0 ROOT_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work PKG_DIR=puppet-nova BUILD_DIR=puppet-nova/rpmbuild TARGET_ARCH=x86_64 TIS_PATCH_VER=7 OUTPUT_FILE=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/tarball_extract_result NO_META_PATCH=0
11:40:51 b2: SPEC_GIT=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:51 b2: mkdir -p /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:51 b2: cd /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:51 b2: /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:51 b2: srpm_create_raw_extract_script '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/SPECS/puppet-nova.spec' '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova' '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild' 'x86_64' '7' '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/raw_script' 'puppet-nova-11.4.0'
11:40:51 b2: SPEC_FILE=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/SPECS/puppet-nova.spec ROOT_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova RPMBUILD_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild TARGET_ARCH=x86_64 TIS_PATCH_VER=7 RAW_SCRIPT=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/raw_script TAR_DIR=puppet-nova-11.4.0
11:40:51 b2: stdbuf -oL -eL rpmbuild -bp /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/SPECS/puppet-nova.spec --root /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova --define='%_topdir /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild' --define='_tis_dist .tis' --define='tis_patch_ver 7' --nodeps --target x86_64 > /tmp/stdout_zFoGf.log 2> /tmp/stderr_gYMQJ.log
11:40:51 b2: rm -rf RPMBUILD_BUILD_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/BUILD
11:40:51 b2: raw_create_tarballs_extract_script '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/raw_script' '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/extract_script' '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/BUILD' '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec'
11:40:51 b2: EXTRACT_TO_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:51 b2: ++ umask 022
11:40:51 b2: ++ cd /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:51 b2: ++ cd /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:51 b2: ++ rm -rf openstack-nova-11.4.0
11:40:51 b2: ++ /usr/bin/gzip -dc /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/SOURCES/puppet-nova-11.4.0.tar.gz
11:40:51 b2: ++ /usr/bin/tar -xf - --exclude .git
11:40:51 b2: +++ pwd
11:40:51 b2: ++ readlink -f /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:51 b2: ++ STATUS=0
11:40:51 b2: ++ cd openstack-nova-11.4.0
11:40:51 b2: ++ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
11:40:51 b2: ++ find . -type f -name '.*' -exec rm '{}' +
11:40:51 b2: ++ find . -size 0 -exec rm '{}' +
11:40:51 b2: ++ find . '(' -name '*.pl' -o -name '*.sh' ')' -exec chmod +x '{}' +
11:40:51 b2: ++ find . '(' -name '*.pp' -o -name '*.py' ')' -exec chmod -x '{}' +
11:40:51 b2: ++ find . '(' -name '*.rb' -o -name '*.erb' ')' -exec chmod -x '{}' +
11:40:51 b2: ++ find . '(' -name spec -o -name ext ')'
11:40:51 b2: ./spec
11:40:51 b2: +++ pwd
11:40:51 b2: ++ readlink -f /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:51 b2: + RC=0
11:40:51 b2: ++ pwd
11:40:51 b2: + echo SRPM_EXTRACT_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:51 b2: SRPM_EXTRACT_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:51 b2: + exit 0
11:40:51 b2: === CANONICAL_SPEC_GIT=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:51 b2: === TAR_DIR=openstack-nova-11.4.0
11:40:51 b2: === PATCH_TARGET_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:51 b2: === EXTRACT_TARGET_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:51 b2: rm -rf /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0; mkdir -p /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:51 b2: TAR_DIR=openstack-nova-11.4.0
11:40:51 b2: PATCH_TARGET_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:51 b2: /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0/.git not found, creating a new git
11:40:51 b2: git init @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:51 b2: Initialized empty Git repository in /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0/.git/
11:40:51 b2: git add . @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:51 b2: git commit --allow-empty -m 'ORIGINAL: initial commit' @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:51 b2: [master (root-commit) 3ac46b9] ORIGINAL: initial commit
11:40:51 b2: git created at '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0'
11:40:51 b2: cd 'openstack-nova-11.4.0'
11:40:51 b2: /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:51 b2: git checkout puppet-nova-11.4.0-1.el7 @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:51 b2: git checkout master @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:51 b2: Already on 'master'
11:40:51 b2: NEED_TAR_EXTRACT=1
11:40:51 b2: cd openstack-nova-11.4.0; git checkout -b puppet-nova-11.4.0-1.el7
11:40:51 b2: Switched to a new branch 'puppet-nova-11.4.0-1.el7'
11:40:51 b2: ++ umask 022
11:40:51 b2: ++ cd /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:51 b2: ++ cd /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:51 b2: ++ rm -rf openstack-nova-11.4.0
11:40:51 b2: ++ /usr/bin/gzip -dc /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/SOURCES/puppet-nova-11.4.0.tar.gz
11:40:51 b2: ++ /usr/bin/tar -xf - --exclude .git
11:40:51 b2: +++ pwd
11:40:51 b2: ++ readlink -f /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:51 b2: ++ STATUS=0
11:40:51 b2: ++ cd openstack-nova-11.4.0
11:40:51 b2: ++ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
11:40:51 b2: ++ find . -type f -name '.*' -exec rm '{}' +
11:40:51 b2: ++ find . -size 0 -exec rm '{}' +
11:40:51 b2: ++ find . '(' -name '*.pl' -o -name '*.sh' ')' -exec chmod +x '{}' +
11:40:51 b2: ++ find . '(' -name '*.pp' -o -name '*.py' ')' -exec chmod -x '{}' +
11:40:51 b2: ++ find . '(' -name '*.rb' -o -name '*.erb' ')' -exec chmod -x '{}' +
11:40:51 b2: ++ find . '(' -name spec -o -name ext ')'
11:40:51 b2: ./spec
11:40:51 b2: +++ pwd
11:40:51 b2: ++ readlink -f /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:51 b2: + RC=0
11:40:51 b2: ++ pwd
11:40:51 b2: + echo SRPM_EXTRACT_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:51 b2: + exit 0
11:40:51 b2: SRPM_EXTRACT_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:51 b2: EXTRACT_TO_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:51 b2: GLOBAL_PATCH_TARGET_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:51 b2: rm -rf /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/BUILD
11:40:51 b2: aaa TAR_DIR=openstack-nova-11.4.0
11:40:51 b2: NEED_TAR_EXTRACT=1
11:40:51 b2: cd PATCH_TARGET_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:51 b2: git add . @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:51 b2: fatal: Not a git repository (or any parent up to mount point /localdisk/loadbuild)
11:40:51 b2: Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
11:40:51 b2: ERROR: commit_git (1483): 'git add' failed for at '.'
11:40:51 b2: ERROR: tarball_extract (2163): commit_git failed (post tarball extracted) while extracting ''
11:40:51 b2: ERROR: srpm_extract_to_git (2484): tarball_extract failed while extracting '/localdisk/designer/tliu/starlingx-0/cgcs-root/cgcs-centos-repo/Source/puppet-nova-11.4.0-1.el7.src.rpm'
11:40:51 b2: ERROR: build_dir_srpm (719): failed to extract srpm '/localdisk/designer/tliu/starlingx-0/cgcs-root/cgcs-centos-repo/Source/puppet-nova-11.4.0-1.el7.src.rpm'
11:40:53 ERROR: reaper (1295): Failed to edit src.rpm from source at 'b2'
11:40:53 ============ Build failed =============
11:40:53 b2: found target 'puppet-nova' in 'puppet-nova-11.4.0-1.el7.src.rpm'
11:40:53 b2: ===== Build SRPM for 'puppet-nova' =====
11:40:53 b2: PKG_BASE=/localdisk/designer/tliu/starlingx-0/cgcs-root/stx/stx-integ/config/puppet-modules/openstack/puppet-nova-11.4.0
11:40:53 b2: BUILD_DIR=puppet-nova/rpmbuild
11:40:53 b2: SRPM_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/SRPMS
11:40:53 b2: Wrote: /localdisk/loadbuild/tliu/starlingx-0/std/rpmbuild/SOURCES/puppet-nova/srpm_input.md5
11:40:53 b2: Rebuild required due to missing directory: '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/SRPMS'
11:40:53 b2: srpm + patches = classify /localdisk/designer/tliu/starlingx-0/cgcs-root/stx/stx-integ/config/puppet-modules/openstack/puppet-nova-11.4.0
11:40:53 b2: OK to edit /localdisk/designer/tliu/starlingx-0/cgcs-root/stx/stx-integ/config/puppet-modules/openstack/puppet-nova-11.4.0
11:40:53 b2: srpm_extract_to_git '/localdisk/designer/tliu/starlingx-0/cgcs-root/cgcs-centos-repo/Source/puppet-nova-11.4.0-1.el7.src.rpm' '/localdisk/designer/tliu/starlingx-0/cgcs-root/stx/stx-integ/config/puppet-modules/openstack/puppet-nova-11.4.0' '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work' 'puppet-nova/rpmbuild' 'puppet-nova-11.4.0-1.el7' '0' '7'
11:40:53 b2: /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/.git not found, creating a new git
11:40:53 b2: git init @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild
11:40:53 b2: Initialized empty Git repository in /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/.git/
11:40:53 b2: git add . @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild
11:40:53 b2: git commit --allow-empty -m 'ORIGINAL: initial commit' @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild
11:40:53 b2: [master (root-commit) a46066b] ORIGINAL: initial commit
11:40:53 b2: Already on 'master'
11:40:53 b2: git checkout -b puppet-nova-11.4.0-1.el7
11:40:53 b2: Switched to a new branch 'puppet-nova-11.4.0-1.el7'
11:40:53 b2: rpm -i --nosignature --root=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work --define='%_topdir puppet-nova/rpmbuild' /localdisk/designer/tliu/starlingx-0/cgcs-root/cgcs-centos-repo/Source/puppet-nova-11.4.0-1.el7.src.rpm
11:40:53 b2: git add . @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild
11:40:53 b2: git commit --allow-empty -m 'ORIGINAL: srpm extract' @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild
11:40:53 b2: [puppet-nova-11.4.0-1.el7 2ac90ee] ORIGINAL: srpm extract
11:40:53 b2: 2 files changed, 58 insertions(+)
11:40:53 b2: create mode 100644 SOURCES/puppet-nova-11.4.0.tar.gz
11:40:53 b2: create mode 100644 SPECS/puppet-nova.spec
11:40:53 b2: git tag pre_wrs_puppet-nova-11.4.0-1.el7 @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild
11:40:53 b2: puppet-nova.spec
11:40:53 b2: puppet-nova-11.4.0
11:40:53 b2: tarball_extract SPEC_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/SPECS SPEC=puppet-nova.spec SPEC_GIT=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec SOURCE_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/SOURCES BRANCH=puppet-nova-11.4.0-1.el7 ORIG_BRANCH= TAR_DIR=puppet-nova-11.4.0 ROOT_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work PKG_DIR=puppet-nova BUILD_DIR=puppet-nova/rpmbuild TARGET_ARCH=x86_64 TIS_PATCH_VER=7 OUTPUT_FILE=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/tarball_extract_result NO_META_PATCH=0
11:40:53 b2: SPEC_GIT=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:53 b2: mkdir -p /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:53 b2: cd /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:53 b2: /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:53 b2: srpm_create_raw_extract_script '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/SPECS/puppet-nova.spec' '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova' '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild' 'x86_64' '7' '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/raw_script' 'puppet-nova-11.4.0'
11:40:53 b2: SPEC_FILE=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/SPECS/puppet-nova.spec ROOT_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova RPMBUILD_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild TARGET_ARCH=x86_64 TIS_PATCH_VER=7 RAW_SCRIPT=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/raw_script TAR_DIR=puppet-nova-11.4.0
11:40:53 b2: stdbuf -oL -eL rpmbuild -bp /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/SPECS/puppet-nova.spec --root /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova --define='%_topdir /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild' --define='_tis_dist .tis' --define='tis_patch_ver 7' --nodeps --target x86_64 > /tmp/stdout_zFoGf.log 2> /tmp/stderr_gYMQJ.log
11:40:53 b2: rm -rf RPMBUILD_BUILD_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/BUILD
11:40:53 b2: raw_create_tarballs_extract_script '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/raw_script' '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/extract_script' '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/BUILD' '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec'
11:40:53 b2: EXTRACT_TO_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:53 b2: ++ umask 022
11:40:53 b2: ++ cd /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:53 b2: ++ cd /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:53 b2: ++ rm -rf openstack-nova-11.4.0
11:40:53 b2: ++ /usr/bin/gzip -dc /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/SOURCES/puppet-nova-11.4.0.tar.gz
11:40:53 b2: ++ /usr/bin/tar -xf - --exclude .git
11:40:53 b2: +++ pwd
11:40:53 b2: ++ readlink -f /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:53 b2: ++ STATUS=0
11:40:53 b2: ++ cd openstack-nova-11.4.0
11:40:53 b2: ++ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
11:40:53 b2: ++ find . -type f -name '.*' -exec rm '{}' +
11:40:53 b2: ++ find . -size 0 -exec rm '{}' +
11:40:53 b2: ++ find . '(' -name '*.pl' -o -name '*.sh' ')' -exec chmod +x '{}' +
11:40:53 b2: ++ find . '(' -name '*.pp' -o -name '*.py' ')' -exec chmod -x '{}' +
11:40:53 b2: ++ find . '(' -name '*.rb' -o -name '*.erb' ')' -exec chmod -x '{}' +
11:40:53 b2: ++ find . '(' -name spec -o -name ext ')'
11:40:53 b2: ./spec
11:40:53 b2: +++ pwd
11:40:53 b2: ++ readlink -f /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:53 b2: + RC=0
11:40:53 b2: ++ pwd
11:40:53 b2: + echo SRPM_EXTRACT_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:53 b2: SRPM_EXTRACT_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:53 b2: + exit 0
11:40:53 b2: === CANONICAL_SPEC_GIT=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:53 b2: === TAR_DIR=openstack-nova-11.4.0
11:40:53 b2: === PATCH_TARGET_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:53 b2: === EXTRACT_TARGET_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:53 b2: rm -rf /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0; mkdir -p /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:53 b2: TAR_DIR=openstack-nova-11.4.0
11:40:53 b2: PATCH_TARGET_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:53 b2: /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0/.git not found, creating a new git
11:40:53 b2: git init @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:53 b2: Initialized empty Git repository in /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0/.git/
11:40:53 b2: git add . @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:53 b2: git commit --allow-empty -m 'ORIGINAL: initial commit' @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:53 b2: [master (root-commit) 3ac46b9] ORIGINAL: initial commit
11:40:53 b2: git created at '/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0'
11:40:53 b2: cd 'openstack-nova-11.4.0'
11:40:53 b2: /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:53 b2: git checkout puppet-nova-11.4.0-1.el7 @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:53 b2: git checkout master @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:53 b2: Already on 'master'
11:40:53 b2: NEED_TAR_EXTRACT=1
11:40:53 b2: cd openstack-nova-11.4.0; git checkout -b puppet-nova-11.4.0-1.el7
11:40:53 b2: Switched to a new branch 'puppet-nova-11.4.0-1.el7'
11:40:53 b2: ++ umask 022
11:40:53 b2: ++ cd /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:53 b2: ++ cd /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:53 b2: ++ rm -rf openstack-nova-11.4.0
11:40:53 b2: ++ /usr/bin/gzip -dc /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/SOURCES/puppet-nova-11.4.0.tar.gz
11:40:53 b2: ++ /usr/bin/tar -xf - --exclude .git
11:40:53 b2: +++ pwd
11:40:53 b2: ++ readlink -f /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:53 b2: ++ STATUS=0
11:40:53 b2: ++ cd openstack-nova-11.4.0
11:40:53 b2: ++ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
11:40:53 b2: ++ find . -type f -name '.*' -exec rm '{}' +
11:40:53 b2: ++ find . -size 0 -exec rm '{}' +
11:40:53 b2: ++ find . '(' -name '*.pl' -o -name '*.sh' ')' -exec chmod +x '{}' +
11:40:53 b2: ++ find . '(' -name '*.pp' -o -name '*.py' ')' -exec chmod -x '{}' +
11:40:53 b2: ++ find . '(' -name '*.rb' -o -name '*.erb' ')' -exec chmod -x '{}' +
11:40:53 b2: ++ find . '(' -name spec -o -name ext ')'
11:40:53 b2: ./spec
11:40:53 b2: +++ pwd
11:40:53 b2: ++ readlink -f /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:53 b2: + RC=0
11:40:53 b2: ++ pwd
11:40:53 b2: + echo SRPM_EXTRACT_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:53 b2: + exit 0
11:40:53 b2: SRPM_EXTRACT_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:53 b2: EXTRACT_TO_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec
11:40:53 b2: GLOBAL_PATCH_TARGET_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:53 b2: rm -rf /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/rpmbuild/BUILD
11:40:53 b2: aaa TAR_DIR=openstack-nova-11.4.0
11:40:53 b2: NEED_TAR_EXTRACT=1
11:40:53 b2: cd PATCH_TARGET_DIR=/localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:53 b2: git add . @ /localdisk/loadbuild/tliu/starlingx-0/std/srpm_work/puppet-nova/gits/puppet-nova.spec/openstack-nova-11.4.0
11:40:53 b2: fatal: Not a git repository (or any parent up to mount point /localdisk/loadbuild)
11:40:53 b2: Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
11:40:53 b2: ERROR: commit_git (1483): 'git add' failed for at '.'
11:40:53 b2: ERROR: tarball_extract (2163): commit_git failed (post tarball extracted) while extracting ''
11:40:53 b2: ERROR: srpm_extract_to_git (2484): tarball_extract failed while extracting '/localdisk/designer/tliu/starlingx-0/cgcs-root/cgcs-centos-repo/Source/puppet-nova-11.4.0-1.el7.src.rpm'
11:40:53 b2: ERROR: build_dir_srpm (719): failed to extract srpm '/localdisk/designer/tliu/starlingx-0/cgcs-root/cgcs-centos-repo/Source/puppet-nova-11.4.0-1.el7.src.rpm'
11:40:53 ERROR: reaper (1297): Failed to edit src.rpm from source at 'b2'
11:40:53

Severity
--------
[Critical, Major, Minor]
Major

Steps to Reproduce
------------------
Set up a StarlingX build environment and run the following build commands:
build-srpms --edit --clean puppet-nova
build-srpms --edit puppet-nova

Expected Behavior
------------------
‘build-srpms –edit puppet-nova’ should create a working edit environment

Actual Behavior
----------------
‘build-srpms –edit puppet-nova’ failed

Reproducibility
---------------
Reproducible

System Configuration
--------------------
NA

Branch/Pull Time/Commit
-----------------------
master as of 2018-09-04-15-31-00

Timestamp/Logs
--------------
NA

Ghada Khalil (gkhalil)
summary: - Unable to edit the puppet-nova package
+ build-srpms unable to edit the puppet-nova package
tags: added: stx.build
Tao Liu (tliu88)
description: updated
Revision history for this message
Ghada Khalil (gkhalil) wrote : Re: build-srpms unable to edit the puppet-nova package

Targeted for stx.2018.10 as this impacts developer workflow

Changed in starlingx:
importance: Undecided → High
tags: added: stx.2018.10
Bruce Jones (brucej)
Changed in starlingx:
importance: High → Low
assignee: nobody → Abraham Arce (xe1gyq)
Revision history for this message
Ghada Khalil (gkhalil) wrote :

Reviewed on 2018-10-03 (community call) and agreed that this is a low priority and does not gate the stx.2018.10 release. This is a would-be-nice tool used for developer workflow.

tags: added: stx.2019.03
removed: stx.2018.10
Changed in starlingx:
status: New → Triaged
Revision history for this message
Lin Shuicheng (shuicheng) wrote :

I meet the same issue with another bash src rpm.
The cause of the issue is, there is "rm -rf %{buildroot}" or similar line in the spec, which cause the buildroot folder be deleted, and git info be deleted also. So lead to the "git add" cmd failure.
I have a temp fix as below for you reference.

slin14@slin14-nuc2:~/cgcs-root/build-tools$ git diff srpm-utils
diff --git a/build-tools/srpm-utils b/build-tools/srpm-utils
index 42e558f..fc09c76 100644
--- a/build-tools/srpm-utils
+++ b/build-tools/srpm-utils
@@ -815,6 +815,8 @@ raw_create_tarballs_extract_script () {
                 "git add "*|\
                 "git commit "*)
                     ;;
+ "rm -rf "*)
+ ;;
                 *)
                     echo "$LINE" >> $EXTRACT_SCRIPT
                     ;;

Revision history for this message
Bart Wensley (bartwensley) wrote :

I have the same issue while trying to edit the resource-agents RPM. I disagree with this being marked as low priority as the ability to easily edit/modify source RPMs is important to designers.

summary: - build-srpms unable to edit the puppet-nova package
+ build-srpms unable to edit a variety of packages
Revision history for this message
Lin Shuicheng (shuicheng) wrote :

I have created below patch to fix it. Please help review it:
https://review.openstack.org/619963

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to stx-root (master)

Reviewed: https://review.openstack.org/619963
Committed: https://git.openstack.org/cgit/openstack/stx-root/commit/?id=3f5687b3e5c8489c1b4e07716676cb304af324a8
Submitter: Zuul
Branch: master

commit 3f5687b3e5c8489c1b4e07716676cb304af324a8
Author: Shuicheng Lin <email address hidden>
Date: Mon Nov 26 23:28:22 2018 +0800

    Fix build-srpms cannot edit a variety of packages

    Closes-Bug: 1792001

    Fix edit issue for package puppet-nova/bash/resource-agents.

    The cause of the issue is, there is "rm -rf %{buildroot}"
    or similar line in the spec, which cause the buildroot folder
    be deleted, and git info be deleted also. So lead to the
    "git add" cmd failure.
    Fix:
    Try to ignore this cmd to avoid git info be deleted.

    Test:
    This script is for edit cmd only, no impact to normal build.
    Tested several packages locally, no issue found yet.

    Change-Id: I667c363bd82e68f107a6c51f65a2a9dd0d2434d4
    Signed-off-by: Shuicheng Lin <email address hidden>

Changed in starlingx:
status: Triaged → Fix Released
Ken Young (kenyis)
tags: added: stx.2019.05
removed: stx.2019.03
Ken Young (kenyis)
tags: added: stx.2.0
removed: stx.2019.05
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.