ironic/ironic/db/sqlalchemy
Julia Kreger ae3a14e65c Make reservation checks caseless
If a conductor hostname is changed while reservations are
issued to a conductor with one hostname, such as 'hostName'
and then the process is restarted with 'hostname', then the
queries would not match the node and effectively the nodes
would become inaccessible until the reservation is cleared.

This patch changes the queries to use a case insenitive
like search, better known as ilike.

Special thanks to the nova team for finding a bug in the hash
ring calculation in the ironic virt driver where a customer
changed their nova-compute hostname, which inspired this
patch.

Change-Id: Ib7da925ba5ca6a82ba542e0f4ae4cf7f0d070835
2020-03-06 12:29:19 -08:00
..
alembic Support node retirement 2020-01-28 11:01:32 +01:00
__init__.py Implement skeleton for a new DB backend. 2013-05-13 00:58:31 -07:00
alembic.ini alembic with initial migration and tests 2014-01-27 16:06:57 +02:00
api.py Make reservation checks caseless 2020-03-06 12:29:19 -08:00
migration.py Replace DbMigrationError with DBMigrationError 2017-09-05 23:10:07 +08:00
models.py Support node retirement 2020-01-28 11:01:32 +01:00