"preferred" export path not updated in the CephFS/NFS driver

Bug #2053100 reported by Goutham Pacha Ravi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Medium
Goutham Pacha Ravi

Bug Description

Description
===========
As part of a fix for https://launchpad.net/bugs/2035137 ; the CephFS/NFS driver was improved to return preferred export paths. This is useful when transitioning from standalone NFS-Ganesha server to cephadm deployed NFS-Ganesha cluster. While multiple export paths are represented, there are a couple of issues with how this fix is working

Steps to reproduce
==================

A chronological list of steps which will help reproduce the issue I hit:
* Start with a devstack with cephadm/nfs
* Set "cephfs_ganesha_server_ip" to the same IP as the VIP assigned to the cephadm deployed nfs cluster

Expected result
===============
when "cephfs_ganesha_server_ip" is set to the same value as the IP address of the new NFS cluster, i expect the driver to ignore the IP duplication. This is clearly a misconfiguration; but not critical enough to fail startup.
it is expected that the export path through the cephadm deployed nfs cluster has its "preferred" metadata set to True

Actual result
=============
- I have redundant export paths, because the driver isn't deduplicating export server IPs
- exports pertaining to the nfs cluster aren't set as "preferred=True"

Environment
===========
1. trunk branch of manila; but this fix has been backported to antelope (2023.1)

2. Ceph/NFS with Ceph Reef

Tags: cephfs
Vida Haririan (vhariria)
tags: added: cephfs
Revision history for this message
Vida Haririan (vhariria) wrote :
Changed in manila:
status: New → Triaged
Changed in manila:
assignee: nobody → Goutham Pacha Ravi (gouthamr)
milestone: none → caracal-rc1
importance: Undecided → High
importance: High → Medium
Changed in manila:
milestone: caracal-rc1 → dalmation-1
Changed in manila:
milestone: dalmatian-1 → dalmatian-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/manila/+/924987

Changed in manila:
status: Triaged → In Progress
Changed in manila:
milestone: dalmatian-3 → dalmatian-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/manila/+/928984

Changed in manila:
milestone: dalmatian-rc1 → epoxy-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/2024.2)

Fix proposed to branch: stable/2024.2
Review: https://review.opendev.org/c/openstack/manila/+/929330

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/2024.1)

Fix proposed to branch: stable/2024.1
Review: https://review.opendev.org/c/openstack/manila/+/929331

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.opendev.org/c/openstack/manila/+/924987
Committed: https://opendev.org/openstack/manila/commit/3e9d535be1799a2f2d590537125e3b7630dc4aee
Submitter: "Zuul (22348)"
Branch: master

commit 3e9d535be1799a2f2d590537125e3b7630dc4aee
Author: Goutham Pacha Ravi <email address hidden>
Date: Wed Sep 11 22:19:37 2024 -0700

    Fix export location metadata updates by drivers

    Drivers can set arbitrary key=value metadata to export
    paths. The share manager now checks updates to previously
    set metadata when drivers update this metadata with the
    "ensure_shares" routine.

    Change-Id: Ia42de608ba056d71a1deae2c59bfb43a11672ab7
    Partial-Bug: #2053100

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/2023.2)

Fix proposed to branch: stable/2023.2
Review: https://review.opendev.org/c/openstack/manila/+/929352

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.opendev.org/c/openstack/manila/+/928984
Committed: https://opendev.org/openstack/manila/commit/17088aa57af3ae2dd5a16e2e8558ec471d2c1cc5
Submitter: "Zuul (22348)"
Branch: master

commit 17088aa57af3ae2dd5a16e2e8558ec471d2c1cc5
Author: Goutham Pacha Ravi <email address hidden>
Date: Wed Sep 11 22:23:19 2024 -0700

    Fix "preferred" export locations in the CephFS driver

    The CephFS driver used to set the "preferred"
    export path by sending back an export location
    model update; however, the "preferred" keyword
    is expected in the export location's metadata,
    not in the export location dict.

    Change-Id: Id2214412fe75456cdb52edb5ff261d32b063655f
    Closes-Bug: #2053100

Changed in manila:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/2024.2)

Fix proposed to branch: stable/2024.2
Review: https://review.opendev.org/c/openstack/manila/+/930602

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/2024.1)

Fix proposed to branch: stable/2024.1
Review: https://review.opendev.org/c/openstack/manila/+/930643

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/2023.2)

Fix proposed to branch: stable/2023.2
Review: https://review.opendev.org/c/openstack/manila/+/930644

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/2023.1)

