Bug 2130853 - [RFE][manila] a way to set the preferred parameter manually for export_location on the Manila
Summary: [RFE][manila] a way to set the preferred parameter manually for export_locati...
Keywords:
Status: NEW
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-manila
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: OpenStack Manila Bugzilla Bot
QA Contact: vhariria
Jenny-Anne Lynch
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-29 07:47 UTC by Chorong Park
Modified: 2023-07-24 16:45 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-18987 0 None None None 2022-09-29 07:54:27 UTC

Description Chorong Park 2022-09-29 07:47:53 UTC
Description of problem:

"preferred" key could be set for some location by specific driver (if this feature is implemented there). I can see related code in manila/share/drivers/tegile/tegile.py and in manila/share/drivers/netapp/dataontap/cluster_mode/lib_base.py. 
I don't believe that there is a way to set it manually.

https://docs.openstack.org/manila/train/admin/export_location_metadata.html
preferred - May be True or False. Defaults to False. Indicates that clients should prefer to mount this export location over other export locations that are not preferred. This may be used by drivers which have fast/slow paths to indicate to clients which paths are faster. It could be used to indicate a path is preferred for another reason, as long as the reason isn’t one that changes over the life of the manila-share service. This key is always visible through the REST API.
Version-Release number of selected component (if applicable):

https://github.com/openstack/manila/blob/master/manila/share/drivers/container/driver.py#L690-L733

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results: 
can't set the preferred parameter manually for export_location on the Manila

Expected results:
there is a way to set the preferred parameter manually 

Additional info:


Note You need to log in before you can comment on or make changes to this bug.