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

Cloud Functions Always Unhealthy #426

Open
3 tasks
zacpez opened this issue Oct 1, 2024 · 0 comments
Open
3 tasks

Cloud Functions Always Unhealthy #426

zacpez opened this issue Oct 1, 2024 · 0 comments
Labels
bug Any bug

Comments

@zacpez
Copy link
Contributor

zacpez commented Oct 1, 2024

Observation
All Gen 1 Cloud Functions in GCP Project are reporting as Unhealthy. Given the root cause below it might follow that Gen 2 will do the same.

Suspected Root Cause
There is a compound condition that always returns true in this linked logic gcloud functions list --filter="state!=ACTIVE OR status!=ACTIVE"

Gen 1 has key status and Gen 2 has key state that holds value 'ACTIVE' or other values for other states. If one of these keys is missing then it reports as Unhealthy.

Short Term Ideas
Add a CLI flag (--v2) to force the API response in Gen 2 mode even if the functions are Gen 1. This worked locally with gcloud, and presumably the version in the runtime is the same or close.

Long Term Ideas
Not necessarily long term, rather alternative ideas: Use a XOR operator or equivalent condition with available logic operators.

Housekeeping - Check off all before closing issue

  • This bug is fixed with the short term ideas
  • Long term backlog items are created and linked to this issue
  • The long term backlog items are assigned to the appropriate project
@zacpez zacpez added the bug Any bug label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Any bug
Projects
None yet
Development

No branches or pull requests

1 participant