Commit Graph

247 Commits

Author SHA1 Message Date
Tony Breeds 62ebaae905 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: I07321aa86a539aae3917ae75af4ee58f487edb8e
2017-09-12 15:42:19 -06:00
Claudiu Belu f4a24c1e16 Adds releasenotes configuration
Adds the necessary bits for the reno support.

Change-Id: I914ea5ccfdf6eac9e8032b1b05a6b390d0d2654b
2017-07-14 03:02:35 -07:00
OpenStack Proposal Bot 8a549af7f1 Updated from global requirements
Change-Id: I3cab08af5e18eea7c772fbf9ecda9673b3cdc636
2017-06-27 12:13:50 +00:00
Jenkins 350cba61a1 Merge "treats os-win exceptions" 2017-06-22 15:26:54 +00:00
Claudiu Belu 1bd6e7047d treats os-win exceptions
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
2017-06-20 11:22:11 +00:00
Jenkins 8ed35a4661 Merge "SecurityGroups: Clears port from device cache" 2017-06-17 07:58:16 +00:00
Claudiu Belu d66301dcdd SecurityGroups: Clears port from device cache
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
2017-06-16 13:40:53 +00:00
OpenStack Proposal Bot 5a0a361eca Updated from global requirements
Change-Id: I41c7d931fa42ed26e0fd0a1bd9b19ecc791c47fc
2017-06-15 16:26:53 +00:00
OpenStack Proposal Bot 2723ae2684 Updated from global requirements
Change-Id: Ic6f1a945c21d467f61bd0565b319c5c10bb889fa
2017-06-05 11:59:50 +00:00
Jenkins f0d8375160 Merge "Fixes Windows Server 2016 Network Controller constants" 2017-05-23 15:06:30 +00:00
Jenkins 74f9a0d7e4 Merge "Add support for custom metadata agent for HNV" 2017-05-23 15:06:23 +00:00
Jenkins 7efd098dc6 Merge "Replaces neutronclient's initialisation with keystoneauth" 2017-05-23 15:05:24 +00:00
Claudiu Belu 968911ba27 Fixes Windows Server 2016 Network Controller constants
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
2017-05-22 16:29:20 +00:00
OpenStack Proposal Bot dac16588f7 Updated from global requirements
Change-Id: I11dcb9bfd30e8bff172a74a016535604c9767d3a
2017-05-21 22:18:39 +00:00
Alexandru Coman d1da5a57af Add support for custom metadata agent for HNV
Co-Authored-By: Claudiu Belu <cbelu@cloudbasesolutions.com>

Partially implements: blueprint hyperv-network-virtualization-support

Change-Id: I257a59d68b217ef773bcba14cfc78b07ff9ecd6c
2017-05-21 19:58:18 +00:00
Claudiu Belu 755211699a Replaces neutronclient's initialisation with keystoneauth
Uses keystoneauth1 to initialise the neutronclient instead of
passing in all credentials.

Change-Id: Ifcce176205240a1fe9d723886d5a640b4ba694a4
2017-05-21 19:58:05 +00:00
Jenkins 0c15112aaf Merge "cleans up the config option usage" 2017-05-21 12:03:44 +00:00
Claudiu Belu 34dba4670e cleans up the config option usage
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
2017-05-19 13:49:52 +00:00
OpenStack Proposal Bot 35bdffe044 Updated from global requirements
Change-Id: Ia00a91a1bfa7bb379c900134abd259e24e5faf8f
2017-05-16 12:22:45 +00:00
Claudiu Belu d6b3681c82 Fixes unit tests
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
2017-05-15 05:21:22 -07:00
Jenkins 75b4058e6d Merge "Add layer 2 agent for Hyper-V Network Virtualization v2" 2017-04-21 09:22:03 +00:00
Alexandru Coman 86fa652c0e Add layer 2 agent for Hyper-V Network Virtualization v2
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
2017-04-18 14:06:35 +03:00
Jenkins 78b07df082 Merge "Refactor the Hyper-V Layer 2 Agent" 2017-04-13 15:43:36 +00:00
Alexandru Coman 9004336aa9
Refactor the Hyper-V Layer 2 Agent
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
2017-04-13 13:58:27 +03:00
OpenStack Proposal Bot 8406d4ae5f Updated from global requirements
Change-Id: I4104813107303ab1f3365817bc0ccc54c88c8bce
2017-04-12 17:00:16 +00:00
Jenkins 68e69181c2 Merge "Add base classes for neutron agents" 2017-04-11 11:05:52 +00:00
Alexandru Coman 4051e46926 Add base classes for neutron agents
Implements: blueprint hyperv-network-virtualization-support

Change-Id: I23a2dc540f0e59ef9b5d95524049b822a31a8093
2017-04-10 12:43:37 +03:00
Jenkins d8c7f0c5f4 Merge "Change http to https, remove py34 and add p35" 2017-04-08 11:27:57 +00:00
Nguyen Van Trung 9db55a0248 Change http to https, remove py34 and add p35
Change-Id: I0efdd772735bbcd36be31f957214b518f2c76385
2017-04-08 14:14:51 +07:00
OpenStack Proposal Bot 0a57dafa3d Updated from global requirements
Change-Id: Ic815090129d42e4bf5159a5ef0f6e622602e144f
2017-04-07 07:08:53 +00:00
Jenkins f6fecf29bb Merge "Updates networkutils caches on worker error" 2017-03-31 15:47:25 +00:00
Claudiu Belu 832ab6521b Updates networkutils caches on worker error
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
2017-03-30 13:52:32 +00:00
OpenStack Proposal Bot a06d19c40d Updated from global requirements
Change-Id: I3b87a0ab0baa237be13f19f5dfb424423c310661
2017-03-28 21:31:18 +00:00
Lucian Petrut beb4ed21aa Use updated common agent config location
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
2017-03-16 11:49:03 +02:00
OpenStack Proposal Bot f5ebf28b45 Updated from global requirements
Change-Id: Ibf7db5de51ba1b75ae71dd5ef1ade3598b8aae55
2017-03-07 12:21:11 +00:00
Lucian Petrut 0e2cc14091 Use neutron_lib.context
This module has been moved to neutron_lib, now causing import errors.

This change switches to the new location.

Change-Id: Ia8e5bf47f03377b7705e45ecdd74f40bb4efad6f
2017-03-07 13:24:34 +02:00
Claudiu Belu fa314a74bf updates hacking requirement
The current hacking requirement breaks the gate, due to
conflicting pbr requirements across the project's dependencies.

Change-Id: I82e53d235366b7c7a1e6ec44a8ce8d8a2f9f79bc
2017-03-02 03:15:34 -08:00
OpenStack Proposal Bot 7bd969d8d9 Updated from global requirements
Change-Id: Icb5271156f587b56c94a837bccf24fce175ff6fa
2017-02-10 05:51:57 +00:00
Jenkins 83f8a20c82 Merge "Adds trunked VLANs support" 2017-01-27 10:55:52 +00:00
Jenkins 0880e8c03c Merge "Fixes HyperVSecurityGroupsDriver for ports without security groups" 2017-01-27 10:55:46 +00:00
Claudiu Belu fff8aad420 Adds trunked VLANs support
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
2017-01-26 14:24:11 +02:00
Claudiu Belu bad3da0d60 Fixes HyperVSecurityGroupsDriver for ports without security groups
If a port has security groups disabled, it might not have the
'port_security_enabled' key.

Change-Id: Ib0152b6b413e60a664bfb1cd4b485490b2c7482f
Closes-Bug: #1659527
2017-01-26 12:54:21 +02:00
Claudiu Belu cdbceeaee4 defines the Hyper-V Security Groups Driver as a neutron firewall driver
This change allows users to configure the neutron-hyperv-agent with
"firewall_driver=hyperv" instead of the full classpath.

Change-Id: I86fff5784b7f04decd8b99e3b0774fbb89367232
2017-01-23 19:58:04 +02:00
Jenkins 1dceb68a7f Merge "Use neutron-lib portbindings api-def" 2017-01-23 10:48:33 +00:00
Jenkins 0f03c25b55 Merge "Updated from global requirements" 2017-01-23 10:20:00 +00:00
Jenkins a2579492f3 Merge "Adds QoS support" 2017-01-23 10:09:13 +00:00
Denis Buliga 5ec57ef127 Adds QoS support
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
2017-01-20 06:45:28 -08:00
Boden R ea7183c5e1 Use neutron-lib portbindings api-def
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
2017-01-20 14:13:53 +00:00
OpenStack Proposal Bot 4894b10ccb Updated from global requirements
Change-Id: Ia1f499fb39149d4423a8a6b81e736b1e309ea370
2017-01-20 00:14:23 +00:00
Cao Xuan Hoang 7b9cbe09ff Remove support for py33
Python 3.3 is not supported from Mitaka, as per Infra.
This patch removes the support for the same.

Change-Id: I39bad8d483b69bf6feae6c3f9bf701c37f487709
2017-01-19 09:44:56 +07:00