Skip to content

Instantly share code, notes, and snippets.

@vpickard
Last active April 26, 2017 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vpickard/97e48b3eb466578064e06f056646def0 to your computer and use it in GitHub Desktop.
Save vpickard/97e48b3eb466578064e06f056646def0 to your computer and use it in GitHub Desktop.
sriov pf debug with ODL ml2 v2 driver
Neutron debug logs. starting with MAC update (from NOVA), that has the correct, updated MAC of the physical interface (SRIOV PF MAC).
The MAC on the physical interface is ec:f4:bb:c0:c1:8a.
The generated MAC, when the port is first created, is: fa:16:3e:70:81:8c
2017-04-24 17:25:06.069 118957 DEBUG neutron.api.v2.base [req-2999c067-03e5-435c-a476-7f1c4e4f09ca faa7b631f495430b887135c0e9c69ee0 52ccb4c94d0e449788da6b2d3919e8b7 - - -] Request body: {u'port': {u'binding:profile': {u'pci_slot': u'0000:01:00.1', u'physical_network': u'physnet_sriov', u'pci_vendor_info': u'8086:10fb'}, u'device_owner': u'compute:nova', u'mac_address': u'ec:f4:bb:c0:c1:8a', u'binding:host_id': u'overcloud-compute-0.localdomain', u'device_id': u'8e9734de-64bd-42a4-9276-6e55f13ffacf'}} prepare_request_body /usr/lib/python2.7/site-packages/neutron/api/v2/base.py:684
2017-04-24 17:25:06.310 118957 DEBUG neutron.notifiers.nova [req-2999c067-03e5-435c-a476-7f1c4e4f09ca faa7b631f495430b887135c0e9c69ee0 52ccb4c94d0e449788da6b2d3919e8b7 - - -] Ignoring state change previous_port_status: DOWN current_port_status: DOWN port_id 0df9231a-54d9-4e05-b013-f95f8126ce2e record_port_status_changed /usr/lib/python2.7/site-packages/neutron/notifiers/nova.py:224
2017-04-24 17:25:06.321 119006 DEBUG neutron.db.agents_db [req-90ff7af0-94ad-450c-91a9-74b8c9561d16 - - - - -] Agent healthcheck: found 4 active agents agent_health_check /usr/lib/python2.7/site-packages/neutron/db/agents_db.py:310
2017-04-24 17:25:06.322 118957 DEBUG neutron.db.provisioning_blocks [req-2999c067-03e5-435c-a476-7f1c4e4f09ca faa7b631f495430b887135c0e9c69ee0 52ccb4c94d0e449788da6b2d3919e8b7 - - -] Transition to ACTIVE for port object 0df9231a-54d9-4e05-b013-f95f8126ce2e will not be triggered until provisioned by entity L2. add_provisioning_component /usr/lib/python2.7/site-packages/neutron/db/provisioning_blocks.py:86
2017-04-24 17:25:06.336 118957 DEBUG neutron.db.provisioning_blocks [req-2999c067-03e5-435c-a476-7f1c4e4f09ca faa7b631f495430b887135c0e9c69ee0 52ccb4c94d0e449788da6b2d3919e8b7 - - -] Transition to ACTIVE for port object 0df9231a-54d9-4e05-b013-f95f8126ce2e will not be triggered until provisioned by entity DHCP. add_provisioning_component /usr/lib/python2.7/site-packages/neutron/db/provisioning_blocks.py:86
2017-04-24 17:25:06.338 118957 DEBUG neutron.callbacks.manager [req-2999c067-03e5-435c-a476-7f1c4e4f09ca faa7b631f495430b887135c0e9c69ee0 52ccb4c94d0e449788da6b2d3919e8b7 - - -] Notify callbacks [('networking_l2gw.db.l2gateway.l2gateway_db.l2gw_callback--9223372036848736275', <function l2gw_callback at 0x5c27ed8>), ('neutron.api.rpc.agentnotifiers.dhcp_rpc_agent_api.DhcpAgentNotifyAPI._native_event_send_dhcp_notification--9223372036852869625', <bound method DhcpAgentNotifyAPI._native_event_send_dhcp_notification of <neutron.api.rpc.agentnotifiers.dhcp_rpc_agent_api.DhcpAgentNotifyAPI object at 0x5fa52d0>>)] for port, after_update _notify_loop /usr/lib/python2.7/site-packages/neutron/callbacks/manager.py:142
2017-04-24 17:25:06.396 118957 DEBUG oslo_messaging._drivers.amqpdriver [req-2999c067-03e5-435c-a476-7f1c4e4f09ca faa7b631f495430b887135c0e9c69ee0 52ccb4c94d0e449788da6b2d3919e8b7 - - -] CAST unique_id: 6c7bc574156944e1b0d7d5b3b17a21b1 exchange 'neutron' topic 'dhcp_agent' _send /usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py:448
2017-04-24 17:25:06.404 118957 DEBUG networking_odl.journal.journal [req-2999c067-03e5-435c-a476-7f1c4e4f09ca faa7b631f495430b887135c0e9c69ee0 52ccb4c94d0e449788da6b2d3919e8b7 - - -] Resetting thread timer set_sync_event /usr/lib/python2.7/site-packages/networking_odl/journal/journal.py:117
2017-04-24 17:25:06.411 118957 DEBUG networking_odl.journal.journal [-] Thread walking database _sync_pending_rows /usr/lib/python2.7/site-packages/networking_odl/journal/journal.py:167
2017-04-24 17:25:06.418 118957 DEBUG neutron.plugins.ml2.managers [req-2999c067-03e5-435c-a476-7f1c4e4f09ca faa7b631f495430b887135c0e9c69ee0 52ccb4c94d0e449788da6b2d3919e8b7 - - -] Attempting to bind port 0df9231a-54d9-4e05-b013-f95f8126ce2e on host overcloud-compute-0.localdomain for vnic_type direct-physical with profile {"pci_slot": "0000:01:00.1", "physical_network": "physnet_sriov", "pci_vendor_info": "8086:10fb"} bind_port /usr/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py:751
2017-04-24 17:25:06.419 118957 DEBUG neutron.plugins.ml2.managers [req-2999c067-03e5-435c-a476-7f1c4e4f09ca faa7b631f495430b887135c0e9c69ee0 52ccb4c94d0e449788da6b2d3919e8b7 - - -] Attempting to bind port 0df9231a-54d9-4e05-b013-f95f8126ce2e on host overcloud-compute-0.localdomain at level 0 using segments [{'segmentation_id': 1500, 'physical_network': None, 'id': u'b722a775-8d9b-4495-a9db-c7aaa170ff95', 'network_type': u'vxlan'}, {'segmentation_id': 2201, 'physical_network': u'physnet_sriov', 'id': u'd9d8b61f-9a6a-437d-a8cb-b2c2bda66e07', 'network_type': u'vlan'}] _bind_port_level /usr/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py:772
2017-04-24 17:25:06.419 118957 DEBUG neutron.plugins.ml2.drivers.mech_sriov.mech_driver.mech_driver [req-2999c067-03e5-435c-a476-7f1c4e4f09ca faa7b631f495430b887135c0e9c69ee0 52ccb4c94d0e449788da6b2d3919e8b7 - - -] Attempting to bind port 0df9231a-54d9-4e05-b013-f95f8126ce2e on network 989b71de-7840-463d-9caa-6b4a341e6666 bind_port /usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/mech_sriov/mech_driver/mech_driver.py:111
2017-04-24 17:25:06.419 118957 DEBUG neutron.plugins.ml2.drivers.mech_sriov.mech_driver.mech_driver [req-2999c067-03e5-435c-a476-7f1c4e4f09ca faa7b631f495430b887135c0e9c69ee0 52ccb4c94d0e449788da6b2d3919e8b7 - - -] Bound using segment: {'segmentation_id': 2201, 'physical_network': u'physnet_sriov', 'id': u'd9d8b61f-9a6a-437d-a8cb-b2c2bda66e07', 'network_type': u'vlan'} try_to_bind_segment_for_agent /usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/mech_sriov/mech_driver/mech_driver.py:161
2017-04-24 17:25:06.434 118957 DEBUG neutron.plugins.ml2.managers [req-2999c067-03e5-435c-a476-7f1c4e4f09ca faa7b631f495430b887135c0e9c69ee0 52ccb4c94d0e449788da6b2d3919e8b7 - - -] Bound port: 0df9231a-54d9-4e05-b013-f95f8126ce2e, host: overcloud-compute-0.localdomain, vif_type: hostdev_physical, vif_details: {"port_filter": false, "vlan": "2201"}, binding_levels: [{'bound_driver': 'sriovnicswitch', 'bound_segment': {'segmentation_id': 2201, 'physical_network': u'physnet_sriov', 'id': u'd9d8b61f-9a6a-437d-a8cb-b2c2bda66e07', 'network_type': u'vlan'}}] _bind_port_level /usr/lib/python2.7/site-packages/neutron/plugins/ml2/managers.py:820
2017-04-24 17:25:06.455 118957 DEBUG neutron.plugins.ml2.db [req-2999c067-03e5-435c-a476-7f1c4e4f09ca faa7b631f495430b887135c0e9c69ee0 52ccb4c94d0e449788da6b2d3919e8b7 - - -] For port 0df9231a-54d9-4e05-b013-f95f8126ce2e, host overcloud-compute-0.localdomain, cleared binding levels clear_binding_levels /usr/lib/python2.7/site-packages/neutron/plugins/ml2/db.py:135
2017-04-24 17:25:06.455 118957 DEBUG neutron.plugins.ml2.db [req-2999c067-03e5-435c-a476-7f1c4e4f09ca faa7b631f495430b887135c0e9c69ee0 52ccb4c94d0e449788da6b2d3919e8b7 - - -] For port 0df9231a-54d9-4e05-b013-f95f8126ce2e, host overcloud-compute-0.localdomain, set binding levels [<neutron.plugins.ml2.models.PortBindingLevel[object at 6683710] {port_id=u'0df9231a-54d9-4e05-b013-f95f8126ce2e', host=u'overcloud-compute-0.localdomain', level=0, driver='sriovnicswitch', segment_id=u'd9d8b61f-9a6a-437d-a8cb-b2c2bda66e07'}>] set_binding_levels /usr/lib/python2.7/site-packages/neutron/plugins/ml2/db.py:108
2017-04-24 17:25:06.462 118957 INFO networking_odl.journal.journal [-] Syncing update port 0df9231a-54d9-4e05-b013-f95f8126ce2e
2017-04-24 17:25:06.462 118957 DEBUG networking_odl.common.client [-] Sending METHOD (put) URL (http://172.17.0.13:8081/controller/nb/v2/neutron/ports/0df9231a-54d9-4e05-b013-f95f8126ce2e) JSON ({
"port": {
"allowed_address_pairs": [],
"extra_dhcp_opts": [],
"updated_at": "2017-04-24T17:25:06Z",
"device_owner": "compute:nova",
"revision_number": 7,
"binding:profile": {
"pci_slot": "0000:01:00.1",
"physical_network": "physnet_sriov",
"pci_vendor_info": "8086:10fb"
},
"port_security_enabled": true,
"security_groups": [
{
"id": "1e4abc85-ae0d-492f-b79b-7566a449c9b4"
}
],
"binding:vif_details": {},
"binding:vif_type": "unbound",
"binding:host_id": "overcloud-compute-0.localdomain",
"description": "",
"device_id": "8e9734de-64bd-42a4-9276-6e55f13ffacf",
"name": "pf1",
"admin_state_up": true,
"created_at": "2017-04-24T17:23:43Z",
"binding:vnic_type": "direct-physical"
}
}) request /usr/lib/python2.7/site-packages/networking_odl/common/client.py:86
2017-04-24 17:25:06.466 118957 DEBUG networking_odl.journal.journal [req-2999c067-03e5-435c-a476-7f1c4e4f09ca faa7b631f495430b887135c0e9c69ee0 52ccb4c94d0e449788da6b2d3919e8b7 - - -] Resetting thread timer set_sync_event /usr/lib/python2.7/site-packages/networking_odl/journal/journal.py:117
2017-04-24 17:25:06.473 118957 DEBUG networking_odl.common.client [-] Got response:
({
"port" : {
"id" : "0df9231a-54d9-4e05-b013-f95f8126ce2e",
"tenant_id" : "b692d40b89f540039ae48ac060cd100d",
"network_id" : "989b71de-7840-463d-9caa-6b4a341e6666",
"name" : "pf1",
"admin_state_up" : true,
"mac_address" : "fa:16:3e:70:81:8c",
[heat-admin@overcloud-controller-0 log]$ neutron port-show pf1
+-----------------------+---------------------------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+---------------------------------------------------------------------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | overcloud-compute-0.localdomain |
| binding:profile | {"pci_slot": "0000:01:00.1", "physical_network": "physnet_sriov", "pci_vendor_info": "8086:10fb"} |
| binding:vif_details | {"port_filter": false, "vlan": "2201"} |
| binding:vif_type | hostdev_physical |
| binding:vnic_type | direct-physical |
| created_at | 2017-04-24T17:23:43Z |
| description | |
| device_id | 8e9734de-64bd-42a4-9276-6e55f13ffacf |
| device_owner | compute:nova |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "30acfe26-46ee-4ee8-be69-8f0791ad07ad", "ip_address": "10.100.5.12"} |
| id | 0df9231a-54d9-4e05-b013-f95f8126ce2e |
| mac_address | ec:f4:bb:c0:c1:8a |
| name | pf1 |
| network_id | 989b71de-7840-463d-9caa-6b4a341e6666 |
| port_security_enabled | True |
| project_id | b692d40b89f540039ae48ac060cd100d |
| revision_number | 9 |
| security_groups | 1e4abc85-ae0d-492f-b79b-7566a449c9b4 |
| status | ACTIVE |
| tenant_id | b692d40b89f540039ae48ac060cd100d |
| updated_at | 2017-04-24T17:25:06Z |
+-----------------------+---------------------------------------------------------------------------------------------------+
[heat-admin@overcloud-controller-0 log]$
ODL MD-SAL neutron port dump
{
"admin-state-up": true,
"device-id": "8e9734de-64bd-42a4-9276-6e55f13ffacf",
"device-owner": "compute:nova",
"fixed-ips": [
{
"ip-address": "10.100.5.12",
"subnet-id": "30acfe26-46ee-4ee8-be69-8f0791ad07ad"
}
],
"mac-address": "fa:16:3e:70:81:8c",
"name": "pf1",
"network-id": "989b71de-7840-463d-9caa-6b4a341e6666",
"neutron-binding:host-id": "overcloud-compute-0.localdomain",
"neutron-binding:vif-details": [
{
"details-key": "vlan",
"value": "2201"
},
{
"details-key": "port_filter",
"value": "false"
}
],
"neutron-binding:vif-type": "hostdev_physical",
"neutron-binding:vnic-type": "direct-physical",
"neutron-portsecurity:port-security-enabled": true,
"security-groups": [
"1e4abc85-ae0d-492f-b79b-7566a449c9b4"
],
"tenant-id": "b692d40b-89f5-4003-9ae4-8ac060cd100d",
"uuid": "0df9231a-54d9-4e05-b013-f95f8126ce2e"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment