manageiq icon indicating copy to clipboard operation
manageiq copied to clipboard

[WIP] monitor container termination status info when getting pod info

Open jrafanie opened this issue 3 years ago • 9 comments

WIP...

This is what it looks like in pp MiqServer.my_server.worker_manager.current_pods

...
 "1-generic-7f6466d498-n2xh9"=>
  {:label_name=>"1-generic",
   :container_restarts=>1,
   :last_state_terminated=>true,
   :terminations=>
    [{:container_id=>
       "cri-o://c2f9c6a0d11c8befc0dfa1431a9ce8f73b22d39526b839f4d15b865d2ce46f10",
      :exit_code=>137,
      :message=>nil,
      :reason=>"OOMKilled",
      :signal=>nil,
      :started_at=>"2022-12-02T13:51:23Z",
      :finished_at=>"2022-12-02T15:22:07Z"}]},
 "1-google-cloud-event-catcher-4-596d898775-fqvf8"=>
  {:label_name=>"1-google-cloud-event-catcher-4",
   :container_restarts=>0,
   :last_state_terminated=>false,
   :terminations=>[]},
...

jrafanie avatar Dec 02 '22 22:12 jrafanie

really looking forward to this...thanks @jrafanie

Fryguy avatar Dec 02 '22 22:12 Fryguy

I also found this but it assumes you can install things in the cluster so at best, we could possibly suggest it: https://medium.com/@andrew.kaczynski/kubernetes-events-how-to-keep-historical-data-of-your-cluster-835d685cc45

jrafanie avatar Dec 02 '22 23:12 jrafanie

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s)

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

miq-bot avatar Mar 13 '23 00:03 miq-bot

This pull request has been automatically closed because it has not been updated for at least 3 months.

Feel free to reopen this pull request if these changes are still valid.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

miq-bot avatar Jun 19 '23 00:06 miq-bot

Checked commit https://github.com/jrafanie/manageiq/commit/0aaf05b223c2991cbafbb46e907d26affd980833 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint 1 file checked, 1 offense detected

app/models/miq_server/worker_management/kubernetes.rb

miq-bot avatar Sep 11 '23 19:09 miq-bot

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s).

miq-bot avatar Dec 18 '23 00:12 miq-bot

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s).

miq-bot avatar Apr 01 '24 00:04 miq-bot

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s).

miq-bot avatar Jul 08 '24 00:07 miq-bot