Updated "overcloud" to "allovercloud" group
Apparently this is the new term to access all the overcloud nodes.
Closes-Bug: #1891267
Change-Id: I07fd17501ea66d229549fcf4031ae4126b055906
(cherry picked from commit 1a4991daf3
)
This commit is contained in:
parent
f8d7882f33
commit
015dab217e
|
@ -126,7 +126,7 @@ As shown here, the validation playbook requires three top-level directives:
|
|||
|
||||
``hosts`` specify which nodes to run the validation on. Based on the
|
||||
``hosts.sample`` structure, the options can be ``all`` (run on all nodes),
|
||||
``undercloud``, ``overcloud`` (all overcloud nodes), ``controller`` and
|
||||
``undercloud``, ``allovercloud`` (all overcloud nodes), ``controller`` and
|
||||
``compute``.
|
||||
|
||||
The ``vars`` section serves for storing variables that are going to be
|
||||
|
@ -190,7 +190,7 @@ inventory file. It should look something like this::
|
|||
[undercloud]
|
||||
undercloud.example.com
|
||||
|
||||
[overcloud:children]
|
||||
[allovercloud:children]
|
||||
controller
|
||||
compute
|
||||
|
||||
|
@ -208,7 +208,7 @@ inventory file. It should look something like this::
|
|||
It will have a ``[group]`` section for each role (``undercloud``,
|
||||
``controller``, ``compute``) listing all the nodes belonging to that group. It
|
||||
is also possible to create a group from other groups as done with
|
||||
``[overcloud:children]`` in the above example. If a validation specifies
|
||||
``[allovercloud:children]`` in the above example. If a validation specifies
|
||||
``hosts: overcloud``, it will be run on any node that belongs to the
|
||||
``compute`` or ``controller`` groups. If a node happens to belong to both, the
|
||||
validation will only be run once.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- hosts: overcloud
|
||||
- hosts: allovercloud
|
||||
vars:
|
||||
metadata:
|
||||
name: Check if Ceph dependencies are installed
|
||||
|
@ -9,7 +9,7 @@
|
|||
- pre-deployment
|
||||
- pre-ceph
|
||||
fail_without_deps: true
|
||||
tripleo_delegate_to: "{{ groups['overcloud'] | default([]) }}"
|
||||
tripleo_delegate_to: "{{ groups['allovercloud'] | default([]) }}"
|
||||
packages:
|
||||
- lvm2
|
||||
tasks:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- hosts: undercloud, overcloud
|
||||
- hosts: undercloud, allovercloud
|
||||
vars:
|
||||
metadata:
|
||||
name: XFS ftype check
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- hosts: undercloud, overcloud
|
||||
- hosts: undercloud, allovercloud
|
||||
vars:
|
||||
metadata:
|
||||
name: Ensure container status
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- hosts: undercloud, overcloud
|
||||
- hosts: undercloud, allovercloud
|
||||
vars:
|
||||
metadata:
|
||||
name: Verify DNS
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- hosts: undercloud, overcloud
|
||||
- hosts: undercloud, allovercloud
|
||||
vars:
|
||||
metadata:
|
||||
name: Healthcheck systemd services Check
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- hosts: undercloud, overcloud
|
||||
- hosts: undercloud, allovercloud
|
||||
vars:
|
||||
metadata:
|
||||
name: NO-OP validation
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- hosts: overcloud
|
||||
- hosts: allovercloud
|
||||
vars:
|
||||
metadata:
|
||||
name: Verify all deployed nodes have their clock synchronised
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- hosts: undercloud, overcloud
|
||||
- hosts: undercloud, allovercloud
|
||||
gather_facts: true
|
||||
vars:
|
||||
metadata:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- hosts: undercloud, overcloud
|
||||
- hosts: undercloud, allovercloud
|
||||
vars:
|
||||
metadata:
|
||||
name: Ensure services state
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- hosts: overcloud
|
||||
- hosts: allovercloud
|
||||
vars:
|
||||
metadata:
|
||||
name: Confirm that overcloud nodes are setup correctly
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
- name: Collect IPs for overcloud nodes
|
||||
- name: Collect IPs for allovercloud nodes
|
||||
set_fact: ansible_host="{{ hostvars[item]['ansible_host'] }}"
|
||||
register: oc_ips
|
||||
with_items: "{{ groups.overcloud }}"
|
||||
with_items: "{{ groups.allovercloud }}"
|
||||
|
||||
- name: Ping all overcloud nodes
|
||||
icmp_ping:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
- name: Set fact to identify if the overcloud was deployed
|
||||
set_fact:
|
||||
overcloud_deployed: "{{ groups['overcloud'] is defined }}"
|
||||
overcloud_deployed: "{{ groups['allovercloud'] is defined }}"
|
||||
|
||||
- name: Warn if no overcloud deployed yet
|
||||
warn:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
- name: Set fact to identify if the overcloud was deployed
|
||||
set_fact:
|
||||
overcloud_deployed: "{{ groups['overcloud'] is defined }}"
|
||||
overcloud_deployed: "{{ groups['allovercloud'] is defined }}"
|
||||
|
||||
# Check that the Horizon endpoint exists
|
||||
- name: Fail if the HorizonPublic endpoint is not defined
|
||||
|
|
Loading…
Reference in New Issue