Skip to content
This repository was archived by the owner on May 7, 2021. It is now read-only.

Conversation

@ajeddeloh
Copy link
Contributor

Do not claim the machine is not reachable when it actually is and is
just booting. If it times out while booting, also log active jobs.

Do not claim the machine is not reachable when it actually is and is
just booting. If it times out while booting, also log active jobs.
Copy link
Contributor

@arithx arithx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late review, fell off my radar on Friday.

out, stderr, err := m.SSH("systemctl is-system-running")
if !bytes.Contains([]byte("initializing starting running stopping"), out) {
return nil // stop retrying if the system went haywire
return fmt.Errorf("machine reached a bad state: %s, %v, %s", out, err, stderr)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to build a mechanism for detecting if we're running kola spawn. As this code currently is we cannot spawn into machines in a degraded state any longer with this patch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants