24336 Commits

Author SHA1 Message Date
Zuul
0fb63f7297 Merge "[ovn] Metadata agent: fix checking datapath type" 2021-01-28 16:08:04 +00:00
Zuul
0fc3a698b3 Merge "Fix mock of the _is_keepalived_use_no_track_supported" 2021-01-28 09:49:59 +00:00
Zuul
477a3d279a Merge "[FT] Do not fail when decoding the JSON from ip_monitor" 2021-01-28 09:49:44 +00:00
Zuul
0fb3382556 Merge "Implement secure RBAC for flavor API" 2021-01-27 11:59:06 +00:00
Zuul
438de46570 Merge "Implement secure RBAC for QoS API" 2021-01-27 10:13:59 +00:00
Zuul
efeb5bb997 Merge "Implement secure RBAC for trunk API" 2021-01-27 05:01:51 +00:00
Zuul
6935f76fa6 Merge "Implement secure RBAC for the router API" 2021-01-27 05:01:36 +00:00
Zuul
51e0572315 Merge "Implement secure RBAC for floating IP pools API" 2021-01-27 04:04:43 +00:00
Zuul
3f9131d7b8 Merge "Implement secure RBAC for the network IP availability" 2021-01-27 04:04:28 +00:00
Daniel Alvarez Sanchez
ffafc5f31e [ovn] Metadata agent: fix checking datapath type
This patch is fixing the code which retrieves the datapath type of
the integration bridge. The query to the OVS IDL was never executed
and the comparison was wrong, hence failing to determine when
to apply the iptables rules on DPDK scenarios introduced by [0].

[0] 26a30a3b78

Related-Bug: #1904871
Signed-off-by: Daniel Alvarez Sanchez <dalvarez@redhat.com>
Change-Id: I25147f676a5f22536888e72f21deee23c13063b6
2021-01-26 09:52:21 -05:00
Zuul
98d12b6f14 Merge "Provide object tagging using the tag plugin" 2021-01-26 13:23:26 +00:00
Slawek Kaplonski
088bfc79c4 Fix mock of the _is_keepalived_use_no_track_supported
In some of the UT for keepalived module, this check function wasn't
mocked so tests were failing on node where keepalived was actually
installed and was supporting "no_track" option.

Closes-Bug: #1913280
Change-Id: I0d20186a69d884b0b7912838f28d401ce4610d29
2021-01-26 11:41:13 +01:00
Zuul
e33eac987f Merge "Optimize get_ports with QoS extension" 2021-01-26 03:43:15 +00:00
Zuul
89bdfccd50 Merge "Add OVN migration OSP 16.2 option" 2021-01-26 03:42:09 +00:00
Zuul
b9c44b7ba4 Merge "Implement secure RBAC for agents API" 2021-01-26 03:01:14 +00:00
Zuul
c29c8d5395 Merge "Implement secure RBAC for the subnet API" 2021-01-25 23:58:19 +00:00
Zuul
6b705bf7c3 Merge "Implement secure RBAC for security group API" 2021-01-25 14:12:32 +00:00
Oleg Bondarev
2a6fd9d44d Optimize get_ports with QoS extension
Apply qos resource extend func for a full list of ports,
not for each port individually, thus avoiding DB queries for each
individual port.
This should drastically improve port list time in case of many
ports/network with QoS policies assigned.

Change-Id: I1d0b3975ae6e92e34e9da20a0e26ce024422d332
Closes-Bug: #1905726
2021-01-25 08:21:39 +00:00
Roman Safronov
278978bb42 Add OVN migration OSP 16.2 option
In order to support OVN migration to OSP 16.2 we need to include
this option into OVN migraiton plugin spec file.

