[python] Fuel CLI (fuel2) smoke check fails: 'net_segment_type is not found in the supplied data.'

Bug #1514897 reported by Artem Panchenko
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Critical
Roman Prykhodchenko

Bug Description

Fuel version info (8.0 build #144): http://paste.openstack.org/show/478452/

Smoke test fails because Fuel CLI (new version) returns error while trying to get environments list:

[root@nailgun ~]# fuel2 --debug env list
'net_segment_type is not found in the supplied data.'
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/cliff/app.py", line 280, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.6/site-packages/cliff/display.py", line 91, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.6/site-packages/fuelclient/commands/base.py", line 78, in take_action
    data = data_utils.get_display_data_multi(self.columns, data)
  File "/usr/lib/python2.6/site-packages/fuelclient/common/data_utils.py", line 51, in get_display_data_multi
    return [get_display_data_single(fields, elem) for elem in data]
  File "/usr/lib/python2.6/site-packages/fuelclient/common/data_utils.py", line 33, in get_display_data_single
    'data.'.format(f=field))
KeyError: 'net_segment_type is not found in the supplied data.'
Traceback (most recent call last):
  File "/usr/bin/fuel2", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.6/site-packages/fuelclient/cli/error.py", line 114, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/fuelclient/main.py", line 77, in main
    return fuelclient_app.run(argv)
  File "/usr/lib/python2.6/site-packages/cliff/app.py", line 215, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.6/site-packages/cliff/app.py", line 280, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.6/site-packages/cliff/display.py", line 91, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.6/site-packages/fuelclient/commands/base.py", line 78, in take_action
    data = data_utils.get_display_data_multi(self.columns, data)
  File "/usr/lib/python2.6/site-packages/fuelclient/common/data_utils.py", line 51, in get_display_data_multi
    return [get_display_data_single(fields, elem) for elem in data]
  File "/usr/lib/python2.6/site-packages/fuelclient/common/data_utils.py", line 33, in get_display_data_single
    'data.'.format(f=field))
KeyError: 'net_segment_type is not found in the supplied data.'

Default CLI works fine. Diagnostic snapshot is attached.

Revision history for this message
Artem Panchenko (apanchenko-8) wrote :
description: updated
Changed in fuel:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-fuelclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/243773

Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Roman Prykhodchenko (romcheg)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-fuelclient (master)

Reviewed: https://review.openstack.org/243773
Committed: https://git.openstack.org/cgit/openstack/python-fuelclient/commit/?id=a88bc94b562ee511eb277183d0a750a1e3312662
Submitter: Jenkins
Branch: master

commit a88bc94b562ee511eb277183d0a750a1e3312662
Author: Roman Prykhodchenko <email address hidden>
Date: Tue Nov 10 19:37:24 2015 +0100

    Don't expect NST to be specified in a cluster

    Nailgun apparently does not include information about network
    segmentation type to JSON representations of environments for
    GET and POST requests.

    This patch removes all references to that information.

    Closes-bug: #1514897
    Change-Id: I0d7970ad4c45c4e6175a7366610df1ec2a850254

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Maksym Strukov (unbelll) wrote :
Changed in fuel:
status: Fix Committed → 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.