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
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
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
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
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
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
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
This patch also catches up neutron code refactoring
on Segments database model to avoid test failures.
Change-Id: I57597c049ce93130663ad128e5bb584b9d2d56ed
The documentation on OpenFlow plugin is still available as
stable-liberty version at Read The Docs.
Change-Id: Ibafa6c02d32813496d994aa84110c3f9e6e1acda
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
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
Return success only if status code is 200 or 500,
otherwise raises AgentProxyException.
Change-Id: I06dae271fb19624a582a3adf0284de22ecad5ad4
Closes-Bug: #1548812
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
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