← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1470094] [NEW] live migration on ML2 Mechanism Event

 

Public bug reported:

Hi,
ML2 driver: A mechanism driver is called on the creation, update, and deletion of networks and ports. For every event, there are two methods that get called - one within the database transaction (method suffix of _precommit), one right afterwards (method suffix of _postcommit)

When live migrationon TestVM4 on Openstack, I can't see any event(create_port_precommit, create_port_postcommit).
I only see update_port_precommit and update_port_postcommit.

I have question: How to do implement ML2 plugin?

2015-06-30 18:25:40.627 2807 DEBUG neutron.plugins.ml2.rpc [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] Device 59571389-024f-4475-b7f5-1156dadd7e4e details requested by agent ovs-agent-TestVM4 with host TestVM4 get_device_details /usr/lib/python2.7/dist-packages/neutron/plugins/ml2/rpc.py:60
2015-06-30 18:25:40.644 2807 DEBUG neutron.plugins.ml2.rpc [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] Returning: {'profile': {}, 'admin_state_up': True, 'network_id': u'61eefda2-97df-4e5c-a844-a6aad001e5d9', 'segmentation_id': 1501L, 'device_owner': u'compute:nova', 'physical_network': u'physnet1', 'mac_address': u'fa:16:3e:f6:d1:a4', 'device': u'59571389-024f-4475-b7f5-1156dadd7e4e', 'port_id': u'59571389-024f-4475-b7f5-1156dadd7e4e', 'fixed_ips': [{'subnet_id': u'db6690d1-dbe9-479c-b0dd-14c1ea5d2d43', 'ip_address': u'10.1.1.101'}], 'network_type': u'vlan'} get_device_details /usr/lib/python2.7/dist-packages/neutron/plugins/ml2/rpc.py:105
2015-06-30 18:25:40.797 2807 DEBUG neutron.context [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] Arguments dropped when creating context: {u'project_name': None, u'tenant': None} __init__ /usr/lib/python2.7/dist-packages/neutron/context.py:83
2015-06-30 18:25:40.797 2807 DEBUG neutron.plugins.ml2.rpc [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] Device 59571389-024f-4475-b7f5-1156dadd7e4e up at agent ovs-agent-TestVM4 update_device_up /usr/lib/python2.7/dist-packages/neutron/plugins/ml2/rpc.py:155
2015-06-30 18:25:40.815 2807 DEBUG neutron.openstack.common.lockutils [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] Got semaphore "db-access" lock /usr/lib/python2.7/dist-packages/neutron/openstack/common/lockutils.py:168
2015-06-30 18:25:40.834 2807 INFO neutron.plugins.ml2.drivers.xxx.mechanism_xxx [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] xxx ML2 driver: update_port_precommit
2015-06-30 18:25:40.838 2807 INFO neutron.plugins.ml2.drivers.xxx.mechanism_xxx [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] xxx ML2 driver: update_port_postcommit
2015-06-30 18:25:40.967 2807 DEBUG neutron.context [req-83e77512-6a29-47c7-825b-4cca5b94d823 None] Arguments dropped when creating context: {u'project_name': None, u'tenant': None} __init__ /usr/lib/python2.7/dist-packages/neutron/context.py:83

** Affects: neutron
     Importance: Undecided
         Status: New

** Description changed:

  Hi,
  ML2 driver: A mechanism driver is called on the creation, update, and deletion of networks and ports. For every event, there are two methods that get called - one within the database transaction (method suffix of _precommit), one right afterwards (method suffix of _postcommit)
  
- When live migrationon TestVM4 on Openstack, I can't see any enent(create_port_precommit, create_port_postcommit).
+ When live migrationon TestVM4 on Openstack, I can't see any event(create_port_precommit, create_port_postcommit).
  I only see update_port_precommit and update_port_postcommit.
  
