Bug 1560728

Summary: Assertion auxv_fd != -1 failed in DPDK. openvswitch.service will not start
Product: Red Hat Enterprise Linux 7 Reporter: Mick Tarsel <mtarsel>
Component: openvswitchAssignee: Timothy Redaelli <tredaelli>
Status: CLOSED ERRATA QA Contact: Christian Trautman <ctrautma>
Severity: high Docs Contact:
Priority: high    
Version: 7.4CC: aconole, atragler, ctrautma, dwilder, linville, mjtarsel, pvauter, tredaelli, wilder
Target Milestone: rc   
Target Release: ---   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: openvswitch-2.9.0-34.el7fdn Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-21 13:36:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
journalctl -xe after enabling DPDK none

Description Mick Tarsel 2018-03-26 20:56:34 UTC
Created attachment 1413337 [details]
journalctl -xe after enabling DPDK

Description of problem:
After enabling DPDK in openvswitch rpm, ovs fails to finish executing ovs-vsctl commands and the openvswitch.service fails to restart/start. Commands to ovs-vsctl will hang needing CTRL+C to stop, however ovsdb is updated.

   To enable DPDK:

ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-init=true

journalctl -xe logs attached.

Version-Release number of selected component (if applicable):
openvswitch-2.9.0-3.el7fdp.ppc64le.rpm

How reproducible:
Only when DPDK is enabled in openvswitch rpm. Otherwise openvswitch works fine.

Steps to Reproduce:
1. Install openvswitch-2.9.0-3.el7fdp.ppc64le.rpm
2. systemctl start openvswitch
3. ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-init=true
4. ovs-vsctl add-br br0
Command hangs

4. systemctl restart openvswitch

Actual results:
# ovs-vsctl add-br br0
(after a long time...)
^C2018-03-26T20:42:30Z|00002|fatal_signal|WARN|terminating with signal 2 (Interrupt)

# ovs-vsctl show
    Bridge "br0"
        Port "br0"
            Interface "br0"
                type: internal
    ovs_version: "2.9.0"

Expected results:
# ovs-vsctl add-br br0
# ovs-vsctl show

Additional info:

This error is due to the file permission's of /proc/self/auxv. In DPDK, commit 1e0a17ac4c816fc41f6cf8c1fcd56149d8927263 introduces a different way to verify file permissions, changing the assertion from != 0 to != 1. 

Possible solution: 

Revert patch 1e0a17ac4c816fc41f6cf8c1fcd56149d8927263 from DPDK 17.11

New patch posted could also be a possible solution:
http://dpdk.org/ml/archives/dev/2018-March/093582.html


This is a bug in DPDK which is part of the openvswitch rpm for ppc64le.

Comment 2 Aaron Conole 2018-04-12 19:02:13 UTC
Posted upstream at http://dpdk.org/ml/archives/dev/2018-April/094743.html

Comment 10 Christian Trautman 2018-06-07 15:40:46 UTC
Reproduced with openvswitch-2.9.0-3.el7fdp.ppc64le.rpm

2. systemctl start openvswitch
3. ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-init=true
4. ovs-vsctl add-br br0
Command hangs as expected.

Verified with openvswitch-2.9.0-45.el7fdp.ppc64le. No hangs seen.

Changing to verified.

Comment 12 errata-xmlrpc 2018-06-21 13:36:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:1962