[python-fuelclient] In new CLI 'fuel2 node update' command returns 'numa_nodes is not found in the supplied data'

Bug #1576658 reported by Vitalii Kulanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Vitalii Kulanov

Bug Description

Detailed bug description:
While trying to update node info (hostname, name) through the python-fuelclient 'fuel2 node update' command returns 'numa_nodes is not found in the supplied data', e.g.

[root@fuel ~]# fuel2 node update --hostname test-host 1 --debug
numa_nodes is not found in the supplied data.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 374, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/fuelclient/commands/node.py", line 144, in take_action
    self.columns, updated_node)
  File "/usr/lib/python2.7/site-packages/fuelclient/common/data_utils.py", line 34, in get_display_data_single
    'data.'.format(e.args[0]))
BadDataException: numa_nodes 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.7/site-packages/fuelclient/main.py", line 88, in main
    return fuelclient_app.run(argv)
  File "/usr/lib/python2.7/site-packages/fuelclient/main.py", line 79, in run
    return super(FuelClient, self).run(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 255, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 374, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/fuelclient/commands/node.py", line 144, in take_action
    self.columns, updated_node)
  File "/usr/lib/python2.7/site-packages/fuelclient/common/data_utils.py", line 34, in get_display_data_single
    'data.'.format(e.args[0]))
fuelclient.cli.error.BadDataException: numa_nodes is not found in the supplied data.

Notice, that the node info is updated successfully http://paste.openstack.org/show/495760/

Steps to reproduce:
1. Deploy Fuel (e.g. 1 master + 5 nodes).
2. Create env and add several nodes to it.
3. Try to change node info for some specific node:
    fuel2 node update --hostname test-host 1
    fuel2 node update --name test-name 1

Expected results:
Node detailed description for specified in 'fuel2 node update' command http://paste.openstack.org/show/495760/

Actual result:
numa_nodes is not found in the supplied data.

Reproducibility:
Always

Description of the environment:
cat /etc/fuel_build_id:
 88
cat /etc/fuel_build_number:
 88
cat /etc/fuel_release:
 10.0
cat /etc/fuel_openstack_version:
 newton-10.0

description: updated
Changed in fuel:
assignee: nobody → Vitalii Kulanov (vitaliy-t)
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/311103

Changed in fuel:
status: New → In Progress
Changed in fuel:
milestone: none → 10.0
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-fuelclient (master)

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

commit 18898ab2ecf579042fbfdaae8b107703912c587d
Author: tivaliy <email address hidden>
Date: Fri Apr 29 15:05:40 2016 +0300

    Fix 'fuel2 node update' command execution result

    Align Node data dictionary with 'numa_topology' info

    Change-Id: I33d0722d38dc0db8d456a62ff84e901c9e467740
    Closes-Bug: 1576658

Changed in fuel:
status: In Progress → Fix Committed
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.