Share server migration cancel not displaying the UUID of the share server when migration not found

Bug #1989819 reported by Carlos Eduardo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Low
Clifford Emeka

Bug Description

Description
===========
While trying to cancel a migration of a share server, if the share server is not being migrated, the API should raise a exception, with a message containing the UUID of the share server, warning the administrator that the share server is currently not being migrated.

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

* Create a share
* Get the ID of a share server
* Attempt to cancel the migration of the share server that is not being migrated

Expected result
===============
The API should respond a message saying what is the ID of the share server that could not have the migration cancelled.

Actual result
=============
The UUID of the share server is not being displayed. [1]

Environment
===========
1. Devstack with manila installed on the master branch

2. A dummy driver backend that supports DHSS=True

[1] https://paste.opendev.org/show/bxEu60wtJXpwwFnJFmQr/

Changed in manila:
importance: Undecided → Low
assignee: nobody → Carlos Eduardo (silvacarlose)
Vida Haririan (vhariria)
tags: added: share-migration
Vida Haririan (vhariria)
tags: added: low-hanging-fruit
Changed in manila:
assignee: Carlos Eduardo (silvacarlose) → Ashley Rodriguez (ashrod98)
Revision history for this message
Vida Haririan (vhariria) wrote :
Changed in manila:
assignee: Ashley Rodriguez (ashrod98) → nobody
Revision history for this message
Clifford Emeka (emclidon) wrote :

Hi,

Is the bug still open so I can take it up?

Revision history for this message
Vida Haririan (vhariria) wrote :

Hello, Thank you for you interest in this bug.
yes the bug is still open and it was revisited on 2022-09-22 (#1).

Revision history for this message
Clifford Emeka (emclidon) wrote :

Thanks Vida,

I need help with the location of the error message where I can fix this. I have been looking inside python-manilaclient within share-servers.

Could you assist with where I can look to make the fix?

Thanks

Changed in manila:
status: New → In Progress
Changed in manila:
assignee: nobody → Clifford Emeka (emclidon)
milestone: none → bobcat-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.opendev.org/c/openstack/manila/+/878206
Committed: https://opendev.org/openstack/manila/commit/86e0e3887f466195c073a210b67c2407597c6bec
Submitter: "Zuul (22348)"
Branch: master

commit 86e0e3887f466195c073a210b67c2407597c6bec
Author: Clifford Emeka <email address hidden>
Date: Wed Mar 22 12:18:37 2023 +0100

    adds share server uuid on migration cancel

    Closes-bug: #1989819

    Change-Id: I6064d31d20eb10c5e0d42e9aff18d512c200e378

Changed in manila:
status: In Progress → Fix Released
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/+/879693

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

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

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/+/879693
Committed: https://opendev.org/openstack/manila/commit/c924c4ce10c167fc8bcb8cb1f4791908d465a5df
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit c924c4ce10c167fc8bcb8cb1f4791908d465a5df
Author: Clifford Emeka <email address hidden>
Date: Wed Mar 22 12:18:37 2023 +0100

    adds share server uuid on migration cancel

    Closes-bug: #1989819

    Change-Id: I6064d31d20eb10c5e0d42e9aff18d512c200e378
    (cherry picked from commit 86e0e3887f466195c073a210b67c2407597c6bec)

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/+/897963

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

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

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

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

commit bd344c8781dfac12136caeda92bdd19c33665f76
Author: Clifford Emeka <email address hidden>
Date: Wed Mar 22 12:18:37 2023 +0100

    adds share server uuid on migration cancel

    Closes-bug: #1989819

    Change-Id: I6064d31d20eb10c5e0d42e9aff18d512c200e378
    (cherry picked from commit 86e0e3887f466195c073a210b67c2407597c6bec)
    (cherry picked from commit c924c4ce10c167fc8bcb8cb1f4791908d465a5df)

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/+/898445

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/+/898446

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

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

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

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

commit deee9ae1e40d90c8f951a880a4cf8d844f1db972
Author: Clifford Emeka <email address hidden>
Date: Wed Mar 22 12:18:37 2023 +0100

    adds share server uuid on migration cancel

    Closes-bug: #1989819

    Change-Id: I6064d31d20eb10c5e0d42e9aff18d512c200e378
    (cherry picked from commit 86e0e3887f466195c073a210b67c2407597c6bec)
    (cherry picked from commit c924c4ce10c167fc8bcb8cb1f4791908d465a5df)
    (cherry picked from commit bd344c8781dfac12136caeda92bdd19c33665f76)

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

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

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

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

commit 5415c64efda29301e74da2f6c75a767191e47b96
Author: Clifford Emeka <email address hidden>
Date: Wed Mar 22 12:18:37 2023 +0100

    adds share server uuid on migration cancel

    Closes-bug: #1989819

    Change-Id: I6064d31d20eb10c5e0d42e9aff18d512c200e378
    (cherry picked from commit 86e0e3887f466195c073a210b67c2407597c6bec)
    (cherry picked from commit c924c4ce10c167fc8bcb8cb1f4791908d465a5df)
    (cherry picked from commit bd344c8781dfac12136caeda92bdd19c33665f76)
    (cherry picked from commit deee9ae1e40d90c8f951a880a4cf8d844f1db972)

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

Reviewed: https://review.opendev.org/c/openstack/manila/+/905458
Committed: https://opendev.org/openstack/manila/commit/97ae87e9702875fc0bdc38d065865baf4a74b32f
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 97ae87e9702875fc0bdc38d065865baf4a74b32f
Author: Clifford Emeka <email address hidden>
Date: Wed Mar 22 12:18:37 2023 +0100

    adds share server uuid on migration cancel

    Closes-bug: #1989819

    Change-Id: I6064d31d20eb10c5e0d42e9aff18d512c200e378
    (cherry picked from commit 86e0e3887f466195c073a210b67c2407597c6bec)
    (cherry picked from commit c924c4ce10c167fc8bcb8cb1f4791908d465a5df)
    (cherry picked from commit bd344c8781dfac12136caeda92bdd19c33665f76)
    (cherry picked from commit deee9ae1e40d90c8f951a880a4cf8d844f1db972)
    (cherry picked from commit 5415c64efda29301e74da2f6c75a767191e47b96)

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

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

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

This issue was fixed in the openstack/manila wallaby-eom release.

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

This issue was fixed in the openstack/manila xena-eom 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.