summaryrefslogtreecommitdiffstats
path: root/ci/clean.sh
AgeCommit message (Collapse)AuthorFilesLines
2017-09-13Migrates clean to pythonTim Rozet1-208/+7
ci/clean.sh will be removed in a future patch after releng is updated to use python. JIRA: APEX-509 JIRA: APEX-319 Change-Id: If890db2fc5a31833ad28ec6f04589e25457bd380 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-08-25Fixes issues with baremetalTim Rozet1-1/+1
Change-Id: I60470611a70261d57ccbfd0e499f4336c7a12fe1 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-08-23Migrates Apex to PythonTim Rozet1-14/+104
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-06-22Adding conditionals dependent on archDan Radez1-1/+1
There are x86 specific build items that can't be used when building on aarch64. Adding conditionals so that the items only get built in when building on x86_64. There are aarch64 specific settings that need to be set for deployment. JIRA: APEX-381 Change-Id: I63e1c99d5d22bbb523c88be7e973a6c834a38b01 Signed-off-by: Dan Radez <dradez@redhat.com>
2017-05-09Updating Apex to OpenStack OcataDan Radez1-1/+1
- power management updated to virtualbmc, pxe_ssh is deprecated - removing custom tacker build - removing custom congress build - disabling yum update in undercloud on the cli instead of in a patch - Undercloud is direct kernel booted now, there are no kernel and initrd in the disk image from upstream - remove OpenDaylight previous to Carbon JIRA: APEX-433 JIRA: APEX-432 JIRA: APEX-431 Change-Id: I6963f16e65eacade5607a3082b58b6150331406c Signed-off-by: Dan Radez <dradez@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-10-14Swap br-external and br-public in clean.shDan Radez1-2/+2
confused by the comments in clean.sh, updating it so confusion doesn't continue. Change-Id: Ia3eacba9a5d23a2d1d4030895cde13d006adfa87 Signed-off-by: Dan Radez <dradez@redhat.com>
2016-09-12Adding new network settings cleanDan Radez1-3/+7
- the new network settings patch uses new network names that thet current code can't clean up. This patch adds the clean so that the clean can land before the patch gets reviewed more. Change-Id: I8c8998f24e48929862db40f2d90a2d6c82e70254 Signed-off-by: Dan Radez <dradez@redhat.com>
2016-08-30Adds ability to power off nodes in cleanTim Rozet1-4/+59
Now if an inventory file is provided to clean, those nodes will be powered off. JIRA: APEX-250 Change-Id: I2d78285717726c3d1c9d7d88c38e706d4617e337 Signed-off-by: Tim Rozet <trozet@redhat.com>
2016-06-09Merge "Add API network support"Tim Rozet1-1/+1
2016-06-08Adds cleaning up the tmp netenv file produced by python libTim Rozet1-0/+3
Change-Id: Id9a5dd9a29b6fd70c06c1b053e1d390f5e9f6764 Signed-off-by: Tim Rozet <trozet@redhat.com>
2016-06-06Add API network supportFeng Pan1-1/+1
- Create additional NIC on virtual deployment if API network is enabled. - Include API network in clean - Change keystone admin api network to admin network. This should have no effect when api network is disabled, as today's behavior is to fall back to admin network anyway. However, when api network is defined, we need to be able to reach overcloud from undercloud through keystone admin api network. Change-Id: Ib0aea4a0daeed5878793530c10d8f8a1bbe5fd72 Signed-off-by: Feng Pan <fpan@redhat.com>
2016-06-02Add library sourcing error checkFeng Pan1-1/+4
Change-Id: Ief7fd339fa2ca8661c8e157270aa9b0339d3b637 Signed-off-by: Feng Pan <fpan@redhat.com>
2016-05-31Fixes interface cleanup issue between virtual and baremetalTim Rozet1-0/+1
JIRA: APEX-164 Change-Id: I41bf3869d068812005e2e01c03229b6b4d2628dc Signed-off-by: Tim Rozet <trozet@redhat.com>
2016-05-31Merge "Updates to CONFIG, RESOURCES and LIB"Dan Radez1-1/+3
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-24Use linux bridge for virtual deploymentFeng Pan1-2/+6
Changes virtual deployment to use linux bridge rather than OVS bridge on jumphost. Also fixed an issue with network deletion in cleaning code. Change-Id: Ibcfa283c6bf32aafa2ee91b2ffd55355d7d6746e Signed-off-by: Feng Pan <fpan@redhat.com>
2016-04-28Standarizing CONFIG and RESOURCESDan Radez1-1/+1
- 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-22Change storage refresh to pool-refreshFeng Pan1-2/+2
Using pool-refresh should be sufficient to clean up storage pool. Change-Id: I10a58340c4c24b429a2d46d8c9f5a469fd4e18f2 Signed-off-by: Feng Pan <fpan@redhat.com>
2016-04-12Forcing a libvirtd restart on cleanDan Radez1-0/+3
- ensures the storage vols are cleaned up properly Change-Id: I55c0dbcbbc884658b9e37e34aa85d00e29e99b57 Signed-off-by: Dan Radez <dradez@redhat.com>
2016-04-01Migrating to MitakaDan Radez1-16/+13
- Only support for NOSDN for this patch - Other SDN controllers will not be tested for this patch - AODH is now upstream and not needed to be carried in Apex - puppet-cinder-quota-fix.patch is now upstream and not needed to be carried in Apex - puppet-neutron-force-metadata.patch is now upstream and not needed to be carried in Apex - removing the catalog of nic files and creating a templatization for them JIRA: APEX-108 JIRA: APEX-93 JIRA: APEX-92 Change-Id: Ic1a24baec7ef295e9dc1b8b72ac36ca5b05578ea Signed-off-by: Dan Radez <dradez@redhat.com>
2016-03-24Renaming Instack to UndercloudDan Radez1-11/+14
This commit is not backwards compatible with cleaning. VMs named Instack will need to be manually removed. Change-Id: I6829119e43a0a572da07e6d9757c5208c7fe91d4
2016-03-24Fixes occasional VM stoage deleltion failureFeng Pan1-2/+2
Removes --remove-all-storage option in ci/clean.sh JIRA: APEX-121 Change-Id: Ia8063112333d12d09cfb16dd1a02e14551dae7d7 Signed-off-by: Feng Pan <fpan@redhat.com>
2016-03-23updating vm creation for virt deploymentDan Radez1-6/+6
- replacing brbm with logical names br-netname - replacing instack-virt-setup with tripleo scripts JIRA: APEX-90, APEX-80 Change-Id: I58a15dee8de882e034c8af8a3368ca0647741b13 Signed-off-by: Dan Radez <dradez@redhat.com>
2016-01-29Touch baremetal images before vol-deleteMichael Chapman1-0/+1
Similar to the instack line above, the vol-delete will fail if the baremetal image file is not present. This can happen if the disk runs out of space during copy, for example. Change-Id: Ib3a60dd03c3f7172cb59ade30e745397410e3ef2
2016-01-22Adds licenses and fixes ODL L3Tim Rozet1-0/+8
JIRA: APEX-62 Change-Id: Ide34d9971cd6ac987b5994f5e23b4cfa58f92b29 Signed-off-by: Tim Rozet <trozet@redhat.com>
2016-01-13quick fixes to deploy and cleanDan Radez1-2/+2
- adding a missing exit 1 in the deploy script - setting link up on hypervisor bridges - redirecting error from cleanup commands so they're not so chatty Change-Id: I844c35effb2817948ea096b07a34d83678803e00
2016-01-09Fixes attaching instack interfaces to hostTim Rozet1-2/+9
This applies only to baremetal deployments. Interfaces from admin and public networks are attached from the host to the OVS bridges brbm and brbm2 for external connectivity. Change-Id: If3f5b33eab267e05ee9094396daa40f37e69319a Signed-off-by: Tim Rozet <trozet@redhat.com>
2016-01-08Moves builds to use local images, minor fix to cleanTim Rozet1-1/+7
Change-Id: Ib8a3baa645c4e2a2b7b5c39e8642bae367981f37 Signed-off-by: Tim Rozet <trozet@redhat.com>
2016-01-06Adds some network parsing for baremetal deployments and other fixesTim Rozet1-13/+11
Changes include: - Fixes Intel Pod 2 inventory file - Check for DHCP server on the host and disable - Adds realistic+common network-settings file - Modifies baremetal deployments to bridge to correct interface - Adds private/storage network OVS bridges - Parses network-settings into valid network-environment variables - If certain network-settings are missing they will be auto-detected Note: The actual settings set forth for deployment only include admin/external networks at the moment. Private/storage networks will be handled in an upcoming patch. JIRA: APEX-50 Change-Id: I0a1a86f37c08702a93fe167688c3149ba5573db4 Signed-off-by: Tim Rozet <trozet@redhat.com>
2015-12-15Fixes various corner cases with clean and deployTim Rozet1-2/+2
Fixes Include: - Fixed info print statement when using flat network - deploy now looks at arp table as well to determine instack IP address as default leases file may not exist - clean now uses --pool with vol-delete command JIRA: APEX-50 Change-Id: I664fd06e92e0890e0b65191851dfa81f8d8ac492 Signed-off-by: Tim Rozet <trozet@redhat.com>
2015-12-07switching to RDO build undercloud instead of building it ourselvesDan Radez1-0/+5
Change-Id: I9f09c195352d2d88a3da4f42e09424d96d39722b
2015-11-18updates to cleanup.shDan Radez1-4/+18
- adding vol-delete to help ensure volumes are cleaned up - adding brbm clean up Change-Id: I3cbb79b09c6ac77dbc3c452938dbd6a6d03c815b
2015-11-17adding basic network isolationDan Radez1-3/+3
- separating external traffic from internal traffic JIRA: APEX-41 Change-Id: Idcd01a514083c53a3133a75d3bcabf824a7a4377
2015-11-09adding variable fix for clean upDan Radez1-1/+1
Change-Id: I4e18bc0ddfb39a11c75070012743e6a68ecb70f6
2015-11-02Adds HA support to deployTim Rozet1-6/+6
Defaults the deploy to use HA and adds new param for using non-HA. JIRA: APEX-40 Change-Id: Ib3fc8b31ea13a3c590ceaa875197b4b9c1bb55a1 Signed-off-by: Tim Rozet <trozet@redhat.com>
2015-10-22Adding deploy.sh that work with RDO ManagerDan Radez1-0/+17
- adding virtual and jenkins support tested - adding config file parameters to deploy - instack virt-sparsify disabled for now - adding clean script Change-Id: I26b5968e64fa79af166b11422f5d73812d8e96d1 Signed-off-by: Dan Radez <dradez@redhat.com>