Commit Graph

570 Commits

Author SHA1 Message Date
Tony Breeds 5ffa7838e9 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: Ia695114b58b3acc31bfb5857aa2483c9e92d7f92
2017-09-12 15:43:00 -06:00
Shinji YANAGIDA 4edc55fff8 Change import path.
neutron.db -> neutron_lib.db
neutron.manager.NeutronManager -> neutron_lib.plugins.directory

Change-Id: I1d6d9b60a2fc830e77134727ebb07e5105a9ceab
2016-11-26 11:49:09 +09:00
Shinji YANAGIDA 7f8d01f9d9 change import path.
I changed the following path.

neutron.plugins.ml2.db -> neutron.db.segments_db

Change-Id: I2ddd63a31d8ba20a7fd4b7efe3aed3d0d8501eb6
2016-11-23 19:21:17 +09:00
Shinji YANAGIDA f4df163968 Change the import path of segment.
Change-Id: Ic7c7f28511f7c24749c59e76c93437e3ea65d906
2016-10-11 07:28:16 +09:00
Shinji YANAGIDA b25cd3d217 Reflect changes in the neutron path.
Change-Id: If95b03a0bca4d3a2bf94c6a4bf2b899b11cab0bf
2016-10-02 15:10:06 +09:00
OpenStack Proposal Bot 215b1f7010 Updated from global requirements
Change-Id: I18a7abb43e4be91108de9e8a009315c5a3293b5f
2016-09-15 20:20:55 +00:00
Shinji YANAGIDA ff1695d591 Fixed library path of neutron.db.model_base.
Change-Id: I42db8e63ccc78a7630798d863112cb5fc1c4a9ff
2016-09-05 02:17:00 +09:00
OpenStack Proposal Bot 40ae98a7d9 Updated from global requirements
Change-Id: I2bbb33d9a0c9b1ccc88a65506756e212907fd0ff
2016-08-26 22:08:07 +00:00
Jenkins aaced703d2 Merge "Remove discover from test-requirements" 2016-08-19 15:53:21 +00:00
Henry Gessau 31298c3013 Enable DeprecationWarning in test environments
Many deprecations are triggered early (on imports, for example)
before the warnings are enabled by the WarningsFixture in the
base test class.

To make sure all DeprecationWarning messages are emitted we enable
them via the PYTHONWARNINGS environment variable.

Change-Id: Ie91cdc1920fd39c1f4dc6ffd101c70ca2b794758
2016-08-09 19:13:57 -04:00
OpenStack Proposal Bot 83411b1f0f Updated from global requirements
Change-Id: I8d61972a40f1c7e00167221d1ec4f0c529f1c3dc
2016-08-05 08:48:15 +00:00
Shinji YANAGIDA fa47431363 Add a missing translation marker.
Change-Id: Ifcb7273636ab1db16cc0d5c25fd686ca59682244
2016-08-04 09:23:29 +09:00
Swapnil Kulkarni (coolsvap) 706fdd42b8 Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: I7743c39a80d718a8119e4c758db21abf8f0864e4
2016-07-21 10:35:36 +00:00
Shinji YANAGIDA 4ab978aa6b Add testresources to test-requirements.txt
Change-Id: I985ecad8af2cc055448203dbebe89498633a8889
2016-07-12 08:55:48 +09:00
Shinji YANAGIDA d2a15d8eb6 Using vlan id assigned by neutron instead of NWA.
If use_neutron_vlan_id in necnwa.ini is True, the NWA plugin uses a vlan
id which was assigned by neutron instead of NWA.

Change-Id: I84e58e4c61abbe3fe8932523b807ce0dda7884d2
2016-06-27 06:12:36 +00:00
Akihiro Motoki fff1cea302 Do not use absolute path in data_files
More useful discussion is found at [1] and its thread.

[1] http://lists.openstack.org/pipermail/openstack-dev/2016-June/097123.html

Change-Id: I468dd72477fbb69583291a04a3a7b18e581945d6
2016-06-15 22:49:28 +00:00
OpenStack Proposal Bot 7e2fdb6b48 Updated from global requirements
Change-Id: Idb790cf74576f243ceca4d15130aec407cb4e1b3
2016-06-08 21:59:37 +00:00
Shinji YANAGIDA 711b359021 Add files and change path of data_files for RHEL.
Add files for systemctl of RHEL.  And change path of data_files in
setup.cfg. In the RHEL, it copies in to /usr/etc insted of /etc.

Change-Id: Ie3f316c52188f6223c206a28185a0e2d259c2563
2016-06-03 09:27:54 +09:00
Shinji YANAGIDA 7823dcdb29 Add document of use_necnwa_router flag.
Add document of use_necnwa_router flag to settings.rst.  And add a
variable of NECNWA_USE_NECNWA_ROUTER, insted of condition statement of
NECNWA_L3_PUGIN.

Change-Id: Ifa1b1eafb08dd4d32145c8979b9a966c8a12cec1
2016-06-03 08:32:54 +09:00
Jenkins d0a0c6fc8b Merge "Updated from global requirements" 2016-06-01 22:15:10 +00:00
Jenkins 051b7c57ac Merge "Add the switch to use necnwa_router or l3_router." 2016-06-01 20:55:47 +00:00
OpenStack Proposal Bot 5a14c55d6a Updated from global requirements
Change-Id: Icdfbd50ff7f85dbb7866e959137e386a268639f6
2016-06-01 13:49:52 +00:00
Shinji YANAGIDA 619a1633a3 Add the switch to use necnwa_router or l3_router.
Add a new boolean switch use_necnwa_router in necnwa.ini.
If use_necnwa_router is True, NWA plugin uses a necnwa_router,
otherwise, the plugin uses OpenStack L3 router.

Change-Id: I494e72c33b1db96c46869d86948b4c9c9c8d4285
2016-06-01 21:04:07 +09:00
OpenStack Proposal Bot e4c5b301e9 Updated from global requirements
Change-Id: Idf9c1ecc21e714359faf1f87f6c0e5a94613fee0
2016-05-31 03:02:07 +00:00
OpenStack Proposal Bot c6db30f389 Updated from global requirements
Change-Id: I453cc26906a627e3182805ab9987beaa9bee007f
2016-05-30 20:41:50 +00:00
OpenStack Proposal Bot 0968fe9c21 Updated from global requirements
Change-Id: I2be716e4a16a5d4b7eac45664031236b5e09f06c
2016-05-22 12:21:03 +00:00
Shinji YANAGIDA 9fec80e7d2 Fixed a error in test_create_tenant_rpc
In the latest version of oslo_messaing/server.py, an error has occurred
such as the following.

     File "/opt/stack/networking-nec-newton-fix-errors/.tox/py27/local/lib/python2.7/site-packages/oslo_messaging/server.py", line 348, in __init__
        super(MessageHandlingServer, self).__init__()
    TypeError: must be type, not MagicMock

Then, the mock patch of MessageHandlingServer was changed to ServiceBase
which is a parent class of MessageHandlingServer.

Change-Id: Ib8ef818aea5a7c64e3177866d2895da91e5de2bb
2016-05-19 04:33:34 +09:00
OpenStack Proposal Bot 7b5ea79cc5 Updated from global requirements
Change-Id: I751fdd439d17659664ca092da14bf862054cd142
2016-04-29 20:22:48 +00:00
Akihiro Motoki c10984a9bb Open newton development
This patch also catches up neutron code refactoring
on Segments database model to avoid test failures.

Change-Id: I57597c049ce93130663ad128e5bb584b9d2d56ed
2016-04-29 15:07:46 -05:00
Shinji YANAGIDA 73612c1ddd Add documents of NWA
Change-Id: If03ab4bafd7b21fecd514cf5489b06152ffccf17
2016-04-28 12:24:03 -05:00
Doug Wiegley b5e6fde608 Switch to using hacking checks from neutron-lib
Temporarily comment out the 'no neutron' check.

Change-Id: I41ab80509e811b021b7bf1dbbe001bb5591605b5
Partially-Implements: blueprint neutron-lib
2016-04-25 11:24:40 -05:00
Akihiro Motoki 42a5342d50 Drop documentation on OpenFlow plugin
The documentation on OpenFlow plugin is still available as
stable-liberty version at Read The Docs.

Change-Id: Ibafa6c02d32813496d994aa84110c3f9e6e1acda
2016-04-22 02:05:56 +09:00
Jenkins d0afca8562 Merge "doc: fix formatting error" 2016-04-21 03:37:06 +00:00
Jenkins 395ad4c03b Merge "Fixes limitation of nwa create tenant" 2016-04-20 19:36:39 +00:00
Akihiro Motoki c659a6d065 doc: fix formatting error
Change-Id: I7cc0b755b32f175cef4b203712285c6c12eeaef5
2016-04-21 02:44:16 +09:00
Jenkins 260ae79bd6 Merge "Fixed bug that old VLAN ID is used in multi-POD environment" 2016-04-20 17:33:41 +00:00
Shinji YANAGIDA 9cbfd415f0 Fixed bug that old VLAN ID is used in multi-POD environment
When a network spreads multiple PODs and port creation is required
just after port deletion for a same POD, allocation of VLAN ID for
a network segment (POD) can be racy. As a result, a corresponding
port creation on NWA fails because VLAN segment is released during
the operation.

