ironic/ironic/tests/unit
Julia Kreger cbe5f86ce7 Fix online upgrades for Bios/Traits
... And tags, but nobody uses tags since it is not available
via the API.

Anyhow, the online upgrade code was written under the assumption
that *all* tables had an "id" column. This is not always true
in the ironic data model for tables which started as pure extensions
of the Nodes table, and fails in particular when:

1) A database row has data stored in an ealier version of the object
2) That same object gets a version upgrade.

In the case which discovered this, BIOSSetting was added at version
1.0, and later updated to include additional fields which incremented
the version to 1.1. When the upgrade went to evaluate and iterate
through the fields, the command failed because the table was designed
around "node_id" instead of "id".

Story: 2010632
Task: 47590

Change-Id: I7bec6cfacb9d1558bc514c07386583436759f4df
2023-03-07 08:51:39 -08:00
..
api Merge "Use association_proxy for port groups node_uuid" 2023-02-19 13:54:58 +00:00
cmd Add upgrade check warning for allocations db 2022-10-13 10:54:55 -07:00
common Respond to rpc requests on stop until hash ring reset 2023-02-27 11:09:25 +13:00
conductor Merge "Do not move nodes to CLEAN FAILED with empty last_error" 2023-03-02 14:23:40 +00:00
conf Switch Ironic to openstacksdk for Neutron 2020-08-19 10:48:17 +02:00
db Fix online upgrades for Bios/Traits 2023-03-07 08:51:39 -08:00
dhcp Implement a DHCP driver backed by dnsmasq 2022-09-05 13:57:39 +12:00
drivers Merge "Add configurable delays to the fake drivers" 2023-02-27 23:39:47 +00:00
objects Merge "Use association_proxy for port groups node_uuid" 2023-02-19 13:54:58 +00:00
__init__.py Add my new address to .mailmap 2020-04-13 07:29:37 -07:00
policy_fixture.py Suppress policy deprecation and default change warnings 2021-07-01 22:13:01 +00:00
raid_constants.py Allow specifying target devices for software RAID 2020-03-17 14:31:38 +01:00
stubs.py Switch Ironic to openstacksdk for Neutron 2020-08-19 10:48:17 +02:00
test_base.py Fix pep8 2020-05-12 15:37:38 +02:00