diff --git a/VirtualMachineService/VirtualMachineHandler.py b/VirtualMachineService/VirtualMachineHandler.py index 2c715e2c..e693085c 100644 --- a/VirtualMachineService/VirtualMachineHandler.py +++ b/VirtualMachineService/VirtualMachineHandler.py @@ -236,6 +236,7 @@ def __init__(self, config): self.BIBIGRID_ANSIBLE_ROLES = cfg["bibigrid"].get( "ansibleGalaxyRoles", [] ) + LOG.info(f"Loaded Ansible Galaxy Roles for Bibigrid:\n {self.BIBIGRID_ANSIBLE_ROLES}") LOG.info(msg=f"Bibigrd url loaded: {self.BIBIGRID_URL}") except Exception as e: @@ -1972,6 +1973,9 @@ def get_cluster_status(self, cluster_id): json_resp = response.json(strict=False) json_resp["log"] = str(json_resp.get("log", "")) json_resp["msg"] = str(json_resp.get("msg", "")) + msg=json_resp["msg"] + info=json_resp.get("info","") + LOG.info(f"Cluster {cluster_id} status: - {msg} | {info}") return json_resp def bibigrid_available(self): @@ -2048,6 +2052,7 @@ def add_cluster_machine( pub_key, project_name, project_id, + ): LOG.info(f"Add machine to [{name}] {cluster_id} - {key_name}") image = self.get_image(image=image) @@ -2612,7 +2617,7 @@ def create_security_group( direction=resenv_metadata.direction, protocol=resenv_metadata.protocol, port_range_max=resenv_metadata.port, - port_range_min=resenv_metadata.port, + port_range_miflavorn=resenv_metadata.port, security_group_id=new_security_group["id"], remote_group_id=self.FORC_REMOTE_ID, ) diff --git a/VirtualMachineService/config/config.yml b/VirtualMachineService/config/config.yml index fad8ba5b..b3df89e3 100644 --- a/VirtualMachineService/config/config.yml +++ b/VirtualMachineService/config/config.yml @@ -46,8 +46,8 @@ bibigrid: bibigrid_modes: - slurm ansibleGalaxyRoles: - - name: autoscaling, - hosts: master, + - name: autoscaling + hosts: master git: https://github.com/patricS4/autoscaling-config-ansible