Commit Graph

29 Commits

Author SHA1 Message Date
Takashi Kajinami 5c41f9f700 Fix missing or unnecessary dependencies
This fixes the following problems with current requirements and test
requirements.

- netaddr is not used

- oslo.serialization and oslo.utils are imported but are not listed in
  requirements.

This also fixes the workaround for python 2 from setup.py because
python 2 support was removed some time ago.

In addition, the described behavior of pip was already fixed in
recent versions.

Change-Id: I63a56adf73c221c8f5f725c2689ddf953f90c654
2024-02-19 10:40:44 +09:00
Ghanshyam Mann 1651a730c1 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I38a41071ac540e3b58f9d18ead88b86203a4c843
2022-06-16 13:46:59 +09:00
Takashi Natsume 727d8da342 Remove six
Now that we no longer support py27, we can remove six.

Change-Id: Ie3ff2b7f5e8a5ff1357d6147ab1eb481f562aba3
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2020-05-02 18:28:47 +09:00
Jan Gutter e8f541fa0c Extend port profiles with datapath offload type
TC Offload capabilities have been present in Linux Kernel 4.13 for
hardware offloads. Currently OVS supports offloads (for OVS 2.8 and later)
with similar efforts planned for vrouter (OpenContrail and Tungsten
Fabric).

The existing method in os-vif is to pass the metadata required for
plugging via a VIFPortProfileOVSRepresentor port profile object. This is
used by the 'ovs' reference plugin and the external 'agilio_ovs' plugin.

With 'vrouter' being the third user of such metadata, it would be more
elegant to clean up this interface by using a composition pattern rather
than an inheritance based pattern.

Change-Id: I401ee6370dad68e62bc2d089e786a840d91d0267
Needed-By: I327894839a892a976cf314d4292b22ce247b0afa
Signed-off-by: Jan Gutter <jan.gutter@netronome.com>
blueprint: generic-os-vif-offloads
2019-01-14 17:23:22 +02:00
Rodolfo Alonso Hernandez 512e64d794 Remove IPTools deprecated implementation
IPTools driver [1] was implemented to avoid a bug in pyroute2 library,
currently solved. This implementation was marked as "deprecated" two
releases ago.

[1] 570c05266f

Change-Id: I16b180a298e104f393b5f665409cdf4ba5bff203
Closes-Bug: #1794524
2018-10-09 08:58:06 +01:00
Rodolfo Alonso Hernandez 7bfb01bcb1 Add abstract OVSDB API
Abstract all existing 'ovs-vsctl' calls to an abstract OVSDB API.
This will allow the future addition of a native OVSDB protocol
implementation of the API without breaking backwards compatibility.

Partial-Bug: #1666917
Change-Id: I9ec36be390d713a928a673191008612f3fddad8f
2018-10-08 12:09:36 +01:00
Rodolfo Alonso Hernandez dff9093ab6 Migrate from 'ip' commands to 'pyroute2'
This patch migrates the use of command line 'ip' commands
to pyroute2 library. A new class, 'IpCommand', is created
to wrap the use of the library, implementing the functionalities
needed in this project.

The new wrapper class is defined in 'os_vif' and is used in
'vif_plug_linux_bridge' and 'vif_plug_ovs'.

This patch also adds functional tests in 'os_vif'. The aim
of these functional tests is to check 'pyroute2' implementation
works correctly, by creating, modifying and deleting network
interfaces. 'ip' commands are used to execute additional actions,
not relying on the tested library to check its own results.

Co-Authored-By: Stephen Finucane <stephenfin@redhat.com>

Closes-Bug: #1677238
Change-Id: I18f7b3424a6c447ee89df1f0326ece75f2333bf2
2018-01-08 10:17:42 +00:00
OpenStack Proposal Bot 23c71e083a Updated from global requirements
Change-Id: Ie3c6a4fe12abe7d4aa9c6afaf1b5d719bb646a3c
2017-11-29 09:13:58 +00:00
OpenStack Proposal Bot 8f32ddaa28 Updated from global requirements
Change-Id: I800ed7cbdd90c7c3323582d6e8b629399f9daeb8
2017-11-09 00:18:27 +00:00
OpenStack Proposal Bot 65b7519394 Updated from global requirements
Change-Id: I558c44773e68e2aa67eb3adff4ee9b70039ebe86
2017-09-21 13:09:29 +00:00
OpenStack Proposal Bot 45fa6633d8 Updated from global requirements
Change-Id: Ibcd618730acd85da827377b9aeca42fc62096f4b
2017-08-24 05:58:11 +00:00
OpenStack Proposal Bot 6a9017d1dc Updated from global requirements
Change-Id: Ie247455b5e85617849c1628480f9e79d9fd5c5aa
2017-06-27 12:19:44 +00:00
OpenStack Proposal Bot 19af4386de Updated from global requirements
Change-Id: Id94267516d1d2e7cead85db4afeb349a5c2c3251
2017-05-17 03:56:14 +00:00
OpenStack Proposal Bot 414a35768d Updated from global requirements
Change-Id: Ie7109d08f83adf42f376fe5378e6ba3071fc813d
2017-03-13 19:39:35 +00:00
OpenStack Proposal Bot 94fb151615 Updated from global requirements
Change-Id: I450fb1a06524232856b5ed15955f3c75d762f05d
2017-03-10 19:12:21 +00:00
OpenStack Proposal Bot c609d71d54 Updated from global requirements
Change-Id: If30501784dbdbf37607538dd60e36aaaa97a6af3
2016-11-02 15:38:51 +00:00
Jenkins 9fb7fe5129 Merge "Add oslo.concurrency to requirements" 2016-10-04 17:39:08 +00:00
Tony Xu 44c1caaae5 Add oslo.concurrency to requirements
This module is be used: vif_plug_ovs vif_plug_linux_bridge

