"fuel node --deploy" allows run redeploy without provision

Bug #1532817 reported by Alexander Gubanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
High
Arthur Svechnikov
8.0.x
Invalid
High
Arthur Svechnikov

Bug Description

"fuel node --deploy" command allows run redeploy for node in non-provision state (ready), but after nothing happen -
"fuel node" or fuel UI just show reinstallation and few minutes later it becomes in ready state.

Env: mos 8.0 (build 402) neutron vlan, 3 controller nodes, 2 compute with cinder

Steps to reproduce: fuel node --node-id <node_id> --deploy

Details here: http://pastebin.com/6Ft2p2TB

Tags: area-python
Ilya Kutukov (ikutukov)
Changed in fuel:
milestone: none → 8.0
tags: added: area-python
Changed in fuel:
importance: Undecided → Medium
importance: Medium → High
status: New → Confirmed
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Arthur Svechnikov (asvechnikov)
milestone: 8.0 → 9.0
Revision history for this message
Arthur Svechnikov (asvechnikov) wrote :

@ogubanov, Please could you provide the expected behavior?

Changed in fuel:
status: Confirmed → Incomplete
Revision history for this message
Oleg S. Gelbukh (gelbuhos) wrote :

In my understanding, the expected behaviour is to run deployment tasks on the node. If nothing changed in settings and node state, don't do anything (just like proper Puppet modules do). Otherwise, apply changes accordingly.

I believe, this behaviour is required to change OpenStack settings on nodes (per BP https://blueprints.launchpad.net/fuel/+spec/openstack-config-change)

Revision history for this message
Alexander Gubanov (ogubanov) wrote :

Sure!

This docs https://docs.mirantis.com/openstack/fuel/fuel-7.0/user-guide.html (Node reinstallation)
says that we shoud run "provision" and after run "deploy"

so If node is in non-provision state I expected to see somethink like this:

[root@nailgun ~]# fuel node --node-id 4 --deploy
400 Client Error: Bad Request (Deployment operation cannot be started. Nodes with uids [4] are not provisioned yet. )

Changed in fuel:
status: Incomplete → Confirmed
Changed in fuel:
assignee: Arthur Svechnikov (asvechnikov) → Maciej Kwiek (maciej-iai)
Revision history for this message
Arthur Svechnikov (asvechnikov) wrote :

@Oleg for OpenStack Config feature there are dedicated command 'fuel openstack-config --execute --env', also --deploy should work fine but longer.

In my understanding we should have an ability to run deploy for already 'ready' node. And if nothing changed then nothing happened, and visa versa.

P.S. For node reinstallation feature there strict workflow set keep flags -> provision -> deploy, if user run deploy for specific node it doesn't mean that user tries to use rollback feature

Changed in fuel:
assignee: Maciej Kwiek (maciej-iai) → Arthur Svechnikov (asvechnikov)
Revision history for this message
Arthur Svechnikov (asvechnikov) wrote :

Since I don't see any reason to change current behavior, because we can run --deploy for already deployed node. If I'm wrong feel free reopen issue.

Changed in fuel:
status: Confirmed → Won't Fix
status: Won't Fix → Invalid
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.