stack trace when using 'openstack volume create'

Bug #1792447 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

$ openstack volume create --debug --size=1 smvol1
...

Instantiating image api: <class 'openstackclient.api.image_v2.APIv2'>
create() got an unexpected keyword argument 'source_replica'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/cliff/app.py", line 402, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python3/dist-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python3/dist-packages/cliff/display.py", line 116, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python3/dist-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 "/usr/lib/python3/dist-packages/osc_lib/shell.py", line 135, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/lib/python3/dist-packages/cliff/app.py", line 281, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python3/dist-packages/osc_lib/shell.py", line 175, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/usr/lib/python3/dist-packages/cliff/app.py", line 402, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python3/dist-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python3/dist-packages/cliff/display.py", line 116, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python3/dist-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'

ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: python3-openstackclient 3.16.0-0ubuntu1
ProcVersionSignature: Ubuntu 4.17.0-9.10-generic 4.17.17
Uname: Linux 4.17.0-9-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.10-0ubuntu9
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Thu Sep 13 15:52:30 2018
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-07-23 (1148 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20150722.1)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: python-openstackclient
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

I just successfully used this on my 'bastion'
 python3-openstackclient 3.14.0-0ubuntu1
But it seems to fail from my cosmic desktop 3.16.0-0ubuntu1.

Revision history for this message
Corey Bryant (corey.bryant) wrote :

Hi Scott,

Thanks for reporting this.

I was able to recreate this on cosmic and have confirmed this is not an issue with with upstream's latest release (pip3 install python-openstackclient).

Thanks,
Corey

Revision history for this message
Corey Bryant (corey.bryant) wrote :

However, it does recreate with upstream 3.16.0. I'll update the cosmic/package to 3.16.1 and that should fix it.

Revision history for this message
Corey Bryant (corey.bryant) wrote :

I've verified this is fixed in python-openstackclient 3.16.1: https://paste.ubuntu.com/p/t6zhSVz4ZG/

Changed in python-openstackclient (Ubuntu):
status: New → Fix Released
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.