Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mantle/platform: allow systemctl is-system-running nonzero exit codes #3487

Merged
merged 1 commit into from
May 27, 2023

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented May 23, 2023

The CheckMachine() call tolerates systemctl is-system-running returning e.g. starting and initializing in addition to the usual running. But by design, the command returns a nonzero exit code in those cases.

Since we're explicitly checking the output string against the acceptable states, just ignore the command exit code so that we don't fail if the system is still starting.

Prep for adding a test in which we expect the system to still be starting.

The `CheckMachine()` call tolerates `systemctl is-system-running`
returning e.g. `starting` and `initializing` in addition to the usual
`running`. But by design, the command returns a nonzero exit code in
those cases.

Since we're explicitly checking the output string against the acceptable
states, just ignore the command exit code so that we don't fail if the
system is still starting.

Prep for adding a test in which we expect the system to still be
`starting`.
Copy link
Member

@dustymabe dustymabe left a comment

Choose a reason for hiding this comment

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

LGTM

@jlebon
Copy link
Member Author

jlebon commented May 26, 2023

/retest

dustymabe added a commit to dustymabe/fedora-coreos-config that referenced this pull request May 26, 2023
In coreos/coreos-assembler#3487 we are
changing the `sshChecker` in `CheckMachine()` to return earlier
in the `starting` and `initializing` states. This means the kola
test code might start to run earlier and we may need to wait longer
here.
dustymabe added a commit to coreos/fedora-coreos-config that referenced this pull request May 26, 2023
In coreos/coreos-assembler#3487 we are
changing the `sshChecker` in `CheckMachine()` to return earlier
in the `starting` and `initializing` states. This means the kola
test code might start to run earlier and we may need to wait longer
here.
@dustymabe
Copy link
Member

/retest

@jlebon
Copy link
Member Author

jlebon commented May 27, 2023

/retest

@travier
Copy link
Member

travier commented Jun 1, 2023

/cherrypick rhcos-4.13

@openshift-cherrypick-robot

@travier: new pull request created: #3497

In response to this:

/cherrypick rhcos-4.13

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

travier pushed a commit to travier/fedora-coreos-config that referenced this pull request Jun 1, 2023
In coreos/coreos-assembler#3487 we are
changing the `sshChecker` in `CheckMachine()` to return earlier
in the `starting` and `initializing` states. This means the kola
test code might start to run earlier and we may need to wait longer
here.

(cherry picked from commit 3952477)
travier pushed a commit to coreos/fedora-coreos-config that referenced this pull request Jun 8, 2023
In coreos/coreos-assembler#3487 we are
changing the `sshChecker` in `CheckMachine()` to return earlier
in the `starting` and `initializing` states. This means the kola
test code might start to run earlier and we may need to wait longer
here.

(cherry picked from commit 3952477)
HuijingHei pushed a commit to HuijingHei/fedora-coreos-config that referenced this pull request Oct 10, 2023
In coreos/coreos-assembler#3487 we are
changing the `sshChecker` in `CheckMachine()` to return earlier
in the `starting` and `initializing` states. This means the kola
test code might start to run earlier and we may need to wait longer
here.
HuijingHei pushed a commit to HuijingHei/fedora-coreos-config that referenced this pull request Oct 10, 2023
In coreos/coreos-assembler#3487 we are
changing the `sshChecker` in `CheckMachine()` to return earlier
in the `starting` and `initializing` states. This means the kola
test code might start to run earlier and we may need to wait longer
here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants