Project

General

Profile

action #160628

Updated by okurz 7 months ago

## Observation 

 https://gitlab.suse.de/openqa/scripts-ci/-/jobs/2635998 is a passed job but apparently no jobs were ever triggered: 

 ``` 
 ++ echo '$ bash -e < <(curl -s ${GITHUB_REPO_URL//github.com/raw.githubusercontent.com}/master/$OS_AUTOINST_SCRIPT)' 
 ++ bash -e 
 +++ curl -s https://raw.githubusercontent.com/os-autoinst/scripts/master/openqa-schedule-mm-ping-test 
 + openqa_url=http://openqa.suse.de 
 + distri=sle 
 + flavor=Server-DVD-Updates 
 + arch=x86_64 
 + version=15-SP5 
 + test_name=ovs-client 
 ++ mktemp 
 + tmpfile=/tmp/tmp.QFrAbZzq4U 
 + trap 'rm -f "$tmpfile"' EXIT 
 + cat 
 ++ openqa-cli api --host http://openqa.suse.de jobs version=15-SP5 scope=relevant arch=x86_64 flavor=Server-DVD-Updates test=ovs-client latest=1 
 ++ jq -r '.jobs | map(select(.result == "passed")) | max_by(.settings.BUILD) .settings.HDD_1' 
 + hdd=SLES-15-SP5-x86_64-mru-install-minimal-with-addons-Build20240519-1-Server-DVD-Updates-64bit.qcow2 
 + rm -f /tmp/tmp.QFrAbZzq4U 
 Cleaning up project directory and file based variables 00:00 
 Job succeeded 
 ``` 

 Executing locally looks correct: 

 ``` 
 $ test_name=ovs-client flavor=Server-DVD-Updates version=15-SP5 distri=sle openqa_url=http://openqa.suse.de ./openqa-schedule-mm-ping-test 
 +(./openqa-schedule-mm-ping-test:4): main(): openqa_url=http://openqa.suse.de 
 +(./openqa-schedule-mm-ping-test:5): main(): distri=sle 
 +(./openqa-schedule-mm-ping-test:6): main(): flavor=Server-DVD-Updates 
 +(./openqa-schedule-mm-ping-test:7): main(): arch=x86_64 
 +(./openqa-schedule-mm-ping-test:8): main(): version=15-SP5 
 +(./openqa-schedule-mm-ping-test:9): main(): test_name=ovs-client 
 ++(./openqa-schedule-mm-ping-test:11): main(): mktemp 
 +(./openqa-schedule-mm-ping-test:11): main(): tmpfile=/tmp/tmp.TfQJAGLQR9 
 +(./openqa-schedule-mm-ping-test:12): main(): trap 'rm -f "$tmpfile"' EXIT 
 +(./openqa-schedule-mm-ping-test:14): main(): cat 
 ++(./openqa-schedule-mm-ping-test:53): main(): openqa-cli api --host http://openqa.suse.de jobs version=15-SP5 scope=relevant arch=x86_64 flavor=Server-DVD-Updates test=ovs-client latest=1 
 ++(./openqa-schedule-mm-ping-test:53): main(): jq -r '.jobs | map(select(.result == "passed")) | max_by(.settings.BUILD) .settings.HDD_1' 
 +(./openqa-schedule-mm-ping-test:53): main(): hdd=SLES-15-SP5-x86_64-mru-install-minimal-with-addons-Build20240519-1-Server-DVD-Updates-64bit.qcow2 
 ++(./openqa-schedule-mm-ping-test:54): main(): date -Im 
 +(./openqa-schedule-mm-ping-test:54): main(): openqa-cli schedule --monitor --host http://openqa.suse.de --param-file SCENARIO_DEFINITIONS_YAML=/tmp/tmp.TfQJAGLQR9 DISTRI=sle VERSION=15-SP5 FLAVOR=Server-DVD-Updates ARCH=x86_64 BUILD=2024-05-21T08:37+02:00 _GROUP_ID=0 HDD_1=SLES-15-SP5-x86_64-mru-install-minimal-with-addons-Build20240519-1-Server-DVD-Updates-64bit.qcow2 
 {"count":2,"failed":[],"ids":[14384617,14384618],"scheduled_product_id":2126387} 
 2 jobs have been created: 
  - http://openqa.suse.de/tests/14384617 
  - http://openqa.suse.de/tests/14384618 
 {"blocked_by_id":null,"id":14384617,"result":"none","state":"scheduled"} 
 Job state of job ID 14384617: scheduled, waiting … (delay: 10; waited 0s) 
 {"blocked_by_id":null,"id":14384617,"result":"none","state":"running"} 
 … 
 Job state of job ID 14384617: running, waiting … (delay: 10; waited 100s) 
 {"blocked_by_id":null,"id":14384617,"result":"passed","state":"done"} 
 {"blocked_by_id":null,"id":14384618,"result":"passed","state":"done"} 
 ``` 

 Reproduces consistently within gitlab CI 

 ## Steps to reproduce 
 * On https://gitlab.suse.de/openqa/scripts-ci/-/pipeline_schedules trigger pipeline "openqa-schedule-mm-ping-test -- osd (11 * * * *)" 
 * observe the error from the observation 

 ## Suggestions 
 * Try to reproduce the problem within the container environment registry.opensuse.org/devel/openqa/ca/containers/os-autoinst-scripts . environment. Maybe the "time" prefix in the call `time openqa-cli schedule` is the problem?

Back