Use new _get_keystone_creds_vX methods for cvp-func, cvp-perf, cvp-ha
Related-PROD: PROD-22773
Change-Id: I3d5af270da8f6865427acabd446aefc3471f3820
diff --git a/cvp-perf.groovy b/cvp-perf.groovy
index fe86197..7938572 100644
--- a/cvp-perf.groovy
+++ b/cvp-perf.groovy
@@ -1,6 +1,6 @@
/**
*
- * Launch validation of the cloud
+ * Launch CVP Rally performance testing of the cloud
*
* Expected parameters:
* SALT_MASTER_URL URL of Salt master
@@ -21,16 +21,21 @@
def artifacts_dir = 'validation_artifacts/'
def remote_artifacts_dir = '/root/qa_results/'
+def container_name = "${env.JOB_NAME}"
def saltMaster
node() {
try{
stage('Initialization') {
- saltMaster = salt.connection(SALT_MASTER_URL, SALT_MASTER_CREDENTIALS)
sh "rm -rf ${artifacts_dir}"
+ saltMaster = salt.connection(SALT_MASTER_URL, SALT_MASTER_CREDENTIALS)
salt.cmdRun(saltMaster, TARGET_NODE, "rm -rf ${remote_artifacts_dir}")
salt.cmdRun(saltMaster, TARGET_NODE, "mkdir -p ${remote_artifacts_dir}")
- validate.runBasicContainer(saltMaster, TARGET_NODE, TEST_IMAGE)
+ keystone_creds = validate._get_keystone_creds_v3(saltMaster)
+ if (!keystone_creds) {
+ keystone_creds = validate._get_keystone_creds_v2(saltMaster)
+ }
+ validate.runContainer(saltMaster, TARGET_NODE, TEST_IMAGE, container_name, keystone_creds)
validate.configureContainer(saltMaster, TARGET_NODE, PROXY, TOOLS_REPO, "")
}