Specify host during share creation as scheduler-hint

Bug #1946462 reported by kiran pawar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Undecided
Unassigned

Bug Description

Description
===========
Manila allows to create shares agnostic to user/admin. However in certain use cases, user/admin wants to create share on specific host since other hosts might be overloaded. User can create new share-type and then create shares using that type to get allocation on new host. But it has limitation since, we need to add new type every-time for new host and we can not delete it unless all shares of that type are deleted.
Thus we need a simple way to create share on specific host, since its first share it will in-turn create SVM. As manila does not provide a way to create SVM, this is another use case as well.

Approach
========
Recently added affinity/anti-affinity filters take scheduler-hints for share creation. We can extend those scheduler-hints to create share on specific backed.
e.g. manila create 1 nfs --scheduler-hints "only_host=host@backend#pool"

This hint will not be stored as metadata and only used for creating share. May be we can restrict to admin only.

Revision history for this message
kiran pawar (kpdev) wrote :
Revision history for this message
kiran pawar (kpdev) wrote :
Revision history for this message
Vida Haririan (vhariria) wrote :
Changed in manila:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.opendev.org/c/openstack/manila/+/813293
Committed: https://opendev.org/openstack/manila/commit/746fb7e2df142ba490dc5457ac6a0f47c1d5cc8e
Submitter: "Zuul (22348)"
Branch: master

commit 746fb7e2df142ba490dc5457ac6a0f47c1d5cc8e
Author: Kiran Pawar <email address hidden>
Date: Sun Oct 10 08:06:23 2021 +0000

    OnlyHostFilter allows user to specify host during share create.

    e.g. manila create NFS 1 --name Share1 --share-network net1 \
    --scheduler_hint="only_host=host1@generic1#GENERIC1"

    Since there is no way to create share server in manila, we can use a
    workaround of creating first share on specific host
    (e.g. host@backend#pool). This will then create the share server
    automatically on that host and admin can use idle host when other
    hosts are overloaded.

    New microversion 2.67 introduced.

    DocImpact

    Closes-Bug: #1946462
    Change-Id: I603434cac246e2c0946672d3f0fe469ed5423fa4

Changed in manila:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 14.0.0.0rc1

This issue was fixed in the openstack/manila 14.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.