Commit Graph

22079 Commits

Author SHA1 Message Date
Zuul
8c9136f155 Merge "Switch to new engine facade for StandardAttribute objects" 2019-06-01 03:05:40 +00:00
Zuul
0e2508c8b1 Merge "Notify ironic on port status changes" 2019-06-01 02:07:46 +00:00
Zuul
685fbec0b0 Merge "update sriov config docs for live migration support." 2019-05-31 23:59:42 +00:00
Zuul
3e6376f428 Merge "Add Smart NIC representor port to integration bridge" 2019-05-31 12:05:36 +00:00
Zuul
20e656fcbb Merge "Use list instead of six.viewkeys to avoid py2 to py3 problems" 2019-05-31 12:05:33 +00:00
Zuul
36428d60a6 Merge "Add short info about tempest API/scenario tests to reviewers guide" 2019-05-30 20:40:03 +00:00
Nate Johnston
a65ae9c81e Use list instead of six.viewkeys to avoid py2 to py3 problems
This change fixes an 'RuntimeError: dictionary changed size during
iteration' error that is raised because of different behaviour between
python2 and python3.  An earlier attempt [1] to use the six library did
not fix the issue.

[1] https://review.opendev.org/660427

Resolves-Bug: #1829304
Change-Id: Ic4c5790a5d66e10a606327f4f4e4c92611f161d8
2019-05-30 14:39:39 -04:00
Sean Mooney
fec048c561 update sriov config docs for live migration support.
- In the train release of Nova SR-IOV live migration
  support was added to the libvirt virt driver.
- This change updated the admin config docs to reflect
  that live migration is now supported.

Change-Id: I429d2477d1b379de06d666edbdef4a9afcfe4b5d
2019-05-30 18:52:37 +01:00
Zuul
8a02675582 Merge "Add debug information to AutoScheduler and BaseScheduler" 2019-05-30 17:46:56 +00:00
Zuul
c92cbfc02e Merge "Switch to new engine facade for QoS" 2019-05-30 15:14:13 +00:00
Rodolfo Alonso Hernandez
b3404d900e Add debug information to AutoScheduler and BaseScheduler
These new debug lines can be helpful to resolve the mentioned bug.
Sometimes the DHCP agent does not reschedule and the log does not
contain enough information to debug the problem.

Spotted error during fullstack tests:
Traceback (most recent call last):
File "/opt/stack/new/neutron/neutron/tests/base.py", line 151, in func
  return f(self, *args, **kwargs)
File "/opt/stack/new/neutron/neutron/tests/fullstack/test_dhcp_agent.py",
  line 168, in test_reschedule_network_on_new_agent
  self._wait_until_network_rescheduled(network_dhcp_agents[0])'
File "/opt/stack/new/neutron/neutron/tests/fullstack/test_dhcp_agent.py",
  line 137, in _wait_until_network_rescheduled
  common_utils.wait_until_true(_agent_rescheduled)
File "/opt/stack/new/neutron/neutron/common/utils.py", line 646,
  in wait_until_true
  raise WaitTimeout(_("Timed out after %d seconds") % timeout)
  neutron.common.utils.WaitTimeout: Timed out after 60 seconds

Change-Id: I794e737c30f597519fba873e36f26b82b6f2c799
Related-Bug: #1799555
2019-05-30 09:58:11 +00:00
Slawek Kaplonski
d55d3bb9f1 Add short info about tempest API/scenario tests to reviewers guide
It should be required to request API/scenario tests for any change
that provides new Neutron API and reviewers should remember to
check and require such additional patches with such tests.

Change-Id: I92967d791c1e6c05b3b9c2dc8bbd204aa6b49786
2019-05-30 11:12:33 +02:00
Zuul
86139658ef Merge "Stop OVS agent before starting it again" 2019-05-30 09:03:49 +00:00
Zuul
e79d71677f Merge "OVS DPDK port representors support" 2019-05-29 23:32:12 +00:00
Zuul
39dcab011a Merge "Modify comments on some methods" 2019-05-29 21:44:40 +00:00
Nate Johnston
5e969205ab Switch to new engine facade for StandardAttribute objects
Enable the new Engine Facade for StandardAttribute objects.

Change-Id: Ia3eb436d07e3b2fc633b219aa00c78cc07ed30db
2019-05-29 15:25:20 -04:00
Rodolfo Alonso Hernandez
b77c79e5e8 Stop OVS agent before starting it again
In TestOVSAgent, there are two tests where the OVS agent is
configured and started twice per test. Before the second call,
the agent should be stopped first.

