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

Cockpit is a monitor thread and is not a pod worker. #20823

Merged
merged 1 commit into from
Nov 18, 2020

Conversation

jrafanie
Copy link
Member

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.

@gtanzillo gtanzillo self-assigned this Nov 18, 2020
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.
@jrafanie jrafanie force-pushed the cockpit_is_not_a_pod_worker branch from 2c29836 to b9f8913 Compare November 18, 2020 16:00
@jrafanie
Copy link
Member Author

seriously...

joerafaniello@Joes-MBP-2 rails % git grep "%w(" | wc -l
     793
joerafaniello@Joes-MBP-2 rails % git grep "%w\[" | wc -l
     152
joerafaniello@Joes-MBP-2 rails % git grep "%w{" | wc -l
      91

Ok, fine, pushed using the second most popular form in the rails codebase.

@miq-bot
Copy link
Member

miq-bot commented Nov 18, 2020

Checked commit jrafanie@b9f8913 with ruby 2.6.3, rubocop 0.82.0, haml-lint 0.35.0, and yamllint
2 files checked, 0 offenses detected
Everything looks fine. 👍

@gtanzillo gtanzillo merged commit 90c2323 into ManageIQ:master Nov 18, 2020
@jrafanie jrafanie deleted the cockpit_is_not_a_pod_worker branch November 18, 2020 19:15
@jrafanie
Copy link
Member Author

I'll check if this is a straight backport to jansa

@jrafanie
Copy link
Member Author

It's not a straight backport, I'll open a jansa PR

@jrafanie
Copy link
Member Author

opened #20827 for the jansa version of this PR

simaishi pushed a commit that referenced this pull request Nov 19, 2020
Cockpit is a monitor thread and is not a pod worker.

(cherry picked from commit 90c2323)
@simaishi
Copy link
Contributor

Kasparov backport details:

$ git log -1
commit 36597cad2e0d21468df8d9089f712ffc5119817c
Author: Gregg Tanzillo <[email protected]>
Date:   Wed Nov 18 13:43:57 2020 -0500

    Merge pull request #20823 from jrafanie/cockpit_is_not_a_pod_worker

    Cockpit is a monitor thread and is not a pod worker.

    (cherry picked from commit 90c232339e2e313f476a82aec4e43ff74f1c3649)

simaishi added a commit that referenced this pull request Nov 19, 2020
…rker

[JANSA] Cockpit is a monitor thread and is not a pod worker. #20823 jansa backport
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.

5 participants