Fix tripleo-validations : roles not found

This is due to a missing package and some poor static vars
which I remove here..

EROROR messages:
ERROR! the role 'haproxy' was not found in /home/stack/tripleo-validations/playbooks/roles:/home/stack/.ansible/roles:/var/log/validations/artifacts/c658cc41-926c-42a1-8933-ad37da38aa4d_haproxy.yaml_2020-07-03T22:/var/log/validations/artifacts/c658cc41-926c-42a1-8933-ad37da38aa4d_haproxy.yaml_2020-07-03T22:55:33.205590Z/runner_di_bi277gxt/55:/var/log/validations/artifacts/c658cc41-926c-42a1-8933-ad37da38aa4d_haproxy.yaml_2020-07-03T22:55:33.205590Z/runner_di_bi277gxt/33.205590Z/roles:/home/stack/tobiko/roles:/usr/share/ansible/roles:/usr/share/ceph-ansible/roles:/etc/ansible/roles:/usr/share/validations-common/roles:/home/stack/tripleo-validations/playbooks

The error appears to be in '/home/stack/tripleo-validations/playbooks/haproxy.yaml': line 17, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  roles:
    - haproxy
      ^ here

Change-Id: Ib4879a848da7022723566b3ecb4422640d8a8268
This commit is contained in:
pinikomarov 2020-07-04 03:27:16 +03:00
parent 7b6a838ed8
commit 1cc654103b
2 changed files with 9 additions and 11 deletions

View File

@ -60,9 +60,11 @@
- name: "show last change details" - name: "show last change details"
debug: var=get_git_log.stdout_lines debug: var=get_git_log.stdout_lines
#we need also the master here so we are on the latest branch of validations #we install validations-common here since it's
- name: "get validation-framework master checks" #packaged by rhel-osp
git: - name: install validations-common
repo: https://github.com/openstack/tripleo-validations.git ignore_errors: yes
dest: "{{ ansible_env.HOME }}/tripleo-validations" become: true
version: master package:
name: validations-common
state: present

View File

@ -15,7 +15,6 @@ from __future__ import absolute_import
from oslo_log import log from oslo_log import log
from validations_libs import validation_actions from validations_libs import validation_actions
from validations_libs import constants as v_consts
from tobiko.tripleo import overcloud from tobiko.tripleo import overcloud
from tobiko.openstack import topology from tobiko.openstack import topology
@ -24,8 +23,6 @@ from tobiko.shell import sh
LOG = log.getLogger(__name__) LOG = log.getLogger(__name__)
v_consts.DEFAULT_VALIDATIONS_BASEDIR = '/home/stack/tripleo-validations'
def prepare_ansible_hosts_inventory(): def prepare_ansible_hosts_inventory():
"""create a hosts.yaml with ansible connections' """create a hosts.yaml with ansible connections'
@ -44,8 +41,7 @@ def run_post_deployment_validations():
if overcloud.has_overcloud(): if overcloud.has_overcloud():
prepare_ansible_hosts_inventory() prepare_ansible_hosts_inventory()
failures = [] failures = []
validates_object = validation_actions.ValidationActions( validates_object = validation_actions.ValidationActions()
validation_path='/home/stack/tripleo-validations/playbooks')
validations_result = validates_object.run_validations( validations_result = validates_object.run_validations(
group='post-deployment', group='post-deployment',
quiet=False, quiet=False,