Commit Graph

3245 Commits

Author SHA1 Message Date
OpenDev Sysadmins 098ac1e77c OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:28:02 +00:00
Ian Wienand 164b96ce8b Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: Ibbeca0d1cf23b3184ce1745b9bfac8fbd3f0b50d
2019-03-24 20:33:31 +00:00
Nguyen Hai d58dd36d69 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I6d8f5d9b24f1ebfca5eb10a7b479a2c0e3952fb4
Story: #2002586
Task: #24294
2018-09-07 07:25:49 +00:00
Omer Anson 491ff53f40 Models are no longer 'types'
In jsonmodels, the metaclass for models was changed. Therefore, a model
is no longer a type. Checks of the form type(x) == type fail, and are
replaced with inspect.isclass(x).

Change-Id: Ib8de32e47db8b44735c95b552835ce85b24e2b88
Closes-Bug: #1753244
2018-03-04 21:25:36 +02:00
Zuul a2f50a8e82 Merge "TrivialFix: '_lport_index' is used prior to global declaration" 2018-02-28 19:55:10 +00:00
Zuul 02f1e34a3c Merge "[Trivialfix]Modify a grammatical error" 2018-02-28 16:03:53 +00:00
Zuul c597bc2f78 Merge "Detect source port for DNAT ingress" 2018-02-27 17:42:03 +00:00
ShangXiao 3ff6faa862 [Trivialfix]Modify a grammatical error
Modify a grammatical error by deleting "the"
in portqos.py.

Change-Id: I93e21779bfc4f295f7fc63e6cc1150b8d37ed60c
2018-02-26 00:56:04 -08:00
Zuul e90c9ab773 Merge "BGP service - take logical port info from Neutron DB" 2018-02-25 10:31:22 +00:00
Omer Anson eab0a90bd2 BGP service - take logical port info from Neutron DB
When a floating IP is updated, it may be updated before the fixed port
is added to NB api (Due to Neutron's ordering, which is random from our
point of view). Therefore, take the Neutron port from the Neurton DB,
where it should already exist.

Change-Id: Id11a1ad399b107ce8a2ae0469e42c0208d590204
Closes-Bug: #1747423
2018-02-23 08:22:08 +02:00
Omer Anson 8d3c73b587 TrivialFix: '_lport_index' is used prior to global declaration
Fix warning: dragonflow/tests/unit/test_app_base.py:216: SyntaxWarning: name
'_lport_index' is used prior to global declaration

Change-Id: Ifba4ccf6fcc2dcfb2e6b5fe505fc1a0be48f7ce6
2018-02-22 16:02:37 +02:00
pangliye 32d7cf1572 fix misspelling of 'neutron'
Change-Id: Icfdd3ea2790969d49d780211351a65fdd7982d90
2018-02-22 11:27:51 +08:00
Zuul ed83dbb36b Merge "Clean imports in code" 2018-02-21 14:14:25 +00:00
Zuul 4a6b067393 Merge "Add indexed fields to df_model" 2018-02-21 12:28:13 +00:00
Nguyen Hung Phuong ad2dcc9e43 Clean imports in code
In some part in the code we import objects. In the Openstack style guidelines
they recommend to import only modules. [1]: "Do not import objects, only modules".

[1] https://docs.openstack.org/hacking/0.10.3/

Change-Id: I646dd8a926047d63c12aa0802ce80977817b503b
2018-02-21 16:36:32 +07:00
Shachar Snapiri 8b0b1a99ea Add indexed fields to df_model
The fields that the indexes are translated into were not shown.
Added the actual fields that the index names refer to.
Also fixed an issue with jsonschema parser usage.

Change-Id: I39340f4575d5508b90b92a814c6135c9aee6445e
Partial-Bug: #1734146
2018-02-21 08:26:10 +02:00
Zuul e8cfa7d5ba Merge "Disable pubsub when getting nb_api in external apps" 2018-02-20 10:44:41 +00:00
Zuul a5c2ec3089 Merge "Remove unused method from metadata app" 2018-02-20 10:13:46 +00:00
Zuul 23b9c90ef7 Merge "Unit tests: Set log level to DEBUG" 2018-02-19 17:17:34 +00:00
Shachar Snapiri c33a4953c2 Disable pubsub when getting nb_api in external apps
The pubsub creates different problems, and every external app
specifically disables it before getting the nb_api instance.
We should hide this behaviour inside the get_instance method.
Also, I called the argument is_external_app as in the future we may want
to add more behavioural differences between the cases.

Change-Id: I25a55737351f8fe14bddafa7c78e60fe096db43e
2018-02-19 17:00:36 +02:00
Lihi Wishnitzer fcf0345d01 Remove unused method from metadata app
_get_ovsdb_connection_string is not used anywhere
in the project.

Change-Id: I0bb667846065d5363560394a5ebf1a160fe2836a
2018-02-19 15:55:12 +02:00
Omer Anson e1a15a07e5 Detect source port for DNAT ingress
Detect the source port when a packet with a floating port source IP
arrives from br-ex.

Change-Id: Ia417212a48c68614877d97a749e5dcae8b6e88c8
Related-Bug: #1740739
2018-02-18 11:40:37 +00:00
OpenStack Proposal Bot cb2540392b Updated from global requirements
Change-Id: I6e131aeb38dcba4ea415c3e6b820d28b7d3d6930
2018-02-17 09:25:24 +00:00
Zuul 5108c19794 Merge "Updated from global requirements" 2018-02-14 16:11:15 +00:00
Zuul ed607ee4ad Merge "Move _get_ips_in_logical_port from sg to LogicalPort (lport.all_ips)" 2018-02-14 14:51:44 +00:00
OpenStack Proposal Bot 4b2e760b2c Updated from global requirements
Change-Id: I8e8dac79b880320ff0ec27ab16d1e22fb1f995c2
2018-02-14 12:02:08 +00:00
baiwenteng e311a1ee14 Fix typos in dragonflow
Change-Id: Ifb9f116406c45995ee53ff7d63bd5795637ca2e1
2018-02-14 08:36:08 +00:00
Omer Anson 45b22a21b1 Move _get_ips_in_logical_port from sg to LogicalPort (lport.all_ips)
The method _get_ips_in_logical_port returned a set with all lport's IPs.
This method is not security-groups specific, and therefore can sit in
LogicalPort for other apps and libraries to reuse.

Change-Id: Id10092eab9c7b9558d12d066ffac73edabd6d894
Related-Bug: #1740739
2018-02-14 08:35:43 +00:00
Omer Anson fb8e65f0de Unit tests: Set log level to DEBUG
Add the use_fixture for mechanism driver based tests.

Change-Id: If13d201ba82396697a599f5f0766a5b7b35dc923
2018-02-14 07:14:55 +00:00
Omer Anson c7fcf45b99 Temporarily remove failing unit test
The test fails due to a changed behaviour in Neutron until the issue is
resolved, the test is disabled.

Change-Id: Idbb466419d3efd10c80afb194fb50f7eb48bf8f1
2018-02-13 16:46:50 +02:00
Zuul 8285aff0bc Merge "Replace Chinese colon is changed to English colon" 2018-02-07 14:56:02 +00:00
Omer Anson 66a02d1462 Disable tempest test TestSecurityGroupsBasicOps.test_cross_tenant_traffic
Test is broken and makes tempest gate fail. To be fixed in bug 1740739.

Change-Id: I70104d61520ea275a217ccb6fc5adbdaab1e1b23
Related-Bug: #1740739
2018-02-05 14:20:37 +02:00
chengebj5238 40ce153388 Replace Chinese colon is changed to English colon
Change-Id: Idebe5454af2178d6fbf78aa8eb60d3b3da0fe715
2018-02-05 17:28:07 +08:00
Luong Anh Tuan b310c3f402 Enable hacking-extensions H204, H205
This patch enable extensions:
- H204: Use assert(Not)Equal to check for equality.
- H205: Use assert(Greater|Less)(Equal) for comparison.

