103 Commits

Author SHA1 Message Date
Frode Nordahl
353d4a97eb Add support for setting sriov_supported_pci_vendor_devs
This is required for SR-IOV to work on OpenStack versions
Kilo, Liberty and Mitaka (unless you are the lucky owner of
NICs with the default vendor/product IDs '15b3:1004', '8086:10ca').

The option is deprecated in Newton and the default behaviour
onwards is to not perform the check (unless configured) and not
overrule Nova's scheduling decision. (See LP #1611302)

Re-work mechanism_driver templating. Current implementation
treats mechanism drivers 'hyperv' and 'sriovnicswitch' as
mutually exclusive for simplicity. This prohibits us from
adding functional test for verifying sriov statements in
configuration files.

Due to how neutron init scripts are laid out on various Linux
distributions put the [ml2_sriov] section in ml2_conf.ini instead
of its default ml2_conf_sriov.ini location.

Add a placeholder ml2_conf_sriov.ini with comment to point users
in the right direction.

Change-Id: I37da1c430a06417ff7f1bc9df2d984137688bba0
Closes-Bug: #1630387
2017-08-02 09:45:35 +01:00
Corey Bryant
663b614c6d Enable use of DVR+L3HA together for Newton and up
This combination is supported since Newton. Additionally this
enables use of l2-population with L3HA since Newton.

Change-Id: Ifd7411ac8e0e24d95da791a36b2f523b34ded2a4
Closes-Bug: #1681891
2017-05-31 13:41:35 -04:00
Billy Olsen
9bbd2bad9c Enable internal DNS resolution
Add the dns-domain config and enable-ml2-dns options, allowing the
user to enable DNS integration between Neutron and Nova. This enables
the DNS integration between Nova and Neutron for internal DNS services
when the enable-ml2-dns option is set to True.

Change-Id: Id5f828da003e056a882297ffdbf3df22e856d14a
Implements: blueprint internal-dns
2017-04-30 22:19:29 -07:00
Jenkins
71e00c5c4e Merge "Add validation of *-l3-agents-per-router config" 2017-04-28 08:59:06 +00:00
Edward Hope-Morley
a741d105bc Add validation of *-l3-agents-per-router config
Change-Id: If426505b4a14115df3b918021aabf3ddef96c2c8
Closes-Bug: 1679008
2017-04-03 12:11:11 +01:00
Alex Kavanagh
750a3e2c13 Fix alphanumeric comparisons for openstack and ubuntu releases
- sync charmhelpers with fix-alpha helpers
- fix up code where the alpha comparisons are done
- fix tests which assumed mocks would just work on os_release()

Change-Id: I3d1a8993286f0e7a1037c03e6711015883f1b615
Related-Bug: #1659575
2017-03-28 17:30:14 +01:00
Dmitrii Shcherbakov
f3b655acdf add keystone middleware update logic
In order to support changes in the api-paste.ini file for the keystone
middleware of the neutron-api service by subordinates we need a generic
mechanism to pass wsgi middleware data via a relation.

The following approach is used in this change:

- relation data set by subordinates:
{'extra_middleware': [{
        'type': 'middleware_type',
        'name': 'middleware_name',
        'config': {
            'setting_1': 'value_1',
            'setting_2': 'value_2'}}]}
- there may be many subordinates each with their own set of middleware
all of which should be taken into account
- besides a factory method for middleware other settings can be
specified, therefore, a generic config dictionary is used
- neutron-server has to be restarted as api-paste.ini is read upon
startup of the service
- api-paste.ini rendering code is added along with a template code
containing loops over a list of middleware provided in a context to
construct the following entries:

keystone = [name-1 ... name-m] <default_middleware>

[type-1:name-1]
key-1 = value-1
...
key-n = value-n
...
[type-m:name-m]
key-1 = value-1
...
key-k = value-k

- api-paste.ini defaults are copied from their respective upstream
neutron branches

