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, accessor, path, *args, **kwargs): self.config = kwargs["config"] self.path = path self.container = None self.access_data = accessor.os_data self.skip = False self.homedir = "/home/mcv/toolbox/rally" self.home = "/mcv" super(RallyOnDockerRunner, self).__init__(*args, **kwargs) self.failure_indicator = RallyError.NO_RUNNER_ERROR self.glanceclient = Clients.get_glance_client(self.access_data) self.neutronclient = Clients.get_neutron_client(self.access_data) self.novaclient = Clients.get_nova_client(self.access_data) self.net_id = None
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)
def __init__(self, ctx): super(RallyOnDockerRunner, self).__init__(ctx) self.access_data = self.ctx.access_data self.path = self.ctx.work_dir.base_dir self.skip = False self.homedir = "/home/mcv/toolbox/rally" self.home = "/mcv" self.glanceclient = Clients.get_glance_client(self.access_data) self.neutronclient = Clients.get_neutron_client(self.access_data) self.novaclient = Clients.get_nova_client(self.access_data) self.net_id = None self.users = '' if CONF.rally.existing_users else users_context # store rally.conf self.store_config(os.path.join(self.homedir, "rally.conf"))