Merge lp:~psivaa/ue-qa-kernel-tests-infrastructure/cdu-ip-and-command-change into lp:ue-qa-kernel-tests-infrastructure

Proposed by Para Siva
Status: Merged
Merged at revision: 348
Proposed branch: lp:~psivaa/ue-qa-kernel-tests-infrastructure/cdu-ip-and-command-change
Merge into: lp:ue-qa-kernel-tests-infrastructure
Diff against target: 43 lines (+16/-4)
1 file modified
kernel-sru/jenkins-script-bare-metal-kteam.sh (+16/-4)
To merge this branch: bzr merge lp:~psivaa/ue-qa-kernel-tests-infrastructure/cdu-ip-and-command-change
Reviewer Review Type Date Requested Status
Para Siva (community) Needs Resubmitting
Paul Larson Approve
Review via email: mp+195867@code.launchpad.net

Description of the change

This is the change to accommodate cdu ip addresses ( still as ip's there is no dns names yet) and the corresponding command change due to the type of cdu (APC) now being used. Unfortunately now the cdu command fence_apc does not work with the outlet names and only work with their plug id's. Hence function cdu_outlet_id().

To post a comment you must log in.
Revision history for this message
Paul Larson (pwlars) wrote :

8 - Onibi|Onza|Zmeu|Zuijin) CDU_HOST=10.98.0.30;;
9 - Alkaid|Phact|Rukbah|Tarf) CDU_HOST="10.98.0.32";;
10 + Onibi|Zuijin|Tarf|Phact) CDU_HOST=10.98.4.42;;
11 + Alkaid|Onza|Rukbah|Zmeu) CDU_HOST=10.98.4.43;;
Use the hostnames instead.
Otherwise, +1

review: Approve
348. By Para Siva

Fixing the ips to host names of cdu servers

Revision history for this message
Para Siva (psivaa) wrote :

Thanks. Just noticed the dns names for the cdu devices. Have change accordingly

review: Needs Resubmitting

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'kernel-sru/jenkins-script-bare-metal-kteam.sh'
--- kernel-sru/jenkins-script-bare-metal-kteam.sh 2013-11-08 15:30:35 +0000
+++ kernel-sru/jenkins-script-bare-metal-kteam.sh 2013-11-20 15:02:55 +0000
@@ -7,8 +7,19 @@
7 # sets CDU_HOST7 # sets CDU_HOST
8 #8 #
9 case $TESTHOST in9 case $TESTHOST in
10 Onibi|Onza|Zmeu|Zuijin) CDU_HOST=10.98.0.30;;10 Onibi|Zuijin|Tarf|Phact) CDU_HOST=cdu-1ss-b-07-a;;
11 Alkaid|Phact|Rukbah|Tarf) CDU_HOST="10.98.0.32";;11 Alkaid|Onza|Rukbah|Zmeu) CDU_HOST=cdu-1ss-b-07-b;;
12 *) sys_exit_KO "unknown test host $TESTHOST, croaking";;
13 esac
14}
15
16function cdu_outlet_id()
17{
18 case $TESTHOST in
19 Alkaid|Phact) OUTLET_ID=3;;
20 Rukbah|Tarf) OUTLET_ID=4;;
21 Onibi|Onza) OUTLET_ID=7;;
22 Zuijin|Zmeu) OUTLET_ID=8;;
12 *) sys_exit_KO "unknown test host $TESTHOST, croaking";;23 *) sys_exit_KO "unknown test host $TESTHOST, croaking";;
13 esac24 esac
14}25}
@@ -92,14 +103,15 @@
92#103#
93#cobbler_reboot $SYS_HOST104#cobbler_reboot $SYS_HOST
94cdu_host105cdu_host
95sys_ssh $COBBLER_SERVER "fence_cdu -v -a $CDU_HOST -l ubuntu -p ubuntu -n $SYS_HOST -o off"106cdu_outlet_id
107sys_ssh $COBBLER_SERVER "fence_apc -v -a $CDU_HOST -l ubuntu -p ubuntu --shell-timeout 30 --login-timeout 60 -n $OUTLET_ID -x -o off"
96RC=$?108RC=$?
97[ $RC -ne 0 ] && sys_exit_KO "failed to command power-off for system $SYS_HOST on Cobbler, bailing out"109[ $RC -ne 0 ] && sys_exit_KO "failed to command power-off for system $SYS_HOST on Cobbler, bailing out"
98#110#
99# burned once, etc, etc. Wait 15 seconds111# burned once, etc, etc. Wait 15 seconds
100#112#
101sleep 15113sleep 15
102sys_ssh $COBBLER_SERVER "fence_cdu -v -a $CDU_HOST -l ubuntu -p ubuntu -n $SYS_HOST -o on"114sys_ssh $COBBLER_SERVER "fence_apc -v -a $CDU_HOST -l ubuntu -p ubuntu --shell-timeout 30 --login-timeout 60 -n $OUTLET_ID -x -o on"
103RC=$?115RC=$?
104[ $RC -ne 0 ] && sys_exit_KO "failed to command power-on for system $SYS_HOST on Cobbler, bailing out"116[ $RC -ne 0 ] && sys_exit_KO "failed to command power-on for system $SYS_HOST on Cobbler, bailing out"
105#117#

Subscribers

People subscribed via source and target branches

to all changes: