StackStorm / StackStorm/st2

abs_local_path for pack installs should be in a dedicated tmp directory

Open
#5,844 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

SUMMARY

Openshift runs all pods and containers in non-root pods and have the HOME Directory pinned at /
This makes the persistentVolumeClaim of packs unsuable to install packs post install.

STACKSTORM VERSION

$ st2 --version
st2 3.8.0,
on Python
3.8.10

OS, environment, install method

Stackstorm-K8s helm chart on Openshift

Steps to reproduce the problem

st2 pack install slack

Expected Results

Pack install to succeed.

Actual Results

Pack install failed due to git clone error:
Traceback git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) cmdline: git clone -v --progress https://github.com/StackStorm-Exchange/stackstorm-slack /be0737f6e3987ee1bf0c68b55ee20fea

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the st2 pack install slack entry point and trace how the pack installation path is chosen before the reported git clone command runs. Verify the behavior in an OpenShift-style non-root environment with HOME set to /; done means pack installation uses a dedicated temporary directory and succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.