Skip to content

Commit

Permalink
feat(Playbook):added generic playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Nov 12, 2024
1 parent 0ac4313 commit 5fb6bbe
Show file tree
Hide file tree
Showing 19 changed files with 11,446 additions and 3,890 deletions.
1 change: 0 additions & 1 deletion docker-compose.bibigrid.host.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3.5'
services:
simplevm-client:
container_name: simplevm-client
Expand Down
1 change: 0 additions & 1 deletion docker-compose.bibigrid.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3.5'
services:
simplevm-client:
container_name: simplevm-client
Expand Down
1 change: 0 additions & 1 deletion docker-compose.dev.bibigrid.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3.5'
services:
simplevm-client:
container_name: simplevm-client
Expand Down
1 change: 0 additions & 1 deletion docker-compose.dev.giessen.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3.5'
services:
simplevm-client-giessen:
container_name: simplevm-client-giessen
Expand Down
1 change: 0 additions & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3.5'
services:
simplevm-client:
container_name: simplevm-client
Expand Down
1 change: 0 additions & 1 deletion docker-compose.host.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3.5'
services:
simplevm-client:
container_name: simplevm-client
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3.5'
services:
simplevm-client:
container_name: simplevm-client
Expand Down
8 changes: 5 additions & 3 deletions portal_client.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,11 @@ service VirtualMachineService {
5:optional string research_environment,
7:list<map<string,string>> volume_ids_path_new,
8:list<map<string,string>> volume_ids_path_attach,
9:optional list<string> additional_security_group_ids,
10:optional string metadata_token,
11:optional string metadata_endpoint
9:optional list<string> additional_security_group_ids,
10:optional list<string> additional_keys,
11:optional string metadata_token,
12:optional string metadata_endpoint,



) throws (1:NameAlreadyUsedException e,2:ResourceNotAvailableException r,3: ImageNotFoundException i,4: FlavorNotFoundException f,5:DefaultException d)
Expand Down
16 changes: 9 additions & 7 deletions simple_vm_client/VirtualMachineHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@ def stop_server(self, openstack_id: str) -> None:
def delete_server(self, openstack_id: str) -> None:
return self.openstack_connector.delete_server(openstack_id=openstack_id)

def rescue_server(self, openstack_id: str,
admin_pass: str = None,
image_ref: str = None) -> None:
return self.openstack_connector.rescue_server(openstack_id=openstack_id,
admin_pass=admin_pass,
image_ref=image_ref)
def rescue_server(
self, openstack_id: str, admin_pass: str = None, image_ref: str = None
) -> None:
return self.openstack_connector.rescue_server(
openstack_id=openstack_id, admin_pass=admin_pass, image_ref=image_ref
)

def unrescue_server(self, openstack_id: str) -> None:
return self.openstack_connector.unrescue_server(openstack_id=openstack_id)
return self.openstack_connector.unrescue_server(openstack_id=openstack_id)

def reboot_hard_server(self, openstack_id: str) -> None:
return self.openstack_connector.reboot_hard_server(openstack_id=openstack_id)
Expand Down Expand Up @@ -429,6 +429,7 @@ def start_server_with_custom_key(
volume_ids_path_new: list[dict[str, str]],
volume_ids_path_attach: list[dict[str, str]],
additional_security_group_ids: list[str],
additional_keys: list[str],
metadata_token: str = None,
metadata_endpoint: str = None,
) -> str:
Expand All @@ -445,6 +446,7 @@ def start_server_with_custom_key(
image_name=image_name,
servername=servername,
metadata=metadata,
additional_keys=additional_keys,
research_environment_metadata=research_environment_metadata,
volume_ids_path_new=volume_ids_path_new,
volume_ids_path_attach=volume_ids_path_attach,
Expand Down
Loading

0 comments on commit 5fb6bbe

Please sign in to comment.