Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-12884

BZ#2240803 [OSP17]Ping is answered by fip when only some ports are forwarded

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Moderate

      Description of problem:
      When port forwarding using fip is enable only for some ports. Fip is answering to ping.

      Version-Release number of selected component (if applicable):

      How reproducible:
      execute test case:
      (overcloud) [stack@undercloud-0 tempest_17.1]$ tempest run -r "test_port_forwarding_editing_and_deleting_tcp_rule"

      with pdb breakpoint:
      neutron_tempest_plugin/scenario/test_port_forwardings.py:
      ...
      168
      169 # Check connectivity with the new parameters
      170 server[0]['port_forwarding_tcp']['external_port'] = test_ext_port
      171 import sys; sys.stdin = open('/dev/tty'); import pdb; pdb.set_trace();
      172 -> utils.wait_until_true(
      173 fip_pf_connectivity,
      174 exception=RuntimeError(
      175 "Connection to the server

      {!r}

      through "
      ...

      check fip ip used:

      (Pdb) p server[0]['id']
      'f00332c4-7083-4f23-9e5f-647112becf39'
      (Pdb) p server[0]['port_forwarding_tcp']['floatingip_ip']

          • KeyError: 'floatingip_ip'
            (Pdb) p server[0]['port_forwarding_tcp']['floatingip']
          • KeyError: 'floatingip'
            (Pdb) pp server[0]['port_forwarding_tcp'] {'client': <neutron_tempest_plugin.services.network.json.network_client.NetworkClientJSON object at 0x7efdfc0fcc10>, 'description': '', 'external_port': 3333, 'floatingip_id': '6b625fce-f3fe-46cc-b4ee-5e4448cde05a', 'id': '1a3160d0-2cfe-44d1-ad8e-c42c79d342f3', 'internal_ip_address': '10.100.0.26', 'internal_port': 22, 'internal_port_id': 'c5395e34-27f6-46c3-b1c3-8f582bc4b101', 'protocol': 'tcp'}

            (Pdb)

      and try ping from the undercloud:

      (overcloud) [stack@undercloud-0 ~]$ ping 10.218.0.185
      PING 10.218.0.185 (10.218.0.185) 56(84) bytes of data.
      64 bytes from 10.218.0.185: icmp_seq=1 ttl=64 time=0.840 ms
      64 bytes from 10.218.0.185: icmp_seq=2 ttl=64 time=0.502 ms

      (overcloud) [stack@undercloud-0 ~]$ openstack floating ip port forwarding list 6b625fce-f3fe-46cc-b4ee-5e4448cde05a
      ------------------------------------------------------------------------------------------------------------------------------------------

      ID Internal Port ID Internal IP Address Internal Port External Port Protocol Description

      ------------------------------------------------------------------------------------------------------------------------------------------

      1a3160d0-2cfe-44d1-ad8e-c42c79d342f3 c5395e34-27f6-46c3-b1c3-8f582bc4b101 10.100.0.26 22 3333 tcp  
      bc99f1bb-d7aa-4884-8fda-4db8ea05ab6b c5395e34-27f6-46c3-b1c3-8f582bc4b101 10.100.0.26 32 1056 udp  

      ------------------------------------------------------------------------------------------------------------------------------------------
      (overcloud) [stack@undercloud-0 ~]$ openstack server list --all
      ------------------------------------------------------------------------------------------------------------------------------------------------------+

      ID Name Status Networks Image Flavor

      ------------------------------------------------------------------------------------------------------------------------------------------------------+

      f00332c4-7083-4f23-9e5f-647112becf39 tempest-server-1-2052494145 ACTIVE tempest-test-network--1484381793=10.100.0.26 cirros-0.5.2-x86_64-disk.img m1.nano

      Steps to Reproduce:
      1.
      2.
      3.

      Actual results:

      Expected results:

      Additional info:

              froyo@redhat.com Fernando Royo
              jira-bugzilla-migration RH Bugzilla Integration
              Candido Campos Rivas Candido Campos Rivas
              rhos-dfg-networking-squad-neutron
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: