stx-tools: $MY_REPO does not exist after 'stx build prepare'

Bug #2007161 reported by Davlet Panech
6
This bug affects 1 person
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://review.opendev.org/c/starlingx/tools/+/873010 . The helm chart for the new pod creates /localdisk/{designer,loadbuild} implicitly with owner=root , making them non-writable by the builder user.

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/{designer,loadbuild} are owned by root

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_HOME/localdisk/{designer,loadbuild}/$PROJECT/$USER manually with the correct permissions prior to starting the environment.

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tools (master)

Reviewed: https://review.opendev.org/c/starlingx/tools/+/873617
Committed: https://opendev.org/starlingx/tools/commit/0d599fc6080c24bd972e9111379d7109734aae0a
Submitter: "Zuul (22348)"
Branch: master

commit 0d599fc6080c24bd972e9111379d7109734aae0a
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
    /localdisk/{designer,loadbuild} implicitly with owner=root. This makes
    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
    =====
    * Create a new environment; make sure $BUILD_HOME/localdisk doesn't
      exist
    * Start the environment
    * Make sure /localdisk/{designer,loadbuild} exist and are owned by
      $BUILD_USER in the builder container

    Closes-Bug: 2007161
    Signed-off-by: Davlet Panech <email address hidden>
    Change-Id: Idf8c7166d0d4bc2f9012b7114b83e24042e2369d

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → High
tags: added: stx.9.0 stx.build
Changed in starlingx:
assignee: nobody → Davlet Panech (dpanech)
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.