Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Install tempest from rpm
In RDO, from ocata release tempest rpm is using upstream tempest
as a source. It would be good to use the same rpm for installing
and configure tempest.

Depends-On: Ia9e48d951e0f37e985e628b7a49401d75c9e4729

Change-Id: Ie6b20063944d3e6307bd332c624572e0cb3f1158
  • Loading branch information
chkumar246 committed Feb 3, 2017
1 parent 8168496 commit eab6d1f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 47 deletions.
6 changes: 0 additions & 6 deletions docs/packstack.rst
Expand Up @@ -988,12 +988,6 @@ Provisioning tempest config
**CONFIG_PROVISION_TEMPEST_FLOATRANGE**
CIDR network address for the floating IP subnet.

**CONFIG_PROVISION_TEMPEST_REPO_URI**
URI of the Integration Test Suite git repository.

**CONFIG_PROVISION_TEMPEST_REPO_REVISION**
Revision (branch) of the Integration Test Suite git repository.

**CONFIG_RUN_TEMPEST**
Specify 'y' to run Tempest smoke test as last step of installation.

Expand Down
2 changes: 1 addition & 1 deletion packstack/plugins/postscript_951.py
Expand Up @@ -56,7 +56,7 @@ def run_tempest(config, messages):
print("Running Tempest on %s" % config['CONFIG_TEMPEST_HOST'])
server = utils.ScriptRunner(config['CONFIG_TEMPEST_HOST'])
server.append('pushd /var/lib/tempest')
server.append('tox -eall \'(%s)\' -- --concurrency=2 > %s'
server.append('tempest run --regex \'(%s)\' --concurrency 2 > %s'
% (config['CONFIG_RUN_TEMPEST_TESTS'].replace(' ', '|'),
logfile))
server.append('popd')
Expand Down
30 changes: 1 addition & 29 deletions packstack/plugins/provision_700.py
Expand Up @@ -253,31 +253,6 @@ def process_tempest(param, param_name, config=None):
"NEED_CONFIRM": False,
"CONDITION": False},

{"CMD_OPTION": "provision-tempest-repo-uri",
"PROMPT": "What is the uri of the Tempest git repository?",
"OPTION_LIST": [],
"VALIDATORS": [validators.validate_not_empty],
"DEFAULT_VALUE": "https://github.com/openstack/tempest.git",
"MASK_INPUT": False,
"LOOSE_VALIDATION": True,
"CONF_NAME": "CONFIG_PROVISION_TEMPEST_REPO_URI",
"USE_DEFAULT": False,
"NEED_CONFIRM": False,
"CONDITION": False},

{"CMD_OPTION": "provision-tempest-repo-revision",
"PROMPT": ("What revision, branch, or tag of the Tempest git "
"repository should be used"),
"OPTION_LIST": [],
"VALIDATORS": [validators.validate_not_empty],
"DEFAULT_VALUE": "master",
"MASK_INPUT": False,
"LOOSE_VALIDATION": True,
"CONF_NAME": "CONFIG_PROVISION_TEMPEST_REPO_REVISION",
"USE_DEFAULT": False,
"NEED_CONFIRM": False,
"CONDITION": False},

{"CMD_OPTION": "run-tempest",
"PROMPT": ("Do you wish to run tempest?"),
"OPTION_LIST": ["y", "n"],
Expand Down Expand Up @@ -367,10 +342,7 @@ def allow_all_in_one_ovs_bridge(config):
# provision.pp needs them all. So we will initialize them with default
# values
params = [
controller.getParamByName(x)
for x in ['CONFIG_PROVISION_TEMPEST_REPO_URI',
'CONFIG_PROVISION_TEMPEST_REPO_REVISION',
'CONFIG_PROVISION_OVS_BRIDGE']
controller.getParamByName('CONFIG_PROVISION_OVS_BRIDGE')
]
for param in params:
value = controller.CONF.get(param.CONF_NAME, param.DEFAULT_VALUE)
Expand Down
Expand Up @@ -49,10 +49,7 @@
$public_router_id = undef

# Tempest
$tempest_repo_uri = hiera('CONFIG_PROVISION_TEMPEST_REPO_URI')
$tempest_repo_revision = hiera('CONFIG_PROVISION_TEMPEST_REPO_REVISION')
$tempest_clone_path = '/var/lib/tempest'
$tempest_clone_owner = 'root'
$tempest_workspace = '/var/lib/tempest'
$tempest_user = hiera('CONFIG_PROVISION_TEMPEST_USER')
$tempest_password = hiera('CONFIG_PROVISION_TEMPEST_USER_PW')

Expand Down Expand Up @@ -125,10 +122,8 @@
resize_available => $resize_available,
sahara_available => $sahara_available,
swift_available => $swift_available,
tempest_clone_owner => $tempest_clone_owner,
tempest_clone_path => $tempest_clone_path,
tempest_repo_revision => $tempest_repo_revision,
tempest_repo_uri => $tempest_repo_uri,
tempest_workspace => $tempest_workspace,
install_from_source => false,
tenant_name => $tenant_name,
trove_available => $trove_available,
username => $username,
Expand All @@ -137,6 +132,6 @@

tempest_config { 'object-storage/operator_role':
value => 'SwiftOperator',
path => "${tempest_clone_path}/etc/tempest.conf",
path => "${tempest_workspace}/etc/tempest.conf",
}
}
@@ -0,0 +1,5 @@
---
features:
- Install tempest from rpm.
deprecations:
- CONFIG_PROVISION_TEMPEST_REPO_URI and CONFIG_PROVISION_TEMPEST_REPO_REVISION options are removed.
4 changes: 2 additions & 2 deletions run_tests.sh
Expand Up @@ -252,8 +252,8 @@ result=$?
# Print output and generate subunit if results exist
if [ -d /var/lib/tempest ]; then
pushd /var/lib/tempest
$SUDO .tox/tempest/bin/testr last || true
$SUDO bash -c ".tox/tempest/bin/testr last --subunit > /var/tmp/packstack/latest/testrepository.subunit" || true
$SUDO /usr/bin/testr last || true
$SUDO bash -c "/usr/bin/testr last --subunit > /var/tmp/packstack/latest/testrepository.subunit" || true
popd
fi

Expand Down

0 comments on commit eab6d1f

Please sign in to comment.