RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1366159 - [Q35] ssh failed through vlan interface when boot guest with e1000e device
Summary: [Q35] ssh failed through vlan interface when boot guest with e1000e device
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev
Version: 7.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: jason wang
QA Contact: jingzhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-11 08:17 UTC by jingzhao
Modified: 2017-11-27 05:40 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-27 05:40:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
tcpdump file (104 bytes, application/x-shellscript)
2016-08-11 08:17 UTC, jingzhao
no flags Details
icmp.cap (734 bytes, application/octet-stream)
2016-12-26 07:36 UTC, jingzhao
no flags Details

Description jingzhao 2016-08-11 08:17:18 UTC
Created attachment 1189949 [details]
tcpdump file

Description of problem:
ssh failed through vlan interface

Version-Release number of selected component (if applicable):
host kernel:3.10.0-488.el7.x86_64
qemu-kvm-rhev-2.6.0-19.el7.x86_64

How reproducible:
3/3

Steps to Reproduce:
1. Boot 2 guest with following cli:
/usr/libexec/qemu-kvm \
-M q35 \
-cpu SandyBridge \
-nodefaults -rtc base=utc \
-m 4G \
-smp 2,sockets=2,cores=1,threads=1 \
-enable-kvm \
-name rhel7.3 \
-uuid 990ea161-6b67-47b2-b803-19fb01d30d12 \
-smbios type=1,manufacturer='Red Hat',product='RHEV Hypervisor',version=el6,serial=koTUXQrb,uuid=feebc8fd-f8b0-4e75-abc3-e63fcdb67170 \
-k en-us \
-serial unix:/tmp/console,server,nowait \
-boot menu=on \
-bios /usr/share/seabios/bios.bin \
-chardev file,path=/home/e1000e/seabios.log,id=seabios \
-device isa-debugcon,chardev=seabios,iobase=0x402 \
-qmp tcp::8887,server,nowait \
-vga qxl \
-spice port=5932,disable-ticketing \
-device ioh3420,id=root.0,slot=1 \
-drive file=/home/q35-seabios.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none,werror=stop,rerror=stop \
-device virtio-blk-pci,bus=root.0,drive=drive-virtio-disk0,id=virtio-disk0,disable-legacy=on,disable-modern=off,bootindex=1 \
-device ioh3420,id=root.1,slot=2 \
-device x3130-upstream,bus=root.1,id=upstream1 \
-device xio3130-downstream,bus=upstream1,id=downstream1,chassis=1 \
-device xio3130-downstream,bus=upstream1,id=downstream2,chassis=2 \
-device xio3130-downstream,bus=upstream1,id=downstream3,chassis=3 \
-device ioh3420,id=root.2,slot=3 \
-netdev tap,id=hostnet1 \
-device e1000e,netdev=hostnet1,id=net1,mac=54:52:00:B6:40:22,bus=downstream3 \
-monitor stdio \


/usr/libexec/qemu-kvm \
-M q35 \
-cpu SandyBridge \
-nodefaults -rtc base=utc \
-m 4G \
-smp 2,sockets=2,cores=1,threads=1 \
-enable-kvm \
-name rhel7.3-2 \
-uuid 990ea161-6b67-47b2-b803-19fb01d30d12 \
-smbios type=1,manufacturer='Red Hat',product='RHEV Hypervisor',version=el6,serial=koTUXQrb,uuid=feebc8fd-f8b0-4e75-abc3-e63fcdb67170 \
-k en-us \
-serial unix:/tmp/console,server,nowait \
-boot menu=on \
-bios /usr/share/seabios/bios.bin \
-chardev file,path=/home/e1000e/seabios-2.log,id=seabios \
-device isa-debugcon,chardev=seabios,iobase=0x402 \
-qmp tcp::8888,server,nowait \
-vga qxl \
-spice port=5933,disable-ticketing \
-device ioh3420,id=root.0,slot=1 \
-drive file=/home/q35-seabios-2.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none,werror=stop,rerror=stop \
-device virtio-blk-pci,bus=root.0,drive=drive-virtio-disk0,id=virtio-disk0,disable-legacy=on,disable-modern=off,bootindex=1 \
-device ioh3420,id=root.1,slot=2 \
-device x3130-upstream,bus=root.1,id=upstream1 \
-device xio3130-downstream,bus=upstream1,id=downstream1,chassis=1 \
-device xio3130-downstream,bus=upstream1,id=downstream2,chassis=2 \
-device xio3130-downstream,bus=upstream1,id=downstream3,chassis=3 \
-device ioh3420,id=root.2,slot=3 \
-netdev tap,id=hostnet1 \
-device e1000e,netdev=hostnet1,id=net1,mac=54:52:00:B6:41:22,bus=root.2 \
-monitor stdio \


