Skip to content

Conversation

@blag
Copy link
Contributor

@blag blag commented Oct 27, 2020

Closes #2997

The st2-self-check script must be run as root and run with ST2_AUTH_TOKEN or ST2_API_KEY environment variables, but it does not currently check for them. This means that it will run "successfully" even if the workflows it kicks off do not complete successfully.

This PR redirects the root user error message to stderr, and adds a check and informative error message for ST2_AUTH_TOKEN and ST2_API_KEY environment variables.

@pull-request-size pull-request-size bot added the size/S PR that changes 10-29 lines. Very easy to review. label Oct 27, 2020
@blag blag added this to the 3.4.0 milestone Oct 27, 2020
Copy link
Member

@arm4b arm4b left a comment

Choose a reason for hiding this comment

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

👍

Thanks for fixing that! I remember hitting the same problem before.

@blag blag merged commit 352d149 into master Oct 28, 2020
@blag blag deleted the better-st2-self-check-error-messages branch October 28, 2020 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement size/S PR that changes 10-29 lines. Very easy to review. tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

st2-self-check fails

3 participants