Change-Id: Ia9a8ffd01fcfa6ace34d51149590a34c0325c3d4
2016-09-22 17:46:39 +08:00
OpenStack Proposal Bot ebbde9728d Updated from global requirements
Change-Id: I97bc295f0d6e9fbaca5130238dad7ccf8d332107
2016-09-21 19:11:43 +00:00
OpenStack Proposal Bot c851d07da3 Updated from global requirements
Change-Id: I25170468b5683c7fc41e6c2230e69034da268564
2016-09-15 20:24:51 +00:00
OpenStack Proposal Bot 45750a9311 Updated from global requirements
Change-Id: Ifebbfaa154394d85dffc0e75623c34964ce4089e
2016-08-05 20:26:50 +00:00
OpenStack Proposal Bot 4da0ab185a Updated from global requirements
Change-Id: I305125adb684fd730f911548bc24061f98f3cfa8
2016-06-24 17:10:19 +00:00
OpenStack Proposal Bot 2eb892caab Updated from global requirements
Change-Id: Ic178517d2b12afe7b45a2369bdffd9df3de8c4f5
2016-06-10 15:48:25 +00:00
OpenStack Proposal Bot 8354942463 Updated from global requirements
Change-Id: I7341694acfda0bc10663b7458fde457b495cb452
2016-05-23 12:03:15 +00:00
Daniel P. Berrange bf845feb11 linux_bridge: convert over to use privsep module
Instead of relying on root wrap, convert the Linux bridge
network and iptables code to use the privsep module to
run privileged actions.

Change-Id: Ief902f63c49e4529bae43c619c1284fe51c90a90
2016-04-04 12:42:16 +01:00
Daniel P. Berrange 72d5dfbf48 Provide plugins an oslo_config group for their setup
The plugin implementations need to be isolated from the
entity that is using os-vif. Plugins should be allowed
to define their own custom config parameters, without
needing the user of os-vif to pass further options into
the os_vif.initialize() method.

This change introduces a CONFIG_OPTS attribute on the
Plugin class. This provides a list of oslo_config
options that are to be used by the plugin. os_vif will
register these options into a group 'os_vif_$PLUGIN'
eg 'os_vif_linux_bridge'.

This gives the plugin impls the ability to have config
options in the main project conf (ie /etc/nova/nova.conf)
without exposing them directly to all of nova's own
config options.

Change-Id: I9634b474cd0d3fda09aef5800020c9415c28e3d8
2016-02-16 11:06:58 +00:00
Daniel P. Berrange 1339a4516f don't catch ProcessExecutionError exception as special case
When plugging / unplugging vifs we should not be assuming that
the plugin will be running external commands - it could easily
be calling other python libraries to do its work. Thus we
should not catch ProcessExecutionError as a special case, but
instead handle any type of exception

Change-Id: Ic03279f6bb6de4bd72dfee7c117cf8502decfec5
2016-01-18 13:32:33 +00:00
Daniel P. Berrange 9370d74617 remove obsolete requirements
Since the vif plugins are not kept in this module, many of
the requirements are obsolete

Change-Id: I1333535029a080cdd8a96b85fa75d0a4fbc339a8
2016-01-18 13:21:23 +00:00
Jay Pipes 8023f33453 Import of code from https://github.com/jaypipes/os_vif
Initial commit using code imported from

  https://github.com/jaypipes/os_vif

This patch also includes the following fixes to make the import pass all
jenkins jobs:
 - add doc/source/conf.py and index.rst
 - sync with global requirements

Change-Id: Iac6a9d45ea799eaa71f895af115e966c28246a22
2016-01-13 12:56:01 -05:00