Volume creation fails through cinder client using Pike and >=4.0.0

Bug #1786479 reported by Gianpietro Lavado
36
This bug affects 6 people
Affects Status Importance Assigned to Milestone
python-openstackclient
New
Undecided
Unassigned

Bug Description

Volume creation fails with cinderclient versions 4.0.0 and 4.0.1 and using Pike, whose recommended OpenStack Client (3.12.1) only requires a cinder client with version >3.3.0

ubuntu@pod00-control01:~$ openstack volume create --size 1 volume01
create() got an unexpected keyword argument 'source_replica'

When downgrading cinder client to 3.6.1, problem disappears.

description: updated
Revision history for this message
Vladimir Grevtsev (vlgrevtsev) wrote :

+1, reproduces on openstack client v3.14.0 & python-cinderclient-4.0.1:

create() got an unexpected keyword argument 'source_replica'
Traceback (most recent call last):
  File "/home/ubuntu/charm-test-infra/.tox/clients/lib/python3.6/site-packages/cliff/app.py", line 402, in run_subcommand
    result = cmd.run(parsed_args)
  File "/home/ubuntu/charm-test-infra/.tox/clients/lib/python3.6/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/home/ubuntu/charm-test-infra/.tox/clients/lib/python3.6/site-packages/cliff/display.py", line 116, in run
    column_names, data = self.take_action(parsed_args)
  File "/home/ubuntu/charm-test-infra/.tox/clients/lib/python3.6/site-packages/openstackclient/volume/v2/volume.py", line 232, in take_action
    scheduler_hints=parsed_args.hint,
TypeError: create() got an unexpected keyword argument 'source_replica'
clean_up CreateVolume: create() got an unexpected keyword argument 'source_replica'
Traceback (most recent call last):
  File "/home/ubuntu/charm-test-infra/.tox/clients/lib/python3.6/site-packages/osc_lib/shell.py", line 135, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/home/ubuntu/charm-test-infra/.tox/clients/lib/python3.6/site-packages/cliff/app.py", line 281, in run
    result = self.run_subcommand(remainder)
  File "/home/ubuntu/charm-test-infra/.tox/clients/lib/python3.6/site-packages/osc_lib/shell.py", line 175, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/home/ubuntu/charm-test-infra/.tox/clients/lib/python3.6/site-packages/cliff/app.py", line 402, in run_subcommand
    result = cmd.run(parsed_args)
  File "/home/ubuntu/charm-test-infra/.tox/clients/lib/python3.6/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/home/ubuntu/charm-test-infra/.tox/clients/lib/python3.6/site-packages/cliff/display.py", line 116, in run
    column_names, data = self.take_action(parsed_args)
  File "/home/ubuntu/charm-test-infra/.tox/clients/lib/python3.6/site-packages/openstackclient/volume/v2/volume.py", line 232, in take_action
    scheduler_hints=parsed_args.hint,
TypeError: create() got an unexpected keyword argument 'source_replica'

All works fine if python-cinderclient-3.6.1 is installed manually.

Looks like this change was introduced in https://github.com/openstack/python-cinderclient/commit/32251f0ea3863098b4d4d54364c8ee18ff170a44 .

summary: - Voluem creation fails through cinder client using Pike and >=4.0.0
+ Volume creation fails through cinder client using Pike and >=4.0.0
Revision history for this message
Noam Angel (noama) wrote :

im using rocky and master deploying cloud with tripleo and have same issue

please see attached log file

Revision history for this message
chma (cheaphomemadeacid) wrote :

+1 same problem, fixed after reverting the mentioned commit

Revision history for this message
cripps (cripps) wrote :

this is fixed by commit 3e5a2d227c813937ad7ea23d334f7d23c1f8a2cc

affects: python-cinderclient → python-openstackclient
Revision history for this message
Noam Angel (noama) wrote :

do you know if this backported to rocky ?

Revision history for this message
Felipe Castro (felipeccastro) wrote :

Problem resolved in openstack client version 3.16.1

pip install python-openstackclient==3.16.1

Resolved for me !!!!

:)

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.