summaryrefslogtreecommitdiffstats
path: root/ci/util.sh
AgeCommit message (Collapse)AuthorFilesLines
2018-11-03Make util support more than 10 compute nodesDaniel Balsiger1-1/+1
JIRA: APEX-644 The grep command used in the original code matches multiple nodes when deploying 10+ compute nodes. This makes opnfv-util fail to connect to those nodes. Proposed fix is to grep for "$node " instead. Change-Id: I952664f6f3cab3a98681684cd354513bb3c0ab12 Signed-off-by: Daniel Balsiger <Daniel.Balsiger@swisscom.com>
2017-08-23Migrates Apex to PythonTim Rozet1-4/+80
Removes all bash libraries and converts almost all of the code to a mixture of Python and Ansible. utils.sh and clean.sh still exist. clean.sh will be migrated fully to clean.py in another patch. The Apex Python package is now built into the opnfv-apex-common RPM. To install locally do 'pip3 install .'. To deploy: opnfv-deploy -d <file> -n <file> --image-dir /root/apex/.build -v --debug Non-python files (THT yaml, settings files, ansible playbooks) are all installed into /usr/share/opnfv-apex/. The RPM will copy settings files into /etc/opnfv-apex/. JIRA: APEX-317 Change-Id: I3232f0329bcd13bce5a28da6a8c9c84d0b048024 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-04-03Removing Deprecated ENV handlingDan Radez1-13/+0
Change-Id: I7010fb29bf6927d3d4050d9dd8326a0ec7bc44f1 Signed-off-by: Dan Radez <dradez@redhat.com>
2016-12-21Updating ENV var names to better reflect what they point toDan Radez1-3/+16
- Also removing a stale file Change-Id: Ice2f9b4f9961bcd7f05278f11995aa0af237ac8e Signed-off-by: Dan Radez <dradez@redhat.com>
2016-09-19Adding a bash completion scriptDan Radez1-9/+9
- allows tab completion for deploy and clean script's subcommands Change-Id: If5f5718a3695993767671ab823f434f463c593f2 Signed-off-by: Dan Radez <dradez@redhat.com>
2016-08-16Adding moch-detached rules to FORWARD tableDan Radez1-1/+10
Forwarded traffic doesn't pass through the output table so adding http, https and dns traffic reject rules to forward table also for a mock-detached state Change-Id: Iab4b7f0f7c95068223636052979c4959db6feaa6 Signed-off-by: Dan Radez <dradez@redhat.com>
2016-08-12adding DNS to ports to block in mock-detachDan Radez1-2/+8
Change-Id: Ic1be571650a301384b91981f3c2a362fa50c7414 Signed-off-by: Dan Radez <dradez@redhat.com>
2016-08-10adding mock-detached to util commandsDan Radez1-1/+1
Change-Id: Ic2dedd5ded9dec3a549a2a2a30d46b748957ea3b Signed-off-by: Dan Radez <dradez@redhat.com>
2016-07-20Adds utility to connect to ODL karaf consoleTim Rozet1-1/+7
JIRA: APEX-185 Change-Id: I1e281f5905cc1db05d0f654503d91acda853c183 Signed-off-by: Tim Rozet <trozet@redhat.com>
2016-07-13Adding mock-detached util function and cleaning up util help outputDan Radez1-7/+27
- mock-detached will add or remove firewall rules to block traffic that would pull resources from the internet durning a deploy These firewall rule may need to be added to, just starting with http and https traffic figuring that would block the majority of cases. - making updates to util help message according to: https://en.wikipedia.org/wiki/Usage_message Change-Id: I3c90999f977dd8f49c48399d312ed128b37bea6d Signed-off-by: Dan Radez <dradez@redhat.com>
2016-07-01Adds overcloud ssh support and other fixesTim Rozet1-3/+19
Changes include: - Copies root pub key to overcloud nodes - Introduces overcloud util command to login control/computes - Minor fixes to undercloud util command JIRA: APEX-192 Change-Id: I903fda4b1d232fc623137490630ac905ebb781d7 Signed-off-by: Tim Rozet <trozet@redhat.com>
2016-05-27Updates to CONFIG, RESOURCES and LIBDan Radez1-1/+3
- removing the -r and -c parameters - relying on ENV vars for non-system locations - abstracting the apex-python-utils to a var Change-Id: I7ff1ca8b741c890647aee029c57e8342f0b5cb07 Signed-off-by: Dan Radez <dradez@redhat.com>
2016-05-17Fixes path for utility libraryTim Rozet1-1/+1
Change-Id: I561c636ac8f0cde9a23a3a74906bd88662f6dd59 Signed-off-by: Tim Rozet <trozet@redhat.com>
2016-05-06Merge "Rebasing opnfv-tht Colorado with ODL patches"Dan Radez1-1/+1
2016-04-29Rebasing opnfv-tht Colorado with ODL patchesTim Rozet1-2/+2
Purpose of this commit is to test opnfv-tht changes are not breaking nosdn deployment. opnfv-tht-pr: 10 Change-Id: I85da61a9591999d1249d55700241d71256019a81 Signed-off-by: Tim Rozet <trozet@redhat.com>
2016-04-28Standarizing CONFIG and RESOURCESDan Radez1-2/+2
- first stage in standarizing how custom config values are passed in by moving to using ENV vars to pass in custom params - next stage is to remove the -r and -c options in deploy.sh Moving this direction will reduce managment of custom parameters and rely on ENV vars to make the customizations for development Change-Id: Ibbc171d5e6801b27c1b62ca65c2a9f7830483b97 Signed-off-by: Dan Radez <dradez@redhat.com>
2016-04-12Adds Utility functions and failure loggingTim Rozet1-0/+75
Patch adds helpful utility functions and automatic parsing of heat output into a readable format indicating where a failure is in a deployment. Example: http://fpaste.org/354210/ New opnfv-util function allows a user to interact with a deployment easily: - opnfv-util undercloud <user> connects user to undercloud VM - opnfv-util debug-stack parses the heat failure output Above arguments also accept partial matches. JIRA: APEX-75 Change-Id: I5ccfee64ee2958de0d00a3b25cd9b29de60c9e20 Signed-off-by: Tim Rozet <trozet@redhat.com>