Change-Id: I55240cc648385554dd67dc62d6749cef6c59dd70
2018-02-01 09:56:13 +07:00
Zuul 02aa8bb472 Merge "Re-organize the plugin.sh code" 2018-01-29 16:22:35 +00:00
Zuul f39e4ef5d4 Merge "Fix vagrant scripts to add IPv6 correctly" 2018-01-28 11:08:21 +00:00
Zuul 53271e4f1d Merge "[spec] Internal Dns As A Service" 2018-01-28 11:08:20 +00:00
OpenStack Proposal Bot 05215bd69f Updated from global requirements
Change-Id: Id9f44d16844b60d37a2dfa108281225983085f29
2018-01-27 19:41:44 +00:00
Shachar Snapiri 472abf1a58 Fix vagrant scripts to add IPv6 correctly
The script did not use the sudo command correctly, thus not really
enabling the IPv6 support.
Also, Moved the commands to the common script rather than having it
duplicated in all the scripts.

Change-Id: I66e84d76d905584635d42997f41eaef9d0263d3c
2018-01-27 16:18:12 +02:00
Zuul 68b066f8c1 Merge "Updated from global requirements" 2018-01-27 11:35:17 +00:00
gaofei 61daf89735 Update common_params.py path and link
Update from 'dragonflow/common/common_params.py' to 
'dragonflow/conf/df_common_params.py'
Change-Id: If3db15ac4596604c525d0bf86fda1ac980fc6ae3
2018-01-25 05:34:38 +00:00
gaofei a171ffb9a6 Replace curly quotes with straight quotes
Change-Id: I24c3b0088623aace620a1e3b0e772ea2d37cbe71
2018-01-24 09:17:37 +08:00
OpenStack Proposal Bot 086fda26ad Updated from global requirements
Change-Id: Ic9fd9160618a33d7e5f42fc9a5bdffcb97fb45e0
2018-01-24 00:51:58 +00:00
Zuul f5524f1053 Merge "Spec: Database Migration" 2018-01-23 19:35:38 +00:00
Omer Anson 04d0b88413 Spec: Database Migration
Co-Authored-By: Dima Kuznetsov <dima.kuznetsov@toganetworks.com>
Change-Id: Id3878f1362e97e7e6f5aa77074646611326ae3dc
2018-01-23 13:40:28 +02:00
Zuul 45c2bf8fdf Merge "Added call to monkey_patch to all cli apps" 2018-01-23 10:54:58 +00:00
Zuul 4857b06b51 Merge "Make remote_db_port and remote_db_ip deprecated" 2018-01-23 10:49:51 +00:00
Shachar Snapiri 2a641f1e69 Re-organize the plugin.sh code
Use the ACTION and STEP variables instead of $1 and $2.
Move code into functions for better readability.

Change-Id: If096c5536657fbe29e05d2bdb82c3c1347fe9bcc
2018-01-23 12:19:31 +02:00
Zuul 95fedab302 Merge "Disable Active Port Detection when using ZMQ" 2018-01-22 16:20:18 +00:00
Shachar Snapiri dffb94d80c Added call to monkey_patch to all cli apps
All our eventlets and cli apps should call the
eventlet_utils.monkey_patch()
It is now in all tests and eventlets, but missing from the cli apps.
This will also prevent the issue in bug #1744558. Currently the issue
does not exist in the cli apps because they exit very quickly, but if
they will be delayed and the subscriber mechanism will finish its
initialization, they will get stuck too.
The problem resides in the urllib3 HTTPResponse code that is used by the
etcd3gw library. The client is stuck waiting for data on a socket and is
not closed even when we call the close() method.

Change-Id: I37889dcb232f3c1557f241f82ade41520eb2de4e
Co-Authored-By: Omer Anson <omer.anson@toganetworks.com>
Closes-Bug: #1744558
2018-01-22 16:03:40 +00:00