blob: a2aec01a6a769313860db928760de4aac2b20f2a [file] [log] [blame]
Andy Baviera4cf1a72017-10-16 16:10:12 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
17---
18# test-mcord-base/tasks/main.yml
19# Run tests to check that the base elements of M-CORD are present
20
21- name: Wait for networks to be synchronized
22 shell: bash -c "source /opt/cord_profile/admin-openrc.sh; neutron net-list|grep '{{ item }}' > /dev/null"
23 register: result
24 until: result | success
25 retries: 10
26 delay: 60
27 with_items:
28 - management
29 - sgi_network
30 tags:
31 - skip_ansible_lint # running a sub job
32
33- name: Wait for VMs to come up
34 shell: bash -c "source /opt/cord_profile/admin-openrc.sh; nova list --all-tenants|grep '{{ item }}.*ACTIVE' > /dev/null"
35 register: result
36 until: result | success
37 retries: 10
38 delay: 60
39 with_items:
40 - internetemulator
41 tags:
42 - skip_ansible_lint # running a sub job