fix for : remove os-faults bug and commented ha checks

Change-Id: Idfbf68b1ed2f3db22884c6e1c5273a03c01f3b56
This commit is contained in:
pinikomarov 2020-03-08 13:15:54 +02:00
parent e67421603c
commit 7f1c6274ea
2 changed files with 6 additions and 11 deletions

View File

@ -1,9 +1,3 @@
- name: Create os-faults configuration file
template:
src: "templates/os-faults.yaml.j2"
dest: "~/os-faults.yaml"
mode: 0755
- name: Set up Overcloud resources create ssh keys
shell: |
test -f ~/.ssh/id_rsa||ssh-keygen -f ~/.ssh/id_rsa -P ''

View File

@ -10,21 +10,22 @@ from tobiko.tripleo import pacemaker
from tobiko.tripleo import processes
from tobiko.tripleo import containers
from tobiko.tripleo import nova
from tobiko.tripleo import neutron
from tobiko.openstack import stacks
import tobiko
def overcloud_health_checks(passive_checks_only=False):
# this method will be changed in future commit
# check_pacemaker_resources_health()
# check_overcloud_processes_health()
# nova.check_nova_services_health()
# neutron.check_neutron_agents_health()
check_pacemaker_resources_health()
check_overcloud_processes_health()
nova.check_nova_services_health()
neutron.check_neutron_agents_health()
if not passive_checks_only:
# create a uniq stack
check_vm_create(stack_name='stack{}'.format(random.randint(0, 10000)))
nova.start_all_instances()
# containers.assert_all_tripleo_containers_running()
containers.assert_all_tripleo_containers_running()
containers.assert_equal_containers_state()