=== RUN TestFailedState_RebootInstance
--- FAIL: TestFailedState_RebootInstance (5.21s)
00_run_cmd.go:115: Unexpected Instance State: i-0000000009 goal=FAILED found=RUNNING
func TestFailedState_RebootInstance(t *testing.T) {
stdout, _ := RunCmdAndReportFail(t, "openvdc", "run", "centos/7/null", `{"crash_stage": "reboot"}`)
instance_id := strings.TrimSpace(stdout.String())
WaitInstance(t, 5*time.Minute, instance_id, "RUNNING", []string{"QUEUED", "STARTING"})
RunCmdAndReportFail(t, "openvdc", "reboot", instance_id)
WaitInstance(t, 5*time.Minute, instance_id, "FAILED", []string{"REBOOTING"})
}
https://ci.openvdc.org/blue/rest/organizations/jenkins/pipelines/citest/branches/master/runs/179/nodes/36/log/
got an error
Each scenario in the file waits for
FAILEDstate with transitional states. But the failure is detected since the origin state is not added toWaitInstance(). Possible symptom is:RUNNING,openvdc rebootis issued.RUNNING.WaitInstance()seesRUNNINGbut it is not listed as intermidiate states like[]string{"REBOOTING"}