CENGN build failure near Registering signing server access key
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Scott Little |
Bug Description
Brief Description
-----------------
CENGN build failed in the start-containers step
It was attempting to 'Registering signing server access key'
and issued a command containing two container names with a 'CR' between them.
stx-tools pods list:
02:25:32 NAME READY STATUS RESTARTS AGE
02:25:32 debian-
02:25:32 debian-
We need to filter out non-Running containers when attempting to discover the container name.
Perhaps also wait for terminating containers to fully exit.
Severity
--------
Major
Steps to Reproduce
------------------
N/A
Expected Behavior
------------------
Container start is a success
Actual Behavior
----------------
Container start fails
Reproducibility
---------------
N/A
System Configuration
-------
N/A
Branch/Pull Time/Commit
-------
Apr 11
Last Pass
---------
Apr 3
Timestamp/Logs
--------------
+ stx control status
02:25:31 [1mSTX-k8s[0m - [1;32mINFO[0m: helm list:
02:25:31
02:25:31 NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
02:25:31 debian-master default 1 2023-04-11 02:25:15.896802569 -0400 EDT deployed stx-builder-0.1.0 1.16.0
02:25:31 [1mSTX-k8s[0m - [1;32mINFO[0m: stx-tools deployments list:
02:25:31 NAME READY UP-TO-DATE AVAILABLE AGE
02:25:31 debian-
02:25:31 debian-
02:25:31 debian-
02:25:31 debian-
02:25:31 debian-
02:25:31 debian-
02:25:31 [1mSTX-k8s[0m - [1;32mINFO[0m: stx-tools pods list:
02:25:32 NAME READY STATUS RESTARTS AGE
02:25:32 debian-
02:25:32 debian-
02:25:32 debian-
02:25:32 debian-
02:25:32 debian-
02:25:32 debian-
02:25:32 debian-
02:25:32 + '[' -f /var/lib/
02:25:32 + notice 'Registering signing server access key'
02:25:32 + set +x
02:25:32 ###
02:25:32 ### Registering signing server access key
02:25:32 ###
02:25:32 + stx control keys-add --key-type=
02:25:32 [1mSTX-Control[0m - [1;32mINFO[0m: Prepare keys for accessing signing server!
02:25:32 [1mSTX-k8s[0m - [1;32mINFO[0m: Running: minikube -p minikube-
02:25:32 [1mSTX-Control[0m - [1;32mINFO[0m: run pod cmd: minikube -p minikube-
02:25:32 debian-
02:25:32 error: you must specify at least one command for the container
02:25:32 /bin/sh: line 1: debian-
02:25:32 [1mSTX-Control[0m - [1;32mINFO[0m: run pod cmd: minikube -p minikube-
02:25:32 debian-
02:25:32 error: you must specify at least one command for the container
02:25:32 /bin/sh: line 1: debian-
02:25:32 [1mSTX-Control[0m - [1;32mINFO[0m: run pod cmd: minikube -p minikube-
02:25:32 debian-
02:25:32 error: one of src or dest must be a remote file specification
02:25:32 /bin/sh: line 1: debian-
02:25:32 [1mSTX-Control[0m - [1;32mINFO[0m: run pod cmd: minikube -p minikube-
02:25:32 debian-
02:25:33 error: one of src or dest must be a remote file specification
02:25:33 /bin/sh: line 1: debian-
02:25:33 [1mSTX-k8s[0m - [1;32mINFO[0m: Running: minikube -p minikube-
02:25:33 [1mSTX-Control[0m - [1;32mINFO[0m: run pod cmd: minikube -p minikube-
02:25:33 Unable to use a TTY - input is not a terminal or the right kind of file
02:25:33 [1mSTX-Control[0m - [1;32mINFO[0m: run pod cmd: minikube -p minikube-
02:25:34 + stx build prepare
02:25:34 [1mSTX-k8s[0m - [1;32mINFO[0m: Running: minikube -p minikube-
02:25:34 error: you must specify at least one command for the container
02:25:34 /bin/sh: line 1: debian-
02:25:34 Traceback (most recent call last):
02:25:34 File "/home/
02:25:34 subprocess.
02:25:34 File "/usr/lib64/
02:25:34 raise CalledProcessEr
02:25:34 subprocess.
Test Activity
-------------
Build
Workaround
----------
N/A
Changed in starlingx: | |
importance: | Undecided → High |
tags: | added: stx.9.0 stx.tools |
Changed in starlingx: | |
assignee: | nobody → Scott Little (slittle1) |
get_pod_name() in stx/lib/stx/k8s.py needs to filter for only 'Running' pods.
It should also fail if more than one match.