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:
22 usage: python deploy.py [-h] [-nf] [-nh] [-fo] [-co] [-c] [-iso [ISO_FILE]]
23 [-dea [DEA_FILE]] [-dha [DHA_FILE]] [-s STORAGE_DIR]
24 [-b PXE_BRIDGE] [-p FUEL_PLUGINS_DIR]
27 -h, --help show this help message and exit
28 -nf Do not install Fuel Master (and Node VMs when using
30 -nh Don't run health check after deployment
31 -fo Install Fuel Master only (and Node VMs when using
33 -co Cleanup VMs and Virtual Networks according to what is
35 -c Cleanup after deploy
36 -iso [ISO_FILE] ISO File [default: OPNFV.iso]
37 -dea [DEA_FILE] Deployment Environment Adapter: dea.yaml
38 -dha [DHA_FILE] Deployment Hardware Adapter: dha.yaml
39 -s STORAGE_DIR Storage Directory [default: images]
40 -b PXE_BRIDGE Linux Bridge for booting up the Fuel Master VM
42 -p FUEL_PLUGINS_DIR Fuel Plugins directory
48 - Install Fuel Master and deploy OPNFV Cloud from scratch on Hardware Environment:
50 sudo ./deploy.sh -iso ~/ISO/opnfv.iso -dea ~/CONF/hardware/dea.yaml -dha ~/CONF/hardware/dha.yaml -s /mnt/images -b pxebr -p ~/PLUGIN
53 - Install Fuel Master and deploy OPNFV Cloud from scratch on Virtual Environment:
55 sudo ./deploy.sh -iso ~/ISO/opnfv.iso -dea ~/CONF/virtual/dea.yaml -dha ~/CONF/virtual/dha.yaml -s /mnt/images -p ~/PLUGIN
58 - Deploy OPNFV Cloud on an already active Environment where Fuel Master VM is running so no need to install Fuel again:
60 sudo ./deploy.sh -nf -dea ~/CONF/virtual/dea.yaml -dha ~/CONF/virtual/dha.yaml
62 => with plugin installation
63 sudo ./deploy.sh -nf -dea ~/CONF/virtual/dea.yaml -dha ~/CONF/virtual/dha.yaml -p ~/PLUGIN
65 => with cleanup after deployment is finished
66 sudo ./deploy.sh -nf -dea ~/CONF/virtual/dea.yaml -dha ~/CONF/virtual/dha.yaml -p ~/PLUGIN -c
68 => no healthcheck after deployment is completed
69 sudo ./deploy.sh -nf -dea ~/CONF/virtual/dea.yaml -dha ~/CONF/virtual/dha.yaml -p ~/PLUGIN -nh
72 - Install Fuel Master only (and Node VMs when using virtual environment):
74 => for virtual environment:
75 sudo ./deploy.sh -iso ~/ISO/opnfv.iso -dea ~/CONF/virtual/dea.yaml -dha ~/CONF/virtual/dha.yaml -s /mnt/images
77 => for hardware environment:
78 sudo ./deploy.sh -iso ~/ISO/opnfv.iso -dea ~/CONF/hardware/dea.yaml -dha ~/CONF/hardware/dha.yaml -s /mnt/images -b pxebr
81 - Cleanup a running OPNFV environment:
83 sudo ./deploy.sh -co -dha ~/CONF/virtual/dha.yaml