Change-Id: I9449aa2e85b1523f24acdcee11ca1f635dda47c0
2017-03-09 22:49:10 +03:00
Tytus Kurek
491e501b06 Add basic support for "global_physnet_mtu" and "path_mtu" options.
I've added basic support for "global_physnet_mtu" and "path_mtu"
options by allowing to configure them via charm parameters.

Change-Id: Ia95533418ccd4b7d1b96270633193ea34b1edecb
Partial-Bug: 1650579
2016-12-16 17:49:24 +01:00
Liam Young
446de085a0 Add default-tenant-network-type config option
- Add default-tenant-network-type config option to allow the default
  network type for a tenant network to be set

- Fix rendering of overlay-network-type so that an empty string is
  valid

Change-Id: Ib2325d273a0dd5e637f36113b951130387902777
Closes-Bug: 1533651
2016-12-06 08:59:53 +00:00
Jenkins
6ee476166b Merge "Added Hyper-V networking support" 2016-07-08 15:56:57 +00:00
Ionut Balutoiu
353ab6f9f8 Added Hyper-V networking support
This patch adds hyperv mechanism driver to ml2_conf.ini template
and the required python package to the list of packages to install.

Change-Id: If23f22aea53ba5549160f44442567d57b8077af6
2016-07-08 11:42:31 +03:00
James Page
69faf85da3 Re-license charm as Apache-2.0
All contributors to this charm have agreed to the switch
from GPL v3 to Apache 2.0; switch to Apache-2.0 license
as agreed so we can move forward with official project status.

Change-Id: Ie7859853644fb819f1cd3062a2fea86766de0afb
2016-07-03 17:47:52 +01:00
Timothy Kuhlman
0052948de1 Add SR-IOV device support
Add a new configuration option to enable SR-IOV support across Neutron and
Nova; this involves enabling the required mechanism driver, and informing
the nova-cloud-controller charm that SR-IOV has been enabled, so that Nova
can use the correct scheduler filters for PCI device management.

Change-Id: I8938c22c8f4dc27bb0816fd8e5e6154a1407e93f
2016-05-25 09:29:44 -06:00
sunny-verma
a0dddcdf03 Added vsd-cms-id as part of config option.
To cover the case when Nuage VSD & VSC are deployed outside of juju
framework.
Removed nuage-tarball from config file
Removed respective code form neutron_api_hook.py

Change-Id: I4518435ded9e1a4eb3d98cbb2e77f04b4f2dda61
Signed-off-by: sunny-verma <sunnyverma1992@gmail.com>
2016-05-05 15:03:49 -07:00
Seyeong Kim
74c22adc03 Add vni-ranges option for supporting vxlan
Add vni-ranges option for supporting editable vxlan range

Change-Id: I6988aa64ca179c28093da6e6263dc00b35e972fd
Closes-Bug: 1545886
2016-03-04 08:56:25 +09:00
sunny.verma@nuagenetworks.net
0967ec59d3 Addresed David's comments 2016-02-26 18:23:35 -05:00
sunny.verma@nuagenetworks.net
8dd25c9aa0 Merged from lp:~openstack-charmers/charms/trusty/neutron-api/next 2016-02-24 17:35:54 -05:00
Sunny Verma
c8da373120 Merged to lp:~openstack-charmers/charms/trusty/neutron-api/next 2016-02-19 19:08:57 -05:00
Sunny Verma
ec48ad5f90 Added united test and added kilo/juno condition 2016-02-19 19:01:11 -05:00
sunny.verma@nuagenetworks.net
42949ea0a7 added neutron_api_context..cms name 2016-02-15 00:23:10 -05:00
sunny.verma@nuagenetworks.net
9f6cab60ab first draft for Nuage R4 2016-02-13 17:12:10 -05:00
Adam Gandelman
86f6174d5f Advertise API readiness to subordinates, allow subordinate specification of api_extensions
This advertises API readiness to subordinates via a new flag int the subordinate
relation. It determines readiness by the completion of required contexts. This
simply means the API service has enough of its topology completed to begin
servicing requests, and it has at least *started* the service (from the POV of
the init system). Its up to the subordinate service to ensure the API is
functional.

