Ejemplo n.º 1
0
 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.")
Ejemplo n.º 2
0
    def __init__(self, ctx, **kwargs):
        super(IRouter, self).__init__(ctx, **kwargs)

        self.fresh_floating_ips = []

        self.novaclient = clients.get_nova_client(self.os_data)
        self.keystoneclient = clients.get_keystone_client(self.os_data)
        self.secure_group_name = 'mcv-special-group'
        self.server = None
        self.mcvgroup = None
Ejemplo n.º 3
0
    def __init__(self, **kwargs):
        super(IRouter, self).__init__(**kwargs)
        self.port_forwarding = kwargs.get('port_forwarding', False)

        self.fresh_floating_ips = []

        self.novaclient = Clients.get_nova_client(self.os_data)
        self.keystoneclient = Clients.get_keystone_client(self.os_data)
        self.secure_group_name = 'mcv-special-group'
        self.server = None
        self.mcvgroup = None
Ejemplo n.º 4
0
 def __init__(self, access_data, *args, **kwargs):
     self.nova = Clients.get_nova_client(access_data)
     self.config = kwargs.get('config')
     self.node_name = ""
     self.test_nodes = []
     self.ssh_conns = {}
     self.port_n = 45535
     self.port_pool = range(45536, 45600)
     # Port for testing speed between nodes
     self.test_port = GET(self.config, 'test_port', 'nwspeed',
                                     5903)
     # Data size for testing in megabytes
     self.data_size = GET(self.config, 'data_size', 'nwspeed',
                                     100)
Ejemplo n.º 5
0
    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
Ejemplo n.º 6
0
    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)
Ejemplo n.º 7
0
    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"))
Ejemplo n.º 8
0
 def _prepare_nodes(self):
     # Preparing HW node list. Using set for removing duplicates
     nova = Clients.get_nova_client(self.access_data)
     hw_nodes = {host.host_name for host in nova.hosts.list()}
     return list(hw_nodes)