예제 #1
0
 def tempest_config_folsom(self, image_ref, image_ref_alt,
                           path_to_private_key,
                           compute_db_uri='mysql://*****:*****@localhost/nova'):
     sample = load(
         root('fuel_test', 'config', 'tempest.conf.folsom.sample'))
     config = sample % {
         'IDENTITY_USE_SSL': 'false',
         'IDENTITY_HOST': self.public_ip,
         'IDENTITY_PORT': '5000',
         'IDENTITY_API_VERSION': 'v2.0',
         'IDENTITY_PATH': 'tokens',
         'IDENTITY_STRATEGY': 'keystone',
         'COMPUTE_ALLOW_TENANT_ISOLATION': 'true',
         'COMPUTE_ALLOW_TENANT_REUSE': 'true',
         'USERNAME': '******',
         'PASSWORD': '******',
         'TENANT_NAME': 'tenant1',
         'ALT_USERNAME': '******',
         'ALT_PASSWORD': '******',
         'ALT_TENANT_NAME': 'tenant2',
         'IMAGE_ID': image_ref,
         'IMAGE_ID_ALT': image_ref_alt,
         'FLAVOR_REF': '1',
         'FLAVOR_REF_ALT': '2',
         'COMPUTE_BUILD_INTERVAL': '10',
         'COMPUTE_BUILD_TIMEOUT': '600',
         'RUN_SSH': 'false',
         'NETWORK_FOR_SSH': 'novanetwork',
         'COMPUTE_CATALOG_TYPE': 'compute',
         'COMPUTE_CREATE_IMAGE_ENABLED': 'true',
         'COMPUTE_RESIZE_AVAILABLE': 'true',
         'COMPUTE_CHANGE_PASSWORD_AVAILABLE': 'false',
         'COMPUTE_LOG_LEVEL': 'DEBUG',
         'COMPUTE_WHITEBOX_ENABLED': 'true',
         'COMPUTE_SOURCE_DIR': '/opt/stack/nova',
         'COMPUTE_CONFIG_PATH': '/etc/nova/nova.conf',
         'COMPUTE_BIN_DIR': '/usr/local/bin',
         'COMPUTE_PATH_TO_PRIVATE_KEY': path_to_private_key,
         'COMPUTE_DB_URI': compute_db_uri,
         'IMAGE_CATALOG_TYPE': 'image',
         'IMAGE_API_VERSION': '1',
         'IMAGE_HOST': self.public_ip,
         'IMAGE_PORT': '9292',
         'IMAGE_USERNAME': '******',
         'IMAGE_PASSWORD': '******',
         'IMAGE_TENANT_NAME': 'tenant1',
         'COMPUTE_ADMIN_USERNAME': ADMIN_USERNAME,
         'COMPUTE_ADMIN_PASSWORD': ADMIN_PASSWORD,
         'COMPUTE_ADMIN_TENANT_NAME': ADMIN_TENANT_FOLSOM,
         'IDENTITY_ADMIN_USERNAME': ADMIN_USERNAME,
         'IDENTITY_ADMIN_PASSWORD': ADMIN_PASSWORD,
         'IDENTITY_ADMIN_TENANT_NAME': ADMIN_TENANT_FOLSOM,
         'VOLUME_CATALOG_TYPE': 'volume',
         'VOLUME_BUILD_INTERVAL': '10',
         'VOLUME_BUILD_TIMEOUT': '300',
         'NETWORK_CATALOG_TYPE': 'network',
         'NETWORK_API_VERSION': 'v2.0',
     }
     return config
예제 #2
0
 def setup_agent_nodes(self, nodes):
     agent_config = load(root('fuel_test', 'config', 'puppet.agent.config'))
     for node in nodes:
         if node.name != 'master':
             remote = node.remote('public', login='******', password='******')
             self.add_nodes_to_hosts(remote, self.environment().nodes)
             setup_puppet_client(remote)
             write_config(remote, '/etc/puppet/puppet.conf', agent_config)
             request_cerificate(remote)
예제 #3
0
 def setup_agent_nodes(self, nodes):
     agent_config = load(root("fuel_test", "config", "puppet.agent.config"))
     for node in nodes:
         if node.name != "master":
             remote = node.remote("public", login="******", password="******")
             self.add_nodes_to_hosts(remote, self.environment().nodes)
             setup_puppet_client(remote)
             write_config(remote, "/etc/puppet/puppet.conf", agent_config)
             request_cerificate(remote)
예제 #4
0
파일: ci_base.py 프로젝트: nickchase/fuel
 def setup_agent_nodes(self, nodes):
     agent_config = load(
         root('fuel_test', 'config', 'puppet.agent.config'))
     for node in nodes:
         if node.name != 'master':
             remote = node.remote('public', login='******',
                 password='******')
             self.add_nodes_to_hosts(remote, self.environment().nodes)
             setup_puppet_client(remote)
             write_config(remote, '/etc/puppet/puppet.conf', agent_config)
             request_cerificate(remote)
예제 #5
0
 def tempest_config_essex(self, image_ref, image_ref_alt):
     sample = load(
         root('fuel_test', 'config', 'tempest.conf.essex.sample'))
     config = sample % {
         'HOST': self.public_ip,
         'USERNAME': '******',
         'PASSWORD': '******',
         'TENANT_NAME': 'tenant1',
         'ALT_USERNAME': '******',
         'ALT_PASSWORD': '******',
         'ALT_TENANT_NAME': 'tenant2',
         'IMAGE_ID': image_ref,
         'IMAGE_ID_ALT': image_ref_alt,
         'ADMIN_USERNAME': ADMIN_USERNAME,
         'ADMIN_PASSWORD': ADMIN_PASSWORD,
         'ADMIN_TENANT_NAME': ADMIN_TENANT_ESSEX,
     }
     return config