To fix the bug, this commit makes the following changes:
* NWA plugin now deletes VLAN ID information from neutron
  DB before calling delete request to NWA.
* When the delete request completes and if VLAN ID of the requested
  segment is zero (which means another allocation request is ongogin),
  VLAN ID information is not touched.

Note that this bug does not occurs in a single POD environemnt.

Change-Id: I2fe86c54063310497ca0091200433e54bb16b198
Closes-Bug: #1569323
2016-04-20 11:37:02 +00:00
Jenkins a937441f2f Merge "Add unit tests" 2016-04-18 11:16:26 +00:00
Shinji YANAGIDA e51f435ba5 Fixes limitation of nwa create tenant
There are two limitations.
The one is on RPC and the other is on DB field size.

The RPC limitation is that create_tenant_rpc_server did not return.
create_tenant_rpc_server calls server.start(), but it did not return
until the thread of callback is finished. Therefore, spawn an another
thread for handling callback.

The DB field size limitation is due to the size of information reported
in PluginReportStateAPI.  nwa agent reports a list of tenant IDs.  When
the number of active tenants becomes more than about 60, the size of
information exceeds the column size.  To reduce the size of information,
the number of tenants is now reported.

Change-Id: I332bff124a708eb41d272d95395bae8c7a028a69
Closes-Bug: #1569628
2016-04-18 17:03:33 +09:00
Shinji YANAGIDA 695d33bd26 Add unit tests
Add unit tests in order to increase the coverage rate.

Change-Id: I305fc3e2d79aee951e4a36a710383b2646665efa
2016-04-13 17:28:36 +09:00
Shinji YANAGIDA 653f3ab06e Fixed delete_tenant at nwa error response
Add warning log when nwa response is not 200 ok.

Change-Id: Id239125dcabd73451995f97a0f833e90d7474fea
Closes-Bug: #1548810
2016-04-12 07:19:19 +09:00
Shinji YANAGIDA 65b2e1ae8e Fixed nwalib.client.create_tenant
Return success only if status code is 200 or 500,
otherwise raises AgentProxyException.

Change-Id: I06dae271fb19624a582a3adf0284de22ecad5ad4
Closes-Bug: #1548812
2016-04-12 04:49:57 +09:00
Akihiro Motoki 1e8bf7394e doc: fix typos
Change-Id: I2625455719c1ed9f2ac68476e0a03a2b92400377
2016-04-11 06:12:06 +09:00
Akihiro Motoki 88045cc23c doc: use readthedocs.org for document hosting
Change-Id: Ia50a78631485e9e94f5b0f3e90bd152ba08ddee2
2016-04-11 05:54:27 +09:00
Akihiro Motoki e3467b47d8 doc: update section titles
Change-Id: Id3d88f5a43a7a3306051b9d4703f348502d82f04
2016-04-11 05:54:12 +09:00
Akihiro Motoki 89ac90eb7d doc: Use default theme
When use Read The Docs to host the documentation,
it seems better to use the default theme of sphinx
rather than using the theme from oslosphinx.
The them from oslosphinx is not rendered as expected.

Change-Id: Ib5a9c34d17349ad02e63b51d88b1fb51688c58b9
2016-04-11 04:42:28 +09:00
Akihiro Motoki c7b1828b3a doc: link nwa/devstack to avoid warnings
Change-Id: Ifcce7742383c4c322dd7217ed149f6dc529714ea
2016-04-11 04:39:56 +09:00
Jenkins 83ebf9e2dc Merge "Remove unnecessary spaces in test data JSON file" 2016-04-09 21:33:35 +00:00
Akihiro Motoki 3c18f717df Remove unnecessary spaces in test data JSON file
Change-Id: I8295c348b88166699a13bfa5f8582da6f054a127
2016-04-10 06:11:14 +09:00
Shinji YANAGIDA 06a26a4c68 Fixed bug of deleting vm that is created with port
If resource group name is empty when the port is deleted,
get it from nwa_data.
The resource group name is corresponding with MAC address of the port.

Change-Id: I1fecef6dae0edf4484bc5d160b17d1e7a430b3bf
Closes-Bug: #1567139
2016-04-09 14:52:11 +00:00