When launching the docker with the bash option, it should be able to get
any command-line arguments supplied to it.
Change-Id: I7dfb6cf265de81feb1b4ffc60d54b679a2918e97
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
Setting the CONF_SRC_DIR environment will take the template
dragonflow.ini from that path during install.
Change-Id: I57bf5aeb832e9fc68101e322691cc54cb9e20286
Added a noop verb that does nothing, also added a global-catch that
issues a warning if unknown verb was supplied.
Change-Id: I98ca93457f58d7d9f63188d3642788e5618df62d
* 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
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
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
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
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
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
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
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
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
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
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
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
Since neutron is now in global-requirements, we can remove the
installation from tools/tox_install.sh.
Change-Id: Ibc8b634c9686ecad32f8b9d84194de9c8cb3a659
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
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
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
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
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
Etcd driver is included in common requirement project.
We do not need to explicitly install it in scripts.
Change-Id: I749ea3ae46d1f8e058770b6b9ec145536de0e698
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
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
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
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
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
Allow the Zuul "Depends-On" to work better.
Adopting the solution developed by Doug Wiegley for LBaaS:
c61f920f2a54fd829ee37484b3743ab77b909847
Change-Id: I0496c144fc7951c0f518427e3e7ff22103b6650d