share can not be added to CG using CLI

Bug #1496518 reported by Valeriy Ponomaryov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-manilaclient
Fix Released
Critical
Valeriy Ponomaryov

Bug Description

Steps to reproduce:

1) Create CG

2) Try create share specifying CG

Result:

CommandError: No consistencygroup with a name or ID of 'ebfdc863-b635-410b-b9c9-702696ce6d76' exists.

When

$ manila cg-list
+--------------------------------------+------+-------------+-----------+
| id | name | description | status |
+--------------------------------------+------+-------------+-----------+
| ebfdc863-b635-410b-b9c9-702696ce6d76 | cg1 | None | available |
+--------------------------------------+------+-------------+-----------+

Expected: successful creation of the share.

=======

Reason: CG API is "experimental" and requires appropriate header, but it is not set when called shell function "do_create", it does not have "@api_versions.experimental_api" decorator that exists for "cg" functions like "do_cg_create" or "do_cg_update".

Revision history for this message
Valeriy Ponomaryov (vponomaryov) wrote :

Set "critical" as without fix for it we can not really use CGs.

Changed in python-manilaclient:
importance: Undecided → Critical
description: updated
Chuck Fouts (fchuck)
Changed in python-manilaclient:
assignee: nobody → Chuck Fouts (fchuck)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-manilaclient (master)

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

Changed in python-manilaclient:
status: New → In Progress
Changed in python-manilaclient:
milestone: none → liberty-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Changed in python-manilaclient:
assignee: Chuck Fouts (fchuck) → Valeriy Ponomaryov (vponomaryov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-manilaclient (master)

Reviewed: https://review.openstack.org/225114
Committed: https://git.openstack.org/cgit/openstack/python-manilaclient/commit/?id=0bbd2144f701df3408b1435b16611c2ba3c22221
Submitter: Jenkins
Branch: master

commit 0bbd2144f701df3408b1435b16611c2ba3c22221
Author: Valeriy Ponomaryov <email address hidden>
Date: Fri Sep 18 14:37:27 2015 +0300

    Fix shares CLI for using CGs

    For the moment, share can not be neither created with CG nor deleted
    if belongs to some CG.
    So, add experimental header to 'share create' operation to fix
    the former case and update 'delete share' operation to make it support
    deletion of shares that belongs to CG in general.

    Change-Id: I497a9ab845552fd7e0d66e7352d637c6a86082af
    Closes-Bug: #1496518
    Closes-Bug: #1497215

Changed in python-manilaclient:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-manilaclient (master)

Change abandoned by Valeriy Ponomaryov (<email address hidden>) on branch: master
Review: https://review.openstack.org/224859

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-manilaclient 1.4.0

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

Changed in python-manilaclient:
status: Fix Committed → Fix Released
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.