@classmethod
def create_test_server(cls, validatable=False, volume_backed=False, validation_resources=None, clients=None, **kwargs):
    'Wrapper utility that returns a test server.\n\n        This wrapper utility calls the common create test server and\n        returns a test server. The purpose of this wrapper is to minimize\n        the impact on the code of the tests already using this\n        function.\n\n        :param validatable: Whether the server will be pingable or sshable.\n        :param volume_backed: Whether the instance is volume backed or not.\n        :param validation_resources: Dictionary of validation resources as\n            returned by `get_class_validation_resources`.\n        :param clients: Client manager, defaults to os_primary.\n        :param kwargs: Extra arguments are passed down to the\n            `compute.create_test_server` call.\n        '
    if ('name' not in kwargs):
        kwargs['name'] = data_utils.rand_name((cls.__name__ + '-server'))
    request_version = api_version_request.APIVersionRequest(cls.request_microversion)
    v2_37_version = api_version_request.APIVersionRequest('2.37')
    tenant_network = cls.get_tenant_network()
    if ((request_version >= v2_37_version) and ('networks' not in kwargs) and (not tenant_network)):
        kwargs['networks'] = 'none'
    if (clients is None):
        clients = cls.os_primary
    (body, servers) = compute.create_test_server(clients, validatable, validation_resources=validation_resources, tenant_network=tenant_network, volume_backed=volume_backed, **kwargs)
    for server in servers:
        cls.addClassResourceCleanup(waiters.wait_for_server_termination, clients.servers_client, server['id'])
    for server in servers:
        cls.addClassResourceCleanup(test_utils.call_and_ignore_notfound_exc, clients.servers_client.delete_server, server['id'])
    return body
Wrapper utility that returns a test server.

This wrapper utility calls the common create test server and
returns a test server. The purpose of this wrapper is to minimize
the impact on the code of the tests already using this
function.

:param validatable: Whether the server will be pingable or sshable.
:param volume_backed: Whether the instance is volume backed or not.
:param validation_resources: Dictionary of validation resources as
    returned by `get_class_validation_resources`.
:param clients: Client manager, defaults to os_primary.
:param kwargs: Extra arguments are passed down to the
    `compute.create_test_server` call.
@classmethod
def create_test_server(cls, validatable=False, volume_backed=False, validation_resources=None, clients=None, **kwargs):
    'Wrapper utility that returns a test server.\n\n        This wrapper utility calls the common create test server and\n        returns a test server. The purpose of this wrapper is to minimize\n        the impact on the code of the tests already using this\n        function.\n\n        :param validatable: Whether the server will be pingable or sshable.\n        :param volume_backed: Whether the instance is volume backed or not.\n        :param validation_resources: Dictionary of validation resources as\n            returned by `get_class_validation_resources`.\n        :param clients: Client manager, defaults to os_primary.\n        :param kwargs: Extra arguments are passed down to the\n            `compute.create_test_server` call.\n        '
    if ('name' not in kwargs):
        kwargs['name'] = data_utils.rand_name((cls.__name__ + '-server'))
    request_version = api_version_request.APIVersionRequest(cls.request_microversion)
    v2_37_version = api_version_request.APIVersionRequest('2.37')
    tenant_network = cls.get_tenant_network()
    if ((request_version >= v2_37_version) and ('networks' not in kwargs) and (not tenant_network)):
        kwargs['networks'] = 'none'
    if (clients is None):
        clients = cls.os_primary
    (body, servers) = compute.create_test_server(clients, validatable, validation_resources=validation_resources, tenant_network=tenant_network, volume_backed=volume_backed, **kwargs)
    for server in servers:
        cls.addClassResourceCleanup(waiters.wait_for_server_termination, clients.servers_client, server['id'])
    for server in servers:
        cls.addClassResourceCleanup(test_utils.call_and_ignore_notfound_exc, clients.servers_client.delete_server, server['id'])
    return body