Beispiel #1
0
 def is_riemann_core_up(deployment_id):
     core_indicator = os.path.join(RIEMANN_CONFIGS_DIR, deployment_id, 'ok')
     try:
         out = docl.read_file(core_indicator)
         return out == 'ok'
     except sh.ErrorReturnCode:
         return False
Beispiel #2
0
 def read_host_file(self, file_path, deployment_id, node_id):
     """
     Read a file from a dockercompute node instance container filesystem.
     """
     runtime_props = self._get_runtime_properties(
         deployment_id=deployment_id, node_id=node_id)
     container_id = runtime_props['container_id']
     return docl.read_file(file_path, container_id=container_id)
Beispiel #3
0
 def read_manager_file(file_path, no_strip=False):
     """
     Read a file from the cloudify manager filesystem.
     """
     return docl.read_file(file_path, no_strip=no_strip)