Commit Graph

1380 Commits

Author SHA1 Message Date
Tony Breeds d1467ddd25 Retire Packaging Deb project repos
This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).

Change-Id: I3d95fb5a3df20788b4f21e44df5cf50988c3ce42
2017-09-12 15:43:24 -06:00
Jenkins 00491eb31d Merge "Configure ovn_metadata_enabled option in devstack" 2017-07-25 11:47:05 +00:00
Jenkins 6af414c87b Merge "Updated from global requirements" 2017-07-25 11:12:48 +00:00
OpenStack Proposal Bot 74a060dc68 Updated from global requirements
Change-Id: I76943b56e04badaf2680c10aedee3c6fca094552
2017-07-19 18:36:59 +00:00
Luong Anh Tuan 17d6123f78 Update URLs in documents according to document migration
Change-Id: Ie4aadf0a84f909a3f8934ba0e9158fb70f8d372f
2017-07-19 03:02:45 +00:00
Daniel Alvarez e99144b872 Configure ovn_metadata_enabled option in devstack
Depending on whether OVN metadata service is enabled or not,
devstack will now configure the plugin accordingly.

Change-Id: Ibf8c7b4eea58e105ae660dedff98aeb673f375a4
2017-07-14 12:19:51 +00:00
Daniel Alvarez ad1fea3e7b Metadata agent support in networking-ovn
Initial implementation

Changes in the mechanism driver:

    * Automatically create a port with device_owner=network:dhcp to
      serve metadata and eventually DHCP.
    * Auto-allocate an IP for the metadata port on subnet creation.
    * Push static route for 169.254.169.254 in DHCP options.
    * Wait until metadata service is provisioned in the chassis where
      a port resides before sending the event to Nova.

Agent:

    * Implementation of [0].

Devstack plugin:

    * Starts networking-ovn-agent with the proper config files.
    * Disables config drive in nova.conf for tempest against master
      branch.
    * Enables TEMPEST_RUN_VALIDATION for tempest against master branch.

In order to test this patch out we need to make these changes to
nova.conf:

    * [DEFAULT] section:
      force_config_drive = False
    * [neutron] section:
      service_metadata_proxy = True

This patch depends on [1] and [2] (already merged into OVS master).
NOTE: Metadata tests are only enabled for the non-voting tempest job
      which runs against OVS master branch. The release job runs against
      OVS 2.7 which doesn't include [1][2] so those tests are disabled
      until OVS 2.8 is released.

[0]
https://docs.openstack.org/developer/networking-ovn/design/metadata_api.html
[1] https://patchwork.ozlabs.org/patch/767369/
[2] https://patchwork.ozlabs.org/patch/771297/

Change-Id: Ife2fd18f2f88050429e70c7e557fa41d2d54b034
2017-07-13 13:12:32 +00:00
Jenkins 9b2d20d7aa Merge "Add security groups and security group rules to OVNClient" 2017-07-13 06:06:30 +00:00
Jenkins 368fa86b16 Merge "Add database migration tests" 2017-07-13 06:01:47 +00:00
Jenkins be54a706f4 Merge "DevStack: Support to install ovsdbapp from git master" 2017-07-12 15:33:15 +00:00
Jenkins c1a1c70c20 Merge "POC of ML2/OVS to OVN migration using ansible." 2017-07-11 09:54:11 +00:00
Akihiro Motoki 66ff2f08c6 doc: fix indent level
In openstackdocstheme, a vertical line is shown for a quote block.
Unnecessary leading spaces or wrong indent level causes unexpected
vertical line at the left side. This commit ajust the indent levels.

Change-Id: I81323f4ebbac1e7d502d15c33b0cb7aa95f5fc52
2017-07-10 12:54:49 +00:00
Akihiro Motoki c8097ca325 rearrange existing documentation to fit the new standard layout
- Most user related contents are moved into admin/ directory
  as the main consumers of networking-ovn project are expected
  to be OpenStack operators.
- OVN references in README.rst are moved to a separate file
  for better document structure.

Part of doc-migration work. For more detail, see:
https://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html
https://etherpad.openstack.org/p/doc-migration-tracking

Change-Id: Ia7785dec8e09daa239c751beb181b2dc6f6c4b34
2017-07-10 12:54:44 +00:00
Lucas Alvares Gomes eee42815ac DevStack: Support to install ovsdbapp from git master
This patch is extending the DevStack plugin to allow installing ovsdbapp
from git master branch. This will be used in the ovsdbapp gate to run
the latest code against networking-ovn to ensure that changes made to
the ovsdbapp library won't break the project.

Change-Id: I3ea1fb34c22685130153fd9edca1c1c89cd45291
2017-07-10 09:35:30 +01:00
Akihiro Motoki c82d77ae4b Switch from oslosphinx to openstackdocstheme
Part of doc-migration work. For more detail, see:
https://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html
https://etherpad.openstack.org/p/doc-migration-tracking

