stx-tools: $MY_REPO does not exist after 'stx build prepare'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Davlet Panech |
Bug Description
Brief Description
-----------------
$MY_REPO and $MY_WORKSPACE don't exist after "stx build prepare".
Likely caused by https:/
Severity
--------
Major
Steps to Reproduce
------------------
* Create a new environment or shutdown existing environment and delete "localdisk" from $BUILD_HOME
* Start the environment ("stx-init-env")
* Enter the environment ("stx shell")
Expected Behavior
------------------
$MY_REPO & $MY_WORKSPACE exist
Actual Behavior
----------------
$MY_REPO & $MY_WORKSPACE don't exist
/localdisk/
Reproducibility
---------------
Reproducible
System Configuration
-------
N/A
Branch/Pull Time/Commit
-------
master/2023-02-10
Last Pass
---------
master/2023-02-08
Timestamp/Logs
--------------
N/A
Test Activity
-------------
N/A
Workaround
----------
Create $BUILD_
Changed in starlingx: | |
status: | New → In Progress |
Changed in starlingx: | |
importance: | Undecided → High |
tags: | added: stx.9.0 stx.build |
Changed in starlingx: | |
assignee: | nobody → Davlet Panech (dpanech) |
Reviewed: https:/ /review. opendev. org/c/starlingx /tools/ +/873617 /opendev. org/starlingx/ tools/commit/ 0d599fc6080c24b d972e9111379d71 09734aae0a
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 0d599fc6080c24b d972e9111379d71 09734aae0a
Author: Davlet Panech <email address hidden>
Date: Mon Feb 13 11:45:10 2023 -0500
Set ownership of /localdisk/... to $BUILD_USER
This patch fixes a problem introduced by [1]: the helm chart creates {designer, loadbuild} implicitly with owner=root. This makes
/localdisk/
the directories non-writeable by the builder user, and the creation
of $MY_WORKSPACE and $MY_REPO_ROOT_DIR fails.
[1] https:/ /review. opendev. org/c/starlingx /tools/ +/873010
TESTS HOME/localdisk doesn't {designer, loadbuild} exist and are owned by
=====
* Create a new environment; make sure $BUILD_
exist
* Start the environment
* Make sure /localdisk/
$BUILD_USER in the builder container
Closes-Bug: 2007161 2f9012b7114b83e 24042e2369d
Signed-off-by: Davlet Panech <email address hidden>
Change-Id: Idf8c7166d0d4bc