Adding 'rally db recreate' cmd for new x-rally
Change-Id: Ie730dea1ca403132521e99b642832bf82f16ff58
diff --git a/src/com/mirantis/mcp/Validate.groovy b/src/com/mirantis/mcp/Validate.groovy
index 43d1869..5ef4640 100644
--- a/src/com/mirantis/mcp/Validate.groovy
+++ b/src/com/mirantis/mcp/Validate.groovy
@@ -327,9 +327,10 @@
writeFile file: "${tmp_dir}/k8s-client.crt", text: k8s_client_crt
salt.cmdRun(master, target, "mv ${tmp_dir}/* ${results}/")
salt.runSaltProcessStep(master, target, 'file.rmdir', ["${tmp_dir}"])
- cmd_rally_init = 'set -e ; set -x; if [ ! -w ~/.rally ]; then sudo chown rally:rally ~/.rally ; fi; cd /tmp/; ' +
+ cmd_rally_init = 'set -e ; set -x; cd /tmp/; ' +
"git clone -b ${plugins_branch ?: 'master'} ${plugins_repo} plugins; " +
"sudo pip install --upgrade ./plugins; " +
+ "rally db recreate; " +
"rally env create --name k8s --from-sysenv; " +
"rally env check k8s; "
if (repository == '' ) {