Jinja Template [1] require virtualbmc_port to be defined in overcloud node configuration. [1] roles/libvirt/setup/overcloud/templates/instackenv.json.j2 Change-Id: I71832842ddb830510fb7a8eaa7f290fe6cc4a998
2.8 KiB
Node Configuration =============
You configure the overcloud nodes by placing variable definitions in
a YAML file and passing that to ansible using the -N
command line option, like this:
quickstart.sh -N config/nodes/1ctlr_1comp.yml
Setting number and type of overcloud nodes
The overcloud_nodes variable can be used to change the
number and type of nodes deployed in your overcloud. The default
(config/general_config/minimal.yml) looks like this:
overcloud_nodes:
- name: control_0
flavor: control
virtualbmc_port: 6230
- name: compute_0
flavor: compute
virtualbmc_port: 6231
You can use your own config if you want to test a different setup. For example:
overcloud_nodes:
- name: control_0
flavor: control
virtualbmc_port: 6230
- name: control_1
flavor: control
virtualbmc_port: 6231
- name: control_2
flavor: control
virtualbmc_port: 6232
- name: compute_0
flavor: compute
virtualbmc_port: 6233
- name: ceph_0
flavor: ceph
virtualbmc_port: 6234
- name: swift_0
flavor: objectstorage
virtualbmc_port: 6235
Controlling resources
These variables set the resources that will be assigned to a node by default, unless overridden by a more specific variable:
default_diskdefault_memorydefault_vcpu
These variables set the resources assigned to the undercloud node:
undercloud_diskundercloud_memory(defaults to 12288)undercloud_vcpu(defaults to 4)
These variables set the resources assigned to controller nodes:
control_diskcontrol_memorycontrol_vcpu
These variables control the resources assigned to compute nodes:
compute_diskcompute_memorycompute_vcpu
These variables control the resources assigned to ceph storage nodes:
ceph_diskceph_memoryceph_vcpu
There is another option extradevices that can be used to
create three additional blockdevices vdb, vdc
and vdd per node. By default it is only enabled on the
objectstorage node flavor.
An example
To create a minimal environment that would be unsuitable for
deploying anything real nova instances, you could place something like
the following in myconfigfile.yml:
undercloud_memory: 8192
control_memory: 6000
compute_memory: 2048
overcloud_nodes:
- name: control_0
flavor: control
virtualbmc_port: 6230
- name: compute_0
flavor: compute
virtualbmc_port: 6231
And then pass that to the ansible-playbook command as
described at the beginning of this document.