This section contains detailed information about the Compute Node parts of the input model. For example input models, see Chapter 9, Example Configurations. For general descriptions of the input model, see Section 6.14, “Networks”.
Usually, the example models provide most of the data that is required to create a valid input model. However, before you start to deploy, you may want to customize an input model using the following information about Compute Nodes.
net_interfaces.yml
- name: SLES-COMPUTE-INTERFACES
network-interfaces:
- name: BOND0
device:
name: bond0
bond-data:
options:
mode: active-backup
miimon: 200
primary: hed1
provider: linux
devices:
- name: hed1
- name: hed2
network-groups:
- EXTERNAL-VM
- GUEST
- MANAGEMENT
servers.yml
- id: compute1 ip-addr: 10.13.111.15 role: SLES-COMPUTE-ROLE server-group: RACK1 nic-mapping: DL360p_G8_2Port mac-addr: ec:b1:d7:77:d0:b0 ilo-ip: 10.12.13.14 ilo-password: ********* ilo-user: Administrator distro-id: sles12sp3-x86_64
server_roles.yml
- name: SLES-COMPUTE-ROLE interface-model: SLES-COMPUTE-INTERFACES disk-model: SLES-COMPUTE-DISKS
disk_compute.yml
- name: SLES-COMPUTE-DISKS
volume-groups:
- name: ardana-vg
physical-volumes:
- /dev/sda_root
logical-volumes:
# The policy is not to consume 100% of the space of each volume group.
# 5% should be left free for snapshots and to allow for some flexibility.
- name: root
size: 35%
fstype: ext4
mount: /
- name: log
size: 50%
mount: /var/log
fstype: ext4
mkfs-opts: -O large_file
- name: crash
size: 10%
mount: /var/crash
fstype: ext4
mkfs-opts: -O large_file
- name: vg-comp
# this VG is dedicated to Nova Compute to keep VM IOPS off the OS disk
physical-volumes:
- /dev/sdb
logical-volumes:
- name: compute
size: 95%
mount: /var/lib/nova
fstype: ext4
mkfs-opts: -O large_file
control_plane.yml
control-planes: - name: control-plane-1 control-plane-prefix: cp1 region-name: region0 .... resources: - name: sles-compute resource-prefix: sles-comp server-role: SLES-COMPUTE-ROLE allocation-policy: any min-count: 1 service-components: - ntp-client - nova-compute - nova-compute-kvm - neutron-l3-agent - neutron-metadata-agent - neutron-openvswitch-agent - neutron-lbaasv2-agent
To install the software required for Red Hat Enterprise Linux Compute Nodes, follow the steps described in Book “Installing with Cloud Lifecycle Manager”, Chapter 22 “Installing RHEL Compute”, Section 22.4 “Using RHEL as a Compute Node”
Below are alternative configurations for Red Hat Enterprise Linux Compute Nodes:
net_interfaces.yml
- name: RHEL-COMPUTE-INTERFACES
network-interfaces:
- name: BOND0
device:
name: bond0
bond-data:
options:
mode: active-backup
miimon: 200
primary: hed1
provider: linux
devices:
- name: hed1
- name: hed2
network-groups:
- EXTERNAL-VM
- GUEST
- MANAGEMENT
servers.yml
- id: compute1
ip-addr: 10.13.111.15
role: RHEL-COMPUTE-ROLE
server-group: RACK1
nic-mapping: DL360p_G8_2Port
mac-addr: ec:b1:d7:77:d0:b0
ilo-ip: 10.12.13.14
ilo-password: *********
ilo-user: Administrator
server_roles.yml
- name: RHEL-COMPUTE-ROLE interface-model: RHEL-COMPUTE-INTERFACES disk-model: RHEL-COMPUTE-DISKS
server_roles.yml
- name: RHEL-COMPUTE-DISKS
volume-groups:
- name: ardana-vg
physical-volumes:
- /dev/sda_root
logical-volumes:
# The policy is not to consume 100% of the space of each volume group.
# 5% should be left free for snapshots and to allow for some flexibility.
- name: root
size: 35%
fstype: ext4
mount: /
- name: log
size: 50%
mount: /var/log
fstype: ext4
mkfs-opts: -O large_file
- name: crash
size: 10%
mount: /var/crash
fstype: ext4
mkfs-opts: -O large_file
- name: vg-comp
# this VG is dedicated to Nova Compute to keep VM IOPS off the OS disk
physical-volumes:
- /dev/sdb
logical-volumes:
- name: compute
size: 95%
mount: /var/lib/nova
fstype: ext4
mkfs-opts: -O large_file
control_plane.yml
control-planes: - name: control-plane-1 control-plane-prefix: cp1 region-name: region1 .... resources: - name: rhel-compute resource-prefix: rhel-comp server-role: RHEL-COMPUTE-ROLE allocation-policy: any min-count: 1 service-components: - ntp-client - nova-compute - nova-compute-kvm - neutron-l3-agent - neutron-metadata-agent - neutron-openvswitch-agent - neutron-lbaasv2-agent