4a4bd9c06a
This change removes logic for releases older than train, because these releases are already EOLed. This covers only overcloud-* roles and playbooks and the other items will be covered by separate changes. Note that this change also removes the containerized_* variables because current active releases(>=Train) no longer supports non-containerized deployment. The containerized_overcloud_upgrade variable is still left because the variable is still required by the tripleo-ci-base-multinode-standard job template. Change-Id: If29ec2c2219a28a1f79db0e552e2c622c0a7bda6 |
||
---|---|---|
.. | ||
defaults | ||
meta | ||
tasks | ||
templates | ||
README.md |
Role Name
An Ansible role for scaling and deleting nodes from an overcloud.
Requirements
This role assumes it will be executed against a host on which an under/overcloud have already been deployed.
Note: The validate-simple role must be accessible.
Role Variables
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
Note: Make sure to include all environment file and options from your initial Overcloud creation. This includes the same scale parameters for non-Compute nodes.
- artosn_scale_nodes: -- boolean value that will scale nodes if true
- artosn_delete_original_node: -- boolean value that will delete the original node of type that was scaled
Dependencies
Example Playbook
- Sample playbook to call the role
- name: Scale overcloud nodes
hosts: undercloud
roles:
- ansible-role-tripleo-overcloud-scale-nodes
- Sample config file to scale from one compute node to two compute nodes on the overcloud
control_memory: 6144
compute_memory: 6144
undercloud_memory: 8192
undercloud_vcpu: 2
overcloud_nodes:
- name: control_0
flavor: control
- name: compute_0
flavor: compute
- name: compute_1
flavor: compute
- name: compute_2
flavor: compute
tempest: false
pingtest: true
deploy_timeout: 60
# General deployment info
libvirt_args: "--libvirt-type qemu"
timeout_args: "--timeout {{ deploy_timeout }}"
# Pulled this out so we can hand these configs to the openstack overcloud node delete command
scale_extra_configs: "-e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/net-single-nic-with-vlans.yaml -e ~/network-environment.yaml"
scale_extra_args: "--{{ node_to_scale }}-scale {{ final_scale_value }} {{ scale_extra_configs }} --ntp-server pool.ntp.org"
# Scale deployment info
node_to_scale: compute # Type of node to scale
initial_scale_value: 1 # Initial number of nodes to deploy
final_scale_value: 2 # Number of additional nodes to add during the scale
# Scale deployment arguments
scale_args: >-
{{ libvirt_args }}
{{ timeout_args }}
{{ scale_extra_args }}
License
Apache
Author Information
RDO-CI Team