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

Misleading Readiness Gate error in Argo CD UI #13972

Closed
leoluz opened this issue Jun 8, 2023 · 3 comments · Fixed by #14076
Closed

Misleading Readiness Gate error in Argo CD UI #13972

leoluz opened this issue Jun 8, 2023 · 3 comments · Fixed by #14076
Labels
bug Something isn't working

Comments

@leoluz
Copy link
Collaborator

leoluz commented Jun 8, 2023

Describe the bug

Argo CD now provides a new error in the UI instructing the user that there is a problem with the Readiness Gates (See screenshot below). The logic in the UI validates the existence of a readiness gate in the Pod spec without a related condition in the status field. However this error is misleading as pods that are marked with readiness gates will always have a moment where this condition is not met and errors are often being displayed. If the controller responsible for updating the readiness gate is overloaded or just slow, the Pod won't have a related condition created for a while. It will eventually create the condition and the situation will be normalized. Users are confused with this new UI thinking that there is an actual problem with their application.

Suggestion:

  • Change the UI logic to just show the message when all container statuses are marked as ready and we still don't have the readiness gate condition created
  • Change the UI and make it display a warning message instead of an error message.

Screenshots

readinessgate_error

Version

Argo CD 2.7.2

@leoluz leoluz added the bug Something isn't working label Jun 8, 2023
@crenshaw-dev
Copy link
Collaborator

By my reading of the docs, even if the readiness gate statuses are set, but they are set to False, we cannot infer that they are "failed." They simply aren't ready. So we should report the status neutrally, without implying that there is some error or failure.

@Marvin9
Copy link
Contributor

Marvin9 commented Jun 9, 2023

Makes sense. I will reiterate on readiness gates UI to avoid premature checks and report warning instead of error.

crenshaw-dev added a commit to crenshaw-dev/argo-cd that referenced this issue Jun 15, 2023
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
crenshaw-dev added a commit that referenced this issue Jun 15, 2023
* fix(ui): soften readiness gate failure message (#13972)

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

* null check everything

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

---------

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
crenshaw-dev added a commit to crenshaw-dev/argo-cd that referenced this issue Jun 15, 2023
…proj#14076)

* fix(ui): soften readiness gate failure message (argoproj#13972)

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

* null check everything

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

---------

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
@crenshaw-dev
Copy link
Collaborator

Made some changes and will release them with 2.7.5.

crenshaw-dev added a commit that referenced this issue Jun 15, 2023
)

* fix(ui): soften readiness gate failure message (#13972)



* null check everything



---------

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
schakrad pushed a commit to schakrad/argo-cd that referenced this issue Jul 24, 2023
…proj#14076) (argoproj#14079)

* fix(ui): soften readiness gate failure message (argoproj#13972)

* null check everything

---------

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: schakrad <58915923+schakrad@users.noreply.github.com>
yyzxw pushed a commit to yyzxw/argo-cd that referenced this issue Aug 9, 2023
…proj#14076)

* fix(ui): soften readiness gate failure message (argoproj#13972)

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

* null check everything

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

---------

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
tesla59 pushed a commit to tesla59/argo-cd that referenced this issue Dec 16, 2023
…proj#14076)

* fix(ui): soften readiness gate failure message (argoproj#13972)

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

* null check everything

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>

---------

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants