Commit Graph

13 Commits

Author SHA1 Message Date
Maysa Macedo 027247329d Fix default region name definition
This commit sets the default value of the region_name to 'None' in the
config, this way its avoided the use of a region name
that might not exists on the OpenStack cloud.

Closes-Bug: 1843194
Change-Id: Ic9deca9cb073b5458f5aa063f669b30ae2568f30
2019-09-09 11:32:51 +00:00
zhangchi 50da6c1b30 add region_name in get neutron client to support multi-region scene
kuryr should support neutron client in multi-region scene as follows:

https://bugs.launchpad.net/kuryr/+bug/1831684

Closes-Bug: 1831684

Change-Id: I91315885a56c5cfb313b73b1eddc3935bc200c6c
2019-08-29 07:28:41 +00:00
Hongbin Lu da736d115b Allow multiple binding drivers
In before, only one binding driver is allowed. This patch introduces
a new config to support multiple binding drivers. The first use case
is to allow SR-IOV binding to be co-existed with other binding.

* Rename the config 'driver' to 'default_driver' in 'binding' group.
  This is for making it clear that it is allowed to have more than
  one type of bindings.
* Introduce a new config called 'enabled_drivers'.
* Allow client to pass a driver name to port_bind and port_unbind.
  If this parameter is None, kuryr will load the default driver.

Partial-Implements: blueprint sriov-binding
Change-Id: I14b23379de9f2459ba97d5d82dfdb51553370cb1
2017-10-17 12:06:57 -04:00
xhzhf cecb593a3f E128 ignore statement make code unclearly
E128 ignore statement make code unclearly.
we can fix E128 issue.
Closes-Bug: #1651297

Change-Id: I0f38febecffb0dc5f5419b959be5758739d9cde0
2017-02-13 19:40:18 +08:00
Hongbin Lu 0439d7b820 Refactor out keystoneauth code from neutron
* Split get_neutron_client into three methods: get_neutron_client,
  get_auth_plugin, and get_keystone_session.
* Split register_neutron_opts into two methods:
  register_neutron_opts and register_keystoneauth_opts
* Split list_neutron_opts into two methods: list_neutron_opts
  and get_keystoneauth_conf_options

This allows Fuxi to reuse the keystone code to get a cinder
client and generate sample config.

Change-Id: I9053b6d1a669d471a4c6b447fb72591a421a8caa
2016-12-27 22:32:00 -06:00
Janonymous cf337db2ea Update message as per i18n
Change-Id: Iffd22fb6c634047a52a38b3ab78205255fe46047
2016-10-13 03:17:10 +00:00
Antoni Segura Puimedon 854a8028b6
binding: Add driver based subsystem
This patch introduces a new hierarchy of drivers to perform the port
binding and unbinding in a similar fashion as how it is done with
Neutron plugins.

The initial three drivers are:
* veth: The one that we have been using up until now and that uses
  the usr/libexec/kuryr/* scripts to bind the host side
* ipvlan: L2 ipvlan motivated mostly container-in-vm use cases so that
  the instance interface will have linked devices that get addresses
  of other ports of the same subnet.
* macvlan: bridged mode ipvlan for OSes that do not support vlan.

Co-Authored-by: Louise Daly <louise.m.daly@intel.com>
Implements: blueprint driver-binding-ipvlan
Change-Id: I1d94ab324ab2a65a6d3e782e23ea6c59b110ff67
2016-10-03 12:28:01 +02:00
Vikas Choudhary d5e87557f1 Add 'deployment_type' configuration parameter
Value of this parameter will be refered in the code to determine
if containers are being launched inside virtual machines or on baremetal
machines.

Partially Implements blueprint containers-in-instances

Change-Id: Icbd561504c9bc39dbf7ef4b0f97561882dd8b1c2
2016-09-26 13:29:42 +00:00
Antoni Segura Puimedon 632fda4c32
auth: use keystoneauth1 for neutron access
This patch moves, as was discussed in the weekly IRC meeting,
[keystone] and [neutron] options, that were just for talking to
Neutron, inside [neutron].

The new organization is consistent with how Nova talks to Neutron
and how Neutron notifies nova. In doing so, we also reduce our codebase
since we can leverage the nice things offered by keystoneauth1.

Closes-bug: #1563011
Change-Id: Ia56b22963f5a2130a722403a14ee1a233ac6cff9
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
2016-09-11 11:05:05 +02:00
Vikas Choudhary 6438b8f06d Avoid registration of config parameters
Configuration parameters should be registered by module which is user
of kuryr-lib.

Change-Id: I39dc27a8a9430327cdc75191f63c268354d07dab
Closes-bug: #1615942
2016-08-24 18:00:15 +05:30
Liping Mao 28cd5bbe1a Add UT for update MTU in port binding
Change-Id: Ia37ec055842aca9f5014e9e2b24093d9b57236c5
Partial-bug: #1613528
2016-08-21 09:05:19 +08:00
vikaschoudhary16 e3ebe9758b Remove libnetwork specific config parameters
This patch removes configuration parameters which are specific to
libnetwork. Currently these parameters are present at both repos and
thus lead to duplicate option error.

Change-Id: I2c3473a7ce89e26c78aeb35510650836f7043157
Closes-bug: #1605079
2016-07-21 12:15:38 +05:30
vikaschoudhary16 47490acec9 Refactoring: Drop all the code except common one
Related patchset in kuryr-libnetwork:
https://review.openstack.org/#/c/337350/

Implements blueprint code-refactoring
Change-Id: I91a402a159817462535e77296217a9dd7eb0fd08
2016-07-19 14:56:17 +05:30