def kill_reservation( self, uid=None, res_id=None, **kwargs ): """ Removes a reservation from the Heckle System This will free all nodes within the reservation """ logger.debug("HICCUP: Debug: kill_reservation: vals are %s" % self.__dict__ ) opts = {} username = (self.get_usernames(uid))[0] opts["session"] = self.session opts["username"] = username opts["node_names"] = None opts["reservation"] = res_id opts["force"] = True print "Kill Res: Options Are:", opts heckle_unreserve( **opts ) self.session.commit() return True
def free_reserved_node( self, uid=None, node_list=None, **kwargs ): """ Removes reserved nodes from a Heckle reservation This will free only those nodes specified """ logger.debug("HICCUP: Debug: Make Reservation: free_reserved_nodes: Opts are %s " % self.__dict__) username = (self.get_usernames(uid))[0] opts = {"username":username, "session":self.session, "node_names":node_list} logger.debug("HICCUP: Debug: free_reserved_nodes: Options are: %s " % opts ) logger.debug("HICCUP: Debug: free_reserved_nodes: unreserve yeilds %s" % heckle_unreserve( **opts ) ) self.session.commit() return True
def free_reserved_node( self, uid=None, node_list=None, **kwargs ): """ Removes reserved nodes from a Heckle reservation This will free only those nodes specified """ LOGGER.debug( "HICCUP:free_reserved_nodes: Opts are %s " % self.__dict__) opts = {} opts["username"] = uid opts["session"] = self.session opts["node_names"] = node_list LOGGER.debug( "HICCUP:free_reserved_nodes: unreserve yeilds %s" % heckle_unreserve( **opts ) ) self.session.commit() return True
def kill_reservation( self, uid=None, res_id=None, **kwargs ): """ Removes a reservation from the Heckle System This will free all nodes within the reservation """ LOGGER.debug("HICCUP:kill_reservation: vals are %s" % self.__dict__ ) opts = {} opts["session"] = self.session opts["username"] = uid opts["node_names"] = None opts["reservation"] = res_id opts["force"] = True print "Kill Res: Options Are:", opts LOGGER.debug( "HICCUP:kill_reservation: unreserve yeilds %s" % heckle_unreserve( **opts ) ) self.session.commit() return True