ironic/ironic/tests/unit
Kaifeng Wang b3721ce4ff Automatic port allocation for the serial console
Introduces [console]port_range configuration option and implements
the feature of automatic port allocation for IPMI based serial console.

The ipmi_terminal_port in driver_info takes precedance if specified,
otherwise ironic will allocate free port from configured port range
for underlying serial proxy tools.

The implementation deviation with the original proposal is this patch
doesn't validate whether user specified ipmi_terminal_port falls in the
range, based on following considerations:
a. ipmi_terminal_port is considered a resort for backwards compatibility,
we will remove this eventually.
b. different conductors may have different port range configured (rare,
but could happen).
c. force ipmi_terminal_port in the port range could raise the
possibility of conflicts with ports in the configured range, this is not
a desired result, so leave the choice to the end users.

Change-Id: If8722d09dc74878f4da2e4a7f059d9b079c3e472
Story: 2007099
Task: 38135
2020-02-10 16:09:12 +08:00
..
api Merge "Support node retirement" 2020-02-05 11:16:20 +00:00
cmd Add check for object versions 2019-02-20 17:24:42 +00:00
common Refactor glance retry code to use retrying lib 2020-01-06 14:18:19 +08:00
conductor Automatic port allocation for the serial console 2020-02-10 16:09:12 +08:00
conf Remove deprecated [keystone] config section 2018-06-11 13:30:50 +00:00
db Support node retirement 2020-01-28 11:01:32 +01:00
dhcp Stop using six library 2019-12-23 09:38:25 +01:00
drivers Automatic port allocation for the serial console 2020-02-10 16:09:12 +08:00
objects Support node retirement 2020-01-28 11:01:32 +01:00
__init__.py Setup logging in unit tests 2017-04-13 20:47:10 +03:00
policy_fixture.py Add keystone policy support to Ironic 2016-08-04 12:43:20 +00:00
raid_constants.py Fix gate failure related to jsonschema 2019-09-09 17:25:21 +05:30
stubs.py Enhanced checksum support 2018-10-22 16:12:31 +08:00
test_base.py Fix issue with double mocking of utils.execute functions 2018-02-23 05:44:59 -08:00