def cleanup(names): """ <function internal="yes"> </function> """ import KZorp ## LOG ## # This message reports that the given instance is freeing its external # resources (for example its kernel-level policy objects). ## log(None, CORE_DEBUG, 6, "Cleaning up instance; name='%s'", (names,)) if Globals.kzorp_responds_to_ping and config.options.kzorp_enabled: try: KZorp.flushKZorpConfig(names[0]) except: ## LOG ## # This message indicates that flushing the instance-related information in the # kernel-level KZorp subsystem has failed. ## log(None, CORE_ERROR, 0, "Error flushing KZorp configuration; error='%s'" % (sys.exc_value)) for s in traceback.format_tb(sys.exc_traceback): for l in s.split("\n"): if l: log(None, CORE_ERROR, 4, "Traceback: %s" % (l))
def cleanup(names, virtual_name, is_master): """ <function internal="yes"> </function> """ import KZorp ## LOG ## # This message reports that the given instance is freeing its external # resources (for example its kernel-level policy objects). ## log(None, CORE_DEBUG, 6, "Cleaning up instance; name='%s'", (names,)) if is_master and Globals.kzorp_available and config.options.kzorp_enabled: try: KZorp.flushKZorpConfig(names[0]) except: ## LOG ## # This message indicates that flushing the instance-related information in the # kernel-level KZorp subsystem has failed. ## log(None, CORE_ERROR, 0, "Error flushing KZorp configuration; error='%s'" % (sys.exc_value)) for s in traceback.format_tb(sys.exc_traceback): for l in s.split("\n"): if l: log(None, CORE_ERROR, 4, "Traceback: %s" % (l))