[Bug 1567895] Re: openstack volume create does not support --snapshot
Corey Bryant
corey.bryant at canonical.com
Thu Jun 9 18:13:36 UTC 2016
** Changed in: python-openstackclient (Ubuntu)
Status: New => Triaged
** Changed in: python-openstackclient (Ubuntu)
Importance: Undecided => High
** Changed in: python-openstackclient (Ubuntu)
Assignee: (unassigned) => Corey Bryant (corey.bryant)
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-openstackclient in Ubuntu.
https://bugs.launchpad.net/bugs/1567895
Title:
openstack volume create does not support --snapshot
Status in python-openstackclient:
Fix Released
Status in python-openstackclient package in Ubuntu:
Triaged
Bug description:
I got an error when using openstack volume create command with
--snapshot. Please see the information below
$ openstack --version
openstack 2.3.0
$ pip freeze
appdirs==1.4.0
Babel==2.3.2
cliff==2.0.0
cmd2==0.6.8
debtcollector==1.3.0
funcsigs==1.0.0
functools32==3.2.3.post2
iso8601==0.1.11
jsonpatch==1.13
jsonpointer==1.10
jsonschema==2.5.1
keystoneauth1==2.5.0
monotonic==1.0
msgpack-python==0.4.7
netaddr==0.7.18
netifaces==0.10.4
openstacksdk==0.8.4
ordereddict==1.1
os-client-config==1.16.0
oslo.config==3.9.0
oslo.i18n==3.5.0
oslo.serialization==2.4.0
oslo.utils==3.8.0
pbr==1.8.1
positional==1.0.1
prettytable==0.7.2
pyparsing==2.1.1
python-cinderclient==1.6.0
python-glanceclient==2.0.0
python-keystoneclient==2.3.1
python-novaclient==3.4.0
python-openstackclient==2.3.0
pytz==2016.3
PyYAML==3.11
requests==2.9.1
requestsexceptions==1.1.3
simplejson==3.8.2
six==1.10.0
stevedore==1.12.0
unicodecsv==0.14.1
warlock==1.2.0
wrapt==1.10.7
$ openstack --debug volume create --snapshot ubuntu-snapshot --size 8 test
START with options: ['--debug', 'volume', 'create', '--snapshot', 'ubuntu-snapshot', '--size', '8', 'test']
options: Namespace(access_token_endpoint='', auth_type='', auth_url='https://keystone.example.com/v3', cacert='', client_id='', client_secret='***', cloud='', debug=True, default_domain='default', deferred_help=False, domain_id='', domain_name='Default', endpoint='', identity_provider='', insecure=None, interface='', log_file=None, os_compute_api_version='', os_identity_api_version='3', os_image_api_version='', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, os_volume_api_version='', password='***', project_domain_id='', project_domain_name='Default', project_id='', project_name='dev', protocol='', region_name='', scope='', timing=False, token='***', trust_id='', url='', user_domain_id='', user_domain_name='Default', user_id='', username='my_user', verbose_level=3, verify=None)
defaults: {u'auth_type': 'password', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_version': u'2', 'cacert': None, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, u'network_api_version': u'2', u'image_format': u'qcow2', u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'dns_api_version': u'2', u'object_store_api_version': u'1', u'disable_vendor_agent': {}}
cloud cfg: {'auth_type': 'password', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'timing': False, u'network_api_version': u'2', u'image_format': u'qcow2', u'image_api_version': u'2', 'verify': True, u'dns_api_version': u'2', u'object_store_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'username': 'my_user', 'project_name': 'dev', 'user_domain_name': 'Default', 'auth_url': 'https://keystone.example.com/v3', 'password': '***', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, 'cacert': None, u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'disable_vendor_agent': {}}
compute API version 2, cmd group openstack.compute.v2
network API version 2, cmd group openstack.network.v2
image API version 2, cmd group openstack.image.v2
volume API version 2, cmd group openstack.volume.v2
identity API version 3, cmd group openstack.identity.v3
object_store API version 1, cmd group openstack.object_store.v1
command: volume create -> openstackclient.volume.v2.volume.CreateVolume
Auth plugin password selected
auth_type: password
Using auth plugin: password
Using parameters {'username': 'my_user', 'project_name': 'dev', 'auth_url': 'https://keystone.example.com/v3', 'user_domain_name': 'Default', 'password': '***', 'project_domain_name': 'Default'}
Get auth_ref
REQ: curl -g -i -X GET https://keystone.example.com/v3 -H "Accept: application/json" -H "User-Agent: python-openstackclient keystoneauth1/2.5.0 python-requests/2.9.1 CPython/2.7.10"
Starting new HTTPS connection (1): keystone.example.com
"GET /v3 HTTP/1.1" 200 256
RESP: [200] Content-Length: 256 Vary: X-Auth-Token Server: nginx Connection: keep-alive Date: Fri, 08 Apr 2016 11:25:21 GMT Content-Type: application/json x-openstack-request-id: req-5a3ca310-dc72-4a89-b900-104746586d1f
RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://keystone.example.com/v3/", "rel": "self"}]}}
Making authentication request to http://keystone.example.com/v3/auth/tokens
Starting new HTTP connection (1): keystone.example.com
"POST /v3/auth/tokens HTTP/1.1" 301 184
"POST /v3/auth/tokens HTTP/1.1" 201 7231
run(Namespace(availability_zone=None, columns=[], description=None, formatter='table', image=None, max_width=0, name='test', noindent=False, prefix='', project=None, property=None, size=8, snapshot='ubuntu-snapshot', source=None, type=None, user=None, variables=[]))
Instantiating identity client: <class 'keystoneclient.v3.client.Client'>
Instantiating volume client: <class 'cinderclient.v2.client.Client'>
Instantiating image client: <class 'glanceclient.v2.client.Client'>
Making authentication request to http://keystone.example.com/v3/auth/tokens
"POST /v3/auth/tokens HTTP/1.1" 301 184
"POST /v3/auth/tokens HTTP/1.1" 201 7231
Instantiating image api: <class 'openstackclient.api.image_v2.APIv2'>
'Client' object has no attribute 'snapshots'
Traceback (most recent call last):
File "/home/winggundamth/.virtualenvs/openstack/local/lib/python2.7/site-packages/cliff/app.py", line 346, in run_subcommand
result = cmd.run(parsed_args)
File "/home/winggundamth/.virtualenvs/openstack/local/lib/python2.7/site-packages/openstackclient/common/command.py", line 38, in run
return super(Command, self).run(parsed_args)
File "/home/winggundamth/.virtualenvs/openstack/local/lib/python2.7/site-packages/cliff/display.py", line 79, in run
column_names, data = self.take_action(parsed_args)
File "/home/winggundamth/.virtualenvs/openstack/local/lib/python2.7/site-packages/openstackclient/volume/v2/volume.py", line 113, in take_action
volume_client.snapshots,
AttributeError: 'Client' object has no attribute 'snapshots'
clean_up CreateVolume: 'Client' object has no attribute 'snapshots'
Traceback (most recent call last):
File "/home/winggundamth/.virtualenvs/openstack/local/lib/python2.7/site-packages/openstackclient/shell.py", line 118, in run
ret_val = super(OpenStackShell, self).run(argv)
File "/home/winggundamth/.virtualenvs/openstack/local/lib/python2.7/site-packages/cliff/app.py", line 226, in run
result = self.run_subcommand(remainder)
File "/home/winggundamth/.virtualenvs/openstack/local/lib/python2.7/site-packages/openstackclient/shell.py", line 153, in run_subcommand
ret_value = super(OpenStackShell, self).run_subcommand(argv)
File "/home/winggundamth/.virtualenvs/openstack/local/lib/python2.7/site-packages/cliff/app.py", line 346, in run_subcommand
result = cmd.run(parsed_args)
File "/home/winggundamth/.virtualenvs/openstack/local/lib/python2.7/site-packages/openstackclient/common/command.py", line 38, in run
return super(Command, self).run(parsed_args)
File "/home/winggundamth/.virtualenvs/openstack/local/lib/python2.7/site-packages/cliff/display.py", line 79, in run
column_names, data = self.take_action(parsed_args)
File "/home/winggundamth/.virtualenvs/openstack/local/lib/python2.7/site-packages/openstackclient/volume/v2/volume.py", line 113, in take_action
volume_client.snapshots,
AttributeError: 'Client' object has no attribute 'snapshots'
END return value: 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/python-openstackclient/+bug/1567895/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list