def _cleanup_servers_and_volumes(self, server_name):
        server = self.demo_cloud.get_server(server_name)
        if not server:
            return
        volumes = self.demo_cloud.get_volumes(server)
        self.demo_cloud.delete_server(server.name, wait=True)
        for volume in volumes:
            if volume.status != 'deleting':
                self.demo_cloud.delete_volume(volume.id, wait=True)
Delete the named server and any attached volumes.
dataset/ETHPy150Open openstack-infra/shade/shade/tests/functional/test_compute.py/TestCompute._cleanup_servers_and_volumes