Description
===========
Manila allows to create share-replica agnostic to user/admin. However user can pass availability zone as an argument to share-replica creation. But this does not allow to have replicas on specific host which might be underloaded or admin wants specifically for any other use case.
The scheduler hints used in bug https://bugs.launchpad.net/manila/+bug/1946462 to allow share creation on specific host can be extended to allow share-replica creation on specific host assuming other parameter e.g. availability_zone are correct.
Approach
========
Reuse hostOnlyFilter to take scheduler-hints for share-replica creation.
e.g. manila share-replica-create share_id --scheduler-hints "only_host=host@backend#pool"
This hint will not be stored as metadata and only used for creating share-replica. Also this is restricted to admin only.
Reviewed: https:/ /review. opendev. org/c/openstack /manila/ +/817379 /opendev. org/openstack/ manila/ commit/ 9da023eeb58fb7f c62a3898dd12966 33fda467ae
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 9da023eeb58fb7f c62a3898dd12966 33fda467ae
Author: Kiran Pawar <email address hidden>
Date: Wed Nov 10 10:00:56 2021 +0000
Add support of scheduler_hints in share replica create
The OnlyHostFilter added for share creation can be extended to use in
share replica creation using scheduler-hints.
e.g. manila share-replica- create share_id \
-- scheduler- hints "only_host= host@backend# pool"
OnlyHostFilter (https:/ /review. opendev. org/c/openstack /manila/ +/813293)
Depends-on: I603434cac246e2 c0946672d3f0fe4 69ed5423fa4 16622bdc910127f a489835db38
Closes-Bug: #1950313
Change-Id: I2e6d8709fc02df