1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 # stefan.k.berg@ericsson.com
4 # jonas.bjurel@ericsson.com
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
11 The genesis/fuel/ci directory holds all Fuel@OPNFV abstractions for the OPNFV
12 community release and continous integration pipeline.
13 There are two Fuel@OPNF autonomous scripts fo this, complying to the OPNFV CI pipeline guideline:
17 For more info on usage:
25 usage: python deploy.py [-h] [-nf] [-nh] [-fo] [-co] [-c] [-iso [ISO_FILE]]
26 [-dea [DEA_FILE]] [-dha [DHA_FILE]] [-s STORAGE_DIR]
27 [-b PXE_BRIDGE] [-p FUEL_PLUGINS_DIR]
30 -h, --help show this help message and exit
31 -nf Do not install Fuel Master (and Node VMs when using
33 -nh Don't run health check after deployment
34 -fo Install Fuel Master only (and Node VMs when using
36 -co Cleanup VMs and Virtual Networks according to what is
38 -c Cleanup after deploy
39 -iso [ISO_FILE] ISO File [default: OPNFV.iso]
40 -dea [DEA_FILE] Deployment Environment Adapter: dea.yaml
41 -dha [DHA_FILE] Deployment Hardware Adapter: dha.yaml
42 -s STORAGE_DIR Storage Directory [default: images]
43 -b PXE_BRIDGE Linux Bridge for booting up the Fuel Master VM
45 -p FUEL_PLUGINS_DIR Fuel Plugins directory
51 - Install Fuel Master and deploy OPNFV Cloud from scratch on Hardware Environment:
53 sudo ./deploy.sh -iso ~/ISO/opnfv.iso -dea ~/CONF/hardware/dea.yaml -dha ~/CONF/hardware/dha.yaml -s /mnt/images -b pxebr -p ~/PLUGIN
56 - Install Fuel Master and deploy OPNFV Cloud from scratch on Virtual Environment:
58 sudo ./deploy.sh -iso ~/ISO/opnfv.iso -dea ~/CONF/virtual/dea.yaml -dha ~/CONF/virtual/dha.yaml -s /mnt/images -p ~/PLUGIN
61 - Deploy OPNFV Cloud on an already active Environment where Fuel Master VM is running so no need to install Fuel again:
63 sudo ./deploy.sh -nf -dea ~/CONF/virtual/dea.yaml -dha ~/CONF/virtual/dha.yaml
65 => with plugin installation
66 sudo ./deploy.sh -nf -dea ~/CONF/virtual/dea.yaml -dha ~/CONF/virtual/dha.yaml -p ~/PLUGIN
68 => with cleanup after deployment is finished
69 sudo ./deploy.sh -nf -dea ~/CONF/virtual/dea.yaml -dha ~/CONF/virtual/dha.yaml -p ~/PLUGIN -c
71 => no healthcheck after deployment is completed
72 sudo ./deploy.sh -nf -dea ~/CONF/virtual/dea.yaml -dha ~/CONF/virtual/dha.yaml -p ~/PLUGIN -nh
75 - Install Fuel Master only (and Node VMs when using virtual environment):
77 => for virtual environment:
78 sudo ./deploy.sh -iso ~/ISO/opnfv.iso -dea ~/CONF/virtual/dea.yaml -dha ~/CONF/virtual/dha.yaml -s /mnt/images
80 => for hardware environment:
81 sudo ./deploy.sh -iso ~/ISO/opnfv.iso -dea ~/CONF/hardware/dea.yaml -dha ~/CONF/hardware/dha.yaml -s /mnt/images -b pxebr
84 - Cleanup a running OPNFV environment:
86 sudo ./deploy.sh -co -dha ~/CONF/virtual/dha.yaml