Skip to content

interface won't be reached with packetcapture cube attached #281

@goldenrye

Description

@goldenrye

Describe the bug

After attach a packetcapture cube to an host interface, the interface won't be reached from other hosts

To Reproduce

Steps to reproduce the behavior:

  1. create packetcapture cube with the following command
    polycubectl packetcapture add pc1 capture=bidirectional
    polycubectl pc1 set filter="host 4.4.4.2" (4.4.4.2 is ip address of another host connecting to the the host polycubed is running)
    polycubectl pc1 set dump="/tmp/jpi"
  2. attach the cube to one of host interface, in my case interface name is "ens9" with ip "4.4.4.12"
    polycubectl attach pc1 ens9
  3. ping ens9 from host 4.4.4.2
  4. ens9 is not able to reach

Expected behavior

Before attaching the cube to the interface, ens9 is reachable from other hosts; with cube enable it should be keep the same behavior

Please tell us about your environment:

  1. Ubuntu 18.04.1 LTS
  2. 5.2.0-050200-generic
  3. polycube version information
    polycubectl:
    version: -128-NOTFOUND+ [git: (branch/commit): master/f199ac1b]
    polycubed:
    version: -128-NOTFOUND+ [git: (branch/commit): master/f199ac1b]
  4. Polycube Log: Attach the log from /var/log/polycube/polycubed.log

Additional context

dumped packet information

tcpdump -r /tmp/jpi.pcap -n
12:09:22.570537 IP 4.4.4.12 > 4.4.4.2: ICMP echo reply, id 18252, seq 4, length 64
12:09:22.570582 IP 4.4.4.12 > 4.4.4.2: ICMP echo reply, id 18252, seq 1, length 64
12:09:22.570626 IP 4.4.4.12 > 4.4.4.2: ICMP echo reply, id 18252, seq 3, length 64
12:09:22.570682 IP 4.4.4.12 > 4.4.4.2: ICMP echo reply, id 18252, seq 2, length 64
12:09:22.570727 IP 4.4.4.12 > 4.4.4.2: ICMP echo reply, id 18252, seq 4, length 64
12:09:22.570771 IP 4.4.4.12 > 4.4.4.2: ICMP echo reply, id 18252, seq 1, length 64
12:09:22.570815 IP 4.4.4.12 > 4.4.4.2: ICMP echo reply, id 18252, seq 3, length 64

looks the host replies the icmp request indefinitely

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions