[saharaclient] scale command goes to KeyError

Bug #1718564 reported by Shu Yingya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
Undecided
Shu Yingya

Bug Description

when I use command "openstack --debug dataprocessing cluster scale <CLUSTER> --json <SCALE_FILE>", the output of the command has KeyError.

PUT call to data-processing for http://192.168.1.200:8386/v1.1/00c112d8e3be40d09ee494601023dbaf/clusters/2a9bd000-663e-4000-85ea-defe3787edb8 used request id req-26838006-0f62-4863-8b36-409d3102e2b6
Cluster "vanilla" scaling has been started.
'hadoop_version'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 113, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/saharaclient/osc/v1/clusters.py", line 606, in take_action
    _format_cluster_output(data)
  File "/usr/lib/python2.7/site-packages/saharaclient/osc/v1/clusters.py", line 39, in _format_cluster_output
    data['plugin_version'] = data.pop('hadoop_version')
KeyError: 'hadoop_version'
clean_up ScaleCluster: 'hadoop_version'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 134, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 279, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 169, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 113, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/saharaclient/osc/v1/clusters.py", line 606, in take_action
    _format_cluster_output(data)
  File "/usr/lib/python2.7/site-packages/saharaclient/osc/v1/clusters.py", line 39, in _format_cluster_output
    data['plugin_version'] = data.pop('hadoop_version')
KeyError: 'hadoop_version'

Shu Yingya (felixshu)
Changed in sahara:
assignee: nobody → Shu Yingya (felixshu)
summary: - [saharaclient] scale command go to KeyError
+ [saharaclient] scale command goes to KeyError
Revision history for this message
Shu Yingya (felixshu) wrote :

this bug has been fixed in https://review.openstack.org/#/c/505928/

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

This issue was fixed in the openstack/python-saharaclient 1.4.0 release.

Shu Yingya (felixshu)
Changed in sahara:
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.