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] Unable to attach RWX to a node using Longhorn UI #2420

Closed
khushboo-rancher opened this issue Mar 29, 2021 · 6 comments
Closed

[BUG] Unable to attach RWX to a node using Longhorn UI #2420

khushboo-rancher opened this issue Mar 29, 2021 · 6 comments
Assignees
Labels
area/ui UI related like UI or CLI area/volume-rwx Volume RWX related kind/bug severity/4 Function working but has a minor issue (a minor incident with low impact)
Milestone

Comments

@khushboo-rancher
Copy link
Contributor

Describe the bug
RWX volume doesn't attach to a node when attach request is sent by Longhorn UI.

To Reproduce
Steps to reproduce the behavior:

  1. Create a RWX volume using Longhorn UI.
  2. Create PV/PVC for that volume.
  3. Click attach and select a node.
  4. The volume doesn't get attached to the node.

Expected behavior
The volume should get attached to the node.

Log
I don't see Longhorn-manager logs after the attach request. [longhorn-manager-hntrh] 122.171.150.151 - - [29/Mar/2021:17:10:20 +0000] "POST /v1/volumes/volume-test-1?action=attach HTTP/1.1" 200 2581 "https://khushlh.qa.rancher.space/k8s/clusters/c-55pdb/api/v1/namespaces/longhorn-system/services/http:longhorn-frontend:80/proxy/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36" for a rwx volume.
longhorn-support-bundle_8b98a2bd-3a47-4227-b8d0-850802e78cf2_2021-03-29T17-11-48Z.zip

Volume name - volume-test-1, pvc-Dd90b31b-81e0-4985-835b-90afe7cbd02f

Environment:

  • Longhorn version: Longhorn master - 03/29/2021

Additional context
Attachment through the Longhorn UI for RWO volumes is working fine.

@khushboo-rancher khushboo-rancher added kind/bug severity/1 Function broken (a critical incident with very high impact (ex: data corruption, failed upgrade) labels Mar 29, 2021
@khushboo-rancher khushboo-rancher added this to the v1.1.1 milestone Mar 29, 2021
@khushboo-rancher khushboo-rancher added the kind/regression Regression which has worked before label Mar 29, 2021
@joshimoo
Copy link
Contributor

RWX volumes can only be manually attached in maintenance mode, otherwise they are controlled by the share-manager.

@khushboo-rancher
Copy link
Contributor Author

@joshimoo Thanks for clarifying this behavior change from v1.1.0 to master. Do you think we should show a message on the Longhorn UI in this case?

@khushboo-rancher khushboo-rancher removed kind/regression Regression which has worked before severity/1 Function broken (a critical incident with very high impact (ex: data corruption, failed upgrade) labels Mar 29, 2021
@innobead
Copy link
Member

cc @smallteeths

@innobead innobead added the severity/4 Function working but has a minor issue (a minor incident with low impact) label Mar 31, 2021
@smallteeths
Copy link
Contributor

The ui can be modified in this way. Selected by default and disabled Maintenance radio When manually attaching rwx volume.

Jietu20210401-102047

Is this okay? @innobead @joshimoo @khushboo-rancher

@innobead
Copy link
Member

innobead commented Apr 1, 2021

The ui can be modified in this way. Selected by default and disabled Maintenance radio When manually attaching rwx volume.

Jietu20210401-102047

Is this okay? @innobead @joshimoo @khushboo-rancher

It sounds good to me. For the explanation purpose, do we have any tip style of message for this kind of enforced behavior like function disabled by default? ex: some message text next to the check box.

@khushboo-rancher
Copy link
Contributor Author

Verified with Longhorn-master -04/03/2021

Validation - Pass

User can attach RWX only in maintenance mode. UI shows the message on clicking the attach button. Validated the single and multiple volume attach scenarios.

Screen Shot 2021-04-03 at 12 44 57 AM

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 area/volume-rwx Volume RWX related kind/bug severity/4 Function working but has a minor issue (a minor incident with low impact)
Projects
None yet
Development

No branches or pull requests

4 participants