tools/stx
Igor Frazzon 543c9d1c26 stx: Fix Build env failing after rebooting.
Added checks to ensure the Minikube profile exists and is running
before executing stx commands. Provided user instructions for creating
the profile and starting pods when necessary.

Solution: fix the log message's format string
* Added a check to verify if the Minikube profile exists before
  executing stx commands.
* Logged an error message and provided instructions to create
  the Minikube profile if it is missing.
* Included guidance to run `./stx-init-env` from the `stx-tools`
  directory to create the missing profile.
* Added a message to prompt the user to run `stx control start
  --wait` when attempting to run `stx shell` if the builder
  container is not running.
* Ensured that execution halts if the profile is missing, avoiding
  potential errors.

TESTS
========================
* Stop the Minikube profile and run `stx control status`, ensure
  the message `stx control start --wait` is shown.
* Ensure that running `stx control start --wait` starts the Minikube
  profile and allows commands to run without errors.
* Stop the Minikube profile and run `stx control stop`, ensure the
  profile starts and the command runs without errors.
* Remove the containers with `stx control stop` and run `stx shell`,
  ensure the message `stx control start --wait` is displayed.
* Remove the Minikube profile and ensure the `stx control start/stop/
  status` commands show the message `./stx-init-env` to create the
  profile.
* stx control start/stop/status` commands function correctly after
a machine restart
Closes-Bug: 2080681

Change-Id: I474ad59947fb98af434e7616859f5256a226f903
2024-09-19 15:09:30 -03:00
..
bin stx tool: Initial the stx tool for starlingx debian building 2021-06-10 21:55:18 -04:00
dockerfiles Add 7z cmd support to LAT container 2024-08-15 18:02:44 -03:00
lib/stx stx: Fix Build env failing after rebooting. 2024-09-19 15:09:30 -03:00
stx-build-tools-chart/stx-builder Add support for pre-patched ISO on LAT container 2024-07-04 15:11:10 -03:00
toCOPY Simplifying patch-builder use in builder container 2024-07-23 14:59:50 -03:00