21500 Commits

Author SHA1 Message Date
Sai Sindhur Malleni
3c2a23ba94 Remove trunk rally scenario from plugins
Since the trunk scenario is now present in rally-openstack
tree, it is no longer needed in neutron tree.

Change-Id: I27c9f0baed267ca8bd181d34842b9d5cc03ab846
2019-02-13 13:09:33 -05:00
Zuul
3aac42b3c7 Merge "Change SR-IOV agent to log message after failure" 2019-02-12 19:53:33 +00:00
Zuul
d0e4cf77b6 Merge "Remove redundant if condition check" 2019-02-12 16:36:47 +00:00
Brian Haley
2147c70745 Change SR-IOV agent to log message after failure
If the SR-IOV agent fails to send its report_state
to the server, it logs an exception:

   Failed reporting state!: MessagingTimeout: Timed out...

If it then tries a second time and succeeds it just
goes on happily. It would be nice if it logged that
it had success on the subsequent attempt so someone
looking at the logs know it recovered.

Change-Id: I0782599a4f0ffe48c2dd4fa2abc9fe5111715c0c
2019-02-12 14:19:22 +00:00
Zuul
2de3aea25b Merge "Change OVS agent to log message after failure" 2019-02-12 14:14:48 +00:00
Zuul
584cc54e79 Merge "doc: replace nova security_group_api option with use_neutron" 2019-02-12 08:50:26 +00:00
Zuul
561b277983 Merge "Remove redundant event listening logic from neutron/db/api" 2019-02-12 08:42:09 +00:00
Zuul
45df16ad45 Merge "Fix the way how upgrade checks are loaded" 2019-02-12 08:34:33 +00:00
Brian Haley
9926410886 Change OVS agent to log message after failure
If the OVS agent fails to send its report_state
to the server, it logs an exception:

   Failed reporting state!: MessagingTimeout: Timed out...

If it then tries a second time and succeeds it just
goes on happily. It would be nice if it logged that
it had success on the subsequent attempt so someone
looking at the logs know it recovered.

Change-Id: I7a54c77073cf2a648d32320b3dd8cb46d34f7c34
2019-02-11 16:21:52 +00:00
Zuul
2f3cc51784 Merge "Clear old rules that have been applied before applying new rules." 2019-02-10 13:31:44 +00:00
Mike Bayer
d83b3d3468 Remove redundant event listening logic from neutron/db/api
In I3e702b99fd5084e8090f93c384aa1f704edceaff, the event listening
features which handle expiration of relationships was "rehomed"
to neutron-lib.   In fact it was duplicated, so that these events
run twice.    This patch removes the events from neutron as it is
a very bad idea for this much complexity to be running twice.

Change-Id: I8d0321487e4b406ead7a237156ef2f221fb512b9
2019-02-09 12:58:37 -05:00
Zuul
6d5e32fbc7 Merge "Fix update of ports cache in router_info class" 2019-02-09 14:46:56 +00:00
liuchengqian90
6f927cc119 Clear old rules that have been applied before applying new rules.
To prevent data from being out of sync in the following situations:
1. Create a policy with two rules bound to the virtual machine
2. Stop l2-agent
3. Delete/change/clear policy rule
4. Start l2-agent (the rule is still there, out-of-sync)

Change-Id: I194c918d859172c31ae5ce1af925fdbb388f9cfb
Closes-Bug: #1812576
2019-02-08 02:57:27 +00:00
Dirk Mueller
c4e755daa9 Remove redundant if condition check
The check for an empty list is redundant, the remainder
of the code will simply not do anything on an empty list.

Change-Id: Iaf9b6f9cc7a068ecfae30d307fb6a688cbc45d3c
2019-02-08 00:03:18 +01:00
Zuul
7b64623f96 Merge "Change agents to use get_devices_with_ip()" 2019-02-07 21:16:49 +00:00
Zuul
39a91100df Merge "Update the processing of assigned addresses when assigning addresses" 2019-02-07 20:30:20 +00:00
Zuul
5a11d490dc Merge "DHCP: fix default dns search name" 2019-02-07 20:30:07 +00:00
Zuul
4db4adbefb Merge "Change Metering agent to log message after failure" 2019-02-07 20:12:48 +00:00
Slawek Kaplonski
9d5fb2fa77 Fix the way how upgrade checks are loaded
Upgrade checker tool is now adding checks returned
by checks classes properly, adding them one by one to
list instead of adding returned tuple as one element
always.

Change-Id: Ia98752a6038c7428c66ffb21279a8ba1c3876f78
2019-02-07 19:42:41 +01:00
Zuul
9a15084375 Merge "remove neutron.common.rpc" 2019-02-07 17:38:27 +00:00
Slawek Kaplonski
21cddc47b4 Fix update of ports cache in router_info class
RouterInfo class has got internal_ports cache which is updated
in _process_internal_ports() method.
There was an issue in this updates logic because it was
iterating through enumerate local variable "internal_ports"
which represents current router ports and if such current port
was found in updated_ports list it was storred in
RouterInfo().internal_ports variable under same index as was
found in "internal_ports" local variable.
This sometimes leads to an issue because same port can be
stored under different index in internal_ports and
RouterInfo().internal_ports lists thus wrong port in
RouterInfo().internal_ports was overwritten.

Such issue leads to problem with generating radvd config file
because in ports cache list there was duplicate info about same port
so radvd config file contained duplicate interface definitions too.

This should be properly fixed by changing RouterInfo.internal_ports
to be a dict instead of list of ports but such patch would be much
bigger and (possibly) harded to backport to stable branches.

Change-Id: I2e38457942518c8a3e07e606091bb6720317b77e
Closes-Bug: #1813279
2019-02-07 15:49:59 +01:00
Zuul
da104bdaab Merge "[Configuration] Clean up .gitignore references to personal tools" 2019-02-07 02:09:33 +00:00
Zuul
d496f08161 Merge "Don't specify exactly IP in portforwarding functional test" 2019-02-07 02:09:30 +00:00
Boden R
024802aafd remove neutron.common.rpc
The neutron.common.rpc module has been in neutron-lib for awhile now and
neutron is shimmed to use neutron-lib already.
This patch removes neutron.common.rpc and switches the code over to use
neutron-lib's implementation where needed.

NeutronLibImpact

Change-Id: I733f07a8c4a2af071b3467bd710290eee11a4f4c
2019-02-06 11:05:55 -07:00
Zuul
5a8506fda6 Merge "Change log level for l3 agent router updates" 2019-02-06 14:10:49 +00:00
liuchengqian90
1746d7e0e6 Update the processing of assigned addresses when assigning addresses
1.It is best not to use 'netaddr.IPSet.add',
  because _compact_single_network in 'IPSet.add' is quite time consuming

2.When the current address pool does not have enough addresses,
  all addresses are allocated from the current pool,
  and allocations are continued from the next address pool
  until all addresses are assigned.

Change-Id: I804a95fdaa3552c785e85ffab7b8ac849c634a87
Closes-Bug: #1813253
2019-02-06 20:18:10 +08:00
Zuul
4cf0c77751 Merge "Ensure dnsmasq is down before enabling it in restart method" 2019-02-05 23:21:59 +00:00
Jakob Englisch
7fdd6adc7a DHCP: fix default dns search name
If no override for dns_domain has been added by the user on the
tentant network, the default dns_domain should be used. Prior to
this fix, dns_domain got set to '' instead.

Closes-bug: #1774710
Change-Id: If206b943703eb638f7b22e59791ed8876f46f556
2019-02-05 21:36:05 +01:00
Brian Haley
b083d39a83 Change agents to use get_devices_with_ip()
Instead of instantiating an IPDevice object just to get
the list of IPs, call get_devices_with_ip() instead since
that's what it's doing anyways.

Trivialfix

Change-Id: I5055d24a40d45f3f3b13b05249d353ea67acf4d5
2019-02-05 18:30:01 +02:00
Zuul
418bed5409 Merge "Fix port forwarding functional tests logging" 2019-02-05 14:50:06 +00:00
Zuul
46dc30991a Merge "Switch isolated metadata proxy to bind to 169.254.169.254" 2019-02-05 13:51:37 +00:00
Brian Haley
a8afd1f124 Change Metering agent to log message after failure
If the Metering agent fails to send its report_state
to the server, it logs an exception:

   Failed reporting state!: MessagingTimeout: Timed out...

If it then tries a second time and succeeds it just
goes on happily. It would be nice if it logged that
it had success on the subsequent attempt so someone
looking at the logs know it recovered.

