Admin utilities mock plugin should skip the RPC initialization.
This patch is fixing the name of hte overriding method.
Change-Id: I6bad63cf642a91c25fc6aaf53d0b91daa5179ab5
When getting the LB objects status and statistics from the NSX, verify the
structure ans content of the response, as sometimes it does not contain
all the data.
Change-Id: I4756daf688ebc29e5c71019ce28ae2df771e0b4c
The plugin did not implement the LBaaS operation status for NSX-V
butthe function exists, and its params should match the one of the NSX-T
since the TVD plugin calls both.
Change-Id: I6dbe00d35739a751748a86f3856e229c58881fad
Code to support nsx policy in devstack
Change-Id: I41a702c69d8869475e4f6dc9009fd63e88b62a9e
Signed-off-by: Michal Kelner Mishali <mkelnermishal@vmware.com>
1) Mock RPC calls in unittests
2) Remove duplicate dictionary key in one of the tests
3) Fix mock usage in one test to make pep8 happy
Change-Id: I6050a18c8188cacf776f98530e43f1455df805a0
Remove extra publish-openstack-python-branch-tarball job:
With change https://review.openstack.org/609098 merged, we do not need
required-projects for publish-openstack-python-branch-tarball anymore.
The job can now be removed completely from the post pipeline since it
is part of the python-jobs template.
Sort list of templates alphabetically to easily find them.
Remove job periodic-jobs-with-neutron-lib-master - this is a master only
job, it should stay in project-config to not confuse when branching.
Change-Id: Icd8838bab7c9ef288679b6b052e2702b71543571
Replace LBaaS constants/classes with local ones or mocks to allow the
plugin to work without checking out the neutron-lbaas.
Change-Id: Iadf21ffcf7d4db8ab4e429b1daab2f8eccae1bc6
Movinf functions that are both relevant to P and T
to common devstack script.
Change-Id: I3d502bd04b2486b5b27ebc29901bc40b33d991d0
Signed-off-by: Michal Kelner Mishali <mkelnermishal@vmware.com>
1. Translate unsupported protocols names to their IP protocol number to
allow the rule to be created on the NSX
2. Check if this protocl is allowed for port-rrange-max/min
3. reraise the NSX error in case of failure (for bad icmp type/codes
errors for example)
Change-Id: I33e7ee9b85a793083d36b00384a2f0492898691d
When extending port dict, there is no need to get the nsx LS ID from
the DB for floatingips since they belong to an external network.
Change-Id: Iea423fd467b1020416e3219e3cf34fc5144dde10
For the TVD plugin, the Octavia listener will use a wrapper and select
the T/V implementation by the loadbalancer project
Change-Id: I0540f7998e72b73058fd531f2fb16364b4f35491
Depending on the platform version, support port-security, and allow
disabling mac learning for ENS netowrks and ports.
Change-Id: I412c30aa87a7706603696ddff476ac58600d7b87
The TVD integration for the BGP plugin tried to filter get results
based on the plugin type.
Since the same plugin is also used for the V plugin, it failed.
This patch removes this filtering code since BGP is currently supported
only by the NSX-V anyway.
Change-Id: I20ef5e1763cab28b1e12b03a75e24bbf50f394dc
When a user tries to add a router from 1 project to a FW from another,
the driver should through InternalDriverError for hte FW to be in ERROR state.
This should not be done in case of a delete action, in order to allow
the deletion of an ERROR FW as well.
Commit Ia86ccc7906ff58b35dccb01f4c165822b9dbf2a9 removed the InternalDriverError
in a wrong attempt to handle the deletion case.
Change-Id: I2c88c6ff773235876253a0b194d30d1d417e03c4
As part of the python 3 first effort [1], this patch adds UT support for
python 3.6 by:
- Updating the zuul.yaml to include the py36 template and jobs.
- Adding a py36-dev target to tox.ini for local testing.
- Updating the upper constraints to use master rather than stable/rocky.
- Updating the version of eventlet used as previous 2x.x versions had
a python 3 bug for monkey patching.
- Consolidating the eventlet monkey patching in the code.
[1] https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I3c11ac9dff9a2e25b33e8310929c961ffd0bcc52
When initializing the NSX policy connection, the nsx_p configuration
should be used for the certificate parameters.
Change-Id: I2a103930d2a378b267a3cc7320cdd2f37a59a1bb
Implementing the Octavia support for NSX-V & NSX-T.
Follow up patches will handle the TVD plugin, Status updates,
and migration.
Since Octavia is not (yet?) in the requirements, using a hack to allow unittests
to be skipped.
Co-Authored-by: Adit Sarfaty <asarfaty@vmware.com>
Change-Id: Iadb24e7eadcab658faf3e646cc528c2a8a6976e5
With the new job, we do not need all the required-projects. thus, use
the new job openstack-tox-docs instead of build-openstack-sphinx-docs.
Change-Id: I8e36eb528d22b8d61d2f6ee77d271fc143e71314
periodic-stable-jobs-neutron runs only on stable branches and needs to
stay in project-config.
The job publish-to-pypi-neutron needs to stay in project-config as well
to trigger on releases.
Change-Id: Ib9b38b17cbb1b91a599a9d34927b554b4880fd09
- Prevent non-admin user from changing a provider SG (in addition to delete,
add rule & delete rule which were already prevented)
- rename the validation method and error
(please note - preventing SG creation is done with a policy.json rule)
Change-Id: Idcd1c6c7082b1bd26d0fbc19a399e01ecbf2fb0f
This is part of the python 3 workstream [1] and moves the per branch
zuul config into to vmware-nsx repo. The periodic and periodic-stable
jobs will stay in project config.
[1] https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: Ie4ebc4b33c08274acd9dc019b58989989396b6c5
As part of the Denver PTG [1] we decided networking related projects
that are "current" and want to receive neutron-lib consumption patches
on an on-going basis should indicate such with a well defined comment
in their requirements.txt. This allows us to easily find the list of
project to receive neutron-lib consumption patches [2] by searching for
the string.
In addition, projects opting-in for these patches are also attesting
they will stay up to date with TC and infra initiatives to ensure
consumption patches can flow freely.
This patch adds the "neutron-lib-current" string to requirements.txt
opting in for neutron-lib consumption patches.
[1] https://etherpad.openstack.org/p/neutron-stein-ptg
[2] https://docs.openstack.org/neutron-lib/latest/contributor/contributing.html#phase-4-consume
Change-Id: I5bb8de0b7a62043c71010b737bc1d21e7454e4f7
The neutron.common.rpc and exceptions were rehomed into neutron-lib and
are currently shimmed in neutron [1]
This patch consumes those modules from neutron-lib by using lib's
modules rather than neutrons.
[1] https://review.openstack.org/#/c/586525/
Change-Id: I18a697f1f2d8ddbd203f4435b4aab92a8b045a44
Commit I01ced41201b61c624e675375b7bcd9589b2553e0 added a unit test
which needs to be adjusted to the vmware-nsx plugins, mainly becasue
the plugins do not support changing the external network flag.
Change-Id: Ibbadb81c658bf81165899e35ba55204485ab86b8