yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #65237
[Bug 1699688] Re: neutron agent Trigger reload_allocations
This doesn't look like a bug, if this is a question on the message
please ask on opentack@xxxxxxxxxxxxxxxxxxx
** Changed in: neutron
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1699688
Title:
neutron agent Trigger reload_allocations
Status in neutron:
Invalid
Bug description:
openstack version=newton
Cycle print log,Is this parameter problem?(admin_state_up=True)
Trigger reload_allocations for port admin_state_up=True
[root@controller02 ~]# tail -f /var/log/neutron/dhcp-agent.log
2017-06-22 14:05:49.192 11971 INFO neutron.agent.dhcp.agent [req-a852d70e-26a2-4b37-86f7-4207892f978a - - - - -] Trigger reload_allocations for port admin_state_up=True, allowed_address_pairs=[], binding:host_id=node6, binding:profile=, binding:vif_details=port_filter=True, binding:vif_type=bridge, binding:vnic_type=normal, created_at=2017-05-23T00:52:43Z, description=, device_id=dea4fdc2-7c34-4859-bd5d-457d2673e2e3, device_owner=compute:nova, extra_dhcp_opts=[], fixed_ips=[{u'subnet_id': u'05c1147d-ba31-444b-ac06-e9f982025856', u'ip_address': u'10.64.42.48'}], id=eae4d463-68ac-4bae-9a49-82b905d1ea11, mac_address=fa:16:3e:e0:7b:0a, name=, network_id=8743c909-44a1-44d5-bc51-05336ac1675c, port_security_enabled=True, project_id=b866bce505c34bc3b19745462fd42d31, revision_number=185117, security_groups=[u'5c55fd92-9868-4341-bfce-bf51e2f07ffb', u'9bd3c64f-024e-4e4e-bfb3-c69f4313bc55'], status=ACTIVE, tenant_id=b866bce505c34bc3b19745462fd42d31, updated_at=2017-06-22T06:05:48Z
2017-06-22 14:05:49.548 11971 INFO neutron.agent.dhcp.agent [req-c48675ee-fcfa-444d-8fde-16f8e5447c88 - - - - -] Trigger reload_allocations for port admin_state_up=True, allowed_address_pairs=[], binding:host_id=node6, binding:profile=, binding:vif_details=port_filter=True, binding:vif_type=bridge, binding:vnic_type=normal, created_at=2017-06-22T02:21:43Z, description=, device_id=983d17f3-4138-4363-97de-e3aac5ec9a3d, device_owner=compute:nova, extra_dhcp_opts=[], fixed_ips=[{u'subnet_id': u'05c1147d-ba31-444b-ac06-e9f982025856', u'ip_address': u'10.64.42.71'}], id=0252329c-b60d-4808-bb25-f5579b225662, mac_address=fa:16:3e:a7:74:41, name=, network_id=8743c909-44a1-44d5-bc51-05336ac1675c, port_security_enabled=True, project_id=ad624ca961a0495496a2816ac9a6abf3, revision_number=914, security_groups=[u'20512c4e-80b1-40be-860d-33d3d4f9b4de', u'e721a9df-8241-4016-9919-9e7c749d03fb'], status=ACTIVE, tenant_id=ad624ca961a0495496a2816ac9a6abf3, updated_at=2017-06-22T06:05:49Z
2017-06-22 14:05:49.770 11971 INFO neutron.agent.dhcp.agent [req-c48675ee-fcfa-444d-8fde-16f8e5447c88 - - - - -] Trigger reload_allocations for port admin_state_up=True, allowed_address_pairs=[], binding:host_id=node6, binding:profile=, binding:vif_details=port_filter=True, binding:vif_type=bridge, binding:vnic_type=normal, created_at=2017-06-15T02:36:55Z, description=, device_id=f945cc19-227e-4726-b4c0-db394b320ad7, device_owner=compute:nova, extra_dhcp_opts=[], fixed_ips=[{u'subnet_id': u'05c1147d-ba31-444b-ac06-e9f982025856', u'ip_address': u'10.64.42.61'}], id=42e4e1b6-2be7-4e4c-9c5d-be021e16e7ab, mac_address=fa:16:3e:e3:e2:ba, name=, network_id=8743c909-44a1-44d5-bc51-05336ac1675c, port_security_enabled=True, project_id=b866bce505c34bc3b19745462fd42d31, revision_number=43216, security_groups=[u'5c55fd92-9868-4341-bfce-bf51e2f07ffb', u'9bd3c64f-024e-4e4e-bfb3-c69f4313bc55'], status=ACTIVE, tenant_id=b866bce505c34bc3b19745462fd42d31, updated_at=2017-06-22T06:05:49Z
2017-06-22 14:05:49.859 11971 INFO neutron.agent.dhcp.agent [req-2e961882-964c-4e13-ac9e-d95e2852b346 - - - - -] Trigger reload_allocations for port admin_state_up=True, allowed_address_pairs=[], binding:host_id=node2, binding:profile=, binding:vif_details=port_filter=True, binding:vif_type=bridge, binding:vnic_type=normal, created_at=2017-03-05T04:04:26Z, description=, device_id=0ab1e4a4-b5e5-4b64-a9d1-c0bd50dbb652, device_owner=compute:nova, extra_dhcp_opts=[], fixed_ips=[{u'subnet_id': u'05c1147d-ba31-444b-ac06-e9f982025856', u'ip_address': u'10.64.42.5'}], id=d656cfee-2c32-42fa-a02c-e8476c6b72b4, mac_address=fa:16:3e:af:d0:ce, name=, network_id=8743c909-44a1-44d5-bc51-05336ac1675c, port_security_enabled=True, project_id=5ee81945a5384537a50492ac5236bf24, revision_number=620678, security_groups=[u'64357eeb-8af1-41f3-a004-beca818a2058', u'9fa64964-b91f-48e6-b70e-a097da4a58ff', u'caf3b226-b296-457f-b0a5-dacfd06c952a'], status=BUILD, tenant_id=5ee81945a5384537a50492ac5236bf24, updated_at=2017-06-22T06:05:49Z
.................................................................
Track the next code:
/usr/lib/python2.7/site-packages/neutron/agent/dhcp/agent.py
@utils.synchronized('dhcp-agent')
366 def port_update_end(self, context, payload):
367 """Handle the port.update.end notification event."""
368 updated_port = dhcp.DictModel(payload['port'])
369 if self.cache.is_port_message_stale(payload['port']):
370 LOG.debug("Discarding stale port update: %s", updated_port)
371 return
372 network = self.cache.get_network_by_id(updated_port.network_id)
373 if network:
374 LOG.info(_LI("Trigger reload_allocations for port %s"),
375 updated_port)
376 driver_action = 'reload_allocations'
377 if self._is_port_on_this_agent(updated_port):
378 orig = self.cache.get_port_by_id(updated_port['id'])
379 # assume IP change if not in cache
380 orig = orig or {'fixed_ips': []}
381 old_ips = {i['ip_address'] for i in orig['fixed_ips'] or []}
382 new_ips = {i['ip_address'] for i in updated_port['fixed_ips']}
383 old_subs = {i['subnet_id'] for i in orig['fixed_ips'] or []}
384 new_subs = {i['subnet_id'] for i in updated_port['fixed_ips']}
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1699688/+subscriptions
References