Change-Id: I9a7f9d3720a47eea113c59a326d75ab81342320a
2017-07-08 20:20:48 +00:00
Lucas Alvares Gomes 2b476b7ada Add security groups and security group rules to OVNClient
This patch is adding the security groups and security group rules
resources to the OVNClient so later we can use it for journaling.

Partial-Bug: #1605089
Change-Id: I452819c95173ca9a653a7557fdd7eeac6e4047d2
2017-07-07 14:29:12 +01:00
Lucas Alvares Gomes 0cb2c4063e Add database migration tests
Simple patch adding database migration tests for OVN.

Partial-Bug: #1605089
Change-Id: I70e6fb1d2dc1324c4f7d3c7640d99d102c7985e3
2017-07-07 14:29:12 +01:00
Jenkins f96d99da8f Merge "Remove DevStack workaround" 2017-07-05 16:21:37 +00:00
Jenkins 3a1fe3e506 Merge "Fix a few typos" 2017-07-05 16:01:14 +00:00
Jenkins 6c4e560eed Merge "Use flake8-import-order plugin" 2017-07-05 11:49:23 +00:00
Jenkins cbcb4141ca Merge "Remove unused parameter" 2017-07-05 11:49:17 +00:00
Gary Kotton de12b631e1 Fix a few typos
Fix a few trivial typos detected by the tool topy.
TrivialFix

Change-Id: If9a0dbfca36bcbc7b0513f2847a0782bd6e69a58
2017-07-05 04:08:58 -07:00
Gary Kotton 4ffaec2fe1 Remove unused parameter
PLUGIN_NAME was defined when the plugin was a monolithic plugin.
This is no longer used.

Change-Id: I5aec9dc53be18148da839336acdf86371c058706
2017-07-05 02:27:05 -07:00
Gary Kotton efb5bd8582 Use flake8-import-order plugin
This enables us to automate the import order validations.
TrivialFix

Change-Id: Icb9bc9e10f7d4652cbe02ea902a0581f2feda7da
2017-07-05 02:25:55 -07:00
Lucas Alvares Gomes aeaba5e0e2 Tox/Pylint: Enforce the use of python2
Pylint (or some of its dependencies) does not work well with PY3, this
patch is modifying the tox "pep8" job to enforce the use of python2
instead of the default interpreter in the host OS.

Change-Id: I60bea05f7b9d65f2a661434ffffa7acb3ad1ceaf
Closes-Bug: #1702292
2017-07-04 14:12:52 +00:00
Jenkins 6143fd1812 Merge "Enable pylint 1.4.5" 2017-07-04 12:14:49 +00:00
Dong Jun 91294cad88 Enable pylint 1.4.5
This patch enables pylint 1.4.5 checking in netwoking-ovn.
Script tools/coding-checks.sh is copied from neutron and adapted for
networking-ovn.
.pylintrc is also copied from neutron, message options that do not
need to be suppressed have been removed and some of remaining options
will be removed by code adjustment in separate patches.

Change-Id: I9e1612583debb555199b416675eea6685801f04c
2017-07-04 12:00:09 +08:00
Jenkins 522a139cc1 Merge "Eliminate DeprecationWarning of _ translation" 2017-07-03 17:07:50 +00:00
Jenkins e86808527e Merge "use service type constants from neutron_lib plugins" 2017-07-03 10:25:33 +00:00
Boden R e7ffa9ca87 use service type constants from neutron_lib plugins
The well known service type constants are in
neutron_lib.plugins.constants, but for legacy reasons a few still exist
and are referenced from neutron_lib.constants [1] that we'd like to
remove.

This patch switches references over to neutron_lib's plugin constants.

[1] https://github.com/openstack/neutron-lib/blob/master/neutron_lib/constants.py#L353

Change-Id: I8b5141f952b3500c7a4ce9c36e07a04630a5e44f
2017-06-27 13:07:26 -06:00
OpenStack Proposal Bot 6173ab9da0 Updated from global requirements
Change-Id: Ieaa13b656977997726a69582c08672d8970652e1
2017-06-27 12:14:10 +00:00
Jenkins cee04e7571 Merge "Independent log level for OVSDB" 2017-06-24 08:27:26 +00:00
Jenkins 8f3be3b6a2 Merge "Updated from global requirements" 2017-06-24 08:27:20 +00:00
Jenkins 486f678b7d Merge "Optimize the for loop in bind_port()" 2017-06-24 08:27:15 +00:00
Jenkins f88c0082d4 Merge "Remove two log traces that are no longer useful" 2017-06-24 07:08:36 +00:00
Jenkins 5a93904105 Merge "Bug fix for an exception log" 2017-06-24 06:01:30 +00:00
OpenStack Proposal Bot 75d9526b6d Updated from global requirements
Change-Id: I7da4fda904dcaa072c553ecc002d9afba624b231
2017-06-23 18:08:12 +00:00
Lucas Alvares Gomes 59db786ec3 Remove DevStack workaround
This is not needed anymore since DevStack has been fixed.

Change-Id: I3c3237d3bba4664abf5562c1272e9bd233444140
Depends-On: Ib5a8ffe63eaec15bc29bfdd133db7169507bab82
2017-06-23 16:14:29 +01:00
Lucas Alvares Gomes c82ee932d4 Disable horizon for the tests in the gate
Horizon has been disable by defaul in devstack-gate
(https://review.openstack.org/#/c/474283/), just like many other
projects, networking-ovn also doesn't test horizon in the gate so
there's no reason to keep it enabled.

Change-Id: Id83583b360e60c038f63b3caaf0c0595a6b9df3e
2017-06-23 17:24:33 +08:00
Daniel Alvarez fe67421a9a Independent log level for OVSDB
Logs are full of [POLLIN] messages from ovsdb and most of the times
they're not really useful. This patch introduces a new configuration
option 'ovsdb_log_level' which can be set independently from whatever
log level is configured in networking-ovn.

The default log level for OVSDB will be now 'INFO' and it will make
normal debugging tasks easier.

Change-Id: I1150cb72b619793fb7c0948cb5643e7ee9ff6b63
2017-06-22 15:15:01 +02:00
Daniel Alvarez b399986af2 Remove two log traces that are no longer useful
This patch removes two traces that used to be useful during
development to detect when a process had the lock to handle a
notification. Since IDL will call notify() for every "update" rpc
method it receives from ovsdb-server, this trace can be quite frequent
and noisy.

In a normal tempest execution in gate it has around a 7% (~6500
occurences) of the total log entries.

Change-Id: I4d2a0be86f07b55d631bacf21d090635625a8ec6
2017-06-21 18:05:18 +02:00
xurong00037997 a6df4e3535 Optimize the for loop in bind_port()
Basically, we only need to bind the first valid segment,
so we should jump out of the for loop when set_binding in bind_port()

Change-Id: I4939d911b48069ea925736b67dee1fbb01c3bf2a
2017-06-19 17:23:07 +08:00
Dong Jun 4cc19792cc Eliminate DeprecationWarning of _ translation
networking_ovn/common/utils.py:136: DeprecationWarning: Using function/
method 'instance.ugettext()' is deprecated: Builtin _ translation
function is deprecated in OpenStack; use the function from _i18n module
for your project.
      msg = _('Invalid binding:profile. %s are all '

Change-Id: Ib53dd98da6bce42e10bbb339c1772956cbe4c760
2017-06-16 17:09:14 +08:00
xurong00037997 ea6e61b75a Bug fix for an exception log
Change-Id: I8c4fd1ccd1a791bfff0d4152b640ef90773b1cbc
2017-06-15 11:44:42 +08:00
Jenkins 3f6da12f13 Merge "Add journal and maintenance skeleton" 2017-06-13 06:59:00 +00:00
Jenkins c8fb694e5f Merge "Add network and subnet resources to OVNClient" 2017-06-13 06:56:04 +00:00
Russell Bryant e5fb48caf5 POC of ML2/OVS to OVN migration using ansible.
Closes-bug: 1528674
Co-authored-by: Numan Siddique <nusiddiq@redhat.com>
Co-authored-by: Chris Cuzner <cuzner@gmail.com>
Change-Id: I0ea50031d75052bf0c56ecfd9ab9267a1c7fc25e
2017-06-12 15:58:28 -04:00
Lucas Alvares Gomes 75108baf62 Revert "Docs: Do not turn warnings into errors"
This reverts commit ea5f9b662a.

The commit 68719b3433 have fixed the
warnings raised when building the networking-ovn documentation so that
we don't need to supress the -W (turn warning into errors) option that
was specified in the sphinx-build command anymore.

Change-Id: Ic67ee4e0680f4fece60f8631dc7b0cf5be8899cb
2017-06-12 11:57:46 +01:00
Vu Cong Tuan 68719b3433 Remove pbr warnerrors in favor of sphinx check
This change removes the now unused "warnerrors" setting,
which is replaced by "warning-is-error" in sphinx
releases >= 1.5 [1].

[1] http://lists.openstack.org/pipermail/openstack-dev/
2017-March/113085.html

Change-Id: I439392b79de5a09699b566c3f544c7ae19e8326c
2017-06-11 19:06:55 +07:00
Lucas Alvares Gomes 47ef490b52 Add journal and maintenance skeleton
Preliminary patch adding the base for creating a journal and maintenance
threads.

This approach is heavily based on the journaling from networking-odl
but made generic so that both projects (potentially others too) could
share code by moving it to neutron-lib.

Next patches will add usage for it.

Partial-Bug: #1605089
Change-Id: I687f5af1583e139f4dce59238f065d61762869de
2017-06-09 13:27:45 +01:00