Merge "Instance provisioning fails on SQLite"

This commit is contained in:
Zuul 2024-11-10 05:37:31 +00:00 committed by Gerrit Code Review
commit 2c7ed62e9a
2 changed files with 8 additions and 1 deletions

View File

@ -742,7 +742,7 @@ class Connection(api.Connection):
# Nothing updated and node exists. Must already be
# locked. Identify who holds it and log.
if utils.is_ironic_using_sqlite():
lock_holder = CONF.hostname
lock_holder = CONF.host
else:
lock_holder = self._get_node_reservation(node.id).reservation
raise exception.NodeLocked(node=node.uuid, host=lock_holder)

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Fix issue on SQLite database usage. Previously ironic node provisioning may
fail with error related accessing the hostname.
For more details please see
`bug 2086682 <https://bugs.launchpad.net/ironic/+bug/2086682>`_.