build-pkgs --clean returns error due to invalid or undefined path

Bug #1791171 reported by Erich Cordoba
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Lin Shuicheng

Bug Description

Steps to reproduce
------------------

Running the following command:

build-pkgs --clean sysinv

Expected behavior
-----------------

The command should clean the sysinv package

Actual behavior
---------------

The command returns the following error:

CLEAN_FLAG=1
EDIT_FLAG=0
TARGETS_STD= sysinv
TARGETS_RT=
TARGETS_INSTALLER=
EXTRA_ARGS_COMMON=''
EXTRA_ARGS_SRPM=''
EXTRA_ARGS_RPM=''
TARGETS=' sysinv '
TARGETS_STD=' sysinv '
TARGETS_RT=' '
TARGETS_MISC=' '
/build-rpms-parallel --std --clean sysinv
/localdisk/designer/jenkins-slave/starlingx/cgcs-root/build-tools/build-pkgs-parallel: line 257: /build-rpms-parallel: No such file or directory

Looking into the code this line is executed:

$DIR/build-rpms-parallel --std --clean $EXTRA_ARGS_COMMON $EXTRA_ARGS_RPM $TARGETS_STD $TARGETS_MISC || exit 1

It seems that $DIR doesn't get a proper value.

Reproducibility
---------------
100% of the times

Branch
------
master on commit b913f3ec3

Ghada Khalil (gkhalil)
tags: added: stx.build
Revision history for this message
Lin Shuicheng (shuicheng) wrote :

I just noticed this issue. It is fixed with below patch which is already merged:
https://review.openstack.org/#/c/600363/

Cindy Xie (xxie1)
Changed in starlingx:
assignee: nobody → Lin Shuicheng (shuicheng)
Changed in starlingx:
status: New → Fix Committed
Ghada Khalil (gkhalil)
Changed in starlingx:
status: Fix Committed → Fix Released
summary: - build-pkgs --clean returns error due to invalid or undefined path.
+ build-pkgs --clean returns error due to invalid or undefined path
tags: added: stx.2018.10
Changed in starlingx:
importance: Undecided → Medium
Ken Young (kenyis)
tags: added: stx.1.0
removed: stx.2018.10
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.