Skip to content

Commit

Permalink
Merge branch 'dev' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
vktrrdk committed Oct 23, 2024
2 parents 59538f4 + 223991d commit 0f9be2b
Show file tree
Hide file tree
Showing 12 changed files with 4,074 additions and 10,988 deletions.
2 changes: 1 addition & 1 deletion docker-compose.bibigrid.host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ services:

simplevm_client_filebeat:
container_name: simplevm_client_filebeat
image: docker.elastic.co/beats/filebeat:8.15.2
image: docker.elastic.co/beats/filebeat:8.15.3
network_mode: host # Use the host network namespace

env_file:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.bibigrid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ services:

# filebeat
simplevm_filebeat:
image: docker.elastic.co/beats/filebeat:8.15.2
image: docker.elastic.co/beats/filebeat:8.15.3
env_file:
- .env
volumes:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:

simplevm_client_filebeat:
container_name: simplevm_client_filebeat
image: docker.elastic.co/beats/filebeat:8.15.2
image: docker.elastic.co/beats/filebeat:8.15.3
env_file:
- .env
volumes:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
# filebeat
simplevm_client_filebeat:
container_name: simplevm_client_filebeat
image: docker.elastic.co/beats/filebeat:8.15.2
image: docker.elastic.co/beats/filebeat:8.15.3
env_file:
- .env
volumes:
Expand Down
16 changes: 16 additions & 0 deletions portal_client.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,22 @@ service VirtualMachineService {

throws (1:ServerNotFoundException e, 2: OpenStackConflictException c)

void rescue_server(

/** Id of the server. */
1:string openstack_id
2:optional string admin_pass
3:optional string image_ref)

throws (1:ServerNotFoundException e, 2: OpenStackConflictException c)

void unrescue_server(

/** Id of the server. */
1:string openstack_id)

throws (1:ServerNotFoundException e, 2: OpenStackConflictException c)


string start_server(
/** Name of the Flavor to use.*/
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
setuptools==75.1.0
setuptools==75.2.0
thrift==0.21.0
openstacksdk==4.0.0
deprecated==1.2.14
Expand All @@ -15,7 +15,7 @@ pre-commit==4.0.1
types-PyYAML==6.0.12.20240917
sympy==1.13.3
colorama==0.4.6
gevent==24.10.2
gevent==24.10.3
pytest==8.3.3
types-redis==4.6.0.20241004
oslo.utils==7.3.0
10 changes: 10 additions & 0 deletions simple_vm_client/VirtualMachineHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,16 @@ 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 unrescue_server(self, openstack_id: str) -> None:
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
Loading

0 comments on commit 0f9be2b

Please sign in to comment.