-
Notifications
You must be signed in to change notification settings - Fork 900
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
Cockpit is a monitor thread and is not a pod worker. #20823
Cockpit is a monitor thread and is not a pod worker. #20823
Conversation
Follow up to ManageIQ#20792 It runs in the orchestrator in pods in a thread and launches a process to communicate with cockpit. The threaded worker monitors this process, has a miq_workers row, but does not run in a separate pod and therefore doesn't currently update the row with it's pod name. Therefore, we need to exclude cockpit rows from the code that monitors for orphaned pod miq_workers. In the future, we could populate the cockpit miq_workers row with the pod name of the orchestrator pod it's running on but that would be a larger change and perhaps we should discuss that with a larger discussion about cockpit and if it works as we want in pods.
2c29836
to
b9f8913
Compare
seriously...
Ok, fine, pushed using the second most popular form in the rails codebase. |
Checked commit jrafanie@b9f8913 with ruby 2.6.3, rubocop 0.82.0, haml-lint 0.35.0, and yamllint |
I'll check if this is a straight backport to jansa |
It's not a straight backport, I'll open a jansa PR |
opened #20827 for the jansa version of this PR |
Cockpit is a monitor thread and is not a pod worker. (cherry picked from commit 90c2323)
Kasparov backport details:
|
…rker [JANSA] Cockpit is a monitor thread and is not a pod worker. #20823 jansa backport
Follow up to #20792
It runs in the orchestrator in pods in a thread and launches a process to communicate with cockpit.
The threaded worker monitors this process, has a miq_workers row, but does not run in a separate pod
and therefore doesn't currently update the row with it's pod name. Therefore, we need to exclude cockpit
rows from the code that monitors for orphaned pod miq_workers.
In the future, we could populate the cockpit miq_workers row with the pod name of the orchestrator pod it's
running on but that would be a larger change and perhaps we should discuss that with a larger discussion about
cockpit and if it works as we want in pods.