Commit Graph

43 Commits

Author SHA1 Message Date
Sean McGinnis 7839f35ca3
Retire repo
This patch completes step 2 of the infra project retirement process
found here:

https://docs.opendev.org/opendev/infra-manual/latest/drivers.html#step-2-remove-project-content

Reference:

http://lists.openstack.org/pipermail/openstack-discuss/2020-June/015600.html

Depend-on: https://review.opendev.org/737566

Change-Id: Id3a5477860323547a4e17155061f597a8c96640b
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-06-23 10:49:40 -05:00
Shachar Snapiri bbd2d93dd4 Fix docker launch with bash option
When launching the docker with the bash option, it should be able to get
any command-line arguments supplied to it.

Change-Id: I7dfb6cf265de81feb1b4ffc60d54b679a2918e97
2019-04-17 13:51:50 +03:00
Shachar Snapiri 2d61e5fcf6 Fix default value syntax for docker script
Default conf source dir in run_dragonflow.sh was with the wrong syntax.
This causes the script to fail.
Fixed the syntax to the correct one.

Change-Id: I334f3161d62df2d1bc692a43c2d6eff740c0c92b
2019-01-09 18:58:05 +02:00
Shachar Snapiri 577cc84245 Allow different conf source path
Setting the CONF_SRC_DIR environment will take the template
dragonflow.ini from that path during install.

Change-Id: I57bf5aeb832e9fc68101e322691cc54cb9e20286
2018-12-30 14:02:07 +00:00
Shachar Snapiri 04cdcb41c9 Added validation to docker script verbs
Added a noop verb that does nothing, also added a global-catch that
issues a warning if unknown verb was supplied.

Change-Id: I98ca93457f58d7d9f63188d3642788e5618df62d
2018-12-12 09:10:13 +02:00
Omer Anson 1808a2cbfd Allow simple REST API container deployment
* Add verbs to container entrypoint

* Have REST API serve the schema JSON

* Add documentation explaining how to deploy

Co-Authored-By: Shachar Snapiri <shachar.snapiri@toganetworks.com>
Change-Id: I243130a219d3e9e96bf87d39693e600ea4b627a2
Partially-Implements: blueprint add-dragonflow-api
2018-11-11 14:32:07 +00:00
Shachar Snapiri 1b5efe44f4 Allow configuration of DB drivers on docker install
Added the ability to supply 'pubsub_driver' and 'nb_db_driver'
parameters to the docker deployment.
This allows installation with databases different than etcd.
The default driver is still the etcd one, to maintain backward
compatibility.

Related-Bug: #1778007
Change-Id: Ibbd3b0fc4116dd5ac6514730773f771c0b27e5f7
2018-09-03 19:00:32 +03:00
Shachar Snapiri 590d23f94f Fix docker run script
Though this is not a problem in our case, the parameter parsing had a
bug in it.
when parsing the command line arguments, we did not "eat" the '--'
argument, thus if we were to run a script with the leftover arguments,
it would get that argument first and stop parsing.

Change-Id: Ia863e5cfc6a3fe6a31e32f034e282bda0534fd91
2018-09-03 13:29:23 +03:00
Zuul 63f13f8d22 Merge "Fix run_dragonflow mgmt_address parameter" 2018-09-03 08:33:19 +00:00
Shachar Snapiri f6f5e5365e Add DF_NO_BASH option to docker file
In case we only want to configure the DF docker and not run the bash
(e.g. in docker containers that use this container) we would like to be
able to do so.
Supplying the DF_NO_CONTROLLER=1 does not run the controller, but runs
a bash, now adding DF_NO_BASH will just configure the docker and exit.

Change-Id: Ic06e14d1ce60b33832a40626fd9d737c68bb19b7
2018-08-30 17:35:13 +03:00
Shachar Snapiri 945b1e368c Re-add missing iptables rule for metadata service
In patch [1] there were some lines that were missed out. Specifically 
an iptables rule and a cleanup line.
This patch re-adds the rule and cleanup code.

[1] https://review.openstack.org/#/c/583878/

Change-Id: I32045f60e205d59382ef3d98f845c4c1c8bea37f
Partial-Bug: #1781376
2018-08-08 08:15:15 +00:00
Lihi Wishnitzer ec77952569 Fix run_dragonflow mgmt_address parameter
The script run_dragonflow tried to receive the parameter --mgmt_address.
However in the documentation, management_ip should be configured.

This fixes mgmt_address to management_ip to match both documentation and
the project's convention.

Change-Id: I7e913a1c7f82dcb77c1c00b520c1c1a7b6ece41b
2018-07-29 09:49:57 +03:00
Zuul 04e6e76363 Merge "Move metadata_service deployment out of DF code" 2018-07-26 09:52:40 +00:00
Shachar Snapiri f624265558 Move metadata_service deployment out of DF code
The deployment should be done via deployment scripts and not in the
code (nor in plugin.sh directly, as to allow production deployment).
Moved the deployment to a script located in the tools directory, which
is now called from the plugin.sh, and may be called from any production
deployment mechanism.