- I have question: How to do implmemt ML2 plugin?
- 
+ I have question: How to do implement ML2 plugin?
  
  2015-06-30 18:25:40.627 2807 DEBUG neutron.plugins.ml2.rpc [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] Device 59571389-024f-4475-b7f5-1156dadd7e4e details requested by agent ovs-agent-TestVM4 with host TestVM4 get_device_details /usr/lib/python2.7/dist-packages/neutron/plugins/ml2/rpc.py:60
  2015-06-30 18:25:40.644 2807 DEBUG neutron.plugins.ml2.rpc [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] Returning: {'profile': {}, 'admin_state_up': True, 'network_id': u'61eefda2-97df-4e5c-a844-a6aad001e5d9', 'segmentation_id': 1501L, 'device_owner': u'compute:nova', 'physical_network': u'physnet1', 'mac_address': u'fa:16:3e:f6:d1:a4', 'device': u'59571389-024f-4475-b7f5-1156dadd7e4e', 'port_id': u'59571389-024f-4475-b7f5-1156dadd7e4e', 'fixed_ips': [{'subnet_id': u'db6690d1-dbe9-479c-b0dd-14c1ea5d2d43', 'ip_address': u'10.1.1.101'}], 'network_type': u'vlan'} get_device_details /usr/lib/python2.7/dist-packages/neutron/plugins/ml2/rpc.py:105
  2015-06-30 18:25:40.797 2807 DEBUG neutron.context [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] Arguments dropped when creating context: {u'project_name': None, u'tenant': None} __init__ /usr/lib/python2.7/dist-packages/neutron/context.py:83
  2015-06-30 18:25:40.797 2807 DEBUG neutron.plugins.ml2.rpc [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] Device 59571389-024f-4475-b7f5-1156dadd7e4e up at agent ovs-agent-TestVM4 update_device_up /usr/lib/python2.7/dist-packages/neutron/plugins/ml2/rpc.py:155
  2015-06-30 18:25:40.815 2807 DEBUG neutron.openstack.common.lockutils [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] Got semaphore "db-access" lock /usr/lib/python2.7/dist-packages/neutron/openstack/common/lockutils.py:168
  2015-06-30 18:25:40.834 2807 INFO neutron.plugins.ml2.drivers.xxx.mechanism_xxx [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] xxx ML2 driver: update_port_precommit
  2015-06-30 18:25:40.838 2807 INFO neutron.plugins.ml2.drivers.xxx.mechanism_xxx [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] xxx ML2 driver: update_port_postcommit
  2015-06-30 18:25:40.967 2807 DEBUG neutron.context [req-83e77512-6a29-47c7-825b-4cca5b94d823 None] Arguments dropped when creating context: {u'project_name': None, u'tenant': None} __init__ /usr/lib/python2.7/dist-packages/neutron/context.py:83

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1470094

Title:
  live migration on ML2 Mechanism Event

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  Hi,
  ML2 driver: A mechanism driver is called on the creation, update, and deletion of networks and ports. For every event, there are two methods that get called - one within the database transaction (method suffix of _precommit), one right afterwards (method suffix of _postcommit)

  When live migrationon TestVM4 on Openstack, I can't see any event(create_port_precommit, create_port_postcommit).
  I only see update_port_precommit and update_port_postcommit.

  I have question: How to do implement ML2 plugin?

  2015-06-30 18:25:40.627 2807 DEBUG neutron.plugins.ml2.rpc [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] Device 59571389-024f-4475-b7f5-1156dadd7e4e details requested by agent ovs-agent-TestVM4 with host TestVM4 get_device_details /usr/lib/python2.7/dist-packages/neutron/plugins/ml2/rpc.py:60
  2015-06-30 18:25:40.644 2807 DEBUG neutron.plugins.ml2.rpc [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] Returning: {'profile': {}, 'admin_state_up': True, 'network_id': u'61eefda2-97df-4e5c-a844-a6aad001e5d9', 'segmentation_id': 1501L, 'device_owner': u'compute:nova', 'physical_network': u'physnet1', 'mac_address': u'fa:16:3e:f6:d1:a4', 'device': u'59571389-024f-4475-b7f5-1156dadd7e4e', 'port_id': u'59571389-024f-4475-b7f5-1156dadd7e4e', 'fixed_ips': [{'subnet_id': u'db6690d1-dbe9-479c-b0dd-14c1ea5d2d43', 'ip_address': u'10.1.1.101'}], 'network_type': u'vlan'} get_device_details /usr/lib/python2.7/dist-packages/neutron/plugins/ml2/rpc.py:105
  2015-06-30 18:25:40.797 2807 DEBUG neutron.context [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] Arguments dropped when creating context: {u'project_name': None, u'tenant': None} __init__ /usr/lib/python2.7/dist-packages/neutron/context.py:83
  2015-06-30 18:25:40.797 2807 DEBUG neutron.plugins.ml2.rpc [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] Device 59571389-024f-4475-b7f5-1156dadd7e4e up at agent ovs-agent-TestVM4 update_device_up /usr/lib/python2.7/dist-packages/neutron/plugins/ml2/rpc.py:155
  2015-06-30 18:25:40.815 2807 DEBUG neutron.openstack.common.lockutils [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] Got semaphore "db-access" lock /usr/lib/python2.7/dist-packages/neutron/openstack/common/lockutils.py:168
  2015-06-30 18:25:40.834 2807 INFO neutron.plugins.ml2.drivers.xxx.mechanism_xxx [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] xxx ML2 driver: update_port_precommit
  2015-06-30 18:25:40.838 2807 INFO neutron.plugins.ml2.drivers.xxx.mechanism_xxx [req-56a57784-0451-4f7d-a0d6-c866e4934bfc None] xxx ML2 driver: update_port_postcommit
  2015-06-30 18:25:40.967 2807 DEBUG neutron.context [req-83e77512-6a29-47c7-825b-4cca5b94d823 None] Arguments dropped when creating context: {u'project_name': None, u'tenant': None} __init__ /usr/lib/python2.7/dist-packages/neutron/context.py:83

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1470094/+subscriptions


Follow ups

References