# ... that still show in an event or shutting down resources ...
if curState in (STOPPING, IN_EVENT):
ocf.logger.info("removeOrphanedEvents: node %s has state %s" % (n, curState))
clusterEventIDs = self.getEventIDs(node=n)
stillActive = False
# ... but don't have any more events running according to Azure, ...
for p in clusterEventIDs:
if p in azEventIDs:
ocf.logger.info("removeOrphanedEvents: (at least) event %s on node %s has not yet finished" % (str(p), n))
stillActive = True
break
if not stillActive:
# ... put them back online.
ocf.logger.info("removeOrphanedEvents: clusterEvents %s on node %s are not in azEvents %s -> bring node back online" % (str(clusterEventIDs), n, str(azEventIDs)))