Remove deploy from source support
Drop support for deployment from Git repositories, as deprecated in the 17.02 charm release. This feature is unmaintained and has no known users. Change-Id: Ib954ddd1fb63d409af77949d8e76a6d6da8f2cde
This commit is contained in:
@@ -15,9 +15,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import amulet
|
||||
import os
|
||||
import time
|
||||
import yaml
|
||||
|
||||
from charmhelpers.contrib.openstack.amulet.deployment import (
|
||||
OpenStackAmuletDeployment
|
||||
@@ -41,12 +39,11 @@ u = OpenStackAmuletUtils(DEBUG)
|
||||
class NeutronOVSBasicDeployment(OpenStackAmuletDeployment):
|
||||
"""Amulet tests on a basic neutron-openvswtich deployment."""
|
||||
|
||||
def __init__(self, series, openstack=None, source=None, git=False,
|
||||
def __init__(self, series, openstack=None, source=None,
|
||||
stable=False):
|
||||
"""Deploy the entire test environment."""
|
||||
super(NeutronOVSBasicDeployment, self).__init__(series, openstack,
|
||||
source, stable)
|
||||
self.git = git
|
||||
self._add_services()
|
||||
self._add_relations()
|
||||
self._configure_services()
|
||||
@@ -103,61 +100,6 @@ class NeutronOVSBasicDeployment(OpenStackAmuletDeployment):
|
||||
def _configure_services(self):
|
||||
"""Configure all of the services."""
|
||||
neutron_ovs_config = {}
|
||||
if self.git:
|
||||
amulet_http_proxy = os.environ.get('AMULET_HTTP_PROXY')
|
||||
|
||||
branch = 'stable/' + self._get_openstack_release_string()
|
||||
|
||||
if self._get_openstack_release() >= self.trusty_kilo:
|
||||
openstack_origin_git = {
|
||||
'repositories': [
|
||||
{'name': 'requirements',
|
||||
'repository':
|
||||
'git://github.com/openstack/requirements',
|
||||
'branch': branch},
|
||||
{'name': 'neutron-fwaas',
|
||||
'repository':
|
||||
'git://github.com/openstack/neutron-fwaas',
|
||||
'branch': branch},
|
||||
{'name': 'neutron-lbaas',
|
||||
'repository':
|
||||
'git://github.com/openstack/neutron-lbaas',
|
||||
'branch': branch},
|
||||
{'name': 'neutron-vpnaas',
|
||||
'repository':
|
||||
'git://github.com/openstack/neutron-vpnaas',
|
||||
'branch': branch},
|
||||
{'name': 'neutron',
|
||||
'repository': 'git://github.com/openstack/neutron',
|
||||
'branch': branch},
|
||||
],
|
||||
'directory': '/mnt/openstack-git',
|
||||
'http_proxy': amulet_http_proxy,
|
||||
'https_proxy': amulet_http_proxy,
|
||||
}
|
||||
else:
|
||||
reqs_repo = 'git://github.com/openstack/requirements'
|
||||
neutron_repo = 'git://github.com/openstack/neutron'
|
||||
if self._get_openstack_release() == self.trusty_icehouse:
|
||||
reqs_repo = 'git://github.com/coreycb/requirements'
|
||||
neutron_repo = 'git://github.com/coreycb/neutron'
|
||||
|
||||
openstack_origin_git = {
|
||||
'repositories': [
|
||||
{'name': 'requirements',
|
||||
'repository': reqs_repo,
|
||||
'branch': branch},
|
||||
{'name': 'neutron',
|
||||
'repository': neutron_repo,
|
||||
'branch': branch},
|
||||
],
|
||||
'directory': '/mnt/openstack-git',
|
||||
'http_proxy': amulet_http_proxy,
|
||||
'https_proxy': amulet_http_proxy,
|
||||
}
|
||||
neutron_ovs_config['openstack-origin-git'] = (
|
||||
yaml.dump(openstack_origin_git))
|
||||
|
||||
neutron_ovs_config['enable-sriov'] = True
|
||||
neutron_ovs_config['sriov-device-mappings'] = 'physnet42:eth42'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user