Skip to content

Commit 0218ca1

Browse files
committed
Allow tempest repo uri and revision configuration
* Different revisions of tempest are required for different releases of openstack, so it is helpful to be able to choose the git repo and repo revision that will be deployed. * The vcsrepo submodule is updated so that remote revisions are supported - previously providing a git revision did not work. Change-Id: If89c06d7c909dd4e5cc7b5b07291bf526a22ea70
1 parent 72bd042 commit 0218ca1

4 files changed

Lines changed: 40 additions & 7 deletions

File tree

packstack/installer/run_setup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,14 @@ def validateSingleFlag(options, flag):
826826
raise FlagValidationError(msg)
827827

828828
def setProvisioningDefaults():
829-
pnames = ['CONFIG_PROVISION_' + x for x in ['DEMO', 'TEMPEST', 'ALL_IN_ONE_OVS_BRIDGE']]
829+
conf_ids = [
830+
'DEMO',
831+
'TEMPEST',
832+
'TEMPEST_REPO_URI',
833+
'TEMPEST_REPO_REVISION',
834+
'ALL_IN_ONE_OVS_BRIDGE',
835+
]
836+
pnames = ['CONFIG_PROVISION_' + x for x in conf_ids]
830837
params = [controller.getParamByName(x) for x in pnames]
831838
for param in params:
832839
controller.CONF[param.CONF_NAME] = (

packstack/plugins/provision_700.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,30 @@ def initConfig(controllerObject):
6060
"USE_DEFAULT" : False,
6161
"NEED_CONFIRM" : False,
6262
"CONDITION" : False },
63+
{"CMD_OPTION" : "provision-tempest-repo-uri",
64+
"USAGE" : "The uri of the tempest git repository to use",
65+
"PROMPT" : "What is the uri of the Tempest git repository?",
66+
"OPTION_LIST" : [],
67+
"VALIDATORS" : [validators.validate_not_empty],
68+
"DEFAULT_VALUE" : "https://github.com/redhat-openstack/tempest.git",
69+
"MASK_INPUT" : False,
70+
"LOOSE_VALIDATION": True,
71+
"CONF_NAME" : "CONFIG_PROVISION_TEMPEST_REPO_URI",
72+
"USE_DEFAULT" : True,
73+
"NEED_CONFIRM" : False,
74+
"CONDITION" : False },
75+
{"CMD_OPTION" : "provision-tempest-repo-revision",
76+
"USAGE" : "The revision of the tempest git repository to use",
77+
"PROMPT" : "What revision, branch, or tag of the Tempest git repository should be used?",
78+
"OPTION_LIST" : [],
79+
"VALIDATORS" : [validators.validate_not_empty],
80+
"DEFAULT_VALUE" : "master",
81+
"MASK_INPUT" : False,
82+
"LOOSE_VALIDATION": True,
83+
"CONF_NAME" : "CONFIG_PROVISION_TEMPEST_REPO_REVISION",
84+
"USE_DEFAULT" : True,
85+
"NEED_CONFIRM" : False,
86+
"CONDITION" : False },
6387
],
6488
"PROVISION_ALL_IN_ONE_OVS_BRIDGE" : [
6589
{"CMD_OPTION" : "provision-all-in-one-ovs-bridge",

packstack/puppet/templates/provision.pp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
class { 'openstack::provision':
2-
admin_password => '%(CONFIG_KEYSTONE_ADMIN_PW)s',
3-
password => '%(CONFIG_KEYSTONE_DEMO_PW)s',
4-
configure_tempest => %(CONFIG_PROVISION_TEMPEST)s,
5-
setup_ovs_bridge => %(CONFIG_PROVISION_ALL_IN_ONE_OVS_BRIDGE)s,
6-
public_bridge_name => '%(CONFIG_NEUTRON_L3_EXT_BRIDGE)s'
2+
admin_password => '%(CONFIG_KEYSTONE_ADMIN_PW)s',
3+
password => '%(CONFIG_KEYSTONE_DEMO_PW)s',
4+
configure_tempest => %(CONFIG_PROVISION_TEMPEST)s,
5+
tempest_repo_uri => '%(CONFIG_PROVISION_TEMPEST_REPO_URI)s',
6+
tempest_repo_revision => '%(CONFIG_PROVISION_TEMPEST_REPO_REVISION)s',
7+
setup_ovs_bridge => %(CONFIG_PROVISION_ALL_IN_ONE_OVS_BRIDGE)s,
8+
public_bridge_name => '%(CONFIG_NEUTRON_L3_EXT_BRIDGE)s'
79
}
810

911
firewall { '000 nat':

0 commit comments

Comments
 (0)