Change-Id: Ib52052d9a178a9246a83963cfa8e2c297ee0d94f
Closes-bug: #1912948
2021-01-24 17:18:55 +02:00
Zuul
2bf558f6ec Merge "Improve DHCP agent's debug messages" 2021-01-23 23:59:45 +00:00
Zuul
a1e74ac37c Merge "Proper log translation" 2021-01-23 01:12:02 +00:00
Zuul
d007f1986d Merge "Don't run some more complex CI jobs on unrelated changes" 2021-01-22 13:50:25 +00:00
Zuul
ba77ec3c19 Merge "Implement secure RBAC for the network segment range API" 2021-01-22 03:28:23 +00:00
Zuul
a6536105d3 Merge "Implement secure RBAC for auto_allocated_topology API" 2021-01-22 03:28:09 +00:00
Lance Bragstad
613a6f7947 Implement secure RBAC for the network IP availability
This commit updates the network IP availability policies to understand scope
checking and account for a read-only role. This is part of a broader series of
changes across OpenStack to provide a consistent RBAC experience and improve
security.

Change-Id: Ia965e549ec5d8b23e837b41c304004d8e57785e9
2021-01-21 16:45:50 +00:00
Slawek Kaplonski
c4e0cc76e6 Implement secure RBAC for floating IP pools API
This commit updates the policies for floating IP pools API
to understand scope checking and account for a read-only role.

This is part of a broader series of changes across OpenStack to
provide a consistent RBAC experience and improve security.

Partially-Implements blueprint: secure-rbac-roles

Change-Id: I60dea66e2ba6f5f450e3eae3f67f721c35940e92
2021-01-21 16:24:20 +00:00
Slawek Kaplonski
6b17b8120d Implement secure RBAC for agents API
This commit updates the policies for agents API to understand scope
checking and account for a read-only role.

This is part of a broader series of changes across OpenStack to
provide a consistent RBAC experience and improve security.

Partially-Implements blueprint: secure-rbac-roles

Change-Id: I28972b2c07d406b2719726e1713ce81be915f5a7
2021-01-21 16:23:08 +00:00
Slawek Kaplonski
ae64b77f57 Implement secure RBAC for flavor API
This commit updates the policies for flavor API to understand scope
checking and account for a read-only role.

This is part of a broader series of changes across OpenStack to
provide a consistent RBAC experience and improve security.

Partially-Implements blueprint: secure-rbac-roles

Change-Id: I0176702a6ec4ac69775e2ecaf4b3a94552bfe486
2021-01-21 16:22:49 +00:00
Lance Bragstad
f1541f2915 Implement secure RBAC for QoS API
This commit updates the QoS policies to understand scope checking and account
for a read-only role. This is part of a broader series of changes across
OpenStack to provide a consistent RBAC experience and improve security.

Change-Id: I62eb090cb42fad54e1baa8e282b41fe2fd471b0e
2021-01-21 16:20:18 +00:00
Mitya_Eremeev
c156c7d883 Proper log translation
The main idea of the commit is to fix code
according with the latest oslo.i18n requirements
https://docs.openstack.org/oslo.i18n/latest/

1. removed log translation if log is not seen by users
   in raised exception or api call response.
2. keep translated log if it's used in raised exception.
3. removed log message 'Error while reading %s'
   which was "dead" (unused) code in the function
   "_get_value_from_conf_file"
   of module "agent/linux/dhcp.py".

Partial-Bug: 1600788
Change-Id: Ifb5455336b06c2c87a930b816c90b4a766856b1e
2021-01-21 19:07:04 +03:00
Slawek Kaplonski
9c2029c2c8 Improve DHCP agent's debug messages
When new port is created dhcp agent checks if IP addresses which are
assigned to that port aren't already associated with different ports
which are in agent's cache.
When it finds such duplicate IPs, resync of the network is scheduled.

The problem is that debug message which informs about such duplicate
IPs isn't very "verbose".
With this patch it will log new and cached port ids as well as ip
addresses on both of those ports. That should make easier to understand
why such duplicates are in the cache.

This patch also adds logging when methods like
_{network|subnet|port}_{create|update|delete} are called and with what
arguments exactly. This should help investigation what exactly happens
with some specific port in the dhcp agent.

Related-bug: #1828423

Change-Id: I964a3d843aeedef424a4466932bf702ea1b4320e
2021-01-21 15:26:32 +00:00
Slawek Kaplonski
9d63e4c149 Don't run some more complex CI jobs on unrelated changes
We don't need to run e.g. functional, fullstack and all scenario jobs
on patches which are changing e.g. only documentation or release notes
or other things like that.

This patch also removes test-requirements.txt and requirements.txt files
from that list of unrelated files as we want to run our ci jobs when
requirements are changed.

