def init_clients(self, access_data):
     LOG.debug("Trying to obtain authenticated OS clients")
     self.novaclient = Clients.get_nova_client(access_data)
     self.cinderclient = Clients.get_cinder_client(access_data)
     self.glanceclient = Clients.get_glance_client(access_data)
     self.neutronclient = Clients.get_neutron_client(access_data)
     LOG.debug("Finish obtaining OS clients.")
    def __init__(self, ctx, **kwargs):
        self.ctx = ctx
        self.access_data = self.ctx.access_data
        self.iterations = kwargs['iterations']

        protocol = 'https' if self.access_data['insecure'] else 'http'

        self.glance_url = "{protocol}://{endpoint}:9292/v2".format(
            protocol=protocol,
            endpoint=self.access_data['public_endpoint_ip'])

        self.timeout = 0

        self.cinderclient = clients.get_cinder_client(self.access_data)
        self.novaclient = clients.get_nova_client(self.access_data)
        self.glance = clients.get_glance_client(self.access_data)