Browse Source

Use static inventory for component CI role and clean component list

* Use static inventory for tripleo-validations role for component CI
* Remove nova-svirt from the component compute list since this validation
is not made for running on Standalone deployment.
* Moving neutron-sanity-check to undercloud-neutron-sanity-check because
this validation is made for being kicked against an Overcloud
* And replace disk-check by process count for Component CI PoC

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I2de47f7226c232226712cf45be7d1dfb4b62873a
(cherry picked from commit 9f5b4167ba)
changes/91/786791/1
Mathieu Bultel 3 months ago
committed by mbu
parent
commit
610a0384a5
3 changed files with 4 additions and 4 deletions
  1. +1
    -0
      roles/tripleo_validations/defaults/main.yml
  2. +1
    -1
      roles/tripleo_validations/tasks/run.yml
  3. +2
    -3
      roles/tripleo_validations/vars/main.yml

+ 1
- 0
roles/tripleo_validations/defaults/main.yml View File

@ -2,6 +2,7 @@
val_working_dir: "{{ working_dir }}"
validation_log_dir: "/var/log/validations"
validation_environment: "{{ job.environment_type|default('undercloud') }}"
tripleo_inventory: "tripleo-ansible-inventory.yaml"
# Passing default to component, allow to run the role outside of CI
component: "{{ job.component|default(None) }}"
# both commands can be used:


+ 1
- 1
roles/tripleo_validations/tasks/run.yml View File

@ -13,7 +13,7 @@
register: run_validation_list
shell: |
export OS_CLOUD={{ validation_environment }}
{{ validation_command }} run --validation {{ item }} > validation_{{ item }}.log 2>&1
{{ validation_command }} run --validation {{ item }} --static-inventory {{ val_working_dir }}/{{ tripleo_inventory }} > validation_{{ item }}.log 2>&1
when:
- run_from_list|bool
loop: "{{ validations_list[component] }}"


+ 2
- 3
roles/tripleo_validations/vars/main.yml View File

@ -2,15 +2,14 @@
validations_list:
compute:
- nova-status
- nova-svirt
network:
- neutron-sanity-check
- undercloud-neutron-sanity-check
validation:
- check-ram
- check-cpu
- 512e
tripleo:
- undercloud-disk-space
- undercloud-process-count
validations_group:
compute:
- compute


Loading…
Cancel
Save