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: I07321aa86a539aae3917ae75af4ee58f487edb8e
If a port dissapears while processing a port, some
os_win NotFound exceptions are raised. Catching them
and treating them will tidy up the logs.
Closes-Bug: #1684045
Change-Id: Id629251ca1addfac5c0c559085ff3d3d116c7b19
When an instance is being rebuilt, or shelved and unshelved,
the VM gets destroyed and recreated, keeping the same neutron port.
neutron-ovs-agent doesn't tear down the port, and doesn't notify
the HyperVSecurityGroupsDriver that the switch port has been recreated
in any way, which will cause issues when adding the security group rules;
most notably, the default reject rules and the previously existing
security group rules wouldn't be added.
This patch pops the _sec_group_rules and _security_ports caches before
reraising the os_win.exceptions.NotFound exception, after which
neutron-ovs-agent will retry the port binding.
This issue doesn't affect the neutron-hyperv-agent, which notifies the
HyperVSecurityGroupsDriver when a port gets removed, updating its
caches accordingly.
Closes-Bug: #1694432
Change-Id: I9e7f41f9c5989af169fdfa0e014daf6450248f8a
In order to properly use the Windows Server 2016 Network Controller,
a switch port must have set a port profile with some very specific
constants, otherwise it won't work. [1]
[1] https://docs.microsoft.com/en-us/windows-server/networking/sdn/manage/create-a-tenant-vm
Change-Id: Ic3788ed8945e337ab9bd345731be8792c0d346b7
Partially-Implements: blueprint hyperv-network-virtualization-support
Makes sure that the networking-hyperv config options are
initialized for all agents when starting. This will make sure
that importing config option groups will no longer be necessary.
Replaces CONF = cfg.CONF with CONF = config.CONF
Change-Id: I487cad6f374abf691f01fbb5521f6baa650c9efe
Latest releases of oslo.config enforces the config options'
types. In a few unit tests, some config options are overriden
with sentinels, which breaks the unit tests, using the latest
oslo.config release.
This patch addresses this issue.
Change-Id: I6d7ecf339ba5294a45f342d19e34e8865cb9f2cc
The new layer 2 agent is required in order to interact with
the Microsoft Network Controller.
Co-Authored-By: Claudiu Belu <cbelu@cloudbasesolutions.com>
Partially-Implements: blueprint hyperv-network-virtualization-support
Change-Id: I019a4dca52881ab7eba895b85c039c8405da0628
Refactor the layer 2 related modules in order to ease the adding
of a new layer 2 agent with similar structure.
Change-Id: I84298868ee23c01f03d39db842ad58aea3142fb2
Co-Authored-By: Paula Crîșmaru <pcrismaru@cloudbasesolutions.com>
Implements: blueprint hyperv-network-virtualization-support
os_win's networkutils caches switch ports, ACLs, VLAN SDs, etc.
for performance reasons, and it is refreshed on exception in the
daemon_loop, but that case is not happening anymore since we switched
to worker threads; the exceptions are treated by the workers.
Now, if a worker encounters an exception, it will set a refresh cache
flag, and the daemon_loop will refresh the caches if the flag is set.
Change-Id: Ia72ddaf0743bb6b0599f5021339da6cfe07d9924
Closes-Bug: #1676941
The common agent config module has been moved, for which reason
we're now getting an import error.
This change addresses this issue.
Change-Id: I086b3217f2d129327ffe3c58d1a10b406c8374c3
This module has been moved to neutron_lib, now causing import errors.
This change switches to the new location.
Change-Id: Ia8e5bf47f03377b7705e45ecdd74f40bb4efad6f
The current hacking requirement breaks the gate, due to
conflicting pbr requirements across the project's dependencies.
Change-Id: I82e53d235366b7c7a1e6ec44a8ce8d8a2f9f79bc
Instances can be spawned by passing in a port_id to nova.
Those ports can be trunk ports, and can have multiple
subports with different segmentation IDs. In this case,
the port will have to be set in Trunk Mode, setting the
trunk port's segmentation_id as the port's NativeVlanId,
and the trunk's subports' segmentation_ids as the
TrunkVlanIdArray.
Depends-On: I0de69f88cc52d8904579e18678e0be8d77bd9a76
Implements: blueprint hyperv-vlan-trunks
Change-Id: I1751e88ff16b142995f67cec7fa698c1a98587f2
If a port has security groups disabled, it might not have the
'port_security_enabled' key.
Change-Id: Ib0152b6b413e60a664bfb1cd4b485490b2c7482f
Closes-Bug: #1659527
This change allows users to configure the neutron-hyperv-agent with
"firewall_driver=hyperv" instead of the full classpath.
Change-Id: I86fff5784b7f04decd8b99e3b0774fbb89367232
This change adds QoS support for the neutron Hyper-V agent,
leveraging the QoS Neutron extension.
Depends-On: I706368bfcaece380e1357e0c504fd3b9553ba49c
Depends-On: I1dd810e238389456efd4048ebb0bf50f5ea2d237
Implements: blueprint hyperv-neutron-qos
Change-Id: I8f5adfdac7885f98508c80378d1fa467a6d4cf94
This patch refactors networking-hyperv to use portbindings
from neutron-lib. For more details see [1].
NeutronLibImpact
[1] https://review.openstack.org/422210/
Change-Id: I7b578c0aaf1529fd087c78b7bd2e013db27baaff
Python 3.3 is not supported from Mitaka, as per Infra.
This patch removes the support for the same.
Change-Id: I39bad8d483b69bf6feae6c3f9bf701c37f487709