Execution of deployment tasks via cli with "start" and "end" parameters are not allowed for task-based deployment.

Bug #1664952 reported by Ilya Bumarskov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Ilya Bumarskov
Nominated for Ocata by Ilya Bumarskov

Bug Description

Fuel 10 build#1358

Some parameters related with tasks execution are not allowed for task-based deployment introduced in previous releases (https://specs.openstack.org/openstack/fuel-specs/specs/8.0/task-based-deployment-mvp.html):

[root@nailgun ~]# fuel node --node 2 --end netconfig --env 2 --json
400 Client Error: Bad Request for url: http://10.109.0.2:8000/api/v1/clusters/1/deployment_tasks?end=netconfig (Both "start" and "end" parameters are not allowed for task-based deployment.)

However, appropriate cli test was passed in 9.2 release (https://product-ci.infra.mirantis.net/view/9.x_acceptance/job/9.x.acceptance.ubuntu.cli_acceptance_deployment_tests/41/).
So, necessary to decide is it expected behavior or not ?

Changed in fuel:
milestone: none → 10.1
importance: Undecided → Medium
Revision history for this message
Ilya Bumarskov (ibumarskov) wrote :
Revision history for this message
Vladimir Kuklin (vkuklin) wrote :

You should use different subgraph execution, e.g.

[root@nailgun2 ~]# fuel2 graph execute help -S
usage: fuel2 graph execute [-h] -e ENV [--force] [--trace]
                           [--dry-run | --noop] -t GRAPH_TYPES
                           [GRAPH_TYPES ...] [-n NODES [NODES ...]]
                           [-T TASK_NAMES [TASK_NAMES ...]]
                           [-S SUBGRAPHS [SUBGRAPHS ...]]
fuel2 graph execute: error: argument -S/--subgraphs: expected at least one argument

i.e.

format is <start_task>/[node-ids (comma, dash separated interval)]:<end_task>/[node-ids (comma, dash separated interval)]

[root@nailgun2 ~]# fuel2 graph execute -t default -S primary-database/1,3:keystone-db/1-2,5

tags: added: area-qa
Changed in fuel:
assignee: nobody → Ilya Bumarskov (ibumarskov)
status: New → Confirmed
Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/436453

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/441029

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

Reviewed: https://review.openstack.org/436453
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=9c69437270fc85bc3e029f4131c65a17599f48a5
Submitter: Jenkins
Branch: stable/newton

commit 9c69437270fc85bc3e029f4131c65a17599f48a5
Author: ibumarskov <email address hidden>
Date: Tue Feb 21 17:29:13 2017 +0400

    Switch cli_deploy_tasks test to graph execution

    Change-Id: I724bd1912b34dfd26f90f62a8044e9d978e2424e
    Closes-bug: #1664952

tags: added: in-stable-newton
Changed in fuel:
status: In Progress → Fix Committed
no longer affects: fuel/newton
Revision history for this message
Ilya Bumarskov (ibumarskov) wrote :
Changed in fuel:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (master)

Reviewed: https://review.openstack.org/441028
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=83742ed296434d365022cde222d26ed0047631f6
Submitter: Jenkins
Branch: master

commit 83742ed296434d365022cde222d26ed0047631f6
Author: ibumarskov <email address hidden>
Date: Tue Feb 21 17:29:13 2017 +0400

    Switch cli_deploy_tasks test to graph execution

    Change-Id: I724bd1912b34dfd26f90f62a8044e9d978e2424e
    Closes-bug: #1664952

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (stable/ocata)

Reviewed: https://review.openstack.org/441029
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=c4caa945d565e86a246069ce8180771b80e0633d
Submitter: Jenkins
Branch: stable/ocata

commit c4caa945d565e86a246069ce8180771b80e0633d
Author: ibumarskov <email address hidden>
Date: Tue Feb 21 17:29:13 2017 +0400

    Switch cli_deploy_tasks test to graph execution

    Change-Id: I724bd1912b34dfd26f90f62a8044e9d978e2424e
    Closes-bug: #1664952

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-qa ocata-eol

This issue was fixed in the openstack/fuel-qa ocata-eol release.

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.