예제 #1
0
 def __init__(self):
     self.migration_utils = FilteringUtils()
     self.file_path = 'devlab/tests/scenarios/cold_migrate.yaml'
     self.main_folder = self.migration_utils.main_folder
     self.full_path = os.path.join(self.main_folder, self.file_path)
     self.exception_task = {'fail_migration': True}
     self.steps_list = []
예제 #2
0
    def __init__(self, config, cloud_prefix='SRC'):
        self.filtering_utils = FilteringUtils()
        self.config = config
        self.username = os.environ['%s_OS_USERNAME' % cloud_prefix]
        self.password = os.environ['%s_OS_PASSWORD' % cloud_prefix]
        self.tenant = os.environ['%s_OS_TENANT_NAME' % cloud_prefix]
        self.auth_url = os.environ['%s_OS_AUTH_URL' % cloud_prefix]
        self.image_endpoint = os.environ['%s_OS_IMAGE_ENDPOINT' % cloud_prefix]
        self.neutron_endpoint = os.environ['%s_OS_NEUTRON_ENDPOINT' %
                                           cloud_prefix]

        self.keystoneclient = keystone.Client(auth_url=self.auth_url,
                                              username=self.username,
                                              password=self.password,
                                              tenant_name=self.tenant)
        self.keystoneclient.authenticate()
        self.token = self.keystoneclient.auth_token

        self.novaclient = nova.Client(self.config.NOVA_CLIENT_VERSION,
                                      username=self.username,
                                      api_key=self.password,
                                      project_id=self.tenant,
                                      auth_url=self.auth_url)

        self.glanceclient = glance(self.config.GLANCE_CLIENT_VERSION,
                                   endpoint=self.image_endpoint,
                                   token=self.token)

        self.neutronclient = neutron.Client(self.config.NEUTRON_CLIENT_VERSION,
                                            endpoint_url=self.neutron_endpoint,
                                            token=self.token)

        self.cinderclient = cinder.Client(self.config.CINDER_CLIENT_VERSION,
                                          self.username, self.password,
                                          self.tenant, self.auth_url)
        # will be filled during create all networking step
        self.ext_net_id = None
예제 #3
0
 def __init__(self, config):
     self.cloud_info = None
     self.migration_utils = FilteringUtils()
     self.main_folder = self.migration_utils.main_folder
     self.config = config
예제 #4
0
 def __init__(self, *args, **kwargs):
     super(FunctionalTest, self).__init__(*args, **kwargs)
     suppress_dependency_logging()
     self.src_cloud = Prerequisites(cloud_prefix='SRC', config=config)
     self.dst_cloud = Prerequisites(cloud_prefix='DST', config=config)
     self.filtering_utils = FilteringUtils()