dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Displaying wrong Dapr Control Plane version in Overview page intermittently

Open abhith opened this issue 3 years ago • 2 comments

Expected Behavior

Expect to see accurate info.

Actual Behavior

The version displayed keeps changing from time to time.

Most time shows image

But sometimes, it shows image

Checked the controlplanestatus API call in both cases but got a similar response,

[
    {
        "service": "dapr-placement-server",
        "name": "dapr-placement-server-0",
        "namespace": "dapr-system",
        "healthy": "True",
        "status": "Running",
        "version": "1.3.0",
        "age": "18d",
        "created": "2021-08-25 11:59.09"
    },
    {
        "service": "dapr-operator",
        "name": "dapr-operator-696977d4fb-9g85k",
        "namespace": "dapr-system",
        "healthy": "True",
        "status": "Running",
        "version": "1.3.0",
        "age": "18d",
        "created": "2021-08-25 11:59.05"
    },
    {
        "service": "dapr-dashboard",
        "name": "dapr-dashboard-5dd8555b7b-t7mx9",
        "namespace": "dapr-system",
        "healthy": "True",
        "status": "Running",
        "version": "0.7.0",
        "age": "18d",
        "created": "2021-08-25 11:59.05"
    },
    {
        "service": "dapr-sidecar-injector",
        "name": "dapr-sidecar-injector-7b974549c6-hqgc9",
        "namespace": "dapr-system",
        "healthy": "True",
        "status": "Running",
        "version": "1.3.0",
        "age": "18d",
        "created": "2021-08-25 11:59.05"
    },
    {
        "service": "dapr-sentry",
        "name": "dapr-sentry-575465868f-gtbk5",
        "namespace": "dapr-system",
        "healthy": "True",
        "status": "Running",
        "version": "1.3.0",
        "age": "18d",
        "created": "2021-08-25 11:59.05"
    }
]

Steps to Reproduce the Problem

Just watch the dashboard for some time.

Release Note

RELEASE NOTE: FIX Dapr control plane version displayed in the overview.

abhith avatar Sep 13 '21 05:09 abhith

Thanks. It is because the dashboard has a different version itself. Thanks for bringing this up.

artursouza avatar Sep 16 '21 05:09 artursouza

I could fix this by modifying here.

But to do that, I need to know, which plan we can take ahead,

Plan A

Out of the number of services in the controlplanestatus API response, which service version we should consider as the Dapr control plane version in case of,

  1. Kubernetes mode
  2. Self-hosed mode

Plan B

Can we use something like semver package to figure out the latest version out of all services (eg. here)

Plan C (out of my scope)

Align the dashboard version with the rest of the dapr services.

abhith avatar Sep 16 '21 18:09 abhith