Infinidat Manila driver prevents generic share migration

Bug #1992443 reported by Alexander Deiter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Undecided
Alexander Deiter

Bug Description

Infinidat Manila driver prevents host assisted share migration

Steps to reproduce:
* Configure an OpenStack environment with Infinidat NFS backend
* Create a share
* Try to migrate the share using host assisted share migration

Note: the same error can be reproduced with tempest test suite

Expected result:
Success

Actual result:
Error:
Aug 29 12:54:49 devstack-aio-manila-deiter-master manila-data[2895662]: ERROR manila.data.manager [None req-1e5dd8d1-c5f8-4a63-9aee-4a84e9c72764 tempest-MigrationTwoPhaseNFSTest-
696260856 None] Failed to copy data from share instance 00e321f0-ea6a-4151-b662-77b4264daba7 to c0033fd0-ee35-427f-b9d5-61676c5c6976. oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
                                                                        Command: sudo manila-rootwrap /etc/manila/rootwrap.conf chmod --reference=/tmp/00e321f0-ea6a-4151-b662-77b4264daba7/.snapshot/ /tmp/c0033fd0-ee35-427f-b9d5-61676c5c6976/.snapshot/
                                                                        Exit code: 1
                                                                        Stdout: ''
                                                                        Stderr: "/bin/chmod: changing permissions of '/tmp/c0033fd0-ee35-427f-b9d5-61676c5c6976/.snapshot/': Read-only file system\n"
                                                                        ERROR manila.data.manager Traceback (most recent call last):
Command: sudo manila-rootwrap /etc/manila/rootwrap.conf chmod --reference=/tmp/00e321f0-ea6a-4151-b662-77b4264daba7/.snapshot/ /tmp/c0033fd0-ee35-427f-b9d5-61676c5c6976/.snapshot/
                                                                        ERROR manila.data.manager Exit code: 1
                                                                        ERROR manila.data.manager Stdout: ''
                                                                        ERROR manila.data.manager Stderr: "/bin/chmod: changing permissions of '/tmp/c0033fd0-ee35-427f-b9d5-61676c5c6976/.snapshot/': Read-only file system\n"

Changed in manila:
assignee: nobody → Alexander Deiter (adeiter)
status: New → In Progress
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/+/860788

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

Reviewed: https://review.opendev.org/c/openstack/manila/+/860788
Committed: https://opendev.org/openstack/manila/commit/7ec7321053c73c18764782d4c40cf77a998f8d41
Submitter: "Zuul (22348)"
Branch: master

commit 7ec7321053c73c18764782d4c40cf77a998f8d41
Author: Alexander Deiter <email address hidden>
Date: Tue Oct 11 15:00:42 2022 +0300

    [Infinidat] fixed host assisted migration

    Fixed an issue in Infinidat driver to support host assisted migration.
    And added new configuration options:
    * `infinidat_snapdir_accessible` to configure access to the `.snapshot`
      directory on the client side.
    * `infinidat_snapdir_visible` to configure visibility of the `.snapshot`
      directory on the client side.

    Closes-Bug: #1992443
    Signed-off-by: Alexander Deiter <email address hidden>
    Change-Id: I29b51fcec28dd5110de6ad196ff8b67c875ce8fa

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

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

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

Reviewed: https://review.opendev.org/c/openstack/manila/+/868017
Committed: https://opendev.org/openstack/manila/commit/e105df94a7ad858538f20609595621a63df14070
Submitter: "Zuul (22348)"
Branch: stable/zed

commit e105df94a7ad858538f20609595621a63df14070
Author: Alexander Deiter <email address hidden>
Date: Tue Oct 11 15:00:42 2022 +0300

    [Infinidat] fixed host assisted migration

    Fixed an issue in Infinidat driver to support host assisted migration.
    And added new configuration options:
    * `infinidat_snapdir_accessible` to configure access to the `.snapshot`
      directory on the client side.
    * `infinidat_snapdir_visible` to configure visibility of the `.snapshot`
      directory on the client side.

    Closes-Bug: #1992443
    Signed-off-by: Alexander Deiter <email address hidden>
    Change-Id: I29b51fcec28dd5110de6ad196ff8b67c875ce8fa
    (cherry picked from commit 7ec7321053c73c18764782d4c40cf77a998f8d41)

tags: added: in-stable-zed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/yoga)

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

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

Reviewed: https://review.opendev.org/c/openstack/manila/+/871046
Committed: https://opendev.org/openstack/manila/commit/594fb45ce41f23f13eadbcfc537790ca8374e774
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 594fb45ce41f23f13eadbcfc537790ca8374e774
Author: Alexander Deiter <email address hidden>
Date: Tue Oct 11 15:00:42 2022 +0300

    [Infinidat] fixed host assisted migration

    Fixed an issue in Infinidat driver to support host assisted migration.
    And added new configuration options:
    * `infinidat_snapdir_accessible` to configure access to the `.snapshot`
      directory on the client side.
    * `infinidat_snapdir_visible` to configure visibility of the `.snapshot`
      directory on the client side.

    Closes-Bug: #1992443
    Signed-off-by: Alexander Deiter <email address hidden>
    Change-Id: I29b51fcec28dd5110de6ad196ff8b67c875ce8fa
    (cherry picked from commit 7ec7321053c73c18764782d4c40cf77a998f8d41)
    (cherry picked from commit e105df94a7ad858538f20609595621a63df14070)

tags: added: in-stable-yoga
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/xena)

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

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

Reviewed: https://review.opendev.org/c/openstack/manila/+/871907
Committed: https://opendev.org/openstack/manila/commit/dcb8a7d678bfaa1b86e90037d735681c01eba091
Submitter: "Zuul (22348)"
Branch: stable/xena

commit dcb8a7d678bfaa1b86e90037d735681c01eba091
Author: Alexander Deiter <email address hidden>
Date: Tue Oct 11 15:00:42 2022 +0300

    [Infinidat] fixed host assisted migration

    Fixed an issue in Infinidat driver to support host assisted migration.
    And added new configuration options:
    * `infinidat_snapdir_accessible` to configure access to the `.snapshot`
      directory on the client side.
    * `infinidat_snapdir_visible` to configure visibility of the `.snapshot`
      directory on the client side.

    Closes-Bug: #1992443
    Signed-off-by: Alexander Deiter <email address hidden>
    Change-Id: I29b51fcec28dd5110de6ad196ff8b67c875ce8fa
    (cherry picked from commit 7ec7321053c73c18764782d4c40cf77a998f8d41)
    (cherry picked from commit e105df94a7ad858538f20609595621a63df14070)
    (cherry picked from commit 594fb45ce41f23f13eadbcfc537790ca8374e774)

tags: added: in-stable-xena
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 16.0.0.0rc1

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

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

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

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

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

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

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

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.