[virtual] Parameterize scenarios based on PDF/IDF 62/67162/3
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 28 Feb 2019 14:46:19 +0000 (15:46 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 8 Apr 2019 13:16:43 +0000 (15:16 +0200)
commit9e5b19768d6eb9b32564240065ecba6c791cac12
tree68e1a8fdfd7525980885c08b181b290c1ceb681d
parentf021e19b4797eb4f6830d86056fce919f1e1fe01
[virtual] Parameterize scenarios based on PDF/IDF

NOTE: only os-nosdn-nofeature-noha is parameterized for now.

- move config drive & disk creation from prepare_vms to create_vms;
- make default disk size(s) configurable based on scenario defaults
  and vPDF;
  * compute nodes require 2 disks to be defined in vPDF, since the
    pillar reclass model assumes /dev/vdb is reserved for cinder;
  * if multiple disks are defined in vPDF, they are created and
    attached accordinly (only ctl01 and cmp nodes are parameterized
    in this change; only for the os-nosdn-nofeature-noha scenario);
- vCPU specifications are deduced based on vPDF (sockets, cores);
  * threads/core is hard set to 2 since vPDF does not have a key
    for it;
  * NUMA resources are distributed evenly based on the number of
    sockets configured in PDF;
  * no less than the mininum requirement for a scenario is allocated
    (e.g. if PDF specifies 2 cores, but the scenario requires at
    least 4 cores, the larger value will be used);
- RAM is deduced based on PDF (but no less than the mininum req is
  allocated, e.g. if PDF specifies 2GB RAM for computes, but the
  scenario requires at least 8GB, the larger value will be used);

Change-Id: I97188aa2a1006865b8429eb6483e10c76795f7d2
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
22 files changed:
ci/deploy.sh
mcp/config/scenario/.gitignore
mcp/config/scenario/defaults.yaml.j2
mcp/config/scenario/os-nosdn-fdio-ha.yaml
mcp/config/scenario/os-nosdn-fdio-noha.yaml
mcp/config/scenario/os-nosdn-nofeature-ha.yaml
mcp/config/scenario/os-nosdn-nofeature-noha.yaml [deleted file]
mcp/config/scenario/os-nosdn-nofeature-noha.yaml.j2 [new file with mode: 0644]
mcp/config/scenario/os-nosdn-onap-ha.yaml
mcp/config/scenario/os-nosdn-onap-noha.yaml
mcp/config/scenario/os-nosdn-ovs-ha.yaml
mcp/config/scenario/os-nosdn-ovs-noha.yaml
mcp/config/scenario/os-odl-bgpvpn-noha.yaml
mcp/config/scenario/os-odl-nofeature-ha.yaml
mcp/config/scenario/os-odl-nofeature-noha.yaml
mcp/config/scenario/os-odl-ovs-noha.yaml
mcp/config/scenario/os-odl-sfc-noha.yaml
mcp/config/scenario/os-ovn-nofeature-ha.yaml
mcp/config/scenario/os-ovn-nofeature-noha.yaml
mcp/scripts/lib_jump_deploy.sh
mcp/scripts/lib_template.sh
mcp/scripts/xdf_data.sh.j2