# ... that still show in an event or shutting down resources ...
- if curState in (pcsNodeState.STOPPING, pcsNodeState.IN_EVENT):
- logging.info("removeOrphanedEvents: node %s has state %s" % (n, curState))
- pcsEventIDs = self.getEventIDs(node=n)
+ 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 pcsEventIDs:
+ for p in clusterEventIDs:
if p in azEventIDs:
- logging.info("removeOrphanedEvents: (at least) event %s on node %s has not yet finished" % (str(p), n))
+ 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.
- logging.info("removeOrphanedEvents: pcsEvents %s on node %s are not in azEvents %s -> bring node back online" % (str(pcsEventIDs), n, str(azEventIDs)))
+ ocf.logger.info("removeOrphanedEvents: clusterEvents %s on node %s are not in azEvents %s -> bring node back online" % (str(clusterEventIDs), n, str(azEventIDs)))
-<shortdesc lang="en">Resource agent to handle Microsoft Azure Scheduled Events</shortdesc>
-<longdesc lang="en">
-The azure-events resource agent is to be used nodes inside a Pacemaker cluster that run Microsoft Azure. It periodically checks if maintenance events (for example, reboots or redploys) are scheduled and takes preemptive action by moving all resources away from the affected node.
- <longdesc lang="en">A comma-separated list of event types that will be handled by this resource agent. (Possible values: Freeze,Reboot,Redeploy; Default = Reboot,Redeploy)</longdesc>
- <shortdesc lang="en">List of resources to be considered</shortdesc>