ironic/ironic/db
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
..
sqlalchemy Make reservation checks caseless 2020-03-10 12:54:17 +00:00
__init__.py Remove copyright from empty files 2014-01-07 21:05:01 +08:00
api.py Allocation API: optimize check on candidate nodes 2019-03-04 14:52:14 +01:00
migration.py Remove downgrade support from migrations 2016-02-08 15:31:15 +00:00