Task data should contain parent_id attribute

Bug #1605508 reported by Julia Aranovich
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Bulat Gaifullin
Mitaka
Fix Released
High
Bulat Gaifullin

Bug Description

When starting a regular deployment, Fuel UI gets a collection of 3 tasks: 'deploy', 'deployment' and 'provision'. UI need to track a progress of main (parent) task only ('deploy'). But there is no information about tasks relations in the appropriate response:

GET /api/tasks/ API call returns collection of tasks that have the following format:

{"name": "deploy", "message": null, "cluster": 1, "result": {}, "uuid": "3ebf1935-32f4-4cb9-977b-10f1f7cad223", "id": 6, "progress": 0, "status": "running"}

Again, there is no information about tasks nesting. Suggested to extend task output with "parent_id" attribute.

tags: added: area-ui
Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/345555
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=7f161c1984662c1bb799b34c4dd4108f514c2ea6
Submitter: Jenkins
Branch: master

commit 7f161c1984662c1bb799b34c4dd4108f514c2ea6
Author: Bulat Gaifullin <email address hidden>
Date: Thu Jul 21 20:02:08 2016 +0300

    Added field parent_id to serialized task data

    This field can be used by UI to reconstruct hierachy of task.

    Change-Id: Ifa5477e9eedfa3fa2a1f22e7bec8b5df262034aa
    Partial-Bug: 1605508

Changed in fuel:
assignee: Bulat Gaifullin (bgaifullin) → Julia Aranovich (jkirnosova)
tags: added: ui-deployment-history
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-ui (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-ui (master)

Change abandoned by Julia Aranovich (<email address hidden>) on branch: master
Review: https://review.openstack.org/346886

tags: removed: area-ui
Changed in fuel:
assignee: Julia Aranovich (jkirnosova) → Bulat Gaifullin (bgaifullin)
status: In Progress → Fix Committed
Dmitry Pyzhov (dpyzhov)
tags: added: 9.1-proposed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (stable/mitaka)

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

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

Reviewed: https://review.openstack.org/354175
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=b7b6a32d0b0df693af448aaa24d5c05eb989379b
Submitter: Jenkins
Branch: stable/mitaka

commit b7b6a32d0b0df693af448aaa24d5c05eb989379b
Author: Bulat Gaifullin <email address hidden>
Date: Thu Jul 21 20:02:08 2016 +0300

    Added field parent_id to serialized task data

    This field can be used by UI to reconstruct hierachy of task.

    Change-Id: Ifa5477e9eedfa3fa2a1f22e7bec8b5df262034aa
    Partial-Bug: 1605508
    (cherry picked from commit 7f161c1984662c1bb799b34c4dd4108f514c2ea6)

tags: added: in-stable-mitaka
tags: added: on-verification
Revision history for this message
Andrey Lavrentyev (alavrentyev) wrote :

Verified on 9.1 snapshot #280

http://paste.openstack.org/show/580940/

[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

UBUNTU_MIRROR_ID=ubuntu-2016-09-14-213640
CENTOS_MIRROR_ID=centos-7.2.1511-2016-05-31-083834
MOS_UBUNTU_MIRROR_ID=9.0-2016-09-17-040338
MOS_CENTOS_OS_MIRROR_ID=os-2016-06-23-135731
MOS_CENTOS_PROPOSED_MIRROR_ID=proposed-2016-09-17-040338
MOS_CENTOS_UPDATES_MIRROR_ID=updates-2016-06-23-135916
MOS_CENTOS_HOLDBACK_MIRROR_ID=holdback-2016-06-23-140047
MOS_CENTOS_HOTFIX_MIRROR_ID=hotfix-2016-09-16-084322
MOS_CENTOS_SECURITY_MIRROR_ID=security-2016-06-23-140002

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.