It also allows subordinates to specify custom api_extension_paths to neutron-api.
2016-02-03 11:17:14 -08:00
Antoni Segura Puimedon
cdb8db5e5e MidoNet support up until Liberty 2016-01-22 16:14:59 +01:00
Alex Kavanagh
b17bf9ed8d Change to the dhcp-agents-per-network setting such that it is always active
and not just when enable-l3ha is true.  This is to provide non-ha environments
with the option to have multiple dhcp agents (which are controlled directly by
neutron).  The default, is therefore, 1.
2016-01-20 16:38:56 +00:00
Alex Kavanagh
da4744543b Added config option 'dhcp-agents-per-network' with a default value of 2.
It is only activitated when the 'enable-l3ha' option is True.
2016-01-20 13:59:54 +00:00
David Della Vecchia
ed89ca2b7b Adding config context in the right place, removing other references 2015-11-09 13:45:01 +00:00
David Della Vecchia
c7e2fd0892 adding context property for ml2 security groups 2015-11-07 05:17:57 +00:00
David Della Vecchia
e04177932c Add context for template rendering 2015-11-05 14:44:17 +00:00
Subbarayudu Mukkamala
428b5d1918 Merge from lp:~openstack-charmers/charms/trusty/.../next/ 2015-10-27 07:50:30 -07:00
Robert Ayres
74f927b621 Support quota-driver attribute in neutron-plugin-api-subordinate relation 2015-10-07 23:11:33 +01:00
James Page
f87ad07e29 [project-calico,r=james-page] Add support for Calico plugin 2015-09-04 12:03:14 +01:00
Bilal Baqar
dbe341bbfa Adding context for PLUMgrid plugin 2015-09-01 07:48:17 -07:00
Cory Benfield
8d5aa82328 synced /next 2015-08-21 08:33:43 +01:00
Subbarayudu Mukkamala
37802d3866 Merge from lp:~openstack-charmers/.../next 2015-08-20 06:45:36 -07:00
Liam Young
36fc3a0fcb Add unit tests for new contexts 2015-06-30 09:26:51 +01:00
Liam Young
d189c5ebe1 Lint and tipdyup 2015-06-29 13:21:05 +01:00
Cory Benfield
af9e25bb3d Add support for Canonical etcd charm 2015-06-19 09:18:26 +01:00
Liam Young
d835d0c9e5 Update relation name 2015-06-12 12:23:29 +00:00
Liam Young
7a2fa1b185 Add support for config for neutron-server coming from subordinate 2015-06-12 09:26:59 +00:00
Liam Young
b619f1cc68 Add restart trigger support 2015-06-11 16:48:46 +00:00
Liam Young
f54243db7e Support a neutron api sdn plugin 2015-06-11 14:17:54 +00:00
Cory Benfield
8c04757bc9 synced /next 2015-06-08 13:50:27 +01:00
Subbarayudu Mukkamala
ce0b5b9dcd Merge with ~openstack-charmers/charms/trusty/neutron-api/next 2015-05-27 15:53:45 -07:00
James Page
39306764b3 Deal with juno/vxlan as well 2015-05-06 12:40:21 +01:00
James Page
8af5f23fb1 Support multiple network overlay types at the same time 2015-05-06 12:39:27 +01:00
James Page
65fcc942cb Expand dvr overlay network support for >= kilo 2015-05-06 11:46:22 +01:00
Cory Benfield
eff8938d26 synced /next 2015-04-23 14:10:48 +01:00
Cory Benfield
5bb662b2bc Templates and tests. 2015-04-16 15:06:49 +01:00
Cory Benfield
af1b04bcd2 Support etcd-peer-relation 2015-04-16 11:42:32 +01:00
Edward Hope-Morley
9ba06cb46e [hopem,r=]
Allow flat network providers to be configured seperately to vlan
providers.

Closes-Bug: 1444470
2015-04-15 15:08:39 +01:00