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
1=== modified file 'kernel-sru/jenkins-script-bare-metal-kteam.sh'
2--- kernel-sru/jenkins-script-bare-metal-kteam.sh 2013-11-08 15:30:35 +0000
3+++ kernel-sru/jenkins-script-bare-metal-kteam.sh 2013-11-20 15:02:55 +0000
4@@ -7,8 +7,19 @@
5 # sets CDU_HOST
6 #
7 case $TESTHOST in
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=cdu-1ss-b-07-a;;
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+
16+function 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;;
23 *) sys_exit_KO "unknown test host $TESTHOST, croaking";;
24 esac
25 }
26@@ -92,14 +103,15 @@
27 #
28 #cobbler_reboot $SYS_HOST
29 cdu_host
30-sys_ssh $COBBLER_SERVER "fence_cdu -v -a $CDU_HOST -l ubuntu -p ubuntu -n $SYS_HOST -o off"
31+cdu_outlet_id
32+sys_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"
33 RC=$?
34 [ $RC -ne 0 ] && sys_exit_KO "failed to command power-off for system $SYS_HOST on Cobbler, bailing out"
35 #
36 # burned once, etc, etc. Wait 15 seconds
37 #
38 sleep 15
39-sys_ssh $COBBLER_SERVER "fence_cdu -v -a $CDU_HOST -l ubuntu -p ubuntu -n $SYS_HOST -o on"
40+sys_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"
41 RC=$?
42 [ $RC -ne 0 ] && sys_exit_KO "failed to command power-on for system $SYS_HOST on Cobbler, bailing out"
43 #

Subscribers

People subscribed via source and target branches

to all changes: