Add support for location parameters in v2 commands
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-manuals |
Fix Released
|
Medium
|
Unassigned |
Bug Description
https:/
commit 323d32cc6d28434
Author: David Koo <email address hidden>
Date: Tue Feb 11 11:06:02 2014 +0800
Add support for location parameters in v2 commands
Currently glanceclient's v2 commands don't support modification
operations on an image's location attribute - the argparse specification
for the location attribute of the image-update command causes the image
id argument to be included in list of locations and so the command
parsing fails (because it causes the image id to appear to be missing).
Furthermore even if the 'locations' argument were to be accepted by
argparse (e.g. by changing the argument specs and using --id to specify
the image id) the command would still fail because the arguments are
passed directly to the schema which expects the value of the 'locations'
argument to be a valid dictionary (there is nobody to convert the
argument string to a python dictionary that the schema expects).
This commit adds the following location related commands to
glanceclient:
image locations.
The glanceclient.
three new methods to support the commands listed above:
- add_location
- delete_locations
- update_location
The server has not been modified, i.e. all location related API requests
are passed to the server via HTTP PATCH requests and handled by the
server's image update function.
The v2 'image' and 'shell' related tests have also been supplemented.
Note that in order to use these options the server must be first
configured to expose location related info to the clients (i.e.
'show_
I also added a mailmap entry for myself.
DocImpact
Closes-bug: #1271452
Co-Author: David Koo (koofoss) <email address hidden>
Change-Id: Id1f320af05d934
Changed in openstack-manuals: | |
milestone: | none → juno |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: | added: cli-reference |
Changed in openstack-manuals: | |
assignee: | nobody → Lingxian Kong (kong) |
Changed in openstack-manuals: | |
assignee: | Lingxian Kong (kong) → nobody |
This is in current CLI reference