Browse Source

Don't jump straight to openstack-INPUT

Change-Id: Ic573df062ada239d085dcc3ade70bc22fa027f79
changes/24/523824/4
Flavio Percoco 1 year ago
parent
commit
42c9c6866c
2 changed files with 16 additions and 0 deletions
  1. 7
    0
      tests/pre.yml
  2. 9
    0
      tests/templates/playbook.j2

+ 7
- 0
tests/pre.yml View File

@@ -19,6 +19,13 @@
19 19
         - "logs"
20 20
         - "logs/containers"
21 21
 
22
+    - name: "iptables: don't jump straight to openstack-INPUT"
23
+      become: true
24
+      iptables:
25
+        chain: "INPUT"
26
+        jump: "openstack-INPUT"
27
+        state: absent
28
+
22 29
     - include: pre_rhel.yml
23 30
       when: ansible_os_family == 'RedHat'
24 31
 

+ 9
- 0
tests/templates/playbook.j2 View File

@@ -18,6 +18,15 @@
18 18
       playbook_debug: false
19 19
 
20 20
   tasks:
21
+    - name: Call netchecker
22
+      shell:
23
+        cmd: |
24
+          set -eux
25
+          curl http://localhost:31081/api/v1/connectivity_check
26
+        executable: /bin/bash
27
+      register: netchecker
28
+      ignore_errors: yes
29
+
21 30
     - include: "{% raw %}{{ item }}{% endraw %}"
22 31
       with_first_found:
23 32
         - files:

Loading…
Cancel
Save