2. set up vlan in guest
guest 1: ip link add link enp6s0 name enp6s0.10 type vlan id 10; ip link set enp6s0.10 address 54:52:00:01:02:01 up ;ifconfig enp6s0.10 192.168.10.1/24 up
ip link add link enp6s0 name enp6s0.20 type vlan id 20; ip link set enp6s0.20 address 54:52:00:01:02:02 up; ifconfig enp6s0.20 192.168.20.1/24 up

guest2:
ip link add link ens3 name ens3.10 type vlan id 10; ip link set ens3.10 address 54:52:00:01:03:01 up;ifconfig ens3.10 192.168.10.2/24 up
ip link add link ens3 name ens3.20 type vlan id 20; ip link set ens3.20 address 54:52:00:01:03:02 up;ifconfig ens3.20 192.168.20.2/24 up

3. From guest1 connect guest2 through ssh 

# ssh 192.168.10.2

Actual results:

No response after ssh to guest2

Expected results:
Connected to guest2 successfully through ssh

Additional info:

Comment 1 jingzhao 2016-08-11 08:19:05 UTC
From guest1, ping guest2 successfully 
[root@localhost home]# ping 192.168.10.2
PING 192.168.10.2 (192.168.10.2) 56(84) bytes of data.
64 bytes from 192.168.10.2: icmp_seq=1 ttl=64 time=0.190 ms
64 bytes from 192.168.10.2: icmp_seq=2 ttl=64 time=0.237 ms
64 bytes from 192.168.10.2: icmp_seq=3 ttl=64 time=0.330 ms
64 bytes from 192.168.10.2: icmp_seq=4 ttl=64 time=0.341 ms
64 bytes from 192.168.10.2: icmp_seq=5 ttl=64 time=0.346 ms
64 bytes from 192.168.10.2: icmp_seq=6 ttl=64 time=0.268 ms
64 bytes from 192.168.10.2: icmp_seq=7 ttl=64 time=0.266 ms
^C
--- 192.168.10.2 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6000ms
rtt min/avg/max/mdev = 0.190/0.282/0.346/0.057 ms

Comment 2 jingzhao 2016-08-11 08:28:04 UTC
Didn't hit the issue with virtio-net-pci

Comment 4 jason wang 2016-08-23 07:12:28 UTC
e1000e is technical preview and looks like a upstream issue too. Not a 7.3 material.

Comment 5 jason wang 2016-08-23 07:13:34 UTC
Dmitry, any ideas on this. I suspect upstream may have this too.

Thanks

Comment 6 Dmitry Fleytman 2016-09-05 12:07:05 UTC
Jason, as far as I concerned the device processes VLAN injection/stripping properly.

Unfortunately I cannot tell more because attachment is not a tcpdump log but some unrelated script, probably attached by mistake.