Change-Id: I7950de04c497b14d9225abe6584b7bb7d056f79c
2021-01-21 10:00:36 +01:00
Slawek Kaplonski
0afa1b24ee Move "Co-gating" jobs to the periodic queue
To use less infra resources by every Neutron patch, let's move
co-gating jobs, like Ironic, Openstacksdk and Tripleo based jobs
to the periodic queue.
Those jobs will be still run daily so we should have pretty good
coverage if (and when) some neutron change broke those projects but
we will use less infra resources by running jobs for every patch
proposed to Neutron.

Change-Id: I91c55c9151a11401bd3a7fbe94e378a027bc97df
2021-01-21 09:17:13 +01:00
Zuul
4184bae651 Merge "Switch tempest jobs to neutron specific ones" 2021-01-20 23:34:58 +00:00
Zuul
329f378837 Merge "Use consistent filter API syntax" 2021-01-20 17:02:56 +00:00
Zuul
bafe5a14a8 Merge "[FT] Add lrp port binding wait event failure message" 2021-01-20 13:26:31 +00:00
Zuul
0e33d596ae Merge "Fix stopping timer in TestTimer" 2021-01-20 11:02:56 +00:00
Zuul
fd5047ecf2 Merge "[QoS] Get only min bw rules when extending port dict" 2021-01-20 05:56:31 +00:00
Zuul
801308f264 Merge "Move some non-voting jobs to the experimental queue" 2021-01-20 05:56:05 +00:00
Zuul
9d804d279f Merge "Add openstack-python3-wallaby-jobs-arm64 job" 2021-01-19 17:06:04 +00:00
Rodolfo Alonso Hernandez
4c12d10a24 [FT] Add lrp port binding wait event failure message
In case a lrp port binding event fails, report the lrp ID to help
the debugging process.

Change-Id: Ib53d39b317aae36bbb746d260442b7a132355425
Related-Bug: #1912369
2021-01-19 16:38:20 +00:00
Zuul
fe61e29fd1 Merge "[goal] Deprecate the JSON formatted policy file" 2021-01-19 16:31:51 +00:00
Bodo Petermann
9676c28f9c Fix stopping timer in TestTimer
Fixes broken functional tests where NamespaceFixture is used and
the TestTimer raises TestTimerTimeout even if the namespace was cleaned
up in time.

The fix makes sure that the alarm is cancelled in __exit__ if there
was no alarm before TestTimer's __enter__ (if self._old_timer is 0).
It also makes sure to reset the signal handler if the old one was
Handler.SIG_DFL (which is treated as false, no we need to check for
"is not None" instead).

Closes-Bug: #1912320
Change-Id: I9efad8eb5fe6e794235280f8a9a026800513d969
2021-01-19 13:43:58 +01:00
Zuul
19de059822 Merge "Remove documentation about nested transactions" 2021-01-19 12:01:09 +00:00
Zuul
06c28211ee Merge "[fullstack] Use delete_port attribute of destroy VM" 2021-01-19 12:00:49 +00:00
Zuul
2a2ada050f Merge "[FT] Reduce "test_walk_versions" upgrade executions" 2021-01-19 11:57:52 +00:00
Zuul
57d406c6dc Merge "Add resource_provider_bandwidths for computes" 2021-01-19 11:49:21 +00:00
Slawek Kaplonski
81574f04f3 Move some non-voting jobs to the experimental queue
To give some relief to Zuul resources, lets move non-voting
jobs which are broken and failing all the time to the experimental
queue for now.
We can bring them back to check queue when we will fix them.

Change-Id: I4c4dd7a17ea7cc483bb4b3ed7cff7ee91f917ed9
2021-01-19 09:19:33 +00:00
ricolin
d474a48c66 Add openstack-python3-wallaby-jobs-arm64 job
This is a non-voting job to validate py3 unittests on ARM64

Task: 40401
Story: 2007938

Change-Id: Icca3f1b18d8d7aa44112c4422cf2fecf0dea41d6
2021-01-19 06:00:00 +00:00
Zuul
d1d8c0f738 Merge "Extend address group notification data" 2021-01-19 03:02:41 +00:00