Change-Id: I30c2bd4ce3715cde60bc0cd3736bd9c75edc1df3
Closes-Bug: #1830895
2019-05-29 12:37:46 +00:00
Zuul
e7629fc1c5 Merge "Support multiple external networks in L3 agent" 2019-05-28 23:00:36 +00:00
Zuul
519b80cf6a Merge "Set neutron-keepalived-state-change proctitle" 2019-05-28 22:37:41 +00:00
Zuul
31fd237d5d Merge "Switch to new engine facade for L3RpcCallback" 2019-05-28 11:40:30 +00:00
Rodolfo Alonso Hernandez
51dd91df5b Switch to new engine facade for QoS
* QosCoreResourceExtension
* QoSPlugin

Partially-Implements blueprint: enginefacade-switch

Change-Id: I034cad8d5290b416e55acdaeea69c5a130308afe
2019-05-28 08:11:35 +00:00
Zuul
e0331ce0a3 Merge "Add devstack plugin for placement service plugin" 2019-05-28 06:54:50 +00:00
Miguel Lavalle
0b3f5f429d Support multiple external networks in L3 agent
Change [1] removed the deprecated option external_network_bridge. Per
commit message in change [2], "l3 agent can handle any networks by
setting the neutron parameter external_network_bridge and
gateway_external_network_id to empty". So the consequence of [1] was to
introduce a regression whereby multiple external networks are not
supported by the L3 agent anymore.

This change proposes a new simplified rule. If
gateway_external_network_id is defined, that is the network that the L3
agent will use. If not and multiple external networks exist, the L3
agent will handle any of them.

[1] https://review.opendev.org/#/c/567369/
[2] https://review.opendev.org/#/c/59359

Change-Id: Idd766bd069eda85ab6876a78b8b050ee5ab66cf6
Closes-Bug: #1824571
2019-05-27 19:23:28 -05:00
Zuul
23e3213a07 Merge "Drop of_interface option" 2019-05-27 15:36:13 +00:00
Harald Jensås
afff649a39 Notify ironic on port status changes
This patch adds an ironic notifier that sends notifications
to ironic endpoint /v1/events. The events are triggered by
port updates and deletions. Only ports with vnic_type
baremetal are honored.

Story: 1304673
Task: 22263
Closes-Bug: #1828367
Implements: blueprint event-notifier-ironic
Authored-By: Vasyl Saienko <vsaienko@mirantis.com>
Co-Authored-By: Harald Jensås <hjensas@redhat.com>
Co-Authored-By: Julia Kreger <juliaashleykreger@gmail.com>
Change-Id: I0bb3187a88a7f20adb8c60e24945db159afb83f1
2019-05-27 13:38:42 +02:00
Hamdy Khader
47390226f5 OVS DPDK port representors support
Adds support for OVS DPDK port representors[1], a direct port on
a netdev datapath is considered a DPDK representor port.

get_vif_type returns OVS VIF type in case of a direct port.

[1] http://docs.openvswitch.org/en/latest/topics/dpdk/phy/#representors

Closes-Bug: #1829734
Change-Id: I3956eeda19ebc93fdb0b13c1cfb3dc64abffee9f
2019-05-27 13:30:49 +03:00
Zuul
3f837836f6 Merge "Remove "_make_security_group_rule_filter_dict"" 2019-05-25 12:34:59 +00:00
Zuul
f1f4026891 Merge "Add "project_name" variable to configure_functional_tests role" 2019-05-25 03:03:35 +00:00
Zuul
71a02468dd Merge "Show all SG rules belong to SG in group's details" 2019-05-25 01:03:03 +00:00
Zuul
de59a21754 Merge "Wait to ipv6 accept_ra be really changed by L3 agent" 2019-05-24 23:39:46 +00:00
Zuul
7a6f0194e8 Merge "Trivalfix: set a new segment ID for routed network" 2019-05-24 22:24:34 +00:00
Zuul
b1bcb03943 Merge "Add documentation about OVO "obj_make_compatible"" 2019-05-24 18:31:25 +00:00
Zuul
eceb40bfb0 Merge "Integrate rally with osprofiler" 2019-05-24 18:31:18 +00:00
Rodolfo Alonso Hernandez
5d35e7d360 Switch to new engine facade for L3RpcCallback
Partially-Implements blueprint: enginefacade-switch

Change-Id: Ida1bcb896c02f1ad04090a99296bc641bd21896d
2019-05-24 16:58:38 +00:00
Zuul
5e5850830b Merge "[Functional tests] Test keepalived in namespaces" 2019-05-24 16:47:51 +00:00
LIU Yulong
c66c7b688c Trivalfix: set a new segment ID for routed network
Change-Id: Id5aebcfdd8b9f7df1b978dbc4a68fcb29086c49c
2019-05-25 00:38:11 +08:00
Zuul
e272ffbbee Merge "Define orm relationships after db classes" 2019-05-24 16:27:57 +00:00
Rodolfo Alonso Hernandez
5738434cd9 Remove "_make_security_group_rule_filter_dict"
In later patches, this method became unused.

