From 6ce8e3db303e3a32c2a57e0638c1de070a49ef06 Mon Sep 17 00:00:00 2001 From: mbeierl Date: Tue, 17 Jan 2017 14:22:18 -0500 Subject: StorPerf Daily Job Helper script that determines what installer was used. Script to generate RC file for container. Script to determine number of Cinder nodes. Daily job to pull new container, create stack based on number of Cinder nodes, issue a warm up, and then run a series of performance tests against the stack. Deletes stack once complete. JIRA: STORPERF-87 Signed-off-by: mbeierl Change-Id: I551f21ffc85f11b0c0724205e952551022a94f5b --- ci/detect_installer.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 ci/detect_installer.sh (limited to 'ci/detect_installer.sh') diff --git a/ci/detect_installer.sh b/ci/detect_installer.sh new file mode 100755 index 0000000..035b7e2 --- /dev/null +++ b/ci/detect_installer.sh @@ -0,0 +1,22 @@ +#!/bin/bash -x +############################################################################## +# Copyright (c) 2015 EMC and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +which juju 2>/dev/null +if [ $? -eq 0 ] +then + INSTALLER=joid +fi +sudo virsh list --all | grep undercloud >/dev/null +if [ $? -eq 0 ] +then + INSTALLER=apex +fi + +echo $INSTALLER \ No newline at end of file -- cgit 1.2.3-korg