Change-Id: If5522e5a975e05f195f1760d7fbd60264ac91fc3
2019-02-05 11:53:25 +00:00
Matt Riedemann
a721e6d7b9 doc: replace nova security_group_api option with use_neutron
The "security_group_api" config option in nova was deleted
in the Newton release:

  I921650d8730201c2f14deb7e679647a892dbe48a

The use_neutron option should be used instead. This updates
the docs where the security_group_api option was mentioned.

Change-Id: Ie53a5498e1a2152157d5b2a56abb97ba36cbf86c
2019-02-04 11:02:31 -05:00
Marc Koderer
64f2fe7060 Change log level for l3 agent router updates
In case of an l3 agent sync it is important to understand when
a router is processing an update to identify when it applies
changes that can cause failovers.

Change-Id: Ie9ba2a8ffebfcc3bfb35f7a48f73a25352309b4e
2019-02-04 08:52:22 +01:00
Slawek Kaplonski
414bdd4c59 Don't specify exactly IP in portforwarding functional test
In Port Forwarding functional tests, port is created in setUp()
method. This port had specified exactly IP address and subnet to use.
This was proposed in [1] to fix issue when new port created in same
subnet got sometimes IP address outside of subnet range.
Unfortunatelly that fix was not enough and caused other issues
as sometimes this "fixed" IP address used for port might be
used e.g. by router_interface port and that caused sometimes
"409 conflict" response from Neutron sometimes.

This patch adds additional method in
neutron.tests.unit.db.test_db_base_plugin_v2 module to find first
free IP address from given subnet.
This method is now used in port forwarding tests module to choose
IP address for second created port in the subnet so there should be
no conflicts with IP addresses anymore.

[1] https://review.openstack.org/#/c/631815

Change-Id: Iee2f72acf6814a0f8f76d240862429a8b63c3b09
Closes-bug: #1813540
2019-02-04 06:27:21 +01:00
Zuul
b86fa161ed Merge "remove neutron.common.exceptions" 2019-02-03 17:07:02 +00:00
Zuul
7a33374d71 Merge "Add Security Group scenarios to rally-jobs" 2019-02-03 15:47:22 +00:00
Zuul
3e88f941aa Merge "Switch default functional tests to python3, add job for python2" 2019-02-03 15:38:30 +00:00
Zuul
a767417c5a Merge "Bump neutron-lib to 1.23.0" 2019-02-03 14:32:06 +00:00
Zuul
cf5a95c773 Merge "Add VLAN and VXLAN link information in get_devices_info" 2019-02-03 12:43:43 +00:00
Zuul
997cb55c3b Merge "Switch tempest-multinode-full to be run on python 3" 2019-02-03 10:25:30 +00:00
Zuul
26c43a4f3e Merge "Switch tempest-slow to be run on python 3" 2019-02-03 10:25:27 +00:00
Zuul
c51ca05c26 Merge "use payloads for SECURITY_GROUP BEFORE_DELETE events" 2019-02-02 04:01:26 +00:00
Zuul
2f5aa31e33 Merge "use payloads for PORT BEFORE_DELETE callbacks" 2019-02-02 04:01:22 +00:00
Zuul
e8d6958144 Merge "Restore tenant_id check on security group rule adds to previous semantic" 2019-02-02 04:01:15 +00:00
Boden R
68fd13af40 remove neutron.common.exceptions
Today the neutron common exceptions already live in neutron-lib and are
shimmed from neutron. This patch removes the neutron.common.exceptions
module and changes neutron's imports over to use their respective
neutron-lib exception module instead.

NeutronLibImpact

Change-Id: I9704f20eb21da85d2cf024d83338b3d94593671e
2019-02-01 14:35:00 -07:00
Zuul
26bef891b9 Merge "Always fill UDP checksums in DHCPv6 replies" 2019-02-01 21:24:43 +00:00
Sai Sindhur Malleni
a6422ea8f9 Add Security Group scenarios to rally-jobs
This commit adds security group related rally scenarios to CI.

Change-Id: I11fd3a6d30f743dbeea923407bc72753ba488da4
2019-02-01 15:22:18 -05:00
Zuul
0951e846c1 Merge "use payloads for all PORT_DEVICE events" 2019-02-01 18:55:35 +00:00
Zuul
a159a7294d Merge "Add port forwarding floating IP QoS" 2019-02-01 18:31:34 +00:00