Trivial-Fix

Change-Id: I9699a4bac0551c0292d9a7b88aedf421a3b24657
2019-05-24 15:55:19 +00:00
Lajos Katona
4445b380cf Add devstack plugin for placement service plugin
This helps running end-to-end tests in gate, see:
https://review.opendev.org/629253

Partial-Bug: #1578989
See-Also: https://review.openstack.org/502306 (nova spec)
See-Also: https://review.openstack.org/508149 (neutron spec)
Change-Id: I6732909a10114dbc004043b754d47d974c3fe1cb
2019-05-24 11:34:49 +02:00
Ihar Hrachyshka
4aeec20001 Drop of_interface option
Default value for "of_interface" config option was switched
to "native" in Pike release.
In the same release this option was deprecated to removal.
Now it's time to remove it and force use of "native" driver to
manage openflows.

Change-Id: Ic900209868acfbe3bbb56fabbbf5c4472857e412
Co-Authored-By: Ihar Hrachyshka <ihrachys@redhat.com>
Co-Authored-By: Slawek Kaplonski <skaplons@redhat.com>
2019-05-24 10:33:48 +02:00
Zuul
22638b82b6 Merge "Log when the placement service plugin is used wrongly" 2019-05-24 02:37:54 +00:00
Zuul
a38e92e47c Merge "use logapi constants from neutron-lib" 2019-05-24 02:19:30 +00:00
Slawek Kaplonski
959af761cb [Functional tests] Test keepalived in namespaces
Functional tests for keepalived should spawn processes in namespaces
where dummy interfaces used in keepalived.conf file exists.
Otherwise keepalived 2.0.10 (this is version used currently in RHEL 8)
fails to start and tests are failing.

On older versions of keepalived, like 1.3.9 used in Ubuntu 18.04,
keepalived is logging warning about not existing interfaces but it's
starting fine thus tests are running properly.

So this patch adds creation of namespace for each test from
neutron.tests.functional.agent.linux.test_keepalived module,
creates dummy interfaces with names used in keepalived config file
and runs keepalive process in this namespace.

Change-Id: I54f45b8c52fc1ecce811b028f0f92e0d78d3157b
Closes-Bug: #1830232
2019-05-23 21:42:37 +02:00
Zuul
c3a05cc129 Merge "Ignore config-samples and policy sample file in git" 2019-05-23 12:08:10 +00:00
lidong
54329b8dcb Modify comments on some methods
Modify comments on some methods in  file:
...\neutron\neutron\plugins\ml2\managers.py

Change-Id: I48d618e35282eb1d1034856cb104ac16b8c29a20
2019-05-23 16:36:32 +08:00
Hamdy Khader
b4243ad3f7 Add Smart NIC representor port to integration bridge
In case of Smart NIC vNIC type neutron should mimic nova-compute
that plug the port to the ovs bridge.

Extend the Neutron OVS mechanism driver and Neutron OVS Agent to bind
the Neutron port for the baremetal host with Smart NIC. This will allow
the Neutron OVS Agent to configure the pipeline of the OVS running on
the Smart NIC and leverage the pipeline features such as: VXLAN,
Security Groups and ARP Responder.

Story: #2003346
Closes-Bug: #1785608
Change-Id: I6d520d3bac2e9ceb30b5b6197c6eb0f958cc3659
2019-05-23 10:54:36 +03:00
LIU Yulong
26388a9952 Set neutron-keepalived-state-change proctitle
Then we can count the process correctly.

Related-Bug: #1798475
Change-Id: I9c6651ed192669b91a4683f5f3bd2795e8d8276a
2019-05-23 15:22:35 +08:00
Zuul
0c87350a94 Merge "[Docs] Add summary of Tempest and Grenade jobs running in CI" 2019-05-22 23:07:54 +00:00
Boden R
67b1c4552e use logapi constants from neutron-lib
Consume the logapi constants from neutron-lib by removing them from
neutron and using them from neutron-lib instead.

NeutronLibImpact

Depends-On: https://review.opendev.org/#/c/660826/
Change-Id: I55edf26598d38de34038f005b05ba3d2e96972aa
2019-05-22 14:49:21 -06:00
Slawek Kaplonski
9f857631d8 Add "project_name" variable to configure_functional_tests role
It will be useful when neutron-functional or neutron-fullstack
job will be used in stadium projects like e.g. in neutron-fwaas.

Change-Id: I73c446d43e44b8f06c93752ebf98684f165e6fcd
Related-Bug: #1804844
2019-05-22 15:30:46 +02:00