commit | 6b9c1d73ef9dee509c893d5221cac582dfb3b8bb | [log] [tgz] |
---|---|---|
author | Fatih Degirmenci <fdegir@gmail.com> | Fri Jun 21 14:41:38 2019 +0000 |
committer | Fatih Degirmenci <fdegir@gmail.com> | Mon Jun 24 14:27:55 2019 +0000 |
tree | 913a832a804a62347d2999139e317499b564b220 | |
parent | 0ed4a728e0390ecef08e43b429194a17c948cdd9 [diff] |
Enable setting scenario specific variables using overrides Scenarios might require the use of specific versions of the components that are different from the ones that are pinned in engine repository. In order to make this possible, the variables can be overriden by the scenario itself before running the rest. An example to this is ONAP based scenarios which require different versions of k8s, kubectl, helm, and docker. This change enables this by sourcing the file named overrides before running anything else so the versions pinned in var/versions.yml are set using the ones coming from the scenario. As having scenario overrides is optional, this file does not have to exist. overrides file must be located as below in order for this to work <swconfig_repo>/scenarios/<deploy_scenario>/<installer_type>/overrides This file then becomes available in engine cache as below while bootstrapping swconfig repository <engine_cache>/repos/swconfig/scenarios/<deploy_scenario>/<installer_type>/overrides Change-Id: I405a9f1ab39618d08a98e788ac4cafbc99427f84
The Cloud Infra Engine is created based on OPNFV Cross Community CI (XCI) project in order to automate deployment of various cloud infra scenarios. [1]
Cloud Infra Engine lets users to deploy the scenario of their choosing on to their workstations. Minimum requirements for the host where the Cloud Infra Engine is executed are
Recommended requirements are
The engine currently only supports Ubuntu16.04.
Apart from having sufficient performance and capacity on the host, few packages need to be installed on the host before executing the engine
The user that is executing the engine should also have passwordless sudo enabled.
Cloud Infra Engine is version controlled on Nordix Gerrit so its repository needs to be cloned.
git clone https://gerrit.nordix.org/infra/engine.git
Cloud Infra Engine expects the ssh keys to be created in advance. If you don't have ssh keypair already, you can do that by executing below command.
ssh-keygen -t rsa
Once the keypair is generated, the main script deploy.sh can be executed in order to start deployment of the default scenario on virtual machines that are created by the engine.
cd engine/engine ./deploy.sh -h # get help ./deploy.sh -c
Once the script execution starts, it will prepare the environment, create libvirt resources, provision libvirt vms and install the selected scenario on them. The overall process takes about 40 minutes to complete if ramdisk and deployment images are created in advance.
Please note, in the default / embeded pdf / idf files, we have specified two disks for each vms we are going to create. If you are going to provide pdf / idf files yourself with mulitple disks, please note the current deployment script will not work when the disks have the same size as we specify the bootable disk based on size.