Public bug reported: openstack version openstack-neutron-sriov-nic-agent-2015.1.0-1.el7.noarch python-neutron-2015.1.0-1.el7.noarch openstack-neutron-2015.1.0-1.el7.noarch openstack-neutron-common-2015.1.0-1.el7.noarch
when changing port state this error appear in the log #neutron port-update --admin_state_up=False/True <port_name> VF state should be change to disable/enable - " vf 1 MAC fa:16:3e:9b:59:2e, vlan 3, spoof checking off, link-state enable/disable " >From sriov-nic-agent.log : Stderr: RTNETLINK answers: Operation not permitted 2015-07-29 17:54:33.714 2082 ERROR neutron.plugins.sriovnicagent.pci_lib [req-c232ddc4-c065-4459-8552-6c7af2d3ad10 ] Failed executing ip command 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib Traceback (most recent call last): 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib File "/usr/lib/python2.7/site-packages/neutron/plugins/sriovnicagent/pci_lib.py", line 102, in set_vf_state 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib str(vf_index), "state", status_str)) 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib File "/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 78, in _execute 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib log_fail_as_error=log_fail_as_error) 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib File "/usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py", line 137, in execute 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib raise RuntimeError(m) 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib RuntimeError: 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib Command: ['ip', 'link', 'set', 'p2p1', 'vf', '2', 'state', 'disable'] 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib Exit code: 2 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib Stdin: 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib Stdout: 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib Stderr: RTNETLINK answers: Operation not permitted 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib 2015-07-29 17:54:33.715 2082 ERROR neutron.plugins.sriovnicagent.sriov_nic_agent [req-c232ddc4-c065-4459-8552-6c! 7af2d3ad 10 ] Failed to set device fa:16:3e:29:d8:78 state 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent Traceback (most recent call last): 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/sriovnicagent/sriov_nic_agent.py", line 175, in treat_device 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent admin_state_up) 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/sriovnicagent/eswitch_manager.py", line 251, in set_device_state 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent admin_state_up) 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/sriovnicagent/eswitch_manager.py", line 163, in set_device_state 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent return self.pci_dev_wrapper.set_vf_state(vf_index, state) 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/sriovnicagent/pci_lib.py", line 106, in set_vf_state 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent reason=e) 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent IpCommandError: ip command failed on device p2p1: 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent Command: ['ip', 'link', 'set', 'p2p1', 'vf', '2', 'state', 'disable'] 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent Exit code: 2 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent Stdin: 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent Stdout: 2015-07-2! 9 17:54: 33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent Stderr: RTNETLINK answers: Operation not permitted ** Affects: neutron Importance: Undecided Assignee: Moshe Levi (moshele) Status: New ** Changed in: neutron Assignee: (unassigned) => Moshe Levi (moshele) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1479694 Title: unable to change port state when using sriov agent Status in neutron: New Bug description: openstack version openstack-neutron-sriov-nic-agent-2015.1.0-1.el7.noarch python-neutron-2015.1.0-1.el7.noarch openstack-neutron-2015.1.0-1.el7.noarch openstack-neutron-common-2015.1.0-1.el7.noarch when changing port state this error appear in the log #neutron port-update --admin_state_up=False/True <port_name> VF state should be change to disable/enable - " vf 1 MAC fa:16:3e:9b:59:2e, vlan 3, spoof checking off, link-state enable/disable " From sriov-nic-agent.log : Stderr: RTNETLINK answers: Operation not permitted 2015-07-29 17:54:33.714 2082 ERROR neutron.plugins.sriovnicagent.pci_lib [req-c232ddc4-c065-4459-8552-6c7af2d3ad10 ] Failed executing ip command 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib Traceback (most recent call last): 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib File "/usr/lib/python2.7/site-packages/neutron/plugins/sriovnicagent/pci_lib.py", line 102, in set_vf_state 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib str(vf_index), "state", status_str)) 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib File "/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 78, in _execute 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib log_fail_as_error=log_fail_as_error) 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib File "/usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py", line 137, in execute 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib raise RuntimeError(m) 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib RuntimeError: 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib Command: ['ip', 'link', 'set', 'p2p1', 'vf', '2', 'state', 'disable'] 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib Exit code: 2 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib Stdin: 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib Stdout: 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib Stderr: RTNETLINK answers: Operation not permitted 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib 2015-07-29 17:54:33.714 2082 TRACE neutron.plugins.sriovnicagent.pci_lib 2015-07-29 17:54:33.715 2082 ERROR neutron.plugins.sriovnicagent.sriov_nic_agent [req-c232ddc4-c065-4459-8552-6c! 7af2d3ad 10 ] Failed to set device fa:16:3e:29:d8:78 state 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent Traceback (most recent call last): 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/sriovnicagent/sriov_nic_agent.py", line 175, in treat_device 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent admin_state_up) 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/sriovnicagent/eswitch_manager.py", line 251, in set_device_state 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent admin_state_up) 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/sriovnicagent/eswitch_manager.py", line 163, in set_device_state 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent return self.pci_dev_wrapper.set_vf_state(vf_index, state) 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent File "/usr/lib/python2.7/site-packages/neutron/plugins/sriovnicagent/pci_lib.py", line 106, in set_vf_state 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent reason=e) 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent IpCommandError: ip command failed on device p2p1: 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent Command: ['ip', 'link', 'set', 'p2p1', 'vf', '2', 'state', 'disable'] 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent Exit code: 2 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent Stdin: 2015-07-29 17:54:33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent Stdout: 2015-07-2! 9 17:54: 33.715 2082 TRACE neutron.plugins.sriovnicagent.sriov_nic_agent Stderr: RTNETLINK answers: Operation not permitted To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1479694/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp