ovsvapp-agent constraint violation error

Bug #1822861 reported by Stephen Ma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-vsphere
Fix Released
Undecided
Stephen Ma

Bug Description

This error is found in the ovsvapp-agent log:

2019-04-02 16:54:52.761 18743 ERROR networking_vsphere.agent.ovsvapp_agent [-] Unable to set openflow version: Exit code: 1; Stdin: ; Stdout: ; Stderr: ovs-vsctl: constraint violation: "'OpenFlow10'" is not one of the allowed values (["OpenFlow10", "OpenFlow11", "OpenFlow12", "OpenFlow13", "OpenFlow14", "OpenFlow15", "OpenFlow16"])
: ProcessExecutionError: Exit code: 1; Stdin: ; Stdout: ; Stderr: ovs-vsctl: constraint violation: "'OpenFlow10'" is not one of the allowed values (["OpenFlow10", "OpenFlow11", "OpenFlow12", "OpenFlow13", "OpenFlow14", "OpenFlow15", "OpenFlow16"])
2019-04-02 16:54:52.762 18743 DEBUG neutron.agent.linux.utils [-] Running command (rootwrap daemon): ['ovs-vsctl', '--timeout=10', '--oneline', '--format=json', '--', '--columns=ofport', 'list', 'Interface', 'patch-tun'] execute_rootwrap_daemon /opt/stack/venv/neutron-20190329T074525Z/lib/python2.7/site-packages/neutron/agent/linux/utils.py:103
2019-04-02 16:54:52.777 18743 DEBUG neutron.agent.linux.utils [-] Running command (rootwrap daemon): ['ovs-vsctl', '--timeout=10', '--oneline', '--format=json', '--', '--columns=ofport', 'l

This is ran in with neutron stable/rocky.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-vsphere (master)

Reviewed: https://review.openstack.org/649415
Committed: https://git.openstack.org/cgit/openstack/networking-vsphere/commit/?id=433bff80d6a15c1e7f5aba6a7f00a357ade839ca
Submitter: Zuul
Branch: master

commit 433bff80d6a15c1e7f5aba6a7f00a357ade839ca
Author: Stephen Ma <email address hidden>
Date: Tue Apr 2 10:50:21 2019 -0700

    Fix the method call error in set_openflow_version

    In set_openflow_version, the add_protocols call is incorrect.
    Currently it is calling the function with only 1 argument
    (a list of supported OpenFlow versions). The function
    actually expects multiple arguments where each one is a
    supported OpenFlow version. See [1].

    [1] https://git.openstack.org/cgit/openstack/neutron/tree/neutron/agent/common/ovs_lib.py#n258

    Closes-bug: #1822861
    Change-Id: I3188235d46687aed7b059b1176dd6abf05b994cf

Changed in networking-vsphere:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-vsphere (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/649482

Stephen Ma (stephen-ma)
Changed in networking-vsphere:
assignee: nobody → Stephen Ma (stephen-ma)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-vsphere (stable/rocky)

Reviewed: https://review.openstack.org/649482
Committed: https://git.openstack.org/cgit/openstack/networking-vsphere/commit/?id=8de4db3bb0bbd513cb3fb504e759f58e547fc994
Submitter: Zuul
Branch: stable/rocky

commit 8de4db3bb0bbd513cb3fb504e759f58e547fc994
Author: Stephen Ma <email address hidden>
Date: Tue Apr 2 10:50:21 2019 -0700

    Fix the method call error in set_openflow_version

    In set_openflow_version, the add_protocols call is incorrect.
    Currently it is calling the function with only 1 argument
    (a list of supported OpenFlow versions). The function
    actually expects multiple arguments where each one is a
    supported OpenFlow version. See [1].

    [1] https://git.openstack.org/cgit/openstack/neutron/tree/neutron/agent/common/ovs_lib.py#n258

    Closes-bug: #1822861
    Change-Id: I3188235d46687aed7b059b1176dd6abf05b994cf
    (cherry picked from commit 433bff80d6a15c1e7f5aba6a7f00a357ade839ca)

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-vsphere (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/650084

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on networking-vsphere (stable/pike)

Change abandoned by stephen-ma (<email address hidden>) on branch: stable/pike
Review: https://review.openstack.org/650084
Reason: Patch not needed. The reason is that neutron's ovs_lib still has set_protocols method available.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.