Merge "Instance provisioning fails on SQLite"
This commit is contained in:
commit
2c7ed62e9a
@ -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)
|
||||
|
7
releasenotes/notes/fix-sqlite-lock-61232cfe81adbde4.yaml
Normal file
7
releasenotes/notes/fix-sqlite-lock-61232cfe81adbde4.yaml
Normal 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>`_.
|
Loading…
Reference in New Issue
Block a user