Skip to content

Commit 251a91f

Browse files
anthonyxuAlena Prokharchyk
authored andcommitted
VCP : use routerProxy to call checkrouter script
1 parent a08c9e7 commit 251a91f

7 files changed

Lines changed: 4 additions & 63 deletions

File tree

core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,8 +1349,8 @@ private Answer execute(PingTestCommand cmd) {
13491349

13501350
private CheckRouterAnswer execute(CheckRouterCommand cmd) {
13511351
Connection conn = getConnection();
1352-
String args = cmd.getAccessDetail(NetworkElementCommand.ROUTER_IP);
1353-
String result = callHostPlugin(conn, "vmops", "checkRouter", "args", args);
1352+
String args = "checkrouter.sh " + cmd.getAccessDetail(NetworkElementCommand.ROUTER_IP);
1353+
String result = callHostPlugin(conn, "vmops", "routerProxy", "args", args);
13541354
if (result == null || result.isEmpty()) {
13551355
return new CheckRouterAnswer(cmd, "CheckRouterCommand failed");
13561356
}

scripts/network/domr/getRouterStatus.sh

Lines changed: 0 additions & 42 deletions
This file was deleted.

scripts/vm/hypervisor/xenserver/vmops

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,20 +1419,6 @@ def network_rules(session, args):
14191419
except:
14201420
util.SMlog("Failed to network rule !")
14211421

1422-
@echo
1423-
def checkRouter(session, args):
1424-
sargs = args['args']
1425-
cmd = sargs.split(' ')
1426-
cmd.insert(0, "/opt/xensource/bin/getRouterStatus.sh")
1427-
cmd.insert(0, "/bin/bash")
1428-
try:
1429-
txt = util.pread2(cmd)
1430-
except:
1431-
util.SMlog(" check router status fail! ")
1432-
txt = ''
1433-
1434-
return txt
1435-
14361422
@echo
14371423
def bumpUpPriority(session, args):
14381424
sargs = args['args']
@@ -1462,6 +1448,6 @@ if __name__ == "__main__":
14621448
"default_network_rules_systemvm":default_network_rules_systemvm,
14631449
"get_rule_logs_for_vms":get_rule_logs_for_vms,
14641450
"setLinkLocalIP":setLinkLocalIP, "lt2p_vpn":lt2p_vpn,
1465-
"cleanup_rules":cleanup_rules, "checkRouter":checkRouter,
1451+
"cleanup_rules":cleanup_rules,
14661452
"bumpUpPriority":bumpUpPriority,
14671453
"kill_copy_process":kill_copy_process})

scripts/vm/hypervisor/xenserver/xenserver56/patch

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ create_privatetemplate_from_snapshot.sh=..,0755,/opt/xensource/bin
4444
upgrade_snapshot.sh=..,0755,/opt/xensource/bin
4545
cloud-clean-vlan.sh=..,0755,/opt/xensource/bin
4646
cloud-prepare-upgrade.sh=..,0755,/opt/xensource/bin
47-
getRouterStatus.sh=../../../../network/domr/,0755,/opt/xensource/bin
4847
bumpUpPriority.sh=../../../../network/domr/,0755,/opt/xensource/bin
4948
swift=..,0755,/opt/xensource/bin
5049
swiftxen=..,0755,/etc/xapi.d/plugins

scripts/vm/hypervisor/xenserver/xenserver56fp1/patch

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ create_privatetemplate_from_snapshot.sh=..,0755,/opt/xensource/bin
4343
upgrade_snapshot.sh=..,0755,/opt/xensource/bin
4444
cloud-clean-vlan.sh=..,0755,/opt/xensource/bin
4545
cloud-prepare-upgrade.sh=..,0755,/opt/xensource/bin
46-
getRouterStatus.sh=../../../../network/domr/,0755,/opt/xensource/bin
4746
bumpUpPriority.sh=../../../../network/domr/,0755,/opt/xensource/bin
4847
swift=..,0755,/opt/xensource/bin
4948
swiftxen=..,0755,/etc/xapi.d/plugins

scripts/vm/hypervisor/xenserver/xenserver60/patch

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ create_privatetemplate_from_snapshot.sh=..,0755,/opt/xensource/bin
4848
upgrade_snapshot.sh=..,0755,/opt/xensource/bin
4949
cloud-clean-vlan.sh=..,0755,/opt/xensource/bin
5050
cloud-prepare-upgrade.sh=..,0755,/opt/xensource/bin
51-
getRouterStatus.sh=../../../../network/domr/,0755,/opt/xensource/bin
5251
bumpUpPriority.sh=../../../../network/domr/,0755,/opt/xensource/bin
5352
swift=..,0755,/opt/xensource/bin
5453
swiftxen=..,0755,/etc/xapi.d/plugins

wscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# the following two variables are used by the target "waf dist"
55
# if you change 'em here, you need to change it also in cloud.spec, add a %changelog entry there, and add an entry in debian/changelog
66

7-
VERSION = '3.0.3.2012-06-06T19:22:49Z'
7+
VERSION = '3.0.3.2012-06-06T21:28:42Z'
88
APPNAME = 'cloud'
99

1010
import shutil,os

0 commit comments

Comments
 (0)