ironic/ironic
Julia Kreger c3955e68a4 Fix fast_track + agent_url update fix
In the case of fast_track, we do not power off agents
which allows for operators to perform a rapid transition,
such as those desired when performing a batch installation
of machines.

However, a security fix I1a5e3c2b34d45c06fb74e82d0f30735ce9041914
removed prior traces of an agent_url upon exiting cleaning.

So what was occuring:
- Agent was completing cleaning
- Conductor was removing 'agent_url' from driver internal info
- Agent was heartbeating, but no new agent_url was being recorded
  because how do we know if that is actually the agent.
- Deployment was started.
- Deployment fails upon next heartbeat as there is no 'agent_url'.

This patch places a conditional around the removal of the agent_url
value at the end of cleaning which allows nodes to transition as
through fast track as desired.

Change-Id: I2b5130a0845b327c2244d2d30a19842c46e1eed3
Story: 2007080
Task: 37991
2020-01-09 08:24:30 -08:00
..
api Merge "Restrict ability to change owner on provisioned or allocated node" 2019-12-27 11:31:52 +00:00
cmd Remove old online migrations and new models 2019-09-27 13:23:03 +00:00
common Refactor glance retry code to use retrying lib 2020-01-06 14:18:19 +08:00
conductor Fix fast_track + agent_url update fix 2020-01-09 08:24:30 -08:00
conf Merge "Remove the deprecated [glance]glance_num_retries" 2020-01-06 12:12:30 +00:00
db Stop using six library 2019-12-23 09:38:25 +01:00
dhcp Stop using six library 2019-12-23 09:38:25 +01:00
drivers Fix missing job_id parameter in the log message 2020-01-03 13:31:00 +08:00
hacking Fix regex string in the hacking check 2019-06-06 14:42:58 +08:00
objects Stop using six library 2019-12-23 09:38:25 +01:00
tests Fix fast_track + agent_url update fix 2020-01-09 08:24:30 -08:00
__init__.py Move eventlet monkey patch code 2017-03-02 13:48:18 +02:00
version.py Correct version.py and update current version string 2014-03-21 13:50:05 -07:00