Driver filter disallows using queries with share_backend_name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Medium
|
Sneha Prasad |
Bug Description
How to reproduce:
1) With a manila installation, set up a share type with an extra-spec that covers two or more backend names, For example, if your backend names were "Prague" and "Vienna", you'd do:
manila type-key <share-type-name> set share_backend_
2) Attempt to create a share with this share type
Manila's "driver" scheduler filter fails the share creation.
RCA:
The driver filter is checking for hard equality between the share_backend_name specified in the share type and the name reported by the host [1]. This defeats the purpose of the capabilities filter giving the ability to use "<in>" (selection) operator in the extra-spec.
This filter originated in Cinder, and they removed this errant check with [2]
[1] https:/
[2] https:/
tags: | added: low-hanging-fruit |
tags: | added: backport-potential |
Changed in manila: | |
importance: | Undecided → Medium |
Changed in manila: | |
assignee: | nobody → Xinyue Wang (xinyue.wang) |
Changed in manila: | |
assignee: | Xinyue Wang (xinyue.wang) → Sneha Prasad (snpd) |
Changed in manila: | |
status: | New → In Progress |
Changed in manila: | |
assignee: | Sneha Prasad (snpd) → Goutham Pacha Ravi (gouthamr) |
Changed in manila: | |
assignee: | Goutham Pacha Ravi (gouthamr) → Sneha Prasad (snpd) |
milestone: | none → stein-3 |
Changed in manila: | |
assignee: | Sneha Prasad (snpd) → Tom Barron (tpb) |
Changed in manila: | |
assignee: | Tom Barron (tpb) → Sneha Prasad (snpd) |
Hi, I am an outreachy applicant, and I want to try to fix this issue.