Setting node state during registration is duplicated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Derek Higgins |
Bug Description
During node registration, the following sequence occurs in tripleoclient and mistral
o Get token from keystone
o POST a "register" workflow to mistral (tripleo.
o open a websocket to wait for the mistral workflow to finish
- In mistral the following happens
- for each node register it with ironic (essentially the same the the entire OSPd 9 process)
- for each node
- set the node provision state too manageable
- wait for ironic to actually set the node state (1 sec sleep between checks)
- set the node provision state too available
- wait for ironic to actually set the node state (1 sec sleep between checks)
- set the node provision state too manageable
o POST a "provide" workflow to mistral (tripleo.
o open a websocket to wait for the mistral workflow to finish
- In mistral the following happens
- for each node
- set the node provision state too available
It looks like we are duplicating the logic to set the nodes to manageable and then too available.
I believe the problem is in
http://
the "register_
tripleo_
registers nodes, sets them too manageable, waits for each one to set, sets each node to available and waits for the state of each node to set again
tripleo.
which sets each node back too manageable,
tripleoclient then also calls the "provide" workflow
which sets each node to available again
This adds a lot of time to node registration, a lot of this time is mistral overhead
Changed in tripleo: | |
importance: | Undecided → High |
Changed in tripleo: | |
milestone: | newton-rc2 → ocata-1 |
tags: | added: newton-backport-potential |
Changed in tripleo: | |
milestone: | ocata-1 → newton-rc3 |
Fix proposed to branch: master /review. openstack. org/379482
Review: https:/