[python-fuelclient] Download deployment graph configuration for cluster failed

Bug #1619237 reported by Vitalii Kulanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Vitalii Kulanov
Mitaka
Fix Released
High
Vitalii Kulanov

Bug Description

Detailed bug description:
Download deployment graph configuration for specific cluster failed if use python-fuelclient 'fuel2 graph download' command

[root@fuel ~]# fuel2 graph download -e 1 -c --debug
'list' object has no attribute 'get'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 346, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/command.py", line 55, in run
    self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/fuelclient/commands/graph.py", line 307, in take_action
    graph_type=args.type
  File "/usr/lib/python2.7/site-packages/fuelclient/v1/graph.py", line 157, in download
    return tasks_levels[level]()
  File "/usr/lib/python2.7/site-packages/fuelclient/v1/graph.py", line 147, in <lambda>
    graph_type=graph_type).get('tasks', []),
AttributeError: 'list' object has no attribute 'get'
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 80, in main
    return fuelclient_app.run(argv)
  File "/usr/lib/python2.7/site-packages/fuelclient/main.py", line 71, in run
    return super(FuelClient, self).run(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 226, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 346, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/command.py", line 55, in run
    self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/fuelclient/commands/graph.py", line 307, in take_action
    graph_type=args.type
  File "/usr/lib/python2.7/site-packages/fuelclient/v1/graph.py", line 157, in download
    return tasks_levels[level]()
  File "/usr/lib/python2.7/site-packages/fuelclient/v1/graph.py", line 147, in <lambda>
    graph_type=graph_type).get('tasks', []),
AttributeError: 'list' object has no attribute 'get'

Steps to reproduce:
1. Deploy Fuel (e.g. 1 master + 5 nodes).
2. Create new env.
3. Try to download deployment graph configuration for specific cluster through the python-fuelclient:
   fuel2 graph download -e 1 -c

Expected results:
Tasks were downloaded to /root/cluster_graph.yaml

Actual result:
AttributeError: 'list' object has no attribute 'get'

Reproducibility:
Always

Description of the environment:
[root@fuel ~]# shotgun2 short-report
cat /etc/fuel_build_id:
 607
cat /etc/fuel_build_number:
 607
cat /etc/fuel_release:
 10.0
cat /etc/fuel_openstack_version:
 newton-10.0

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/364231

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

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

commit f0d6edfc6826897741e7a50fd7a5239fdf6b410e
Author: tivaliy <email address hidden>
Date: Thu Sep 1 13:45:40 2016 +0300

    Align data returned by deployment graphs collection handler

    Change-Id: I6680697f6e046ef0aef0ef4a90a13e7905f0526c
    Closes-Bug: 1619237

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Vitalii Kulanov (vitaliy-t) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-fuelclient (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/365090

Dmitry Pyzhov (dpyzhov)
Changed in fuel:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-fuelclient (stable/mitaka)

Reviewed: https://review.openstack.org/365090
Committed: https://git.openstack.org/cgit/openstack/python-fuelclient/commit/?id=c8ae9a4a990ccd004f7542cb6d15c6fdee9f148c
Submitter: Jenkins
Branch: stable/mitaka

commit c8ae9a4a990ccd004f7542cb6d15c6fdee9f148c
Author: tivaliy <email address hidden>
Date: Thu Sep 1 13:45:40 2016 +0300

    Align data returned by deployment graphs collection handler

    Change-Id: I6680697f6e046ef0aef0ef4a90a13e7905f0526c
    Closes-Bug: 1619237
    (cherry picked from commit f0d6edfc6826897741e7a50fd7a5239fdf6b410e)

tags: added: on-verification
Revision history for this message
TatyanaGladysheva (tgladysheva) wrote :

Verified on 9.1 snapshot #231.

tags: removed: on-verification
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.