Open port 8101 on controllers for karaf 63/60163/3
authorTim Rozet <trozet@redhat.com>
Tue, 24 Jul 2018 15:21:06 +0000 (11:21 -0400)
committerTim Rozet <trozet@redhat.com>
Tue, 24 Jul 2018 19:40:40 +0000 (15:40 -0400)
By default 8101 (karaf shell) is blocked on controllers. In Apex we
advertise in our user guide (and tools scripts) the ability to connect
to karaf shell. It is also required to run CSIT. This patch opens the
port when ODL is deployed.

Change-Id: Ib3ece41f19607bafc329d9de390cf774766a26cd
Signed-off-by: Tim Rozet <trozet@redhat.com>
lib/ansible/playbooks/post_deploy_overcloud.yml

index 212d2cf..372aea4 100644 (file)
       when:
         - sdn == 'opendaylight'
         - "'controller' in ansible_hostname"
+    - name: Open port 8101 (karaf shell) for ODL
+      iptables:
+        chain: INPUT
+        action: insert
+        protocol: tcp
+        destination_port: 8101
+        jump: ACCEPT
+        rule_num: 1
+      become: yes
+      when:
+        - sdn == 'opendaylight'
+        - "'controller' in ansible_hostname"
+    - name: save iptables
+      command: service iptables save
+      become: yes