Specify host during share-replica creation as scheduler-hint

Bug #1950313 reported by kiran pawar
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Medium
kiran pawar

Bug Description

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.

Tags: replication
kiran pawar (kpdev)
summary: - Specify host during share-replica creation as scheduler-hint Edit
+ Specify host during share-replica creation as scheduler-hint
Changed in manila:
status: New → In Progress
Vida Haririan (vhariria)
tags: added: replication
Changed in manila:
status: In Progress → New
Changed in manila:
milestone: none → yoga-2
assignee: nobody → kiran pawar (kiranpawar89)
importance: Undecided → Medium
status: New → Confirmed
Changed in manila:
status: Confirmed → In Progress
Changed in manila:
milestone: yoga-2 → yoga-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.opendev.org/c/openstack/manila/+/817379
Committed: https://opendev.org/openstack/manila/commit/9da023eeb58fb7fc62a3898dd1296633fda467ae
Submitter: "Zuul (22348)"
Branch: master

commit 9da023eeb58fb7fc62a3898dd1296633fda467ae
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: I603434cac246e2c0946672d3f0fe469ed5423fa4
    Closes-Bug: #1950313
    Change-Id: I2e6d8709fc02df16622bdc910127fa489835db38

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

This issue was fixed in the openstack/python-manilaclient 3.3.0 release.

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.