neutron-fwaas/neutron
Aaron Rosen 827cc51705 Notify nova when ports are ready
The following patch adds a callback from neutron to nova that notifies nova
when a port for an instance is *ready to be used*. After nova receives this
event it will then start the instance in a hope that when it comes up
its networking should be in working order.

NOTE: *ready to be used* currently means that a plugin changes the status
in the db associated with a port from:
NO_VALUE/PORT_STATUS_DOWN/PORT_STATUS_ACTIVE to ACTIVE/ERROR.

Neutron will then signal nova: network_vif_plugged:<status> where status
will either be 'completed' or 'failed' given the neutron port status.

Neutron also notifies nova when a port goes from status:
PORT_STATUS_ACTIVE to PORT_STATUS_DOWN and sends nova a network_vif_unplugged
event.

Currently this patch breaks multiregion support (i.e previously you could
back multiple nova regions by one neutron server) though now since neutron
needs to notify nova we'll need to add a way to determine which region a
given port is in.

For now the work around for this would be to set: notify_nova_port_active=False
in neutron to prevent neutron from sending the notification and setting:
vif_plugging_is_fatal=False in nova.conf. Doing this will keep the current
interaction where an instance will be booted without waiting for the network
to be ready.

DocImpact

implements blueprint: nova-event-callback

Change-Id: I4177124485b986706fcf8e73b928024b5d82b822
2014-03-13 17:19:21 -07:00
..
agent Merge "Replaces network:* strings by constants" 2014-03-06 11:33:24 +00:00
api After bulk create send DHCP notification 2014-03-10 11:47:14 +08:00
cmd remove binaries under bin 2013-08-16 10:10:30 +08:00
common Notify nova when ports are ready 2014-03-13 17:19:21 -07:00
db Notify nova when ports are ready 2014-03-13 17:19:21 -07:00
debug options: consolidate options definitions 2014-02-24 13:25:11 +09:00
extensions Merge "Implement Mellanox ML2 MechanismDriver" 2014-03-04 16:22:50 +00:00
locale Imported Translations from Transifex 2014-03-13 06:31:04 +00:00
notifiers Notify nova when ports are ready 2014-03-13 17:19:21 -07:00
openstack Adds multiple RPC worker processes to neutron server 2014-03-04 00:50:20 +00:00
plugins Embrane LBaaS Driver 2014-03-12 16:02:11 -07:00
scheduler Fix DetachedInstanceError for Agent instance 2014-02-27 14:48:11 +00:00
server Adds multiple RPC worker processes to neutron server 2014-03-04 00:50:20 +00:00
services Merge "Embrane LBaaS Driver" 2014-03-13 23:05:12 +00:00
tests Notify nova when ports are ready 2014-03-13 17:19:21 -07:00
__init__.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
auth.py Return request-id in API response 2014-02-10 04:58:38 +09:00
context.py Stop logging unnecessary warning on context create 2013-11-28 09:17:18 +00:00
hooks.py Remove pyudev dependency 2014-02-25 14:28:35 +00:00
manager.py Fixes spelling error 2014-02-28 11:34:19 -08:00
neutron_plugin_base_v2.py Adds multiple RPC worker processes to neutron server 2014-03-04 00:50:20 +00:00
policy.py Replace binding:capabilities with binding:vif_details 2014-02-23 22:56:45 -05:00
quota.py Add missing quota flags in the config file sample 2013-12-02 19:14:06 +01:00
service.py Adds multiple RPC worker processes to neutron server 2014-03-04 00:50:20 +00:00
version.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
wsgi.py Merge "Fix webob.exc.HTTPForbidden parameter miss" 2014-03-02 19:05:50 +00:00