Commit Graph

2444 Commits

Author SHA1 Message Date
Dan Wendlandt c736569c73 Remove last parts of Quantum compatibility shim
Goodbye Quantum!

Change-Id: Idbd0384a892beaff3a937444f04cfc433cb805eb
Closes-Bug:1299046
2014-03-31 23:31:23 -07:00
Salvatore Orlando c2d8b0b27c Re-assign quantum.api module as last operation
Bug 1199443

This avoids reset of locals in quantum/api/__init__.py,
resulting in sys being None when assigning quantum.api.extensions
to neutron.api.extensions

Change-Id: I2da8b336679b643c92824399a05ca1b9980d1598
2013-07-15 22:51:28 +02:00
Mark McClain ee3fe4e836 Rename Quantum to Neutron
This change renames everything to Neutron while providing backwards
compatible adjustments for Grizzly configuration files.

implements blueprint: remove-use-of-quantum

Change-Id: Ie7d07ba7c89857e13d4ddc8f0e9b68de020a3d19
2013-07-06 15:02:43 -04:00
Jenkins cecfe07486 Merge "Fix unit test for ryu-agent" 2013-07-04 12:53:22 +00:00
Jenkins 05fbc151b8 Merge "Allow non-root ip in subnet CIDR" 2013-07-04 12:29:41 +00:00
Yoshihiro Kaneko 875b7bbcbe Fix unit test for ryu-agent
Fixes bug #1197670

This patch fixes programming error in the unit test for ryu-agent.
- Change the way of patch to cfg of ryu-agent
- Fix typo
 s/assert_calls/assert_has_calls/

Change-Id: I9a5a17f314eb9c786338463e077cadc32d846dba
2013-07-04 16:54:46 +09:00
Jenkins 8ceac10c1e Merge "Remove unused database table from Cisco plugin" 2013-07-04 07:53:50 +00:00
HenryGessau c0dfe91925 Remove unused database table from Cisco plugin
Fixes: bug #1197053
Change-Id: If0a9198046498cb559353dc9f1b3820b5e01cb7c
2013-07-03 17:19:17 -04:00
Jenkins 5d56e6bee7 Merge "Do not mask NotImplementedError exceptions" 2013-07-03 14:56:53 +00:00
OpenStack Jenkins 01ef895f40 Imported Translations from Transifex
Change-Id: Ic473f0a8aae5786fa5fdf21eccc9653422d04177
2013-07-03 12:11:52 +00:00
armando-migliaccio 6ab8dd80f6 Do not mask NotImplementedError exceptions
With this patch we  avoid masking NotImplementedError(s).
Previously, a catch-all clause returned 500, and it makes
sense to distinguish between genuine 500 errors (i.e. a bug),
versus 501 ones.

This opens up the issue of keeping the server behavior
consistent from one release to another, but one might argue
that this was bad design decision in the first place.

Fixes bug 1197200

