Fuel CLI allows to upload only tasks, not graphs

Bug #1615849 reported by Ilya Kutukov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Bulat Gaifullin

Bug Description

Deployment engineers are in need to upload deployment graph with metadata using fuel2 graph --upload command.

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

Changed in fuel:
status: New → In Progress
Changed in fuel:
assignee: Ilya Kutukov (ikutukov) → Bulat Gaifullin (bgaifullin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-fuelclient (master)

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

commit f482c141e2b1581c89439c81afeed6dd4ce22000
Author: Ilya Kutukov <email address hidden>
Date: Tue Aug 23 01:56:23 2016 +0300

    Now it is possilble to upload deployment graph via CLI

    Also fixed fail in case if post request returns 204
    also supported upload from directory.
    the target dir should contain files: metadata.yaml and tasks.yaml

    $ fuel2 graph upload --env 1 --file new_graph.yaml
    $ fuel2 graph upload --release 1 --dir /var/data/graphs/provision -t provision

    Now accepting two structure formats wrapped into the YAML:
    1. {'tasks': [], 'metadata': {}, ....}
    2. [{id: 'task1', ...}, {id: 'task2', ...}]

    Change-Id: I5b5fc8c2733d0bc6bc31fb3a9e3d632b6e429ce7
    Closes-Bug: #1615849

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

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

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

commit 8f955301de8cab6b5eb6a24a292c88091c3bd61f
Author: Ilya Kutukov <email address hidden>
Date: Tue Aug 23 01:56:23 2016 +0300

    Now it is possilble to upload deployment graph via CLI

    Also fixed fail in case if post request returns 204
    also supported upload from directory.
    the target dir should contain files: metadata.yaml and tasks.yaml

    $ fuel2 graph upload --env 1 --file new_graph.yaml
    $ fuel2 graph upload --release 1 --dir /var/data/graphs/provision -t provision

    Now accepting two structure formats wrapped into the YAML:
    1. {'tasks': [], 'metadata': {}, ....}
    2. [{id: 'task1', ...}, {id: 'task2', ...}]

    Change-Id: I5b5fc8c2733d0bc6bc31fb3a9e3d632b6e429ce7
    Closes-Bug: #1615849

tags: added: in-stable-mitaka
tags: added: on-verification
Revision history for this message
Dmitry Belyaninov (dbelyaninov) wrote :

Verified on snapshot #239

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