aboutsummaryrefslogtreecommitdiffstats
path: root/juju/deploy_application.py
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2017-03-16 18:38:19 +0800
committerYingjun Li <yingjun.li@huawei.com>2017-03-17 01:32:13 +0000
commitf141c55066c32d1699debebb56394c04d32e69b2 (patch)
tree1c9c6589aabf1602467767d5708a33dee7aa8ebf /juju/deploy_application.py
parent6d809ad2460235ff8bc800a6e630c258df785cae (diff)
Add upload packages retry
1. retry 5 times if csar package uploads fail 2. clearwater service name varies over the time 3. use the word vnf instead of app Change-Id: Id85c7f467cbefbc46fd1f1daf6202d89ef3ac898 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com> (cherry picked from commit 8a07bcd6b75f62c7c79504f8a3c020a2d635156e)
Diffstat (limited to 'juju/deploy_application.py')
-rwxr-xr-xjuju/deploy_application.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/juju/deploy_application.py b/juju/deploy_application.py
deleted file mode 100755
index 22c7d9d..0000000
--- a/juju/deploy_application.py
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env python
-##############################################################################
-# Copyright (c) 2016-2017 HUAWEI TECHNOLOGIES CO.,LTD 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
-##############################################################################
-
-import argparse
-from openo_connect import create_service
-
-
-if __name__ == "__main__":
-
- parser = argparse.ArgumentParser()
- parser.add_argument("--application", action='store', default='', help="app name")
- parser.add_argument("--msb_ip", action='store', help="common_services_msb ip")
-
- args = parser.parse_args()
- application = args.application
- msb_ip = args.msb_ip
-
- if application == 'clearwater':
- create_service(msb_ip, application, 'vIMS', 'ns_cw_2016')