share_server_id from CG APIs is always 'None'

Bug #1572742 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
Undecided
Goutham Pacha Ravi

Bug Description

Conditions to reproduce:
Driver = Any driver that supports CGs
Sporadic/Recurring/Always = Always

Steps to reproduce:
1) Create a CG
2) Ask for details of the CG (You could wait for it to transition from 'creating' to 'available' to verify)

stack@openstack2:/opt/stack/manila$ manila cg-create --name kjfhgshfjsh --share-network my_manila_network
+----------------------+--------------------------------------+
| Property | Value |
+----------------------+--------------------------------------+
| status | creating |
| description | None |
| source_cgsnapshot_id | None |
| created_at | 2016-04-20T21:33:26.480754 |
| share_network_id | 6a6b61d7-6996-45de-8de4-7ef13dc3b873 |
| share_server_id | None |
| host | None |
| project_id | bf2cecec85d3497a9e91ebfb37d33013 |
| share_types | c52c9a90-938e-4ebb-89c2-1e392e65ef72 |
| id | 91803f67-fcc2-4251-8fea-6291e367afa2 |
| name | kjfhgshfjsh |
+----------------------+--------------------------------------+

stack@openstack2:/opt/stack/manila$ manila cg-show 91803f67-fcc2-4251-8fea-6291e367afa2
+----------------------+--------------------------------------+
| Property | Value |
+----------------------+--------------------------------------+
| status | available |
| description | None |
| source_cgsnapshot_id | None |
| created_at | 2016-04-20T21:33:27.000000 |
| share_network_id | 6a6b61d7-6996-45de-8de4-7ef13dc3b873 |
| share_server_id | None |
| host | openstack2@generic1#GENERIC1 |
| project_id | bf2cecec85d3497a9e91ebfb37d33013 |
| share_types | c52c9a90-938e-4ebb-89c2-1e392e65ef72 |
| id | 91803f67-fcc2-4251-8fea-6291e367afa2 |
| name | kjfhgshfjsh |
+----------------------+--------------------------------------+

Changed in manila:
assignee: nobody → Goutham Pacha Ravi (gouthamr)
status: New → In Progress
summary: - share_server_id from CG APIs in Manila is always 'None'
+ share_server_id from CG APIs is always 'None'
tags: added: mitaka-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

Fix proposed to branch: master
Review: https://review.openstack.org/312963

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

Reviewed: https://review.openstack.org/312963
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=118d440a905dac86b76e7e251f855c9223173427
Submitter: Jenkins
Branch: master

commit 118d440a905dac86b76e7e251f855c9223173427
Author: Goutham Pacha Ravi <email address hidden>
Date: Thu Apr 21 13:17:49 2016 -0400

    Fix share server info in CGs created from CGs

    Currently when a POST request is made to /consistency-groups
    with a source cg-snapshot, the API does not register the share
    network information (share_server_id and share_network_id) in
    the database row newly created for the CG being created.

    This information is essential to any shares that are being created
    along with the consistency group.

    - Disallow providing a share_network_id when using a source cg_snapshot_id
    - Copy share network information from the parent CG
    - Fix the share_server_id that was incorrect in the API response

     APIImpact

     Closes-Bug: #1571594
     Closes-Bug: #1572742

    Change-Id: I1c3581c81e0b845f46eef3cd0acddb55850447a5

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

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/317528

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

Reviewed: https://review.openstack.org/317528
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=7ee41c0507aa020778f4fc764a79485804de009a
Submitter: Jenkins
Branch: stable/mitaka

commit 7ee41c0507aa020778f4fc764a79485804de009a
Author: Goutham Pacha Ravi <email address hidden>
Date: Thu Apr 21 13:17:49 2016 -0400

    Fix share server info in CGs created from CGs

    Currently when a POST request is made to /consistency-groups
    with a source cg-snapshot, the API does not register the share
    network information (share_server_id and share_network_id) in
    the database row newly created for the CG being created.

    This information is essential to any shares that are being created
    along with the consistency group.

    - Disallow providing a share_network_id when using a source cg_snapshot_id
    - Copy share network information from the parent CG
    - Fix the share_server_id that was incorrect in the API response

     APIImpact

     Closes-Bug: #1571594
     Closes-Bug: #1572742

    Change-Id: I1c3581c81e0b845f46eef3cd0acddb55850447a5
    (cherry picked from commit 118d440a905dac86b76e7e251f855c9223173427)

tags: added: in-stable-mitaka
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/manila 3.0.0.0b1

This issue was fixed in the openstack/manila 3.0.0.0b1 development milestone.

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.