summaryrefslogtreecommitdiffstats
path: root/foreman/ci/clean.sh
AgeCommit message (Collapse)AuthorFilesLines
2015-09-01Fixes issue with deploy copying from /tmp and clean bailing earlyTim Rozet1-3/+3
deploy.sh was failing in user deployments because the necessary puppet modules and vagrant files were being copied accidentally from /tmp and not the script directory. This patch fixes that issue. clean.sh was failing checks to see if vagrant or virtualbox was still running, due to a bug with checking "ps" and using grep. This patch resolves that. JIRA: APEX-16,APEX-17 Change-Id: I1faa6fc134c0308acb2e7b14be30f7cd3c99d109 Signed-off-by: Tim Rozet <trozet@redhat.com>
2015-08-24Fixes Foreman clean to not hang and removes libvirtTim Rozet1-51/+89
Fixes clean so that it does not hang when base_config is not provided. Also now removes libvirt libraries which conflict with VirtualBox required for deploy. JIRA: BGS-78 Change-Id: I7c71ca207f260eafb1fb97ace764b9d288fc258a Signed-off-by: Tim Rozet <trozet@redhat.com>
2015-07-22Fixes clean to remove all VMs and be more effectiveTim Rozet1-19/+50
Now all VMs in the vm_dir (/opt/var/opnfv) will be destroyed and removed. Also, virtual box VMs that are leftover even if Vagrant is stuck will attempted to be gracefully removed first, before forcefully destroying the process. The clean should work for both baremetal and virtual deployments. JIRA: APEX-3 Change-Id: Ib31cf1210651e4413ec8fe918ff91be63f4ad6d4 Signed-off-by: Tim Rozet <trozet@redhat.com>
2015-07-14Fixes clean bug where $vm_dir is assumed to existTim Rozet1-10/+12
JIRA: BGS-60 Change-Id: Ida9458cf638eca81e6a3d67941203c605d9e4a8a Signed-off-by: Tim Rozet <trozet@redhat.com>
2015-07-14Migrates from github bgs_vagrant project to genesisTim Rozet1-2/+14
No longer relies on bgs_vagrant github project. Now Foreman VM is created under /var/opt/opnfv/foreman_vm, instead of /tmp/bgs_vagrant for better naming convention and file location. Other VM nodes are also placed in /var/opt/opnfv/. JIRA: BGS-60 Change-Id: I009d907ad777750168b822ab86cd11515e28cdd7 Signed-off-by: Tim Rozet <trozet@redhat.com>
2015-06-01Pin software dep versions, various Foreman scriptsDaniel Farrell1-2/+3
Software released under 'Arno' should be pinned to at least the major version, to guarantee API backwards compatibility. I believe this commit covers the remaining dependency installs done by Foreman. JIRA: BGS-54 Change-Id: I616f4d201dab2ebf6c0b38b9a5aaa1510ba59bfd Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
2015-05-20Really kill VBoxHeadless processarnaudmorin1-1/+1
This correct a small typo that prevent the clean script to kill VBoxHeadless correctly This also add the psmisc package to dependency list in order to have the killall command JIRA: BGS-49 JIRA: BGS-50 Change-Id: I39143bdbc8076318c5a28868c4bb779411742c09 Signed-off-by: arnaudmorin <arnaud.morin@gmail.com>
2015-05-04Adds clean script for Foreman/QuickStack Install ServerTim Rozet1-0/+151
Script should be executed on the jumphost baremetal to ensure the clean state of a POD. clean.sh will do the following: - IPMI power off all the nodes - Vagrant destroy the VM - Remove VirtualBox Package - Remove VirtualBox kernel modules from the host JIRA: BGS-31 Change-Id: Iaf3dfc65b654cbcd19cc8326f328447ab017717e Signed-off-by: Tim Rozet <trozet@redhat.com>