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

Getting a crash since I updated the node pool #9

Open
danhawkins opened this issue Apr 26, 2023 · 2 comments
Open

Getting a crash since I updated the node pool #9

danhawkins opened this issue Apr 26, 2023 · 2 comments

Comments

@danhawkins
Copy link
Contributor

It seems that libelection is expecting a resourceVersion, but it's not there

Kubernetes Version 1.23.16-gke.1400

realtimeex-6c5c69b4bf-xs6pz realtimeex 09:56:36.744 [error] GenServer Election.Elector terminating
realtimeex-6c5c69b4bf-xs6pz realtimeex ** (FunctionClauseError) no function clause matching in anonymous fn/1 in Election.Strategy.Kubernetes.parse_response/2
realtimeex-6c5c69b4bf-xs6pz realtimeex     (libelection) lib/strategy/kubernetes.ex:77: anonymous fn(%{"ip" => "10.8.2.137", "nodeName" => "gke-dev-e2-spot-pool-6b613fad-jwf2", "targetRef" => %{"kind" => "Pod", "name" => "realtimeex-6c5c69b4bf-xs6pz", "namespace" => "staging", "uid" => "86d8ea88-8e9f-4873-b1c0-2dd6c25d4a6e"}}) in Election.Strategy.Kubernetes.parse_response/2
realtimeex-6c5c69b4bf-xs6pz realtimeex     (elixir) lib/enum.ex:1327: Enum."-map/2-lists^map/1-0-"/2
realtimeex-6c5c69b4bf-xs6pz realtimeex     (elixir) lib/enum.ex:2986: Enum.flat_map_list/2
realtimeex-6c5c69b4bf-xs6pz realtimeex     (libelection) lib/strategy/kubernetes.ex:74: anonymous fn/3 in Election.Strategy.Kubernetes.parse_response/2
realtimeex-6c5c69b4bf-xs6pz realtimeex     (elixir) lib/enum.ex:1940: Enum."-reduce/3-lists^foldl/2-0-"/3
realtimeex-6c5c69b4bf-xs6pz realtimeex     (libelection) lib/strategy/kubernetes.ex:23: Election.Strategy.Kubernetes.leader/2
realtimeex-6c5c69b4bf-xs6pz realtimeex     (libelection) lib/elector.ex:102: Election.Elector.determine_election/2
realtimeex-6c5c69b4bf-xs6pz realtimeex     (libelection) lib/elector.ex:66: Election.Elector.handle_cast/2
realtimeex-6c5c69b4bf-xs6pz realtimeex Last message: :timeout
@zorbash
Copy link
Contributor

zorbash commented Apr 26, 2023

That's odd. According to the API docs for v1.23 the targetRef which is an ObjectReference should contain a resourceVersion and it doesn't optional (see: type)

@danhawkins
Copy link
Contributor Author

@zorbash it has +optional, doesn't that mean it is optional?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants