Comment 1 for bug 1786479

Revision history for this message
Vladimir Grevtsev (vlgrevtsev) wrote : Re: Voluem creation fails through cinder client using Pike and >=4.0.0

+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 .