예제 #6
0
 def __init__(self, path, deployment_mode=None):
     super(Template, self).__init__()
     self.value = load(path)
     self.deployment_mode = deployment_mode
예제 #7
0
파일: manifest.py 프로젝트: mattymo/fuel
 def __init__(self, path):
     super(Template, self).__init__()
     self.value = load(path)
예제 #8
0
 def __init__(self, path, deployment_mode=None):
     super(Template, self).__init__()
     self.value = load(path)
     self.deployment_mode = deployment_mode
예제 #9
0
파일: prepare.py 프로젝트: nickchase/fuel
 def tempest_config_grizzly(self, image_ref, image_ref_alt, public_network_id, public_router_id,
                           path_to_private_key,
                           compute_db_uri='mysql://*****:*****@localhost/nova'):
     sample = load(
         root('fuel_test', 'config', 'tempest.conf.grizzly.sample'))
     config = sample % {
         'IDENTITY_CATALOG_TYPE': 'identity',
         'IDENTITY_DISABLE_SSL_CHECK': 'true',
         'IDENTITY_USE_SSL': 'false',
         'IDENTITY_URI': 'http://%s:5000/v2.0/' % self.public_ip,
         'IDENTITY_REGION': 'RegionOne',
         'IDENTITY_HOST': self.public_ip,
         'IDENTITY_PORT': '5000',
         'IDENTITY_API_VERSION': 'v2.0',
         'IDENTITY_PATH': 'tokens',
         'IDENTITY_STRATEGY': 'keystone',
         'COMPUTE_ALLOW_TENANT_ISOLATION': 'true',
         'COMPUTE_ALLOW_TENANT_REUSE': 'true',
         'USERNAME': '******',
         'PASSWORD': '******',
         'TENANT_NAME': 'tenant1',
         'ALT_USERNAME': '******',
         'ALT_PASSWORD': '******',
         'ALT_TENANT_NAME': 'tenant2',
         'IMAGE_ID': image_ref,
         'IMAGE_ID_ALT': image_ref_alt,
         'FLAVOR_REF': '1',
         'FLAVOR_REF_ALT': '1', # skip flavor '2' which provides 20Gb ephemerals and lots of RAM...
         'COMPUTE_BUILD_INTERVAL': '10',
         'COMPUTE_BUILD_TIMEOUT': '600',
         'RUN_SSH': 'true',
         'NETWORK_FOR_SSH': 'net04', # todo use private instead of floating?
         'SSH_USER': '******',
         'LIVE_MIGRATION': 'true',
         'USE_BLOCKMIG_FOR_LIVEMIG' : 'true',
         'COMPUTE_CATALOG_TYPE': 'compute',
         'COMPUTE_CREATE_IMAGE_ENABLED': 'true',
         'COMPUTE_RESIZE_AVAILABLE': 'false', # not supported with QEMU...
         'COMPUTE_CHANGE_PASSWORD_AVAILABLE': 'false',
         'COMPUTE_LOG_LEVEL': 'ERROR',
         'COMPUTE_WHITEBOX_ENABLED': 'true',
         'COMPUTE_SOURCE_DIR': '/opt/stack/nova',
         'COMPUTE_CONFIG_PATH': '/etc/nova/nova.conf',
         'COMPUTE_BIN_DIR': '/usr/local/bin',
         'COMPUTE_PATH_TO_PRIVATE_KEY': path_to_private_key,
         'COMPUTE_DB_URI': compute_db_uri,
         'IMAGE_CATALOG_TYPE': 'image',
         'IMAGE_API_VERSION': '1',
         'IMAGE_HOST': self.public_ip,
         'IMAGE_PORT': '9292',
         'IMAGE_USERNAME': '******',
         'IMAGE_PASSWORD': '******',
         'IMAGE_TENANT_NAME': 'tenant1',
         'ADMIN_USER_NAME': ADMIN_USERNAME,
         'ADMIN_PASSWORD': ADMIN_PASSWORD,
         'ADMIN_TENANT_NAME': ADMIN_TENANT_FOLSOM,
         'IDENTITY_ADMIN_USERNAME': ADMIN_USERNAME,
         'IDENTITY_ADMIN_PASSWORD': ADMIN_PASSWORD,
         'IDENTITY_ADMIN_TENANT_NAME': ADMIN_TENANT_FOLSOM,
         'COMPUTE_ADMIN_USERNAME': ADMIN_USERNAME,
         'COMPUTE_ADMIN_PASSWORD': ADMIN_PASSWORD,
         'COMPUTE_ADMIN_TENANT_NAME': ADMIN_TENANT_FOLSOM,
         'IDENTITY_ADMIN_USERNAME': ADMIN_USERNAME,
         'IDENTITY_ADMIN_PASSWORD': ADMIN_PASSWORD,
         'IDENTITY_ADMIN_TENANT_NAME': ADMIN_TENANT_FOLSOM,
         'VOLUME_CATALOG_TYPE': 'volume',
         'VOLUME_BUILD_INTERVAL': '15',
         'VOLUME_BUILD_TIMEOUT': '400',
         'NETWORK_CATALOG_TYPE': 'network',
         'NETWORK_API_VERSION': 'v2.0',
         'QUANTUM': 'true',
         'TENANT_NETS_REACHABLE': 'false',
         'TENANT_NETWORK_CIDR': '192.168.112.0/24', # choose do not overlap with 'net04'
         'TENANT_NETWORK_MASK_BITS': '28', # 29 is too less to test quantum quotas (at least 50 ips needed)
         'PUBLIC_NETWORK_ID': public_network_id,
         'PUBLIC_ROUTER_ID': public_router_id,
     }
     return config