Fix proposed to branch: stable/2023.1
Review: https://review.opendev.org/c/openstack/manila/+/930645

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (stable/2024.2)

Reviewed: https://review.opendev.org/c/openstack/manila/+/929330
Committed: https://opendev.org/openstack/manila/commit/ffa4233b9c31cdc2a4ad90d162c6bc15d7dabde4
Submitter: "Zuul (22348)"
Branch: stable/2024.2

commit ffa4233b9c31cdc2a4ad90d162c6bc15d7dabde4
Author: Goutham Pacha Ravi <email address hidden>
Date: Wed Sep 11 22:19:37 2024 -0700

    Fix export location metadata updates by drivers

    Drivers can set arbitrary key=value metadata to export
    paths. The share manager now checks updates to previously
    set metadata when drivers update this metadata with the
    "ensure_shares" routine.

    Change-Id: Ia42de608ba056d71a1deae2c59bfb43a11672ab7
    Partial-Bug: #2053100
    (cherry picked from commit 3e9d535be1799a2f2d590537125e3b7630dc4aee)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.opendev.org/c/openstack/manila/+/930602
Committed: https://opendev.org/openstack/manila/commit/620933cdb98f3560a480923ba096a6215d7d0edd
Submitter: "Zuul (22348)"
Branch: stable/2024.2

commit 620933cdb98f3560a480923ba096a6215d7d0edd
Author: Goutham Pacha Ravi <email address hidden>
Date: Wed Sep 11 22:23:19 2024 -0700

    Fix "preferred" export locations in the CephFS driver

    The CephFS driver used to set the "preferred"
    export path by sending back an export location
    model update; however, the "preferred" keyword
    is expected in the export location's metadata,
    not in the export location dict.

    Change-Id: Id2214412fe75456cdb52edb5ff261d32b063655f
    Closes-Bug: #2053100
    (cherry picked from commit 17088aa57af3ae2dd5a16e2e8558ec471d2c1cc5)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 19.0.0.0rc2

This issue was fixed in the openstack/manila 19.0.0.0rc2 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (stable/2024.1)

Reviewed: https://review.opendev.org/c/openstack/manila/+/929331
Committed: https://opendev.org/openstack/manila/commit/8a2f3a9db13c8db9d60d6a193f4bd937eb9d6ce6
Submitter: "Zuul (22348)"
Branch: stable/2024.1

commit 8a2f3a9db13c8db9d60d6a193f4bd937eb9d6ce6
Author: Goutham Pacha Ravi <email address hidden>
Date: Wed Sep 11 22:19:37 2024 -0700

    Fix export location metadata updates by drivers

    Drivers can set arbitrary key=value metadata to export
    paths. The share manager now checks updates to previously
    set metadata when drivers update this metadata with the
    "ensure_shares" routine.

    Change-Id: Ia42de608ba056d71a1deae2c59bfb43a11672ab7
    Partial-Bug: #2053100
    (cherry picked from commit 3e9d535be1799a2f2d590537125e3b7630dc4aee)
    (cherry picked from commit ffa4233b9c31cdc2a4ad90d162c6bc15d7dabde4)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.opendev.org/c/openstack/manila/+/930643
Committed: https://opendev.org/openstack/manila/commit/06da39f3733df0ae9b6d630d60aae2f0389af3b6
Submitter: "Zuul (22348)"
Branch: stable/2024.1

commit 06da39f3733df0ae9b6d630d60aae2f0389af3b6
Author: Goutham Pacha Ravi <email address hidden>
Date: Wed Sep 11 22:23:19 2024 -0700

    Fix "preferred" export locations in the CephFS driver

    The CephFS driver used to set the "preferred"
    export path by sending back an export location
    model update; however, the "preferred" keyword
    is expected in the export location's metadata,
    not in the export location dict.

    Change-Id: Id2214412fe75456cdb52edb5ff261d32b063655f
    Closes-Bug: #2053100
    (cherry picked from commit 17088aa57af3ae2dd5a16e2e8558ec471d2c1cc5)
    (cherry picked from commit 620933cdb98f3560a480923ba096a6215d7d0edd)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (stable/2023.2)

Reviewed: https://review.opendev.org/c/openstack/manila/+/929352
Committed: https://opendev.org/openstack/manila/commit/8dc3f0c015c9ba43d37ea3bb42309db247493b8b
Submitter: "Zuul (22348)"
Branch: stable/2023.2

