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

[BUG] Actual size is showing unknown on volume detail page #2861

Closed
khushboo-rancher opened this issue Aug 10, 2021 · 7 comments
Closed

[BUG] Actual size is showing unknown on volume detail page #2861

khushboo-rancher opened this issue Aug 10, 2021 · 7 comments
Assignees
Labels
area/ui UI related like UI or CLI kind/bug kind/regression Regression which has worked before severity/2 Function working but has a major issue w/o workaround (a major incident with significant impact)
Milestone

Comments

@khushboo-rancher
Copy link
Contributor

Describe the bug
Actual size is showing unknown on volume detail page for volume.

To Reproduce
Steps to reproduce the behavior:

  1. In Rancher, while creating a deployment, select create PVC in storage tab.
  2. Select Longhorn in storage class and fill out necessary fields.
  3. Click create.
  4. Go to Longhorn, check the volume created in volume details page.
  5. The actual size is appearing as unknown

Expected behavior
The actual size should show the size properly.

Screen Shot 2021-08-10 at 11 15 19 AM

Volume :

apiVersion: v1
items:
- apiVersion: longhorn.io/v1beta1
  kind: Volume
  metadata:
spec:
    Standby: false
    accessMode: rwo
    backingImage: ""
    baseImage: ""
    dataLocality: disabled
    disableFrontend: false
    diskSelector: null
    encrypted: false
    engineImage: longhornio/longhorn-engine:master-head
    fromBackup: ""
    frontend: blockdev
    lastAttachedBy: ""
    migratable: false
    migrationNodeID: ""
    nodeID: node_name
    nodeSelector: null
    numberOfReplicas: 3
    recurringJobs: null
    replicaAutoBalance: ignored
    revisionCounterDisabled: false
    size: "1073741824"
    staleReplicaTimeout: 2880
  status:
    actualSize: 51003392
    conditions:
      restore:
        lastProbeTime: ""
        lastTransitionTime: "2021-08-10T17:46:23Z"
        message: ""
        reason: ""
        status: "False"
        type: restore
      scheduled:

Environment:

  • Longhorn version: Longhorn-master - c09ac49 08/10/2021
  • Installation method (e.g. Rancher Catalog App/Helm/Kubectl): kubectl
@khushboo-rancher khushboo-rancher added kind/bug kind/regression Regression which has worked before severity/2 Function working but has a major issue w/o workaround (a major incident with significant impact) area/ui UI related like UI or CLI labels Aug 10, 2021
@PhanLe1010
Copy link
Contributor

Need to check the actualSize value returned by the API <LONGHORN-URL>/v1/volumes

@innobead innobead added this to the v1.2.0 milestone Aug 11, 2021
@smallteeths
Copy link
Contributor

smallteeths commented Aug 11, 2021

The normal situation is that unKnow will not occur. The original pr is associated with an interface /v1/volumes/a1?action=snapshotList. If this interface request fails the actual size will have an unKnow status.

I think I can remove this condition now, since the real size of the volume is not associated with snapshotList.

The above bug is probably caused by the error returned by the /v1/volumes/a1?action=snapshotList interface.

@innobead
Copy link
Member

The normal situation is that unKnow will not occur. The original pr is associated with an interface /v1/volumes/a1?action=snapshotList. If this interface request fails the actual size will have an unKnow status.

I think I can remove this condition now, since the real size of the volume is not associated with snapshotList.

The above bug is probably caused by the error returned by the /v1/volumes/a1?action=snapshotList interface.

cc @shuo-wu @jenting

@jenting
Copy link
Contributor

jenting commented Aug 11, 2021

I can't grep the commit id c09ac49 in longhorn-manager master branch.
But I found the f271ef470f706e58cbd0d30948e1f1189b028d8d would break the snapshotList API call.

Shuo is working on it.

@jenting
Copy link
Contributor

jenting commented Aug 11, 2021

After quickly sync up with Shuo, this case only happens if we access Longhorn GUI from the Rancher server.
If we access the Longhorn GUI by port-forward or NodePort, this issue won't happen.

@innobead innobead assigned shuo-wu and unassigned smallteeths Aug 11, 2021
@shuo-wu
Copy link
Contributor

shuo-wu commented Aug 11, 2021

The root cause analysis and the fix are in #2869

@khushboo-rancher
Copy link
Contributor Author

Closing after the validation of #2869

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui UI related like UI or CLI kind/bug kind/regression Regression which has worked before severity/2 Function working but has a major issue w/o workaround (a major incident with significant impact)
Projects
None yet
Development

No branches or pull requests

6 participants