Command `fuel2 graph execute` should return a json with task description

Bug #1623014 reported by Alexander Kurenyshev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Bulat Gaifullin
Mitaka
Fix Released
High
Alexey Shtokolov
Newton
Fix Committed
High
Bulat Gaifullin

Bug Description

Steps to reproduce:
Go to the CLI and try to do:
[root@nailgun ~]# fuel2 graph execute --env 1 -t my_graph --json

Expected result:
The command returns a valid json with task description, when I use the '--json' flag
Actual result:
usage: fuel2 graph execute [-h] -e ENV [-t TYPES [TYPES ...]]
                           [-n NODES [NODES ...]]
                           [-T TASK_NAMES [TASK_NAMES ...]] [-d] [-f] [--noop]
fuel2 graph execute: error: unrecognized arguments: --json

Fuel snapshot:
http://mirror.fuel-infra.org/mos-repos/centos/mos9.0-centos7/snapshots/proposed-2016-09-13-092323/

[root@nailgun ~]# shotgun2 short-report
cat /etc/fuel_build_id:
 495
cat /etc/fuel_build_number:
 495
cat /etc/fuel_release:
 9.0
cat /etc/fuel_openstack_version:
 mitaka-9.0
rpm -qa | egrep 'fuel|astute|network-checker|nailgun|packetary|shotgun':
 python-fuelclient-9.0.0-1.mos350.noarch
 fuelmenu-9.0.0-1.mos275.noarch
 fuel-ostf-9.0.0-1.mos944.noarch
 fuel-nailgun-9.0.0-1.mos8835.noarch
 fuel-9.0.0-1.mos6355.noarch
 fuel-migrate-9.0.0-1.mos8586.noarch
 shotgun-9.0.0-1.mos90.noarch
 rubygem-astute-9.0.0-1.mos766.noarch
 fuel-library9.0-9.0.0-1.mos8586.noarch
 fuel-provisioning-scripts-9.0.0-1.mos8835.noarch
 fuel-ui-9.0.0-1.mos2805.noarch
 fuel-openstack-metadata-9.0.0-1.mos8835.noarch
 network-checker-9.0.0-1.mos74.x86_64
 fuel-utils-9.0.0-1.mos8586.noarch
 fuel-release-9.0.0-1.mos6355.noarch
 fuel-agent-9.0.0-1.mos290.noarch
 python-packetary-9.0.0-1.mos149.noarch
 fuel-bootstrap-cli-9.0.0-1.mos290.noarch
 fuel-setup-9.0.0-1.mos6355.noarch
 fuel-notify-9.0.0-1.mos8586.noarch
 fuel-mirror-9.0.0-1.mos149.noarch
 nailgun-mcagents-9.0.0-1.mos766.noarch
 fuel-misc-9.0.0-1.mos8586.noarch

Tags: area-python
Dmitry Klenov (dklenov)
tags: added: area-python
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/370042

Changed in fuel:
assignee: Ilya Kutukov (ikutukov) → Bulat Gaifullin (bgaifullin)
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/370042
Committed: https://git.openstack.org/cgit/openstack/python-fuelclient/commit/?id=1c6cd3524ea7868429e7a4fdc4ab783dda8a9539
Submitter: Jenkins
Branch: master

commit 1c6cd3524ea7868429e7a4fdc4ab783dda8a9539
Author: Bulat Gaifullin <email address hidden>
Date: Wed Sep 14 14:15:12 2016 +0300

    Added option to command execute for specifying output format

    New option 'format' for commands 'graph execute' and
    'sequence execute' will allow to specify the expected
    format of output: json or yaml.
    By default the text message will be produced.

    Change-Id: I68be70bf317ea9fe4c0197073bd5dd41c3ba9d32
    Closes-Bug: 1623014

Changed in fuel:
status: In Progress → Fix Committed
tags: added: on-verification
tags: removed: on-verification
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/371463

Revision history for this message
Dmitry Belyaninov (dbelyaninov) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-fuelclient (stable/mitaka)

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

commit dee09cc42179c02bea54b4dee35238fc8c5bcf54
Author: Bulat Gaifullin <email address hidden>
Date: Wed Sep 14 14:15:12 2016 +0300

    Added option to command execute for specifying output format

    New option 'format' for commands 'graph execute' and
    'sequence execute' will allow to specify the expected
    format of output: json or yaml.
    By default the text message will be produced.

    Change-Id: I68be70bf317ea9fe4c0197073bd5dd41c3ba9d32
    Closes-Bug: 1623014
    (cherry picked from commit 1c6cd3524ea7868429e7a4fdc4ab783dda8a9539)

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

Verified on 9.2 snapshot #666.

Actual results:
http://paste.openstack.org/show/593226/

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.