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: Iba382dfd8c4949b5881a2213bf73f3ddafe979a1
If a higher level mechanism driver assigns a physical
network to a segment that we are binding, use that
segment rather than looking up the physical network
based on host_id.
Change-Id: I5536ce61a9dd65cd8ff5eb7ee6163bbd4b115a0e
Neutron changed the way resources are extended after Pike milestone-1. As a
result, there's a race condition where the sync thread
makes calls on the plugin before the ML2 plugin has finished
initialization. ML2 supports the get_workers() command to spawn agents for ML2
drivers. This change moves the sync thread to from the API Service to a
child worker process.
Change-Id: Id36018093bc1356dbe7986cbe664f07c35d6c224
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: Iea954a5c916b527c7bb9d1db761204c3297b1fa6
The keys to the json output of 'show network physical-topology hosts'
command changed from hostname to chassis ID. This patch makes the code to work
with older and latest version of the command's output.
Change-Id: Ibfe35e7da4555ea9a5f77645eaca0a498b83cb87
The upstream plugin will catch any exception, so there is not need to
import this exception from Neutron. We can raise our specific exception
and remove this dependency.
Change-Id: I6df50480eef474511fe18a8b7c6d5d0d1afb666b
The arista_provisioned_vms table should contain only ports which are
provisioned by the arista mechanism driver. This patch verifies the
device owner of a port before adding it to the table.
Change-Id: I0ce405f305157a0dbb4873cccbf4031256630683
With this change HPB is compatible with MLAG pairs by listing
them as peer1_peer2 in the physical network's name.
Change-Id: Idd86162b9d315c174c583f41be98b4e1a163eff5
The existing code fails to detect a port migration if the port status
is in 'DOWN' state. With this patch, detection of a port migration
relies only on change in 'binding:host_id'.
This patch also fixes failure of deleting a network due to orphan port
in the arista_provisioned_vms database by deleting all entries from the
table if they exist.
Change-Id: I4faa8c9aafc39dce9e0773fcf2ff4836b86080dd
In ocata, the tenant network port for baremetal instances
is owned by compute:<zone> instead of baremetal:<zone>. The
vnic_type for those ports is still 'baremetal', so use the
vnic_type to identify baremetal ports.
Change-Id: I677148a7964ea4b3673cc918999073b2cd5caafd
We were assuming that all ports with binding::profiles would have
local_link_information. This assumption is incorrect, so we should
handle such ports gracefully rather than throwing a KeyError.
Change-Id: Id73e43199c933bc7eb6e71f75d4e6f04cce6c091
Use the setting if provided in local.conf and switch to
using neutron_server_config_add as Q_EXTRA_PLUGIN_CONF*
is deprecated.
Change-Id: I955075e5a4f208a6b136b35f9e462249e2dcdca2
Implements validate_network_rbac_policy_change which is
needed in NeutronNets after adding registry decorator in
neutron.db.db_base_plugin_v2.
Change-Id: Ia77fb2a5a820cab9125c0177e87418c7f0869430
This patch fixes unit tests failure due to adopting oslo-versioned
objects (ovo) for neutorn db by adding the core plugin instance to
the plugin directroy in the test.
Change-Id: Ib0de20addf428c88c169e46ac3b63e4eb0efdb2d
Recent changes to oslo.db introduced a subtle change that requires explicit
call to flush() some subtransactions. This adds flush to test case that
required flush to initialized data.
Change-Id: I4b952c9863dd8210741c780a5f13132310a8a135
This change documents option dependencies within the code and ensures
isolated test runs will work properly and not depend on other import side
effects.
Change-Id: I42aa0a496f64ecbae3f70af214b03e3dc9bae243
Change the identity API version to v3 when sending the information to
CVX as identity API v2.0 is deprecated.
Change-Id: Ia494a38526a372997dcbfbe2875ff780319f324d
Early versions of oslo.config allowed any type when overriding a config
setting. Future versions of oslo.config will default to enforcing the
type[1]. This changes silences the deprecation warning by passing the
proper value type to override.
[1] https://review.openstack.org/#/c/365476/
Change-Id: Ie9fd8f0b8e9b75492854e22e4f169ac56cfd548d
This change simplifies mock.call() comparision logic by adding a wrapper to help
when comparing the contents of list of dictionaries. The wrapper treats the list
as an unordereed collection by disregarding the order of the elements when
checking for equality. In production the lists are generated from database
queries resulting in unpredictable order.
Change-Id: I07a4003c2c4a54717654cecde76d28ad10854399