Skip to content

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

Merged
dustymabe merged 1 commit intocoreos:mainfrom
jlebon:pr/systemd-running-rc
May 27, 2023
Merged

mantle/platform: allow systemctl is-system-running nonzero exit codes#3487
dustymabe merged 1 commit intocoreos:mainfrom
jlebon:pr/systemd-running-rc

Conversation

@jlebon
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

/retest

@jlebon
Copy link
Copy Markdown
Member Author

jlebon commented May 27, 2023

/retest

@travier
Copy link
Copy Markdown
Member

travier commented Jun 1, 2023

/cherrypick rhcos-4.13

@openshift-cherrypick-robot
Copy link
Copy Markdown

@travier: new pull request created: #3497

Details

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.

4 participants