Merge "Fix tripleo-validations : roles not found"

This commit is contained in:
Zuul 2020-07-05 23:17:05 +00:00 committed by Gerrit Code Review
commit 7e398908ba
2 changed files with 9 additions and 11 deletions

View File

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

View File

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