Change-Id: I2d81cba5ee9e5fbe8e865378381790b5b467d255
2013-07-02 17:52:39 -07:00
Jenkins 0fc66059af Merge "Jointly load ExternalNetwork with Network" 2013-07-02 16:05:47 +00:00
OpenStack Jenkins 7936669bcc Imported Translations from Transifex
Change-Id: Ibc186825cb89a78fcfcb7124c203f1ec63fcf63c
2013-07-02 12:11:56 +00:00
Jay S. Bryant af91fe1e17 Allow non-root ip in subnet CIDR
If a subnet is created using an IP that isn't a root IP
(doesn't end with .0) the code that handles IP checking
for fixed IPs fails.  This fix changes the check for a
valid IP to use the net.network IP address to
avoid problems in subnets created with the non-root CIDR.

(fixes bug 1188845)

Change-Id: I89df64261d0f2741668576e45dc8f026857f20b0
2013-07-01 15:18:47 -05:00
Jenkins 9c18ac14ca Merge "Move NVP DB extensions under dbexts module." 2013-07-01 19:38:06 +00:00
Salvatore Orlando cfaec705c8 Jointly load ExternalNetwork with Network
Bug 1177572

This patch leverages the same approach as bug 1174111 for avoiding
loading ExternalNetwork element from db for each network element.
make_network_dict, _extend_network_dict_l3 are refactored accordingly.

Also, this patch sligthly alters the logic of process_l3_network_create
and process_l3_network_update as these methods assumed
_extend_network_dict_l3 was always executed before retuerning.

Finally, calls to get_network and get_networks in plugins which only
extended the response with l3 attributes have been completely removed.

Change-Id: I3b4c28ec0c78f731a534c2b66150d529fd797e72
2013-07-01 17:38:54 +02:00
armando-migliaccio 37627645e4 Move NVP DB extensions under dbexts module.
Small clean-up to the plugin directory. This is also
more in line with how API extensions have their own
module.

Change-Id: Idae52e30128f4ed9f8f7f5164991952bc3189f53
2013-07-01 14:19:19 +00:00
OpenStack Jenkins 6426a7e445 Imported Translations from Transifex
Change-Id: I2a21a217a7cd00067ca4aed2ae385b387e5a9731
2013-07-01 12:11:59 +00:00
Jenkins 22399c2003 Merge "Add support for moving ip/addresss/default gateway" 2013-07-01 11:31:26 +00:00
OpenStack Jenkins 84982e7477 Imported Translations from Transifex
Change-Id: Ia1a1fd6e7536281e7b238b419c02991a1e4dc523
2013-06-30 12:11:55 +00:00
Jenkins 81c3a1706f Merge "Improve Nicira plugin test coverage" 2013-06-29 18:41:01 +00:00
Jenkins bdd52903d3 Merge "Fix logic for handling SNAT rules" 2013-06-29 16:57:01 +00:00
Jenkins 9b0c3e80ab Merge "Remove duplicate _check_provider_update from plugins" 2013-06-29 16:19:31 +00:00
Jenkins cac82c4ba6 Merge "Update code to properly use dict returned from get_gateway." 2013-06-29 16:18:35 +00:00
Jenkins 4c9ea16ba1 Merge "Nicira plugin: Do not expect a minimum number of SNAT rules" 2013-06-29 16:16:50 +00:00
Salvatore Orlando 5adf507d12 Improve Nicira plugin test coverage
Blueprint nvp-test-coverage

This patch improves the Nicira plugin test coverage by:
- adding a suite of test cases for nvplib
- removing unused exception handling code
- removing 'vestigial' code in nvp plugin modules

This patches also fixes a few minor glitches with the plugin
and the fake api client.

Change-Id: Ia319f556a815e5061b867a97d834123786218fec
2013-06-29 11:01:03 +02:00
Kevin Benton a87a7c2ad0 Fix case with no host_id in BigSwitch plugin
This correctly checks for the case where nova does not
provide the host_id in port creation/updates.

Fixes: bug #1195903
Change-Id: Ic0d714a3977810c6b1144c1e25488f75cc95d0f0
2013-06-29 00:26:29 -07:00
Jenkins 8e6def1f29 Merge "faster quantum-openvswitch-agent periodic reports" 2013-06-29 06:08:01 +00:00
Jenkins d3fefbbcb3 Merge "Support a timeout argument when instantiating a bigswitch plugin" 2013-06-29 06:06:44 +00:00
Aaron Rosen 26425cbf5f Remove duplicate _check_provider_update from plugins
This patch removes the duplicated method _check_provider_update
and adds a check for it in the NVP plugin that was missing so that an error
is raised if someone tries to update a provider network.

Fixes bug: 1192702

Change-Id: I84e6767f351122f9e5af0cd4ef24d8eaaeb4ccd5
2013-06-28 22:33:15 -07:00
Carl Baldwin 21fd100a98 Update code to properly use dict returned from get_gateway.
Calling get_gateway was a late addition to my code to add a default
route in the DHCP namespace.  The code did not properly handle the
dict returned from that method.  This changes it to properly extract
the 'gateway' attribute from the dict.

Change-Id: I9823a31feee7ab333c277fc6e78f366408393155
Fixes: Bug #1195543
2013-06-29 03:27:14 +00:00
Jenkins 6ef206d25d Merge "Deprecate enable_tunneling in the OVS agent" 2013-06-29 02:29:09 +00:00
OpenStack Jenkins d6a4c4913b Merge "Imported Translations from Transifex" 2013-06-28 23:36:38 +00:00
Kanzhe Jiang bc4c382f11 Support a timeout argument when instantiating a bigswitch plugin
The timeout argument overwrites the timeout value set in the config file.
The change permits any standalone script to interact with the bigswitch controller
through the quantum plugin with customized timeout value without changing the plugin
behavior.

Fixes: bug #1195923
Change-Id: I17954e70d661e7e7d5156c34c08b7c96bb3203ce
2013-06-28 16:11:40 -07:00
Peter Feiner 364e97b441 faster quantum-openvswitch-agent periodic reports
One of two patches that fixes bug #1194438.

Instead of spawning ovs-vsctl for every port on br-int, we just dump the
required columns from the Interfaces table and grab the rows that we need. This
is a big win because the time it takes for ovs-vsctl to connect to the
openvswitch controller is orders of magnitude greater than the time it takes to
parse the rows. In practice, instead of taking roughly 1s per interface, the
agent's periodic task only takes 1s in total.

Change-Id: Idbf32c38e0c4a9c9634c1e4f0e79bd556b720493
2013-06-28 17:55:41 +00:00
Jenkins 67548e10f0 Merge "Improve readability for nvplib error messages." 2013-06-28 16:49:25 +00:00
OpenStack Jenkins d2dc4332b0 Imported Translations from Transifex
Change-Id: Id0d866b54429c147e7b0aef9b3d43e1265086ac7
2013-06-28 12:11:54 +00:00
Jenkins f61c2477bf Merge "Ensure that the report state is not a blocking call" 2013-06-28 12:07:03 +00:00
Jenkins 81382be9ca Merge "Port location tracking for BigSwitch Plugin" 2013-06-28 11:01:42 +00:00
Kyle Mestery c292db34e9 Deprecate enable_tunneling in the OVS agent
This patch properly deprecates the 'enable_tunneling' option in the OVS agent.
It does this be ignoring it if 'tunnel_types' is set, and if 'enable_tunneling'
is set, it defaults 'tunnel_types' to only GRE.

Fixes bug 1195374

Change-Id: I27fe6b930541a514fc51d3a6669347e52db8cb46
2013-06-28 08:07:50 +00:00
Aaron Rosen 5634c34f2d Remove reference to quantum cli in provider network extension
We don't need this info in the doc string as it is already in the admin
guide. If the CLI changes then we'll also have to update the doc string.

Fixes bug 1195429

Change-Id: If27788477c886f6faedbc5fca7856b683a6953f1
2013-06-27 12:04:15 -07:00
Jenkins bb2661e831 Merge "Use 0.0.0.0/0 host route as router option" 2013-06-27 16:59:33 +00:00
Salvatore Orlando 8e10c8a5a8 Fix logic for handling SNAT rules
Bug 1192610

Fixes and simplifies the logic for managing SNAT rules, based
on the assumption that a chain contains SNAT rules for a single
router.
It also fixes another small glitch with SNAT rules not being
removed when a gateway port is destroyed (the glitch did not
affect operations)

Change-Id: Ia95e375459a1f32e93bbe912a268a8ed13859c69
2013-06-27 16:15:15 +02:00
OpenStack Jenkins d047150c4b Imported Translations from Transifex
Change-Id: I5f7ebc55923e7d9f5132a93af9d4dfa18ccaa725
2013-06-27 12:11:56 +00:00
Gary Kotton 0407b59c25 Ensure that the report state is not a blocking call
Fixes bug 1191768

For the dhcp and l3 agents the first state report will be done
via a call. If this succeeds then subsequent calls will be done via
the cast method.

Change-Id: I82a1d92fc84983b7bb46758db0aee3e3eca1d3be
2013-06-27 05:37:02 +00:00
Vishvananda Ishaya 86088a2241 Use 0.0.0.0/0 host route as router option
There is a currently a hacky way to get the dhcp-agent to hand out a
gateway route using a host route on the subnet. If you pass a route
that has 0.0.0.0/0 as its destination, dnsmasq will pass it as a static
route. Unfortunately it will also pass the router option if the subnet
has a gateway set. This is inconsistent and precludes users from options
that are available in nova-network like using an external gateway.

This patch fixes things by allowing a 0.0.0.0/0 host route to override
the router setting passed by dnsmasq. This prevents the situation
where dnsmasq hands out two default routes.

Change-Id: Ia70223070bfd437f1c2eb48fde94491d7ee61fcb
2013-06-26 11:01:11 -07:00
Tomasz Paszkowski f03d91b850 Add support for moving ip/addresss/default gateway
Add support from moving ip/addresss/default gateway from physical interface
which is going to be attached to bridge to bridge device itself.

Fixes: bug #1192122

Change-Id: I8a8bf5edc17a87dcb747626dd1d6817ac48cb20d
2013-06-26 16:20:11 +02:00
OpenStack Jenkins f39d004f9f Imported Translations from Transifex
Change-Id: I6e296370ed88d24ed249d34e43b475e42c1574fa
2013-06-26 12:11:55 +00:00
Jenkins 090432c130 Merge "Update to use OSLO db" 2013-06-26 07:36:21 +00:00
Kevin Benton d3dd33bc30 Port location tracking for BigSwitch Plugin
Adds a new table to the Big Switch plugin to keep track of
the nova compute node host IDs that ports reside on.
This table is then used to allow users to override
the VIF type for a compute node based on the host ID.
This allows quantum to control an environment with multiple
VIF types.

Change-Id: I63eb66d970650237aed2d5dc6676a6d097988f8d
Implements: blueprint hostid-vif-override
2013-06-25 16:47:53 -07:00