Attr "is_public" can not be set for share using API "manage"

Bug #1436865 reported by Valeriy Ponomaryov
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Wishlist
NidhiMittalHada

Bug Description

Existing API "manage" allows us to manage existing share, and we can provide following attrs:

$ manila help manage
usage: manila manage [--name <name>] [--description <description>]
                     [--share_type <share_type>]
                     [--driver_options [<key=value> [<key=value> ...]]]
                     <service_host> <protocol> <export_path>

Manage share not handled by Manila.

Positional arguments:
  <service_host> manage-share service host: some.host@driver[#pool]
  <protocol> Protocol of the share to manage, such as NFS or CIFS.
  <export_path> Share export path.

Optional arguments:
  --name <name> Optional share name. (Default=None)
  --description <description>
                        Optional share description. (Default=None)
  --share_type <share_type>, --share-type <share_type>
                        Optional share type assigned to share. (Default=None)
  --driver_options [<key=value> [<key=value> ...]], --driver-options [<key=value> [<key=value> ...]]
                        Driver option key=value pairs (Optional,
                        Default=None).

But we can not set explicitly its visibility (key '--public') that we can do using API "create".

$ manila help create
...

Positional arguments:
...

Optional arguments:
...
  --public Level of visibility for share. Defines whether other
                        tenants are able to see it or not.

Tags: api manage
tags: added: api manage
Changed in manila:
importance: Undecided → Low
Revision history for this message
Ben Swartzlander (bswartz) wrote :

Workaround for this bug: do "manila update" after "manila manage"

Changed in manila:
importance: Low → Wishlist
Changed in manila:
assignee: nobody → NidhiMittalHada (nidhimittal19)
Revision history for this message
NidhiMittalHada (nidhimittal19) wrote :

I am working on this task.
Approach is to add is_public as an additional attr in existing manage command.
We will be able to provide is_public true/False in manila manage command after this change.

Changed in manila:
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.openstack.org/223458

Revision history for this message
Ben Swartzlander (bswartz) wrote :

I'm not convinced this is a bug. Why is it not acceptable to do 2 operations -- manage followed by update.

Revision history for this message
Ben Swartzlander (bswartz) wrote :

Okay I'll accept this as a bug to be fixed. Targeting for M-1.

Changed in manila:
milestone: none → mitaka-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Changed in manila:
status: In Progress → Fix Committed
Revision history for this message
Valeriy Ponomaryov (vponomaryov) wrote :

FIx "proposed", not "committed" yet.

Changed in manila:
status: Fix Committed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on manila (master)

Change abandoned by NidhiMittalHada (<email address hidden>) on branch: master
Review: https://review.openstack.org/223458
Reason: Please ignore this change id

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

Change abandoned by NidhiMittalHada (<email address hidden>) on branch: master
Review: https://review.openstack.org/230967
Reason: Commit created for testing please abandon

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

Reviewed: https://review.openstack.org/238850
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=2315e563b7540888c9ebf18e7c98b6bed7ca1255
Submitter: Jenkins
Branch: master

commit 2315e563b7540888c9ebf18e7c98b6bed7ca1255
Author: nidhimittalhada <email address hidden>
Date: Wed Dec 2 16:47:15 2015 +0530

    Allow to set share visibility using "manage" API

    This fix allows manila manage command to explicitly
    set visibility (key '--public') similar to using API
    "create".

    Change-Id: I8725719b8c7ff5557fa20ebbb5314f3e770ffcc0
    Closes-Bug: #1436865

Changed in manila:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/python-manilaclient 1.6.0

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

Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/manila 2.0.0.0b2

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