unable to pass force flag for nodes deploy command

Bug #1618036 reported by Ivan Berezovskiy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Anastasiia Guzikova
Mitaka
Fix Released
High
Ivan Berezovskiy
Newton
Fix Committed
High
Anastasiia Guzikova

Bug Description

Steps to reproduce:
deploy 9.1 env (e.g. 3 controllers, 3 computes)

Try to deploy one of the cluster nodes again:

fuel2 env nodes deploy --node 1
It doesn't run full list of tasks for the node.
To re-run them againg we need to set flag 'force=1'
(https://github.com/openstack/fuel-web/blob/master/nailgun/nailgun/api/v1/handlers/orchestrator.py#L331
https://github.com/openstack/fuel-web/blob/master/nailgun/nailgun/api/v1/handlers/orchestrator.py#L354)

Try to run:
fuel2 env nodes deploy -e 1 --nodes 1 --noop --force=1

fuel2 env nodes deploy: error: unrecognized arguments: --force

We should add 'force' flag to Fuel client

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

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

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

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

Changed in fuel:
status: Confirmed → In Progress
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/362249

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

Reviewed: https://review.openstack.org/362244
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=0bc27aebee4bb91ab741d52e78b8abfd845c15ac
Submitter: Jenkins
Branch: master

commit 0bc27aebee4bb91ab741d52e78b8abfd845c15ac
Author: Anastasiia Guzikova <email address hidden>
Date: Mon Aug 29 18:48:18 2016 +0300

    Pass force flag for nodes deploy command

    Closes-bug: #1618036

    Change-Id: Ic0393f30e5035790f1fbb01bdde0b7d11c32592d

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (stable/mitaka)

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

commit a67979367e1583b05488bc8f1005403c0307b0fc
Author: Anastasiia Guzikova <email address hidden>
Date: Mon Aug 29 18:48:18 2016 +0300

    Pass force flag for nodes deploy command

    Closes-bug: #1618036

    Change-Id: Ic0393f30e5035790f1fbb01bdde0b7d11c32592d

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

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

commit 659777d8b728292f3d93eb450d9e34aa5ca007d9
Author: Anastasiia Guzikova <email address hidden>
Date: Mon Aug 29 18:43:03 2016 +0300

    Flag --force for nodes deploy command

    Closes-bug: #1618036

    Depends-on: Ic0393f30e5035790f1fbb01bdde0b7d11c32592d

    Change-Id: I2006c521fb72bc718730cc589602494b3020e89f

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

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

commit a6e0b871635e5cf960a23de9279d47876efac50f
Author: Anastasiia Guzikova <email address hidden>
Date: Mon Aug 29 18:43:03 2016 +0300

    Flag --force for nodes deploy command

    Closes-bug: #1618036

    Depends-on: Ic0393f30e5035790f1fbb01bdde0b7d11c32592d

    Change-Id: I2006c521fb72bc718730cc589602494b3020e89f

Revision history for this message
Alexandra (aallakhverdieva) wrote :

Checked on 9.1 snapshot #223
http://paste.openstack.org/show/566857/

[root@nailgun ~]# fuel2 env nodes deploy -e 1 --nodes 1 --force
Deployment task with id 13 for the nodes 1 within the environment 1 has been started.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-web 10.0.0rc1

This issue was fixed in the openstack/fuel-web 10.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-web 10.0.0

This issue was fixed in the openstack/fuel-web 10.0.0 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.