How to use shelve_offload_server method in tempest

Best Python code snippet using tempest_python

compute.py

Source:compute.py Github

copy

Full Screen

...108 """109 Shelve the server.110 """111 return IMPL.shelve_server(server)112def shelve_offload_server(server):113 """114 Remove a shelved instance from the compute node.115 """116 return IMPL.shelve_offload_server(server)117def unshelve_server(server):118 """119 Unshelve the server.120 """121 return IMPL.unshelve_server(server)122def get_server_ips(server):123 """124 Return IP Addresses associated with the server.125 """126 return IMPL.get_server_ips(server)127def create_server(name, image, flavor, meta=None, files=None,128 reservation_id=None, min_count=None,129 max_count=None, security_groups=None, userdata=None,130 key_name=None, availability_zone=None,...

Full Screen

Full Screen

test_shelve_instance.py

Source:test_shelve_instance.py Github

copy

Full Screen

...37 extra_timeout=offload_time)38 else:39 waiters.wait_for_server_status(self.servers_client,40 server['id'], 'SHELVED')41 self.servers_client.shelve_offload_server(server['id'])42 waiters.wait_for_server_status(self.servers_client, server['id'],43 'SHELVED_OFFLOADED')44 self.servers_client.unshelve_server(server['id'])45 waiters.wait_for_server_status(self.servers_client, server['id'],46 'ACTIVE')47 def _create_server_then_shelve_and_unshelve(self, boot_from_volume=False):48 keypair = self.create_keypair()49 security_group = self._create_security_group()50 security_groups = [{'name': security_group['name']}]51 if boot_from_volume:52 volume = self.create_volume(size=CONF.volume.volume_size,53 imageRef=CONF.compute.image_ref)54 bd_map = [{55 'device_name': 'vda',...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run tempest automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful