overcloud: Remove logic for unsupported old releases
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
This commit is contained in:
parent
048667a14d
commit
4a4bd9c06a
|
@ -27,7 +27,7 @@
|
||||||
hosts: undercloud
|
hosts: undercloud
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
roles:
|
roles:
|
||||||
- {role: overcloud-prep-containers, when: containerized_overcloud|bool}
|
- role: overcloud-prep-containers
|
||||||
tags:
|
tags:
|
||||||
- overcloud-prep-containers
|
- overcloud-prep-containers
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
- overcloud-prep-containers
|
- overcloud-prep-containers
|
||||||
roles:
|
roles:
|
||||||
- role: overcloud-prep-containers
|
- role: overcloud-prep-containers
|
||||||
when: containerized_overcloud|bool
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Resolve dlrn_hash for periodic jobs (no content provider)
|
- name: Resolve dlrn_hash for periodic jobs (no content provider)
|
||||||
when: not job.consumer_job | default(false) | bool
|
when: not job.consumer_job | default(false) | bool
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
roles:
|
roles:
|
||||||
- role: overcloud-prep-containers
|
- role: overcloud-prep-containers
|
||||||
use_overcloud_mixed_upgrade: "{{ mixed_upgrade|default(false) }}"
|
use_overcloud_mixed_upgrade: "{{ mixed_upgrade|default(false) }}"
|
||||||
when: containerized_overcloud|bool
|
|
||||||
|
|
||||||
- name: Ensure openvswitch is started and enabled
|
- name: Ensure openvswitch is started and enabled
|
||||||
hosts: overcloud
|
hosts: overcloud
|
||||||
|
|
|
@ -49,9 +49,6 @@
|
||||||
- role: overcloud-prep-containers
|
- role: overcloud-prep-containers
|
||||||
# This need the new repo in place.
|
# This need the new repo in place.
|
||||||
update_containers: true
|
update_containers: true
|
||||||
# This enable us to run it even on non-containerized overcloud deployment
|
|
||||||
# ie, ffu upgrade where deployment is on newton.
|
|
||||||
containerized_overcloud: "{{ prep_container_upgrade_run|default(false) }}"
|
|
||||||
# Do not overwrite the deployment log if any.
|
# Do not overwrite the deployment log if any.
|
||||||
overcloud_prep_containers_log: "upgrade_overcloud_prep_containers.log"
|
overcloud_prep_containers_log: "upgrade_overcloud_prep_containers.log"
|
||||||
overcloud_prep_containers_script: "upgrade_overcloud_prep_containers.sh"
|
overcloud_prep_containers_script: "upgrade_overcloud_prep_containers.sh"
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- name: Copy over adjust interface mtus script template
|
|
||||||
template:
|
|
||||||
src: adjust-interface-mtus.sh.j2
|
|
||||||
dest: "{{ working_dir }}/adjust-interface-mtus.sh"
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: Adjust MTU values and modify dnsmasq-ironic.conf
|
|
||||||
become: true
|
|
||||||
shell: >
|
|
||||||
"{{ working_dir }}"/adjust-interface-mtus.sh
|
|
||||||
when: step_adjust_mtu|bool
|
|
|
@ -1,17 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- name: Copy over allow traffic script template
|
|
||||||
template:
|
|
||||||
src: allow-traffic-for-controller.sh.j2
|
|
||||||
dest: "{{ working_dir }}/allow-traffic-for-controller.sh"
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: Allow traffic for the controller
|
|
||||||
become: true
|
|
||||||
shell: >
|
|
||||||
"{{ working_dir }}"/allow-traffic-for-controller.sh
|
|
||||||
when:
|
|
||||||
- network_isolation|bool
|
|
||||||
- undercloud_type == "baremetal"
|
|
||||||
- not overcloud_ipv6|bool
|
|
||||||
- release in ['newton','ocata','pike','queens'] or not containerized_undercloud|bool
|
|
|
@ -1,8 +1,2 @@
|
||||||
---
|
---
|
||||||
# this was fixed in queens/master
|
|
||||||
- include: adjust-mtu-dnsmasq-ironic.yml
|
|
||||||
when: release in ['newton', 'ocata', 'pike']
|
|
||||||
|
|
||||||
- include: allow-traffic-for-controller.yml
|
|
||||||
|
|
||||||
- include: install-upstream-ipxe.yml
|
- include: install-upstream-ipxe.yml
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -eux
|
|
||||||
|
|
||||||
### --start_docs
|
|
||||||
|
|
||||||
## Adjust interface MTU valuesfor undercloud and overcloud
|
|
||||||
## =======================================================
|
|
||||||
|
|
||||||
## * Adjust interface mtus
|
|
||||||
## ::
|
|
||||||
|
|
||||||
{% for interface in (mtu_interface) %}
|
|
||||||
ip link set {{ interface }} mtu {{ mtu }}
|
|
||||||
echo "MTU={{ mtu }}" >> /etc/sysconfig/network-scripts/ifcfg-{{ interface }}
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
## * Modify dnsmasq-ironic.conf
|
|
||||||
## ::
|
|
||||||
|
|
||||||
echo -e "\ndhcp-option-force=26,{{ mtu }}" >> /etc/dnsmasq-ironic.conf
|
|
||||||
systemctl restart 'neutron-*'
|
|
||||||
systemctl restart openstack-ironic-conductor
|
|
||||||
|
|
||||||
### --stop_docs
|
|
|
@ -1,16 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -eux
|
|
||||||
|
|
||||||
### --start_docs
|
|
||||||
|
|
||||||
## Add traffic for controller on baremetal undercloud
|
|
||||||
## ==================================================
|
|
||||||
|
|
||||||
## * Modify iptables
|
|
||||||
## ::
|
|
||||||
|
|
||||||
iptables -A BOOTSTACK_MASQ -s {{ network_isolation_ipv4_cidr }} ! -d {{ network_isolation_ipv4_cidr }} -j MASQUERADE -t nat
|
|
||||||
iptables-save > /etc/sysconfig/iptables
|
|
||||||
|
|
||||||
### --stop_docs
|
|
|
@ -49,30 +49,6 @@ use_git_tht_repo: false
|
||||||
tht_branch: master
|
tht_branch: master
|
||||||
overcloud_release: "{{ release }}"
|
overcloud_release: "{{ release }}"
|
||||||
|
|
||||||
# we generally assume that the argument to --control-flavor will
|
|
||||||
# always be the `oooq_control` that we create from the flavors: key.
|
|
||||||
# If the deployer needs to use a different name, she can configure a
|
|
||||||
# `flavor_map` key that will map overcloud roles to specific flavor
|
|
||||||
# names, like:
|
|
||||||
#
|
|
||||||
# flavor_map:
|
|
||||||
# control: my_special_control_flavor
|
|
||||||
#
|
|
||||||
# This is to avoid having to replace the flavor_args key wholesale for
|
|
||||||
# a single change.
|
|
||||||
#
|
|
||||||
flavor_args: >-
|
|
||||||
--control-flavor {{flavor_map.control
|
|
||||||
if flavor_map is defined and 'control' in flavor_map else 'oooq_control'}}
|
|
||||||
--compute-flavor {{flavor_map.compute
|
|
||||||
if flavor_map is defined and 'compute' in flavor_map else 'oooq_compute'}}
|
|
||||||
--ceph-storage-flavor {{flavor_map.ceph
|
|
||||||
if flavor_map is defined and 'ceph' in flavor_map else 'oooq_ceph'}}
|
|
||||||
--block-storage-flavor {{flavor_map.block
|
|
||||||
if flavor_map is defined and 'blockstorage' in flavor_map else 'oooq_blockstorage'}}
|
|
||||||
--swift-storage-flavor {{flavor_map.swift
|
|
||||||
if flavor_map is defined and 'objectstorage' in flavor_map else 'oooq_objectstorage'}}
|
|
||||||
|
|
||||||
timeout_args: "--timeout {{ deploy_timeout }}"
|
timeout_args: "--timeout {{ deploy_timeout }}"
|
||||||
|
|
||||||
set_overcloud_workers: true
|
set_overcloud_workers: true
|
||||||
|
@ -118,7 +94,6 @@ selinux_args: ""
|
||||||
|
|
||||||
deploy_args: >-
|
deploy_args: >-
|
||||||
{{ libvirt_args }}
|
{{ libvirt_args }}
|
||||||
{{ flavor_args if release in ['newton','ocata','pike','queens','stein'] else '' }}
|
|
||||||
{{ timeout_args }}
|
{{ timeout_args }}
|
||||||
{{ ntp_args }}
|
{{ ntp_args }}
|
||||||
{{ cloud_name_args }}
|
{{ cloud_name_args }}
|
||||||
|
|
|
@ -120,7 +120,6 @@
|
||||||
- name: Set OS::TripleO::Services::IpaClient for novajoin-less deployment
|
- name: Set OS::TripleO::Services::IpaClient for novajoin-less deployment
|
||||||
when:
|
when:
|
||||||
- enable_tls_everywhere|bool and not undercloud_enable_novajoin|bool
|
- enable_tls_everywhere|bool and not undercloud_enable_novajoin|bool
|
||||||
- release not in ['mitaka', 'liberty', 'newton']
|
|
||||||
template:
|
template:
|
||||||
src: "tls-everywhere.yaml.j2"
|
src: "tls-everywhere.yaml.j2"
|
||||||
dest: "{{ working_dir }}/tls-everywhere.yaml"
|
dest: "{{ working_dir }}/tls-everywhere.yaml"
|
||||||
|
|
|
@ -111,14 +111,6 @@
|
||||||
when:
|
when:
|
||||||
- ntp_server|default('')
|
- ntp_server|default('')
|
||||||
|
|
||||||
- name: enable pacemaker
|
|
||||||
set_fact:
|
|
||||||
pacemaker_args: >-
|
|
||||||
-e {{ overcloud_templates_path }}/environments/puppet-pacemaker.yaml
|
|
||||||
when:
|
|
||||||
- enable_pacemaker|bool
|
|
||||||
- not containerized_overcloud|bool
|
|
||||||
|
|
||||||
- name: use resource registry
|
- name: use resource registry
|
||||||
set_fact:
|
set_fact:
|
||||||
resource_registry_nic_configs_args: >-
|
resource_registry_nic_configs_args: >-
|
||||||
|
@ -164,22 +156,13 @@
|
||||||
- overcloud_nodes[0] is defined
|
- overcloud_nodes[0] is defined
|
||||||
- overcloud_nodes[0].hostnamemap_override is defined
|
- overcloud_nodes[0].hostnamemap_override is defined
|
||||||
|
|
||||||
- name: set set overcloud SSL args for releases after mitaka
|
- name: set set overcloud SSL args
|
||||||
set_fact:
|
set_fact:
|
||||||
ssl_overcloud_args: >-
|
ssl_overcloud_args: >-
|
||||||
-e {{ working_dir }}/enable-tls.yaml
|
-e {{ working_dir }}/enable-tls.yaml
|
||||||
-e {{ overcloud_templates_path }}/environments/ssl/tls-endpoints-public-ip.yaml
|
-e {{ overcloud_templates_path }}/environments/ssl/tls-endpoints-public-ip.yaml
|
||||||
when:
|
when:
|
||||||
- ssl_overcloud|bool
|
- ssl_overcloud|bool
|
||||||
- release not in ['mitaka', 'liberty']
|
|
||||||
|
|
||||||
- name: set overcloud SSL args fact for mitaka/liberty
|
|
||||||
set_fact:
|
|
||||||
ssl_overcloud_args: >-
|
|
||||||
-e {{ working_dir }}/enable-tls.yaml
|
|
||||||
when:
|
|
||||||
- ssl_overcloud|bool
|
|
||||||
- release in ['mitaka', 'liberty']
|
|
||||||
|
|
||||||
- name: set CA injection arg
|
- name: set CA injection arg
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -203,7 +186,6 @@
|
||||||
-e {{ overcloud_templates_path }}/environments/ssl/enable-memcached-tls.yaml
|
-e {{ overcloud_templates_path }}/environments/ssl/enable-memcached-tls.yaml
|
||||||
when:
|
when:
|
||||||
- enable_tls_everywhere|bool and undercloud_enable_novajoin|bool
|
- enable_tls_everywhere|bool and undercloud_enable_novajoin|bool
|
||||||
- release not in ['mitaka', 'liberty', 'newton']
|
|
||||||
|
|
||||||
- name: set TLS everywhere fact with tripleo-ipa
|
- name: set TLS everywhere fact with tripleo-ipa
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -215,12 +197,6 @@
|
||||||
-e {{ working_dir }}/tls-everywhere.yaml
|
-e {{ working_dir }}/tls-everywhere.yaml
|
||||||
when:
|
when:
|
||||||
- enable_tls_everywhere|bool and not undercloud_enable_novajoin|bool
|
- enable_tls_everywhere|bool and not undercloud_enable_novajoin|bool
|
||||||
- release not in ['mitaka', 'liberty', 'newton']
|
|
||||||
|
|
||||||
- name: set validation_args fact for mitaka/liberty
|
|
||||||
set_fact:
|
|
||||||
validation_args: "--validation-errors-fatal --validation-warnings-fatal"
|
|
||||||
when: release in ['mitaka', 'liberty']
|
|
||||||
|
|
||||||
- name: disable L3 HA
|
- name: disable L3 HA
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -236,28 +212,16 @@
|
||||||
workers_args: >-
|
workers_args: >-
|
||||||
-e {{ overcloud_templates_path }}/environments/low-memory-usage.yaml
|
-e {{ overcloud_templates_path }}/environments/low-memory-usage.yaml
|
||||||
when:
|
when:
|
||||||
- release not in ['mitaka', 'liberty']
|
|
||||||
- set_overcloud_workers|bool
|
- set_overcloud_workers|bool
|
||||||
|
|
||||||
- name: set container_args fact
|
- name: set container_args fact
|
||||||
set_fact:
|
set_fact:
|
||||||
container_args: >-
|
container_args: >-
|
||||||
{% if release in ['pike', 'queens'] %}
|
|
||||||
-e {{ overcloud_templates_path }}/environments/docker.yaml
|
|
||||||
{% endif %}
|
|
||||||
{% if enable_pacemaker|bool or osp_release is defined%}
|
{% if enable_pacemaker|bool or osp_release is defined%}
|
||||||
-e {{ overcloud_templates_path }}/environments/docker-ha.yaml
|
-e {{ overcloud_templates_path }}/environments/docker-ha.yaml
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if release in ['ocata', 'pike', 'queens'] %}
|
|
||||||
-e {{ working_dir }}/containers-default-parameters.yaml
|
|
||||||
{% else %}
|
|
||||||
-e {{ working_dir }}/containers-prepare-parameter.yaml
|
-e {{ working_dir }}/containers-prepare-parameter.yaml
|
||||||
{% endif %}
|
|
||||||
{% if release not in ['pike', 'queens'] %}
|
|
||||||
-e {{ overcloud_templates_path }}/environments/{{ overcloud_container_cli }}.yaml
|
-e {{ overcloud_templates_path }}/environments/{{ overcloud_container_cli }}.yaml
|
||||||
{% endif %}
|
|
||||||
when:
|
|
||||||
- containerized_overcloud|bool
|
|
||||||
|
|
||||||
- name: set composable roles args fact
|
- name: set composable roles args fact
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -286,9 +250,6 @@
|
||||||
set_fact:
|
set_fact:
|
||||||
multinode_args: >-
|
multinode_args: >-
|
||||||
-e {{ overcloud_templates_path }}/environments/deployed-server-environment.yaml
|
-e {{ overcloud_templates_path }}/environments/deployed-server-environment.yaml
|
||||||
{% if release in ['queens', 'stein'] and overcloud_release|default('') in ['queens', 'stein'] %}
|
|
||||||
-e {{ overcloud_templates_path }}/environments/deployed-server-bootstrap-environment-centos.yaml
|
|
||||||
{% endif %}
|
|
||||||
--overcloud-ssh-user {{ undercloud_user }}
|
--overcloud-ssh-user {{ undercloud_user }}
|
||||||
{% if not undercloud_enable_nova|bool %}
|
{% if not undercloud_enable_nova|bool %}
|
||||||
--deployed-server
|
--deployed-server
|
||||||
|
@ -306,9 +267,6 @@
|
||||||
hypervisor_wait: false
|
hypervisor_wait: false
|
||||||
multinode_args: >-
|
multinode_args: >-
|
||||||
-e {{ overcloud_templates_path }}/environments/deployed-server-environment.yaml
|
-e {{ overcloud_templates_path }}/environments/deployed-server-environment.yaml
|
||||||
{% if release in ['queens', 'stein'] and overcloud_release|default('') in ['queens', 'stein'] %}
|
|
||||||
-e {{ overcloud_templates_path }}/environments/deployed-server-bootstrap-environment-centos.yaml
|
|
||||||
{% endif %}
|
|
||||||
-e {{ working_dir }}/overcloud-baremetal-deployed.yaml
|
-e {{ working_dir }}/overcloud-baremetal-deployed.yaml
|
||||||
--deployed-server
|
--deployed-server
|
||||||
when: baremetal_provision|bool
|
when: baremetal_provision|bool
|
||||||
|
|
|
@ -4,7 +4,7 @@ resource_registry:
|
||||||
OS::TripleO::OVNMacAddressPort: OS::Heat::None
|
OS::TripleO::OVNMacAddressPort: OS::Heat::None
|
||||||
|
|
||||||
parameter_defaults:
|
parameter_defaults:
|
||||||
{% if release not in ['train', 'ussuri', 'victoria'] %}
|
{% if release not in ['train'] %}
|
||||||
# Set VIP's for redis and OVN
|
# Set VIP's for redis and OVN
|
||||||
RedisVirtualFixedIPs:
|
RedisVirtualFixedIPs:
|
||||||
- ip_address: 192.168.24.101
|
- ip_address: 192.168.24.101
|
||||||
|
@ -15,7 +15,7 @@ parameter_defaults:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
# TODO: This is workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2006409, Remove this
|
# TODO: This is workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2006409, Remove this
|
||||||
# once this bug is fixed.
|
# once this bug is fixed.
|
||||||
{% if release not in ['train', 'ussuri', 'victoria'] %}
|
{% if release not in ['train'] %}
|
||||||
NovaLibvirtNumPciePorts: 12
|
NovaLibvirtNumPciePorts: 12
|
||||||
{% endif %}
|
{% endif %}
|
||||||
# Set machine type if default is not supported on current OS
|
# Set machine type if default is not supported on current OS
|
||||||
|
|
|
@ -2,24 +2,15 @@
|
||||||
|
|
||||||
source {{ working_dir }}/stackrc
|
source {{ working_dir }}/stackrc
|
||||||
|
|
||||||
# We did not have OVERCLOUD_ROLES var in the newton version of the
|
|
||||||
# get-occ-config script. Instead we need to use CONTROLLER_HOSTS var.
|
|
||||||
{% if release != "newton" and (overcloud_release is not defined or overcloud_release != "newton") %}
|
|
||||||
export OVERCLOUD_ROLES=""
|
export OVERCLOUD_ROLES=""
|
||||||
{% for role in deployed_server_overcloud_roles %}
|
{% for role in deployed_server_overcloud_roles %}
|
||||||
OVERCLOUD_ROLES="$OVERCLOUD_ROLES {{ role.name }}"
|
OVERCLOUD_ROLES="$OVERCLOUD_ROLES {{ role.name }}"
|
||||||
export {{ role.name }}_hosts={{ role.hosts }}
|
export {{ role.name }}_hosts={{ role.hosts }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
export OVERCLOUD_HOSTS="{{ deployed_server_overcloud_roles|map(attribute='hosts')|join(' ') }}"
|
export OVERCLOUD_HOSTS="{{ deployed_server_overcloud_roles|map(attribute='hosts')|join(' ') }}"
|
||||||
{% else %}
|
|
||||||
export CONTROLLER_HOSTS="{{deployed_server_overcloud_roles|map(attribute='hosts')|join(' ') }}"
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% set get_occ_config_script = overcloud_templates_path|default('/usr/share/openstack-tripleo-heat-templates') ~ '/deployed-server/scripts/get-occ-config.sh' %}
|
{% set get_occ_config_script = overcloud_templates_path|default('/usr/share/openstack-tripleo-heat-templates') ~ '/deployed-server/scripts/get-occ-config.sh' %}
|
||||||
|
|
||||||
{{ get_occ_config_script }} 2>&1 | sudo dd of=/var/log/deployed-server-os-collect-config.log
|
{{ get_occ_config_script }} 2>&1 | sudo dd of=/var/log/deployed-server-os-collect-config.log
|
||||||
|
|
||||||
# We also do not have the deployed-server-enable-ssh-admin script on newton.
|
|
||||||
{% if release != "newton" %}
|
|
||||||
/usr/share/openstack-tripleo-heat-templates/deployed-server/scripts/enable-ssh-admin.sh 2>&1 | sudo dd of=/var/log/deployed-server-enable-ssh-admin.log
|
/usr/share/openstack-tripleo-heat-templates/deployed-server/scripts/enable-ssh-admin.sh 2>&1 | sudo dd of=/var/log/deployed-server-enable-ssh-admin.log
|
||||||
{% endif %}
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ openstack overcloud roles generate --roles-path \
|
||||||
|
|
||||||
## * Deploy the cell
|
## * Deploy the cell
|
||||||
## ::
|
## ::
|
||||||
openstack overcloud deploy {% if release is not in ['newton', 'ocata', 'pike', 'queens'] %}--override-ansible-cfg {{ working_dir }}/custom_ansible.cfg{% endif %} \
|
openstack overcloud deploy --override-ansible-cfg {{ working_dir }}/custom_ansible.cfg \
|
||||||
--templates {{overcloud_templates_path}} \
|
--templates {{overcloud_templates_path}} \
|
||||||
{{ deploy_args | regex_replace("\n", " ") }} \
|
{{ deploy_args | regex_replace("\n", " ") }} \
|
||||||
{{ cell_deploy_args | regex_replace("\n", " ") }} \
|
{{ cell_deploy_args | regex_replace("\n", " ") }} \
|
||||||
|
@ -46,10 +46,8 @@ if ! openstack stack list | grep -q {{ cell_name }}; then
|
||||||
# so check `openstack stack list` for a CREATE_COMPLETE or an UPDATE_COMPLETE
|
# so check `openstack stack list` for a CREATE_COMPLETE or an UPDATE_COMPLETE
|
||||||
# status.
|
# status.
|
||||||
elif ! openstack stack list | grep {{ cell_name }} | grep -Eq '(CREATE|UPDATE)_COMPLETE'; then
|
elif ! openstack stack list | grep {{ cell_name }} | grep -Eq '(CREATE|UPDATE)_COMPLETE'; then
|
||||||
{%if release not in ['mitaka', 'liberty'] %}
|
|
||||||
# get the failures list
|
# get the failures list
|
||||||
openstack stack failures list overcloud --long > {{ failed_cell_deployment_list }} || true
|
openstack stack failures list overcloud --long > {{ failed_cell_deployment_list }} || true
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
# get any puppet related errors
|
# get any puppet related errors
|
||||||
for failed in $(openstack stack resource list \
|
for failed in $(openstack stack resource list \
|
||||||
|
@ -70,12 +68,10 @@ elif ! openstack stack list | grep {{ cell_name }} | grep -Eq '(CREATE|UPDATE)_C
|
||||||
# We need to exit with 1 because of the above || true
|
# We need to exit with 1 because of the above || true
|
||||||
done
|
done
|
||||||
exit 1
|
exit 1
|
||||||
{%if release in ['master'] %}
|
|
||||||
elif ! openstack overcloud status --stack {{ cell_name }}| grep -Eq 'DEPLOY_SUCCESS'; then
|
elif ! openstack overcloud status --stack {{ cell_name }}| grep -Eq 'DEPLOY_SUCCESS'; then
|
||||||
# NOTE(emilien) "openstack overcloud failures" was introduced in Rocky
|
# NOTE(emilien) "openstack overcloud failures" was introduced in Rocky
|
||||||
openstack overcloud failures --stack {{ cell_name }}>> {{ failed_cell_deployment_list }} || true
|
openstack overcloud failures --stack {{ cell_name }}>> {{ failed_cell_deployment_list }} || true
|
||||||
exit 1
|
exit 1
|
||||||
{% endif %}
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create inventory files for overcloud and cell stack
|
# Create inventory files for overcloud and cell stack
|
||||||
|
|
|
@ -9,33 +9,9 @@ set -eux
|
||||||
## * Prepare Your Environment.
|
## * Prepare Your Environment.
|
||||||
## ::
|
## ::
|
||||||
|
|
||||||
{% if release in ['mitaka', 'newton', 'ocata', 'pike', 'queens', 'stein'] -%}
|
|
||||||
HOSTFILE=/etc/hosts
|
|
||||||
{% endif -%}
|
|
||||||
|
|
||||||
## * Source in the undercloud credentials.
|
## * Source in the undercloud credentials.
|
||||||
## ::
|
## ::
|
||||||
|
|
||||||
. {{ working_dir }}/stackrc
|
. {{ working_dir }}/stackrc
|
||||||
|
|
||||||
{% if release in ['mitaka', 'newton', 'ocata', 'pike', 'queens', 'stein'] -%}
|
|
||||||
## * Remove any old overcloud host entries from `/etc/hosts`.
|
|
||||||
## ::
|
|
||||||
|
|
||||||
sudo sed -i '/^## BEGIN OVERCLOUD HOSTS/,/^## END OVERCLOUD HOSTS/ d' $HOSTFILE
|
|
||||||
|
|
||||||
## * Add overcloud hosts to `/etc/hosts`.
|
|
||||||
## ::
|
|
||||||
|
|
||||||
cat <<EOF | sudo tee -a $HOSTFILE
|
|
||||||
## BEGIN OVERCLOUD HOSTS #nodocs
|
|
||||||
$(openstack stack output show {{ stack_name }} HostsEntry -f value -c output_value)
|
|
||||||
|
|
||||||
{% if enable_pacemaker|bool and release == 'mitaka' %}
|
|
||||||
$(openstack stack output show {{ stack_name }} PublicVip \
|
|
||||||
-f value -c output_value) overcloud-public-vip
|
|
||||||
{% endif %}
|
|
||||||
## END OVERCLOUD HOSTS #nodocs
|
|
||||||
EOF
|
|
||||||
{% endif -%}
|
|
||||||
### --stop_docs
|
### --stop_docs
|
||||||
|
|
|
@ -18,7 +18,7 @@ source {{ working_dir }}/stackrc
|
||||||
## * Deploy the overcloud!
|
## * Deploy the overcloud!
|
||||||
## ::
|
## ::
|
||||||
openstack overcloud deploy --stack {{ stack_name }} \
|
openstack overcloud deploy --stack {{ stack_name }} \
|
||||||
{% if release is not in ['newton', 'ocata', 'pike', 'queens'] %}--override-ansible-cfg {{ working_dir }}/custom_ansible.cfg{% endif %} \
|
--override-ansible-cfg {{ working_dir }}/custom_ansible.cfg \
|
||||||
--templates {{overcloud_templates_path}} \
|
--templates {{overcloud_templates_path}} \
|
||||||
{{ deploy_args | regex_replace("\n", " ") }} \
|
{{ deploy_args | regex_replace("\n", " ") }} \
|
||||||
"$@" && status_code=0 || status_code=$?
|
"$@" && status_code=0 || status_code=$?
|
||||||
|
@ -35,10 +35,8 @@ if ! openstack stack list | grep -q {{ stack_name }}; then
|
||||||
# so check `openstack stack list` for a CREATE_COMPLETE or an UPDATE_COMPLETE
|
# so check `openstack stack list` for a CREATE_COMPLETE or an UPDATE_COMPLETE
|
||||||
# status.
|
# status.
|
||||||
elif ! openstack stack list | grep -Eq '(CREATE|UPDATE)_COMPLETE'; then
|
elif ! openstack stack list | grep -Eq '(CREATE|UPDATE)_COMPLETE'; then
|
||||||
{%if release not in ['mitaka', 'liberty'] %}
|
|
||||||
# get the failures list
|
# get the failures list
|
||||||
openstack stack failures list {{ stack_name }} --long > {{ failed_deployment_list }} || true
|
openstack stack failures list {{ stack_name }} --long > {{ failed_deployment_list }} || true
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
# get any puppet related errors
|
# get any puppet related errors
|
||||||
for failed in $(openstack stack resource list \
|
for failed in $(openstack stack resource list \
|
||||||
|
@ -59,11 +57,9 @@ elif ! openstack stack list | grep -Eq '(CREATE|UPDATE)_COMPLETE'; then
|
||||||
# We need to exit with 1 because of the above || true
|
# We need to exit with 1 because of the above || true
|
||||||
done
|
done
|
||||||
exit 1
|
exit 1
|
||||||
{%if release in ['master'] %}
|
|
||||||
elif ! openstack overcloud status --plan {{ stack_name }} | grep -Eq 'DEPLOY_SUCCESS'; then
|
elif ! openstack overcloud status --plan {{ stack_name }} | grep -Eq 'DEPLOY_SUCCESS'; then
|
||||||
# NOTE(emilien) "openstack overcloud failures" was introduced in Rocky
|
# NOTE(emilien) "openstack overcloud failures" was introduced in Rocky
|
||||||
openstack overcloud failures --plan {{ stack_name }} >> {{ failed_deployment_list }} || true
|
openstack overcloud failures --plan {{ stack_name }} >> {{ failed_deployment_list }} || true
|
||||||
{% endif %}
|
|
||||||
fi
|
fi
|
||||||
{% endif %}
|
{% endif %}
|
||||||
exit $status_code
|
exit $status_code
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
network_config:
|
network_config:
|
||||||
{{ network_config | to_nice_yaml(indent=2) | indent(6)}}
|
{{ network_config | to_nice_yaml(indent=2) | indent(6)}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if growvols_args and release not in ['train','ussuri','victoria'] %}
|
{% if growvols_args and release not in ['train'] %}
|
||||||
ansible_playbooks:
|
ansible_playbooks:
|
||||||
- playbook: /usr/share/ansible/tripleo-playbooks/cli-overcloud-node-growvols.yaml
|
- playbook: /usr/share/ansible/tripleo-playbooks/cli-overcloud-node-growvols.yaml
|
||||||
extra_vars:
|
extra_vars:
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
- overcloud-scripts
|
- overcloud-scripts
|
||||||
|
|
||||||
- when:
|
- when:
|
||||||
- release not in ['train', 'ussuri', 'victoria']
|
- release not in ['train']
|
||||||
- job.environment_type is defined and job.environment_type == 'baremetal'
|
- job.environment_type is defined and job.environment_type == 'baremetal'
|
||||||
block:
|
block:
|
||||||
- name: Create network_data.yaml according to baremetal environment
|
- name: Create network_data.yaml according to baremetal environment
|
||||||
|
|
|
@ -25,7 +25,6 @@ overcloud-prep-containers variables
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
* working_dir: /home/stack
|
* working_dir: /home/stack
|
||||||
* containerized_overcloud: false
|
|
||||||
* overcloud_prep_containers_script: overcloud-prep-containers.sh.j2
|
* overcloud_prep_containers_script: overcloud-prep-containers.sh.j2
|
||||||
* overcloud_prep_containers_log: overcloud_prep_containers.log
|
* overcloud_prep_containers_log: overcloud_prep_containers.log
|
||||||
* undercloud_network_cidr: 192.168.24.0/24
|
* undercloud_network_cidr: 192.168.24.0/24
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
tripleo_common_dir: /usr/share/openstack-tripleo-common
|
tripleo_common_dir: /usr/share/openstack-tripleo-common
|
||||||
containerized_overcloud: false
|
|
||||||
overcloud_prep_containers_template: overcloud-prep-containers.sh.j2
|
overcloud_prep_containers_template: overcloud-prep-containers.sh.j2
|
||||||
overcloud_prep_containers_script: "overcloud-prep-containers.sh"
|
overcloud_prep_containers_script: "overcloud-prep-containers.sh"
|
||||||
overcloud_prep_containers_log: "overcloud_prep_containers.log"
|
overcloud_prep_containers_log: "overcloud_prep_containers.log"
|
||||||
|
|
|
@ -12,13 +12,3 @@
|
||||||
python_cmd: "python{{ ansible_python.version.major }}"
|
python_cmd: "python{{ ansible_python.version.major }}"
|
||||||
cacheable: true
|
cacheable: true
|
||||||
when: python_cmd is not defined
|
when: python_cmd is not defined
|
||||||
|
|
||||||
- include: create-scripts.yml
|
|
||||||
tags:
|
|
||||||
- undercloud-scripts
|
|
||||||
when: release in ['ocata', 'pike', 'queens']
|
|
||||||
|
|
||||||
- include: overcloud-prep-containers.yml
|
|
||||||
tags:
|
|
||||||
- containers
|
|
||||||
when: release in ['ocata', 'pike', 'queens']
|
|
||||||
|
|
|
@ -23,4 +23,3 @@
|
||||||
set -o pipefail &&
|
set -o pipefail &&
|
||||||
{{ working_dir }}/{{ overcloud_prep_containers_script }} 2>&1 {{ timestamper_cmd }} >
|
{{ working_dir }}/{{ overcloud_prep_containers_script }} 2>&1 {{ timestamper_cmd }} >
|
||||||
{{ overcloud_prep_containers_log }}
|
{{ overcloud_prep_containers_log }}
|
||||||
when: containerized_overcloud|bool
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ PREPARE_ARGS=${PREPARE_ARGS:-"{{ prepare_service_env_args }}"}
|
||||||
## populate the docker registry. This is done automatically.
|
## populate the docker registry. This is done automatically.
|
||||||
## ::
|
## ::
|
||||||
|
|
||||||
{% if release not in ['ocata', 'pike', 'queens'] and not mixed_upgrade|default(false)|bool %}
|
{% if not mixed_upgrade|default(false)|bool %}
|
||||||
openstack tripleo container image prepare --verbose \
|
openstack tripleo container image prepare --verbose \
|
||||||
--output-env-file {{ working_dir }}/containers-default-parameters.yaml \
|
--output-env-file {{ working_dir }}/containers-default-parameters.yaml \
|
||||||
${PREPARE_ARGS} \
|
${PREPARE_ARGS} \
|
||||||
|
@ -235,33 +235,6 @@ openstack overcloud container image prepare \
|
||||||
|
|
||||||
openstack overcloud container image upload --debug --config-file {{ working_dir }}/overcloud_containers.yaml
|
openstack overcloud container image upload --debug --config-file {{ working_dir }}/overcloud_containers.yaml
|
||||||
|
|
||||||
{% if release in ['ocata', 'pike'] %}
|
|
||||||
## * Configure the {{ working_dir }}/containers-default-parameters.yaml to pull
|
|
||||||
## from a local registry, this is done automatically.
|
|
||||||
## ::
|
|
||||||
|
|
||||||
openstack overcloud container image prepare \
|
|
||||||
--env-file {{ working_dir }}/containers-default-parameters.yaml \
|
|
||||||
${PREPARE_ARGS} \
|
|
||||||
--namespace {{ local_docker_registry_host }}:8787/{{ docker_registry_namespace }} \
|
|
||||||
{% if docker_prep_prefix is defined %}
|
|
||||||
--prefix "{{ docker_prep_prefix }}" \
|
|
||||||
{% endif %}
|
|
||||||
{% if docker_prep_suffix is defined %}
|
|
||||||
--suffix "{{ docker_prep_suffix }}" \
|
|
||||||
{% endif %}
|
|
||||||
{% if docker_ceph_namespace is defined %}
|
|
||||||
--set "ceph_namespace={{ docker_ceph_namespace }}" \
|
|
||||||
{% endif %}
|
|
||||||
{% if docker_ceph_image is defined %}
|
|
||||||
--set "ceph_image={{ docker_ceph_image }}" \
|
|
||||||
{% endif %}
|
|
||||||
{% if docker_ceph_tag is defined %}
|
|
||||||
--set "ceph_tag={{ docker_ceph_tag }}" \
|
|
||||||
{% endif %}
|
|
||||||
--tag {{ container_build_id }}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if update_containers|bool and not use_overcloud_mixed_upgrade|default(false)|bool %}
|
{% if update_containers|bool and not use_overcloud_mixed_upgrade|default(false)|bool %}
|
||||||
# See https://github.com/imain/container-check for script and documentation
|
# See https://github.com/imain/container-check for script and documentation
|
||||||
|
|
||||||
|
|
|
@ -69,5 +69,4 @@
|
||||||
dest: "{{ working_dir }}/inject-ara.sh"
|
dest: "{{ working_dir }}/inject-ara.sh"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when:
|
when:
|
||||||
- release not in ['newton', 'ocata', 'pike', 'queens']
|
|
||||||
- undercloud_enable_mistral|bool
|
- undercloud_enable_mistral|bool
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
tripleo_os_cloud: undercloud
|
tripleo_os_cloud: undercloud
|
||||||
tripleo_overcloud_image_upload_debug: true
|
tripleo_overcloud_image_upload_debug: true
|
||||||
tripleo_overcloud_image_upload_generate_scripts: true
|
tripleo_overcloud_image_upload_generate_scripts: true
|
||||||
tripleo_overcloud_image_upload_http_boot: "{{ containerized_undercloud | default(false) | bool | ternary('/var/lib/ironic/httpboot', None) }}"
|
tripleo_overcloud_image_upload_http_boot: '/var/lib/ironic/httpboot'
|
||||||
tripleo_overcloud_image_upload_whole_disk: "{{ whole_disk_images | default(false) | bool }}"
|
tripleo_overcloud_image_upload_whole_disk: "{{ whole_disk_images | default(false) | bool }}"
|
||||||
tripleo_overcloud_image_upload_local: "{{ not undercloud_enable_nova | default(false) |bool }}"
|
tripleo_overcloud_image_upload_local: "{{ not undercloud_enable_nova | default(false) |bool }}"
|
||||||
tripleo_overcloud_image_upload_log: "{{ overcloud_image_upload_log }}"
|
tripleo_overcloud_image_upload_log: "{{ overcloud_image_upload_log }}"
|
||||||
|
@ -45,18 +45,7 @@
|
||||||
when:
|
when:
|
||||||
- step_register|bool
|
- step_register|bool
|
||||||
block:
|
block:
|
||||||
- name: Import and register overcloud nodes - legacy
|
|
||||||
when:
|
|
||||||
- release in ['queens', 'stein']
|
|
||||||
shell: >
|
|
||||||
set -o pipefail &&
|
|
||||||
{{ working_dir }}/overcloud-import-nodes.sh 2>&1 {{ timestamper_cmd }} >
|
|
||||||
{{ overcloud_import_nodes_log }}
|
|
||||||
changed_when: true
|
|
||||||
|
|
||||||
- name: Run import nodes via tripleo-operator-ansible
|
- name: Run import nodes via tripleo-operator-ansible
|
||||||
when:
|
|
||||||
- release not in ['queens', 'stein']
|
|
||||||
collections:
|
collections:
|
||||||
- tripleo.operator
|
- tripleo.operator
|
||||||
include_role:
|
include_role:
|
||||||
|
@ -114,17 +103,7 @@
|
||||||
- name: Run Introspection
|
- name: Run Introspection
|
||||||
when: step_introspect|bool
|
when: step_introspect|bool
|
||||||
block:
|
block:
|
||||||
- name: Introspect overcloud nodes - legacy
|
|
||||||
when: release in ['queens', 'stein']
|
|
||||||
shell: >
|
|
||||||
set -o pipefail &&
|
|
||||||
{{ working_dir }}/overcloud-introspect.sh 2>&1 {{ timestamper_cmd }} >
|
|
||||||
{{ overcloud_introspect_script_log }}
|
|
||||||
changed_when: true
|
|
||||||
|
|
||||||
- name: Run Introspection on overcloud nodes via tripleo-operator-ansible
|
- name: Run Introspection on overcloud nodes via tripleo-operator-ansible
|
||||||
when:
|
|
||||||
- release not in ['queens', 'stein']
|
|
||||||
collections:
|
collections:
|
||||||
- tripleo.operator
|
- tripleo.operator
|
||||||
include_role:
|
include_role:
|
||||||
|
@ -149,5 +128,4 @@
|
||||||
{{ inject_ara_log }}
|
{{ inject_ara_log }}
|
||||||
changed_when: true
|
changed_when: true
|
||||||
when:
|
when:
|
||||||
- release not in ['newton', 'ocata', 'pike', 'queens']
|
|
||||||
- undercloud_enable_mistral|bool
|
- undercloud_enable_mistral|bool
|
||||||
|
|
|
@ -23,9 +23,7 @@ source {{ working_dir }}/stackrc
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
openstack overcloud image upload
|
openstack overcloud image upload
|
||||||
{%- if containerized_undercloud|bool %}
|
|
||||||
--http-boot=/var/lib/ironic/httpboot
|
--http-boot=/var/lib/ironic/httpboot
|
||||||
{%- endif %}
|
|
||||||
{%- if whole_disk_images|bool %}
|
{%- if whole_disk_images|bool %}
|
||||||
--whole-disk
|
--whole-disk
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
|
@ -32,6 +32,6 @@ source {{ working_dir }}/stackrc
|
||||||
{% if step_introspect|bool %}
|
{% if step_introspect|bool %}
|
||||||
{% include 'overcloud-introspect.sh.j2' %}
|
{% include 'overcloud-introspect.sh.j2' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if release not in ['newton', 'ocata', 'pike', 'queens'] and undercloud_enable_mistral|bool %}
|
{% if undercloud_enable_mistral|bool %}
|
||||||
{% include 'inject-ara.sh.j2' %}
|
{% include 'inject-ara.sh.j2' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -23,36 +23,6 @@ if ! sudo iptables -nvL INPUT | grep "$COMMENT"; then
|
||||||
fi
|
fi
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if network_isolation|bool and not overcloud_ipv6|bool and (release in ['newton','ocata','pike','queens'] or not containerized_undercloud|bool) %}
|
|
||||||
## Setup Networking
|
|
||||||
## ----------------
|
|
||||||
|
|
||||||
## * Enable Masquerading for undercloud network.
|
|
||||||
## This is only useful before Rocky cycle.
|
|
||||||
## ::
|
|
||||||
|
|
||||||
sudo iptables -w -t nat -D POSTROUTING -j BOOTSTACK_MASQ_OVB || true
|
|
||||||
sudo iptables -w -t nat -X BOOTSTACK_MASQ_OVB || true
|
|
||||||
sudo iptables -w -t nat -N BOOTSTACK_MASQ_OVB
|
|
||||||
sudo iptables -w -t nat -A BOOTSTACK_MASQ_OVB -s {{ undercloud_network_cidr }} -d {{ undercloud_network_cidr }} -j RETURN
|
|
||||||
sudo iptables -w -t nat -A BOOTSTACK_MASQ_OVB -s {{ undercloud_network_cidr }} -j MASQUERADE
|
|
||||||
sudo iptables -w -t nat -I POSTROUTING -j BOOTSTACK_MASQ_OVB
|
|
||||||
sudo iptables -w -t nat -F BOOTSTACK_MASQ || true
|
|
||||||
sudo iptables -w -t nat -D POSTROUTING -j BOOTSTACK_MASQ || true
|
|
||||||
sudo iptables -w -t nat -X BOOTSTACK_MASQ || true
|
|
||||||
sudo iptables -w -t nat -E BOOTSTACK_MASQ_OVB BOOTSTACK_MASQ
|
|
||||||
|
|
||||||
## * Enable NAT for "external" network.
|
|
||||||
## ::
|
|
||||||
|
|
||||||
RULE="-s {{undercloud_external_network_cidr}} ! -d {{undercloud_external_network_cidr}} -j MASQUERADE"
|
|
||||||
if ! sudo iptables -t nat -C BOOTSTACK_MASQ $RULE; then
|
|
||||||
sudo iptables -t nat -A BOOTSTACK_MASQ $RULE
|
|
||||||
fi
|
|
||||||
|
|
||||||
sudo sh -c 'iptables-save > /etc/sysconfig/iptables'
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if network_isolation|bool and network_isolation_type in ['single-nic-vlans', 'single_nic_vlans', 'bond-with-vlans', 'bond_with_vlans', 'multiple-nics-vlans'] %}
|
{% if network_isolation|bool and network_isolation_type in ['single-nic-vlans', 'single_nic_vlans', 'bond-with-vlans', 'bond_with_vlans', 'multiple-nics-vlans'] %}
|
||||||
|
|
||||||
{% if network_isolation_type in ['single_nic_vlans', 'bond_with_vlans'] %}
|
{% if network_isolation_type in ['single_nic_vlans', 'bond_with_vlans'] %}
|
||||||
|
|
|
@ -6,7 +6,7 @@ An Ansible role for scaling and deleting nodes from an overcloud.
|
||||||
Requirements
|
Requirements
|
||||||
------------
|
------------
|
||||||
|
|
||||||
This role assumes it will be executed against a host on which a Liberty, Mitaka, Newton, or Ocata under/overcloud have already been deployed.
|
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.
|
**Note:** The validate-simple role must be accessible.
|
||||||
|
|
||||||
|
@ -63,13 +63,6 @@ Example Playbook
|
||||||
|
|
||||||
# General deployment info
|
# General deployment info
|
||||||
libvirt_args: "--libvirt-type qemu"
|
libvirt_args: "--libvirt-type qemu"
|
||||||
flavor_args: >-
|
|
||||||
--control-flavor {{flavor_map.control
|
|
||||||
if flavor_map is defined and 'control' in flavor_map else 'oooq_control'}}
|
|
||||||
--compute-flavor {{flavor_map.compute
|
|
||||||
if flavor_map is defined and 'compute' in flavor_map else 'oooq_compute'}}
|
|
||||||
--ceph-storage-flavor {{flavor_map.ceph
|
|
||||||
if flavor_map is defined and 'ceph' in flavor_map else 'oooq_ceph'}}
|
|
||||||
timeout_args: "--timeout {{ deploy_timeout }}"
|
timeout_args: "--timeout {{ deploy_timeout }}"
|
||||||
# Pulled this out so we can hand these configs to the openstack overcloud node delete command
|
# 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_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"
|
||||||
|
@ -83,7 +76,6 @@ Example Playbook
|
||||||
# Scale deployment arguments
|
# Scale deployment arguments
|
||||||
scale_args: >-
|
scale_args: >-
|
||||||
{{ libvirt_args }}
|
{{ libvirt_args }}
|
||||||
{{ flavor_args }}
|
|
||||||
{{ timeout_args }}
|
{{ timeout_args }}
|
||||||
{{ scale_extra_args }}
|
{{ scale_extra_args }}
|
||||||
|
|
||||||
|
|
|
@ -75,38 +75,20 @@ def _open_yaml(filename):
|
||||||
|
|
||||||
def create_enable_file(certpem, keypem, source_dir, dest_dir, tht_release):
|
def create_enable_file(certpem, keypem, source_dir, dest_dir, tht_release):
|
||||||
# environments/ssl/* is preferred starting with pike
|
# environments/ssl/* is preferred starting with pike
|
||||||
if tht_release in ['mitaka', 'newton', 'ocata']:
|
output_dict = _open_yaml("{}environments/ssl/enable-tls.yaml".format(source_dir))
|
||||||
output_dict = _open_yaml("{}environments/enable-tls.yaml".format(source_dir))
|
|
||||||
else:
|
|
||||||
output_dict = _open_yaml("{}environments/ssl/enable-tls.yaml".format(source_dir))
|
|
||||||
|
|
||||||
if tht_release == 'mitaka':
|
|
||||||
for key in output_dict["parameter_defaults"]["EndpointMap"]:
|
|
||||||
if output_dict["parameter_defaults"]["EndpointMap"][key]["host"] == "CLOUDNAME":
|
|
||||||
output_dict["parameter_defaults"]["EndpointMap"][key]["host"] = "IP_ADDRESS"
|
|
||||||
|
|
||||||
output_dict["parameter_defaults"]["SSLCertificate"] = certpem
|
output_dict["parameter_defaults"]["SSLCertificate"] = certpem
|
||||||
output_dict["parameter_defaults"]["SSLKey"] = keypem
|
output_dict["parameter_defaults"]["SSLKey"] = keypem
|
||||||
|
|
||||||
# NoteTLSData has been deprecated/removed in rocky and onwards
|
|
||||||
if tht_release in ['mitaka', 'newton', 'ocata', 'pike', 'queens']:
|
|
||||||
output_dict["resource_registry"]["OS::TripleO::NodeTLSData"] = \
|
|
||||||
"{}/puppet/extraconfig/tls/tls-cert-inject.yaml".format(source_dir)
|
|
||||||
|
|
||||||
with open("{}enable-tls.yaml".format(dest_dir), "w") as stream:
|
with open("{}enable-tls.yaml".format(dest_dir), "w") as stream:
|
||||||
yaml.safe_dump(output_dict, stream, default_style='|')
|
yaml.safe_dump(output_dict, stream, default_style='|')
|
||||||
|
|
||||||
|
|
||||||
def create_anchor_file(cert_ca_pem, source_dir, dest_dir, enable_tls_overcloud, tht_release):
|
def create_anchor_file(cert_ca_pem, source_dir, dest_dir, enable_tls_overcloud, tht_release):
|
||||||
|
|
||||||
if tht_release in ['mitaka', 'newton', 'ocata']:
|
output_dict = _open_yaml(
|
||||||
output_dict = _open_yaml(
|
"{}environments/ssl/inject-trust-anchor.yaml".format(source_dir)
|
||||||
"{}environments/inject-trust-anchor.yaml".format(source_dir)
|
)
|
||||||
)
|
|
||||||
else:
|
|
||||||
output_dict = _open_yaml(
|
|
||||||
"{}environments/ssl/inject-trust-anchor.yaml".format(source_dir)
|
|
||||||
)
|
|
||||||
|
|
||||||
if enable_tls_overcloud:
|
if enable_tls_overcloud:
|
||||||
ca_map = {"overcloud-ca": {"content": cert_ca_pem}}
|
ca_map = {"overcloud-ca": {"content": cert_ca_pem}}
|
||||||
|
|
Loading…
Reference in New Issue