commit 8dc3f0c015c9ba43d37ea3bb42309db247493b8b
Author: Goutham Pacha Ravi <email address hidden>
Date: Wed Sep 11 22:19:37 2024 -0700

    Fix export location metadata updates by drivers

    Drivers can set arbitrary key=value metadata to export
    paths. The share manager now checks updates to previously
    set metadata when drivers update this metadata with the
    "ensure_shares" routine.

    Change-Id: Ia42de608ba056d71a1deae2c59bfb43a11672ab7
    Partial-Bug: #2053100
    (cherry picked from commit 3e9d535be1799a2f2d590537125e3b7630dc4aee)
    (cherry picked from commit ffa4233b9c31cdc2a4ad90d162c6bc15d7dabde4)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/2023.1)

Fix proposed to branch: stable/2023.1
Review: https://review.opendev.org/c/openstack/manila/+/931290

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (stable/2023.2)

Reviewed: https://review.opendev.org/c/openstack/manila/+/930644
Committed: https://opendev.org/openstack/manila/commit/90c390013a61228341f59c46b173f2b78293ce58
Submitter: "Zuul (22348)"
Branch: stable/2023.2

commit 90c390013a61228341f59c46b173f2b78293ce58
Author: Goutham Pacha Ravi <email address hidden>
Date: Wed Sep 11 22:23:19 2024 -0700

    Fix "preferred" export locations in the CephFS driver

    The CephFS driver used to set the "preferred"
    export path by sending back an export location
    model update; however, the "preferred" keyword
    is expected in the export location's metadata,
    not in the export location dict.

    Change-Id: Id2214412fe75456cdb52edb5ff261d32b063655f
    Closes-Bug: #2053100
    (cherry picked from commit 17088aa57af3ae2dd5a16e2e8558ec471d2c1cc5)
    (cherry picked from commit 620933cdb98f3560a480923ba096a6215d7d0edd)
    (cherry picked from commit 06da39f3733df0ae9b6d630d60aae2f0389af3b6)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (stable/2023.1)

Reviewed: https://review.opendev.org/c/openstack/manila/+/931290
Committed: https://opendev.org/openstack/manila/commit/c5e6c54329635b85e94dbd5884efea6a2af990c3
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit c5e6c54329635b85e94dbd5884efea6a2af990c3
Author: Goutham Pacha Ravi <email address hidden>
Date: Wed Sep 11 22:19:37 2024 -0700

    Fix export location metadata updates by drivers

    Drivers can set arbitrary key=value metadata to export
    paths. The share manager now checks updates to previously
    set metadata when drivers update this metadata with the
    "ensure_shares" routine.

    Change-Id: Ia42de608ba056d71a1deae2c59bfb43a11672ab7
    Partial-Bug: #2053100
    (cherry picked from commit 3e9d535be1799a2f2d590537125e3b7630dc4aee)
    (cherry picked from commit ffa4233b9c31cdc2a4ad90d162c6bc15d7dabde4)
    (cherry picked from commit 8dc3f0c015c9ba43d37ea3bb42309db247493b8b)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.opendev.org/c/openstack/manila/+/930645
Committed: https://opendev.org/openstack/manila/commit/221b560d875c6f8b8fa59a4f6c18dbe9460542fe
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit 221b560d875c6f8b8fa59a4f6c18dbe9460542fe
Author: Goutham Pacha Ravi <email address hidden>
Date: Wed Sep 11 22:23:19 2024 -0700

    Fix "preferred" export locations in the CephFS driver

    The CephFS driver used to set the "preferred"
    export path by sending back an export location
    model update; however, the "preferred" keyword
    is expected in the export location's metadata,
    not in the export location dict.

    Change-Id: Id2214412fe75456cdb52edb5ff261d32b063655f
    Closes-Bug: #2053100
    (cherry picked from commit 17088aa57af3ae2dd5a16e2e8558ec471d2c1cc5)
    (cherry picked from commit 620933cdb98f3560a480923ba096a6215d7d0edd)
    (cherry picked from commit 06da39f3733df0ae9b6d630d60aae2f0389af3b6)
    (cherry picked from commit 90c390013a61228341f59c46b173f2b78293ce58)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 18.2.0

This issue was fixed in the openstack/manila 18.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 17.3.0

This issue was fixed in the openstack/manila 17.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 16.3.0

This issue was fixed in the openstack/manila 16.3.0 Antelope release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 20.0.0.0rc1

This issue was fixed in the openstack/manila 20.0.0.0rc1 Epoxy 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.