ironic/ironic/db/sqlalchemy
Julia Kreger a18f5ef187 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
(cherry picked from commit ae3a14e65c)
2020-03-10 12:54:17 +00:00
..
alembic Deploy Templates: add 'extra' field to DB & object 2019-02-26 15:54:51 +00: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-10 12:54:17 +00:00
migration.py Replace DbMigrationError with DBMigrationError 2017-09-05 23:10:07 +08:00
models.py Deploy Templates: add 'extra' field to DB & object 2019-02-26 15:54:51 +00:00