Partial-Bug: #1781376
Change-Id: I90a7e8a87764354ab9e2a8ab149f00f2eaea94f5
2018-07-25 10:44:04 +03:00
Zuul c264f4ebc3 Merge "Run Docker container without the controller service" 2018-07-16 13:22:28 +00:00
Lihi Wishnitzer b033bc42c1 Run Docker container without the controller service
This adds the option to run the Docker container without the controller
service running on the container.
This is useful in order to create separation between the Dragonflow
API (df-db) and the controller service.

Related-Bug: #1778007

Change-Id: I4fb77ae03e47942a75d34bfb4f8c80db21a3aec6
2018-07-16 11:52:29 +03:00
Lihi Wishnitzer d7183145ac Dockerfile: Create neutron configurations
If the Neutron configuration files does not exist in the
docker image, use Dragonflow's configuration files as neutron's
configuration files.

Related-Bug: #1778007

Change-Id: I167a290358427bd94dba9c6db6f02a153b5ca734
2018-07-16 10:18:24 +03:00
Shachar Snapiri ce7abc0fd0 Add Docker support
Add support for running dragonflow as a docker container.

Includes documentation how to set up with OVS running on the host.

Change-Id: Ia7185ea7f9d47a56853def418aeab8c3a4e87d0a
Resolves-Bug: #1778007
2018-06-25 08:38:13 +00:00
Omer Anson 7b8fd6dd4d Update add_table_names script
Add a new script, tools/add_table_names, that adds to the output of
ovs-ofctl dump-flows the table names, including those allocated by the
new datapath. It relies on the new datapath output file.

Change-Id: I82069d1d084145ea0a55fd8c7ea2573ba5a86c4f
2018-05-28 08:25:45 +03:00
Andreas Jaeger 60a2b6b991 Avoid tox_install
Since neutron and networking-sfc are now in global-requirements,
we can remove the installation from tools/tox_install.sh.

Remove the tox_install files completely and update tox.ini for this.
Add requirements to requirements.txt instead.

Change-Id: Id6d43a97bd77785de976d418dc835108e3b1434f
2018-04-03 09:10:05 +03:00
Andreas Jaeger f442147675 Move neutron to requirements.txt
Since neutron is now in global-requirements, we can remove the
installation from tools/tox_install.sh.

Change-Id: Ibc8b634c9686ecad32f8b9d84194de9c8cb3a659
2018-03-14 20:52:43 +01:00
Shachar Snapiri a644ed7a67 Added a script to create add_table_names script
The add_table_names script is to be used with the output of the
ovs-ofctl dump-flows command, and adds the names of the tables being
used to their IDs. This is done for better readability and easier
debugging.

Change-Id: I52907e8d3b81f3f23eff2b0e062160141285bfed
Related-Bug: #1740867
2018-01-03 11:16:39 +02:00
Eyal Leshem 9e0c5fee1f Remove zuul-cloner usage from zuul v3 builds
It is now not required to use the zuul-cloner as the required projects
are declared in the zuul config file.
Do not clone the projects, but still install them so they are usable.

Co-Authored-By: Shachar Snapiri <shachar.snapiri@huawei.com>
Change-Id: I3116864d109d98c401c870f97ddcac8e35474580
Depends-On: I581b02cb34602cc9466e9a121544a4e3a36d8e3d
2017-10-17 08:55:11 +00:00
Dima Kuznetsov f01f6307c8 [02/xx] Add SFC drivers to Dragonflow
Added networking_sfc drivers for flow classifiers and SFC functionality.
Can be enabled in devstack with ENABLE_DF_SFC

Partially-implements: blueprint service-function-chaining
Change-Id: I3600caba5618ed16ebad565f73cc4ad1ca128693
2017-07-18 13:06:04 +03:00
Dima Kuznetsov 105928eec4 Update tox_install.sh to allow fetching several projects.
Update tox_install.sh/tox_install_project.sh to ones used in
networking-odl. Needed for [1], which adds dependency on
networking-sfc tree

[1] https://review.openstack.org/#/c/406597

Change-Id: I842d23f09930ed4d7c31e5e60af23ec20850f45c
2017-07-16 09:49:10 +03:00
Ihar Hrachyshka 475e2f3041 Remove subunit-trace fork
This makes tox use the latest version of the tool from os-testr repo,
which contains some valuable changes, like the one making the gate fail
if for some reason no tests are executed because all of them are
skipped.

Change-Id: If88be4b310d746ccc885e3d0c1db8a4dfabb2a28
2017-04-06 11:44:28 -07:00
Li Ma b8f48244c7 Fix etcd driver requirement
Etcd driver is included in common requirement project.
We do not need to explicitly install it in scripts.

Change-Id: I749ea3ae46d1f8e058770b6b9ec145536de0e698
2016-10-17 02:44:51 +00:00
Li Ma 2bee5d94df Update tox install to support constraints and branches
Update tox.ini and tox_install.sh to support constraints and branches.
This also includes an update per [1].

