Have icehouse amulet tests use repo with pinned oslo requirements and add neutron-*aas repos for kilo amulet tests.

This commit is contained in:
Corey Bryant
2015-07-12 20:37:27 +00:00
parent b80b4f72f4
commit 6e75432cff

View File

@@ -67,21 +67,40 @@ class NeutronOVSBasicDeployment(OpenStackAmuletDeployment):
"""Configure all of the services.""" """Configure all of the services."""
neutron_ovs_config = {} neutron_ovs_config = {}
if self.git: if self.git:
release = self._get_openstack_release_string() branch = 'stable/' + self._get_openstack_release_string()
reqs_branch = 'stable/' + release
if self._get_openstack_release() == self.trusty_icehouse:
neutron_branch = release + '-eol'
else:
neutron_branch = 'stable/' + release
amulet_http_proxy = os.environ.get('AMULET_HTTP_PROXY') amulet_http_proxy = os.environ.get('AMULET_HTTP_PROXY')
if self._get_openstack_release() >= self.trusty_kilo:
openstack_origin_git = { openstack_origin_git = {
'repositories': [ 'repositories': [
{'name': 'requirements', {'name': 'requirements',
'repository': 'git://github.com/openstack/requirements', 'repository': 'git://github.com/openstack/requirements',
'branch': reqs_branch}, 'branch': branch},
{'name': 'neutron-fwaas',
'repository': 'git://github.com/coreycb/neutron-fwaas',
'branch': branch},
{'name': 'neutron-lbaas',
'repository': 'git://github.com/coreycb/neutron-lbaas',
'branch': branch},
{'name': 'neutron-vpnaas',
'repository': 'git://github.com/coreycb/neutron-vpnaas',
'branch': branch},
{'name': 'neutron', {'name': 'neutron',
'repository': 'git://github.com/openstack/neutron', 'repository': 'git://github.com/coreycb/neutron',
'branch': neutron_branch}, 'branch': branch},
],
'directory': '/mnt/openstack-git',
'http_proxy': amulet_http_proxy,
'https_proxy': amulet_http_proxy,
}
else:
openstack_origin_git = {
'repositories': [
{'name': 'requirements',
'repository': 'git://github.com/openstack/requirements',
'branch': branch},
{'name': 'neutron',
'repository': 'git://github.com/coreycb/neutron',
'branch': branch},
], ],
'directory': '/mnt/openstack-git', 'directory': '/mnt/openstack-git',
'http_proxy': amulet_http_proxy, 'http_proxy': amulet_http_proxy,