Description of problem: The power_sync for baremetal nodes that use the ipmi driver fails with following error messages and the node is put into maintenance mode: 2021-09-23 13:42:33.514 7 ERROR ironic.conductor.manager [req-06c1ac49-2619-429f-9d3d-c96953a37def - - - - -] During sync_power_state, max retries exceeded for node 5a770848-5ee9-4b96-8560-d0434088779a, node state None does not match expected state 'None'. Updating DB state to 'None' Switching node to maintenance mode. Error: An exclusive lock is required, but the current context has a shared lock.: ironic.common.exception.ExclusiveLockRequired: An exclusive lock is required, but the current context has a shared lock. Version-Release number of selected component (if applicable): How reproducible: always Steps to Reproduce: 1. Enroll & manage a node 2. Wait until node is put into maintenance mode Actual results: Node power state is "None" and node is put into maintenance state Expected results: Node power state should be "Power off" and node should not be in maintenance state Additional info: Current workaround is to set vendor=ignoreme: openstack baremetal node set <node>--property vendor=ignoreme According to upstream developers following patch needs to be backported to Train release: https://review.opendev.org/c/openstack/ironic/+/810656
*** Bug 2006603 has been marked as a duplicate of this bug. ***
*** Bug 2011422 has been marked as a duplicate of this bug. ***
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Release of components for Red Hat OpenStack Platform 16.2.1 (Train)), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:5067