diff options
author | Yury Kylulin <yury.kylulin@intel.com> | 2019-12-03 18:29:00 +0300 |
---|---|---|
committer | Patrice Buriez <patrice.buriez@intel.com> | 2020-01-31 19:09:11 +0100 |
commit | 855816b08aaa8529dfcccef91890bbdae0a1dd3e (patch) | |
tree | 8db6b6982467011ddbb83e89d6a23c76e0f64cf1 /VNFs/DPPD-PROX/helper-scripts/rapid/createrapid.py | |
parent | 5d3bcf89c23b72fcdc0c32306a843bb3a0f64dcf (diff) |
Add support for kubernetes deployment in rapid scripts.
In case of kubernetes based deployments procedure for test environment
creation is different. Please refer to README.k8s file for more
details.
Dockerfile and dockerimage.sh files can be used to create a docker
image with prox.
There is separate createrapidk8s.py script which is used to create
appropriate number of PODs for testing based on the rapid.pods
configuration.
port_info is a helper application to identify port MAC address.
Change-Id: I73611f066ac54260aa11dd17c173379df06f46a5
Signed-off-by: Yury Kylulin <yury.kylulin@intel.com>
Signed-off-by: Patrice Buriez <patrice.buriez@intel.com>
Diffstat (limited to 'VNFs/DPPD-PROX/helper-scripts/rapid/createrapid.py')
-rwxr-xr-x | VNFs/DPPD-PROX/helper-scripts/rapid/createrapid.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/VNFs/DPPD-PROX/helper-scripts/rapid/createrapid.py b/VNFs/DPPD-PROX/helper-scripts/rapid/createrapid.py index ccb500aa..a7b1ec6c 100755 --- a/VNFs/DPPD-PROX/helper-scripts/rapid/createrapid.py +++ b/VNFs/DPPD-PROX/helper-scripts/rapid/createrapid.py @@ -264,14 +264,14 @@ cmd = 'openstack keypair list -f value -c Name' log.debug (cmd) KeyExist = subprocess.check_output(cmd , shell=True).decode().strip() if key in KeyExist: - log.info("Key ("+key+") already installed") + log.info("Key (" + key + ") already installed") else: log.info('Creating key ...') - cmd = 'openstack keypair create '+ key + '>' +key+'.pem' + cmd = 'openstack keypair create ' + key + '>' + key + '.pem' log.debug(cmd) subprocess.check_call(cmd , shell=True) - cmd = 'chmod 600 ' +key+'.pem' - subprocess.check_call(cmd , shell=True) + cmd = 'chmod 600 ' + key + '.pem' + subprocess.check_call(cmd, shell=True) cmd = 'openstack keypair list -f value -c Name' log.debug(cmd) KeyExist = subprocess.check_output(cmd , shell=True).decode().strip() @@ -388,7 +388,7 @@ for vm in range(1, int(total_number_of_VMs)+1): log.info('%s: (admin IP: %s), (dataplane IP: %s), (dataplane MAC: %s)' % (ServerName[vm-1],vmAdminIP,vmDPIP,vmDPmac)) config.add_section('ssh') -config.set('ssh', 'key', key+'.pem') +config.set('ssh', 'key', key + '.pem') config.set('ssh', 'user', 'centos') config.add_section('Varia') config.set('Varia', 'VIM', 'OpenStack') |