osc command's scale is failed

Bug #1834548 reported by Hiroya Nakaya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-tackerclient
Fix Released
Undecided
Hiroya Nakaya

Bug Description

$ openstack vnf scale --scaling-type out --scaling-policy SP1 manual-scale --debug

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 401, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 116, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/tackerclient/osc/v1/vnfm/vnf.py", line 448, in take_action
    vnf = client.scale_vnf(obj_id, self.args2body(parsed_args))
  File "/usr/local/lib/python2.7/dist-packages/tackerclient/osc/v1/vnfm/vnf.py", line 434, in args2body
    client.format = parsed_args.request_format
AttributeError: 'Namespace' object has no attribute 'request_format'
clean_up ScaleVNF: 'Namespace' object has no attribute 'request_format'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/shell.py", line 136, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 281, in run
    result = self.run_subcommand(remainder)
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/shell.py", line 176, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 401, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 116, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/tackerclient/osc/v1/vnfm/vnf.py", line 448, in take_action
    vnf = client.scale_vnf(obj_id, self.args2body(parsed_args))
  File "/usr/local/lib/python2.7/dist-packages/tackerclient/osc/v1/vnfm/vnf.py", line 434, in args2body
    client.format = parsed_args.request_format
AttributeError: 'Namespace' object has no attribute 'request_format'

Hiroya Nakaya (nakkay)
Changed in python-tackerclient:
assignee: nobody → Hiroya Nakaya (nakkay)
Changed in python-tackerclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tackerclient (master)

Reviewed: https://review.opendev.org/668379
Committed: https://git.openstack.org/cgit/openstack/python-tackerclient/commit/?id=983a2402a41e3656ab527ee58e429c98199a2c54
Submitter: Zuul
Branch: master

commit 983a2402a41e3656ab527ee58e429c98199a2c54
Author: Hiroya Nakaya <email address hidden>
Date: Mon Jul 1 07:40:15 2019 +0000

    fix:osc scale is failed.

    parameter which isn't used is removed.
    changed Command type.

    Closes-Bug:#1834548

    Change-Id: Id884f9ebd26f311ebc213bcadff6019aaee5cd3a

Changed in python-tackerclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tackerclient (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/683830

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tackerclient (stable/train)

Reviewed: https://review.opendev.org/683830
Committed: https://git.openstack.org/cgit/openstack/python-tackerclient/commit/?id=d5a591eec0e8931712025f086a6f2b1b4510d697
Submitter: Zuul
Branch: stable/train

commit d5a591eec0e8931712025f086a6f2b1b4510d697
Author: Hiroya Nakaya <email address hidden>
Date: Mon Jul 1 07:40:15 2019 +0000

    fix:osc scale is failed.

    parameter which isn't used is removed.
    changed Command type.

    Closes-Bug:#1834548

    Change-Id: Id884f9ebd26f311ebc213bcadff6019aaee5cd3a
    (cherry picked from commit 983a2402a41e3656ab527ee58e429c98199a2c54)

tags: added: in-stable-train
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tackerclient 0.16.1

This issue was fixed in the openstack/python-tackerclient 0.16.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tackerclient 1.0.0

This issue was fixed in the openstack/python-tackerclient 1.0.0 release.

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.