ironic/ironic
Jim Rollenhagen 00914c802d Tear down console during unprovisioning
Before this patch, when unprovisioning a node, the console was left
running. This allowed a user to view the console even after the instance
was gone. Stop the console during unprovisioning to block this.

ConductorManager._set_console_mode will now bubble up any exceptions
raised, so that we can explode as needed during unprovisioning. This
does not have any side effects, as elsewhere it is run in it's own
thread and execution was complete after handling the exception.

Also change a few mock.ANY in the relevant unit tests to the actual task
object, as cleanup.

Conflicts:
	ironic/tests/unit/conductor/test_manager.py

Change-Id: Iec128444d692e0b0fbc1737eb21b0e6f69b7ec1e
Partial-Bug: #1769817
Story: #2002000
Task: #19634
(cherry picked from commit 7a8b26db6b)
2018-05-18 12:14:54 +00:00
..
api Fix missed '_' import 2017-02-10 11:14:21 +02:00
cmd Separate WSGIService from RPCService 2016-09-15 11:14:20 -04:00
common Fix keystone.py 'get_service_url' method parameter 2017-11-13 13:17:34 +00:00
conductor Tear down console during unprovisioning 2018-05-18 12:14:54 +00:00
conf Remove most unsupported drivers 2017-02-09 08:09:03 +00:00
db Allow sqalchemy filtering by id and uuid 2018-02-19 15:32:53 +00:00
dhcp Fix mis-formatted log messages 2017-10-10 10:04:06 -07:00
drivers Do not pass credentials to the ramdisk on cleaning 2018-02-07 13:48:10 +01:00
locale Imported Translations from Zanata 2016-10-25 06:34:48 +00:00
objects Do not pass credentials to the ramdisk on cleaning 2018-02-07 13:48:10 +01:00
releasenotes/notes Remove 'fork' option from socat command 2016-12-29 19:13:31 +00:00
tests Tear down console during unprovisioning 2018-05-18 12:14:54 +00:00
__init__.py Move eventlent monkeypatch out of cmd/ 2014-02-08 00:11:56 -08:00
version.py Correct version.py and update current version string 2014-03-21 13:50:05 -07:00