diff options
author | 2021-05-31 20:23:21 +0200 | |
---|---|---|
committer | 2021-09-01 15:03:29 +0000 | |
commit | bc1786a24447121b5005492aaea8ca786135be29 (patch) | |
tree | cd6ced17b39538afc2bb97c733bf9a18560af5c5 /hw_config/libvirt-vms/pdf.yaml | |
parent | 3fe71dc93fb81199401f921c10d4fe6220aa7175 (diff) |
Add initial config to support deployments on VMs
* Add initial version of PDF and IDF that
will be consumed by the hardware provisioner used in
Kuberef to bring up libvirt VMs (for now 2 VMs for dev purposes).
* Add deploy_on_vms.sh script to deploy Kuberef on VMs
* Add new functions referenced by the deploy_on_vms.sh
script - these can be merged with existing functions
* Modify some of te BMRA templates to accomodate new changes.
This has been tested on Ubuntu 18.04 baremetal server.
Change-Id: I95a5e85cdab95befd24a1cae9f367b32ce26621e
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72621
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
Diffstat (limited to 'hw_config/libvirt-vms/pdf.yaml')
-rw-r--r-- | hw_config/libvirt-vms/pdf.yaml | 128 |
1 files changed, 128 insertions, 0 deletions
diff --git a/hw_config/libvirt-vms/pdf.yaml b/hw_config/libvirt-vms/pdf.yaml new file mode 100644 index 0000000..6686e02 --- /dev/null +++ b/hw_config/libvirt-vms/pdf.yaml @@ -0,0 +1,128 @@ +--- +# SPDX-license-identifier: Apache-2.0 +############################################################################## +# Copyright (c) 2020 +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## +### POD descriptor file ### +details: + type: virtual + link: http://wiki.nordix.org/ +jumphost: + name: jumphost + node: + type: virtual + vendor: libvirt + model: pc + arch: x86_64 + cpus: 12 + cpu_cflags: host-passthrough + cores: 12 + memory: 16G + disks: + - name: disk1 + disk_capacity: 300G + disk_type: hdd + disk_interface: sata + disk_rotation: + os: ubuntu1804 + interfaces: + # NOTE (fdegir): The IPs listed below actually belong to the libvirt bridges + # we create & configure since this is virtual POD and its real IP has nothing + # to do with the deployment itself. + # interface connected to admin/pxe network + - address: 10.1.0.1 + # interface connected to public network + - address: 10.2.0.1 +############################################################################## +nodes: + - name: node1 + node: + type: virtual + vendor: libvirt + model: pc + arch: x86_64 + cpus: 4 + cpu_cflags: host-passthrough + cores: 4 + memory: 16G + disks: &disks + - name: disk1 + disk_capacity: 30G + disk_type: hdd + disk_interface: sata + disk_rotation: + - name: disk2 + disk_capacity: 20G + disk_type: hdd + disk_interface: sata + disk_rotation: + remote_params: &remote_params + type: + - ipmi + user: admin + pass: password + privilege_level: OPERATOR + remote_management: + <<: *remote_params + port: 623 + address: 10.1.0.1 + mac_address: "52:54:00:72:bf:cf" + interface_common_nic1: &interface_common_nic1 + name: nic1 + speed: + features: + vlan: native + interface_common_nic2: &interface_common_nic2 + name: nic2 + speed: + features: + vlan: native + interface_common_nic3: &interface_common_nic3 + name: nic3 + speed: + features: + vlan: native + interface_common_nic4: &interface_common_nic4 + name: nic4 + speed: + features: + vlan: native + interfaces: + # interface connected to admin/pxe network + - mac_address: "52:54:00:72:bf:cf" + address: 10.1.0.3 + <<: *interface_common_nic1 + # interface connected to public network + - mac_address: "52:54:00:21:4f:fb" + address: 10.2.0.3 + <<: *interface_common_nic2 + ############################################################################## + - name: node2 + node: + type: virtual + vendor: libvirt + model: pc + arch: x86_64 + cpus: 6 + cpu_cflags: host-passthrough + cores: 6 + memory: 32G + disks: *disks + remote_management: + <<: *remote_params + port: 624 + address: 10.1.0.1 + mac_address: "52:54:00:b9:d4:87" + interfaces: + # interface connected to admin/pxe network + - mac_address: "52:54:00:b9:d4:87" + address: 10.1.0.4 + <<: *interface_common_nic1 + # interface connected to public network + - mac_address: "52:54:00:b7:9f:50" + address: 10.2.0.4 + <<: *interface_common_nic2 |