-
Notifications
You must be signed in to change notification settings - Fork 897
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
Fixed cockpit process starting #20077
Fixed cockpit process starting #20077
Conversation
@@ -151,7 +151,7 @@ def cockpit_ws_run | |||
Bundler.with_clean_env do | |||
stdin, stdout, stderr, wait_thr = Open3.popen3(env, *cockpit_ws.command(BINDING_ADDRESS), :unsetenv_others => true) | |||
end | |||
stdin.close | |||
stdin&.close |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the intention was to have stdin.close
in the scope of the Open3
command and was accidentally moved to a different scope, outside the Bundler.with_clean_env
scope, in commit: 63b44ed
I believe checking for stdin
here is not right. We should either not close stdin
at all or move the stdin.close
in the with_clean_env
block.
cc @carbonin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move the stdin.close in the with_clean_env block.
☝️ This I think.
a94aa2c
to
e00b25d
Compare
it looks like |
593cdea
to
5295103
Compare
fixed possible nil.close, close stderr and stdout when process terminated added missing default value in MiqCockpitWsWorker::Runner#wait_on_cockpit_ws(pid) method, added logging what command used to start cockpit process and enviroment settings fixed typo when accessig command to start cockpit return pid or raise error if cockpit process not started Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1824355
5295103
to
6e67f1f
Compare
Checked commits yrudman/manageiq@7bb0735~...ddec1e3 with ruby 2.5.7, rubocop 0.69.0, haml-lint 0.28.0, and yamllint |
…in-cockpit-worker Fixed cockpit process starting (cherry picked from commit 87de914) https://bugzilla.redhat.com/show_bug.cgi?id=1824355
Jansa backport details:
|
…in-cockpit-worker Fixed cockpit process starting (cherry picked from commit 87de914) https://bugzilla.redhat.com/show_bug.cgi?id=1824355
Ivanchuk backport details:
|
Issue: Cockpit process not starting
There were multiple issues with each preventing successful starting for cockpit process.
After:
Cockpit process successfully started on reproducer environment:
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1824355
@miq-bot add-label bug, core, ivanchuk/yes