[1] http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html

Change-Id: I6e126fb6ef9048dd00190bf19e2f3c2e8ce21155
2016-10-13 12:03:48 +08:00
Li Ma bf7a2176fb Implements oslo conf generator
Change-Id: Ifca462b686ea914db5861880f23adde311fb4bb9
Implements: blueprint oslo-config-generator
Closes-Bug: #1523510
2016-09-29 16:42:03 +08:00
zhangyanxian 70832cb06e Some typos need to be fixed
Change-Id: I03b166cf22790971530010ea3826d36d40520164
2016-09-21 02:04:22 +00:00
Andreas Jaeger 68796841f8 Move crc16 to requirements
Change I8587012c916b2108d620e8d293da6ddb8e3fc39f added crc16 to
global-requirements because of dragonflow, so use it properly.

Since crc16 is in global-requirements, remove it from tox_install
and devstack/redis_driver, add it to requirements.

Note that this is following the common OpenStack requirements process
as documented at http://docs.openstack.org/developer/requirements/

Change-Id: I5301083ceb7716c84f5f373d53f385018f092a9c
2016-09-04 07:14:54 +02:00
zhangyanxian 981472d7f3 Some typos need to be fixed
subunit-trace.py
'information after the stream is proccesed'
-----proccesed should be processed
dhcp_app.py
'Time to block port that passe the max rate'
-----passe should be passes
sg_app.py
wrong ethernet type
-----ethernet should be Ethernet

Change-Id: I8c9aee3cc3f9da39c24f7d4139f297ca894c9037
Closes-bug: #1615924
2016-08-25 02:24:40 +00:00
Gal Sagie 731fa21d9b Run fullstack without concurrency
Currently run all fullstack tests without concurrency
as some tests require it and some dont.
Later work will split this to two fullstack jobs
with and without tests concurrency.

Change-Id: I44e610c8982585bfe460c92f10f315586b80f86d
2016-04-06 10:34:08 +03:00
feipeng 4c73370f19 Add Redis DB Driver and Redis PubSub Driver
Change-Id: I9c2d12294db464e1c9ec57f119cee9c62496d455
2016-03-29 01:44:32 +00:00
Omer Anson 27d6572199 Replace use of scapy with ryu
Due to licensing issues, scapy cannot be used. However, ryu provides the
same functionality.

Change-Id: Ie9b81f25232cacdd96af4bf1e59c684e2f1eb2b4
2016-03-08 07:28:31 +02:00
Omer Anson d0fa03f6df Add python-pytun to test-requirements.
python-pytun was installed via tox_install.sh. It is better to install
it via test-requirements.txt and the tox I/S rather than manually.

Change-Id: I9c57334da120ec4291888e5a8a4369fe11f82853
2016-03-06 13:50:22 +00:00
Omer Anson 750bffc522 I/S and example of applicative testing of DF apps
Change-Id: Icdd299ab1a542d8ab37d55db30a045f10e274b6e
2016-02-17 17:30:49 +02:00
Li Ma 8743316c01 Remove nanomsg
Change-Id: I94a4b42a4aad9c4b86524fe505b340b7af9616aa
2016-02-17 15:05:41 +08:00
Gal Sagie 27d1721092 Install nanomsg for pub-sub module
We seperate between the DB and the pub-sub mechanism in
Dragonflow in order to allow better optimizations and
support optimized publish-subscribe for DB's that dont support
it.
This installs nanomsg which will be used as the default pub-sub
for Dragonflow

Change-Id: I861471c99e626b8c20f2a5fbefbf06581b181c7b
2015-12-26 16:28:52 +00:00
Gal Sagie 347aaa8403 Install python-etcd for fullstack tests
This patch installs python-etcd package used for
fullstack as its not yet in global requierments.

Change-Id: Id1df7327cd7c75c9932a2129a14a395c6fa51658
2015-12-17 14:47:51 +00:00
Gal Sagie 74351b0d04 Make sure correct branch of Neutron is pulled on testing
Taken from https://review.openstack.org/#/c/255642/1
Author: Aaron Rosen <aaronorosen@gmail.com>

Change-Id: Id85242c928073159d8bddb4c9cdd7c3e8b987374
2015-12-12 20:15:18 +02:00
Gal Sagie eda4e9b455 Stop unneeded cloning of Neutron during CI
Allow the Zuul "Depends-On" to work better.
Adopting the solution developed by Doug Wiegley for LBaaS:
c61f920f2a54fd829ee37484b3743ab77b909847

Change-Id: I0496c144fc7951c0f518427e3e7ff22103b6650d
2015-08-31 11:55:09 +03:00
Gal Sagie 37d524a4e3 Enable Env for DragonFlow Unit Testing
Add missing dependencies and create empty test classes

Change-Id: I7f13da25914d1798286e6ff0936d20bbf645c3a2
2015-04-29 10:58:37 +03:00