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

Check if tray is running before trying to kill it during cleanup #2485

Merged
merged 2 commits into from
Jun 29, 2021

Conversation

anjannath
Copy link
Member

@anjannath anjannath commented Jun 28, 2021

Fixes #2433

  • Check if the tray is running before attempting to kill the tray process, this prevents showing an error at the end of cleanup
  • Removes the crc-users group during cleanup

@@ -31,7 +31,9 @@ func stopTray() error {
* this tries to stop the old tray process, can be removed after a few releases
*/
_, _, _ = powershell.Execute(`Stop-Process -Name tray-windows`)

if err := checkIfTrayRunning(); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be nice to extend the error reporting to be able to differentiate between "tray is not running" and "some other failure occurred" (no need for changes in this PR)

@openshift-ci
Copy link

openshift-ci bot commented Jun 28, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: anjannath, cfergeau

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@praveenkumar praveenkumar merged commit 5d877a3 into crc-org:master Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] cleanup error when tray process does not exist
3 participants