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

This commit is contained in:
Zuul 2020-03-08 13:39:19 +00:00 committed by Gerrit Code Review
commit 8b14eba327
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()