Comment 7 jason wang 2016-12-26 06:00:45 UTC
(In reply to jingzhao from comment #0)
> Created attachment 1189949 [details]
> tcpdump file
> 
> Description of problem:
> ssh failed through vlan interface
> 
> Version-Release number of selected component (if applicable):
> host kernel:3.10.0-488.el7.x86_64
> qemu-kvm-rhev-2.6.0-19.el7.x86_64
> 
> How reproducible:
> 3/3
> 
> Steps to Reproduce:
> 1. Boot 2 guest with following cli:
> /usr/libexec/qemu-kvm \
> -M q35 \
> -cpu SandyBridge \
> -nodefaults -rtc base=utc \
> -m 4G \
> -smp 2,sockets=2,cores=1,threads=1 \
> -enable-kvm \
> -name rhel7.3 \
> -uuid 990ea161-6b67-47b2-b803-19fb01d30d12 \
> -smbios type=1,manufacturer='Red Hat',product='RHEV
> Hypervisor',version=el6,serial=koTUXQrb,uuid=feebc8fd-f8b0-4e75-abc3-
> e63fcdb67170 \
> -k en-us \
> -serial unix:/tmp/console,server,nowait \
> -boot menu=on \
> -bios /usr/share/seabios/bios.bin \
> -chardev file,path=/home/e1000e/seabios.log,id=seabios \
> -device isa-debugcon,chardev=seabios,iobase=0x402 \
> -qmp tcp::8887,server,nowait \
> -vga qxl \
> -spice port=5932,disable-ticketing \
> -device ioh3420,id=root.0,slot=1 \
> -drive
> file=/home/q35-seabios.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,
> cache=none,werror=stop,rerror=stop \
> -device
> virtio-blk-pci,bus=root.0,drive=drive-virtio-disk0,id=virtio-disk0,disable-
> legacy=on,disable-modern=off,bootindex=1 \
> -device ioh3420,id=root.1,slot=2 \
> -device x3130-upstream,bus=root.1,id=upstream1 \
> -device xio3130-downstream,bus=upstream1,id=downstream1,chassis=1 \
> -device xio3130-downstream,bus=upstream1,id=downstream2,chassis=2 \
> -device xio3130-downstream,bus=upstream1,id=downstream3,chassis=3 \
> -device ioh3420,id=root.2,slot=3 \
> -netdev tap,id=hostnet1 \
> -device e1000e,netdev=hostnet1,id=net1,mac=54:52:00:B6:40:22,bus=downstream3
> \
> -monitor stdio \
> 
> 
> /usr/libexec/qemu-kvm \
> -M q35 \
> -cpu SandyBridge \
> -nodefaults -rtc base=utc \
> -m 4G \
> -smp 2,sockets=2,cores=1,threads=1 \
> -enable-kvm \
> -name rhel7.3-2 \
> -uuid 990ea161-6b67-47b2-b803-19fb01d30d12 \
> -smbios type=1,manufacturer='Red Hat',product='RHEV
> Hypervisor',version=el6,serial=koTUXQrb,uuid=feebc8fd-f8b0-4e75-abc3-
> e63fcdb67170 \
> -k en-us \
> -serial unix:/tmp/console,server,nowait \
> -boot menu=on \
> -bios /usr/share/seabios/bios.bin \
> -chardev file,path=/home/e1000e/seabios-2.log,id=seabios \
> -device isa-debugcon,chardev=seabios,iobase=0x402 \
> -qmp tcp::8888,server,nowait \
> -vga qxl \
> -spice port=5933,disable-ticketing \
> -device ioh3420,id=root.0,slot=1 \
> -drive
> file=/home/q35-seabios-2.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,
> cache=none,werror=stop,rerror=stop \
> -device
> virtio-blk-pci,bus=root.0,drive=drive-virtio-disk0,id=virtio-disk0,disable-
> legacy=on,disable-modern=off,bootindex=1 \
> -device ioh3420,id=root.1,slot=2 \
> -device x3130-upstream,bus=root.1,id=upstream1 \
> -device xio3130-downstream,bus=upstream1,id=downstream1,chassis=1 \
> -device xio3130-downstream,bus=upstream1,id=downstream2,chassis=2 \
> -device xio3130-downstream,bus=upstream1,id=downstream3,chassis=3 \
> -device ioh3420,id=root.2,slot=3 \
> -netdev tap,id=hostnet1 \
> -device e1000e,netdev=hostnet1,id=net1,mac=54:52:00:B6:41:22,bus=root.2 \
> -monitor stdio \
> 
> 
> 2. set up vlan in guest
> guest 1: ip link add link enp6s0 name enp6s0.10 type vlan id 10; ip link set
> enp6s0.10 address 54:52:00:01:02:01 up ;ifconfig enp6s0.10 192.168.10.1/24 up
> ip link add link enp6s0 name enp6s0.20 type vlan id 20; ip link set
> enp6s0.20 address 54:52:00:01:02:02 up; ifconfig enp6s0.20 192.168.20.1/24 up
> 
> guest2:
> ip link add link ens3 name ens3.10 type vlan id 10; ip link set ens3.10
> address 54:52:00:01:03:01 up;ifconfig ens3.10 192.168.10.2/24 up
> ip link add link ens3 name ens3.20 type vlan id 20; ip link set ens3.20
> address 54:52:00:01:03:02 up;ifconfig ens3.20 192.168.20.2/24 up
> 
> 3. From guest1 connect guest2 through ssh 
> 
> # ssh 192.168.10.2
> 
> Actual results:
> 
> No response after ssh to guest2
> 
> Expected results:
> Connected to guest2 successfully through ssh
> 
> Additional info:

Hi, please provides correct tcpdump log for Dmitry to see.

Thanks

Comment 8 jingzhao 2016-12-26 07:35:53 UTC
Updated the tcpdump log, please check the icmp.cap file

Thanks
Jing Zhao

Comment 9 jingzhao 2016-12-26 07:36:45 UTC
Created attachment 1235320 [details]
icmp.cap

Comment 10 jason wang 2017-02-09 07:20:21 UTC
Dmitry, see the attachment above.

Thanks

Comment 11 Dmitry Fleytman 2017-02-16 17:20:19 UTC
The same issue exists upstream.
Fix posted to qemu-devel: http://lists.nongnu.org/archive/html/qemu-devel/2017-02/msg03525.html

Comment 12 jason wang 2017-04-17 06:49:00 UTC
Defer to 7.5.

Comment 13 jingzhao 2017-11-27 05:39:15 UTC
Didn't reproduce the issue with qemu-kvm-rhev-2.10.0-7.el7.x86_64 & kernel-3.10.0-796.el7.x86_64


Note You need to log in before you can comment on or make changes to this bug.