Remove sanity checks

"Smoke tests" for barbican, cinder, glance and keystone have been removed as discussed in PTG April 2022.

Signed-off-by: Tim Beermann <beermann@osism.tech>
Change-Id: I613287a31e0ea6aede070e7e9c519ab2f5f182bd
This commit is contained in:
Tim Beermann 2022-04-28 12:33:31 +02:00 committed by Christian Berendt
parent 3c5f25fc4e
commit 591f366ed7
14 changed files with 18 additions and 142 deletions

View File

@ -51,13 +51,6 @@ kolla_external_vip_address: "{{ kolla_internal_vip_address }}"
kolla_same_external_internal_vip: "{{ kolla_external_vip_address == kolla_internal_vip_address }}"
kolla_external_fqdn: "{{ kolla_internal_fqdn if kolla_same_external_internal_vip | bool else kolla_external_vip_address }}"
kolla_enable_sanity_checks: "no"
kolla_enable_sanity_barbican: "{{ kolla_enable_sanity_checks }}"
kolla_enable_sanity_keystone: "{{ kolla_enable_sanity_checks }}"
kolla_enable_sanity_glance: "{{ kolla_enable_sanity_checks }}"
kolla_enable_sanity_cinder: "{{ kolla_enable_sanity_checks }}"
kolla_dev_repos_directory: "/opt/stack/"
kolla_dev_repos_git: "https://opendev.org/openstack"
kolla_dev_repos_pull: "no"

View File

@ -1,40 +0,0 @@
---
- name: Barbican sanity - storing a secret
become: true
shell: >
set -o pipefail && \
docker exec -t barbican_api openstack \
--os-auth-url={{ openstack_auth.auth_url }} \
--os-password={{ openstack_auth.password }} \
--os-username={{ openstack_auth.username }} \
--os-system-scope={{ openstack_auth.system_scope }}
secret store -f value -p kolla | head -1
register: barbican_store_secret
run_once: True
when: kolla_enable_sanity_barbican | bool
- name: Barbican sanity - fetch secret
become: true
command: >
docker exec -t barbican_api openstack
--os-auth-url={{ openstack_auth.auth_url }}
--os-password={{ openstack_auth.password }}
--os-username={{ openstack_auth.username }}
--os-system-scope={{ openstack_auth.system_scope }}
secret get -f value -p {{ barbican_store_secret.stdout }}
register: barbican_get_secret
failed_when: barbican_get_secret.stdout != 'kolla'
run_once: True
when: kolla_enable_sanity_barbican | bool
- name: Barbican sanity - cleaning up
become: true
command: >
docker exec -t barbican_api openstack
--os-auth-url={{ openstack_auth.auth_url }}
--os-password={{ openstack_auth.password }}
--os-username={{ openstack_auth.username }}
--os-system-scope={{ openstack_auth.system_scope }}
secret delete {{ barbican_store_secret.stdout }}
run_once: True
when: kolla_enable_sanity_barbican | bool

View File

@ -1,29 +0,0 @@
---
- name: Cinder sanity check - create volume
become: true
kolla_toolbox:
module_name: os_volume
module_args:
auth: "{{ openstack_cinder_auth }}"
state: present
size: 1
display_name: kolla_test_volume
endpoint_type: "{{ openstack_interface }}"
cacert: "{{ openstack_cacert }}"
run_once: True
delegate_to: "{{ groups['cinder-api'][0] }}"
when: kolla_enable_sanity_cinder | bool
- name: Cinder sanity check - cleanup volume
become: true
kolla_toolbox:
module_name: os_volume
module_args:
auth: "{{ openstack_cinder_auth }}"
state: absent
display_name: kolla_test_volume
endpoint_type: "{{ openstack_interface }}"
cacert: "{{ openstack_cacert }}"
run_once: True
delegate_to: "{{ groups['cinder-api'][0] }}"
when: kolla_enable_sanity_cinder | bool

View File

@ -12,5 +12,3 @@
- name: Flush handlers
meta: flush_handlers
- import_tasks: check.yml

View File

@ -1,32 +0,0 @@
---
- name: Glance sanity check - create image
become: true
kolla_toolbox:
module_name: os_image
module_args:
auth: "{{ openstack_glance_auth }}"
name: "glance_sanity_check"
filename: "/etc/hostname"
endpoint_type: "{{ openstack_interface }}"
cacert: "{{ openstack_cacert }}"
delegate_to: "{{ groups['glance-api'][0] }}"
run_once: True
register: img_create
retries: 10
delay: 3
until: img_create is success
when: kolla_enable_sanity_glance | bool
- name: Glance sanity check - cleanup
become: true
kolla_toolbox:
module_name: os_image
module_args:
auth: "{{ openstack_glance_auth }}"
name: "glance_sanity_check"
state: absent
endpoint_type: "{{ openstack_interface }}"
cacert: "{{ openstack_cacert }}"
delegate_to: "{{ groups['glance-api'][0] }}"
run_once: True
when: kolla_enable_sanity_glance | bool

View File

@ -13,5 +13,3 @@
- name: Flush handlers
meta: flush_handlers
- import_tasks: check.yml

View File

@ -1,12 +0,0 @@
---
- name: Keystone sanity checks
become: true
kolla_toolbox:
module_name: os_auth
module_args:
auth: "{{ openstack_keystone_auth }}"
endpoint_type: "{{ openstack_interface }}"
cacert: "{{ openstack_cacert }}"
run_once: True
delegate_to: "{{ groups['keystone'][0] }}"
when: kolla_enable_sanity_keystone | bool

View File

@ -18,8 +18,6 @@
- import_tasks: register.yml
- import_tasks: check.yml
- include_tasks: register_identity_providers.yml
when:
- enable_keystone_federation | bool

View File

@ -221,9 +221,6 @@ service.
``kolla-ansible -i INVENTORY upgrade`` is used to upgrades existing OpenStack
Environment.
``kolla-ansible -i INVENTORY check`` is used to do post-deployment smoke
tests.
``kolla-ansible -i INVENTORY stop`` is used to stop running containers.
``kolla-ansible -i INVENTORY deploy-containers`` is used to check and if
@ -241,10 +238,6 @@ used to set environment specific details.
``kolla-ansible -i INVENTORY gather-facts`` is used to gather Ansible facts,
for example to populate a fact cache.
.. note::
In order to do smoke tests, requires ``kolla_enable_sanity_checks=yes``.
Using Hashicorp Vault for password storage
------------------------------------------

View File

@ -0,0 +1,18 @@
---
deprecations:
- |
In the April 2022 PTG the deprecation and removal of the sanity
checks has been confirmed. Therefore the usage of
.. code-block:: bash
kolla-ansible check
is not possible any more.
features:
- |
Sanity checks have been removed. These "smoke tests" orignially
were implemented for barbican, cinder, glance and keystone.
upgrade:
- |
Sanity checks have been removed because they were broken.

View File

@ -21,7 +21,6 @@ function deploy {
kolla-ansible -i ${RAW_INVENTORY} -vvv pull &> /tmp/logs/ansible/pull
kolla-ansible -i ${RAW_INVENTORY} -vvv deploy &> /tmp/logs/ansible/deploy
kolla-ansible -i ${RAW_INVENTORY} -vvv post-deploy &> /tmp/logs/ansible/post-deploy
kolla-ansible -i ${RAW_INVENTORY} -vvv check &> /tmp/logs/ansible/check-deploy
}

View File

@ -14,7 +14,6 @@ function reconfigure {
# trigger a real reconfigure
kolla-ansible -i ${RAW_INVENTORY} -vvv prechecks &> /tmp/logs/ansible/reconfigure-prechecks
kolla-ansible -i ${RAW_INVENTORY} -vvv reconfigure &> /tmp/logs/ansible/reconfigure
kolla-ansible -i ${RAW_INVENTORY} -vvv check &> /tmp/logs/ansible/check-reconfigure
}

View File

@ -13,7 +13,6 @@ function upgrade {
kolla-ansible -i ${RAW_INVENTORY} -vvv prechecks &> /tmp/logs/ansible/upgrade-prechecks
kolla-ansible -i ${RAW_INVENTORY} -vvv pull &> /tmp/logs/ansible/pull-upgrade
kolla-ansible -i ${RAW_INVENTORY} -vvv upgrade &> /tmp/logs/ansible/upgrade
kolla-ansible -i ${RAW_INVENTORY} -vvv check &> /tmp/logs/ansible/check-upgrade
}

View File

@ -173,7 +173,6 @@ Environment variables:
Commands:
install-deps Install Ansible Galaxy dependencies
prechecks Do pre-deployment checks for hosts
check Do post-deployment smoke tests
mariadb_recovery Recover a completely stopped mariadb cluster
mariadb_backup Take a backup of MariaDB databases
--full (default)
@ -224,7 +223,6 @@ cat <<EOF
--version
install-deps
prechecks
check
mariadb_recovery
mariadb_backup
monasca_cleanup
@ -426,10 +424,6 @@ case "$1" in
ACTION="Pre-deployment checking"
EXTRA_OPTS="$EXTRA_OPTS -e kolla_action=precheck"
;;
(check)
ACTION="Post-deployment checking"
EXTRA_OPTS="$EXTRA_OPTS -e kolla_action=check"
;;
(mariadb_recovery)
ACTION="Attempting to restart mariadb cluster"
EXTRA_OPTS="$EXTRA_OPTS -e kolla_action=deploy"