Skip to content

Conversation

github-actions[bot]
Copy link

This PR contains a snapshot of yoga from upstream.

ralonsoh and others added 5 commits February 5, 2023 05:34
While other SQL engines can compare interger and boolean types,
PostgreSQL needs explicit casting to compare variables. Method
"_sync_subnet_dhcp_options" is currently raising the following
error:
  operator does not exist: boolean = integer

Closes-Bug: #2004581
Change-Id: I715029c311c4516f3212054c5c72533b12fd0986
(cherry picked from commit 61b2917)
This patch is covering an edge case that could happen when the number
of DHCP agents ("dhcp_agents_per_network") or L3 agents
("max_l3_agents_per_router") has been reduced and there are more agents
assigned than the current number. If the user removes any agent
assignation from a L3 router or a DHCP agent, it is possible to remove
first the lower binding assigned registers.

Now the method ``get_vacant_binding_index`` calculates the number of
agents bound and the number required. If a new one is needed, the
method returns first the lower binding indexes not used.

Closes-Bug: #2006496

Conflicts:
    neutron/common/_constants.py
    neutron/objects/l3agent.py

Change-Id: I25145c088ffdca47acfcb7add02b1a4a615e4612
(cherry picked from commit 5250598)
(cherry picked from commit 0920f17)
With unit tests that would have caught the bug.

Change-Id: Ia4a68bdccecfbcb9d1aa49e2b14e06d139891c0f
Closes-Bug: #2003553
(cherry picked from commit ed68ba4)
(cherry picked from commit 1b086f1)
@github-actions github-actions bot requested a review from a team as a code owner February 20, 2023 08:23
@github-actions github-actions bot added automated Automated action performed by GitHub Actions synchronisation labels Feb 20, 2023
@markgoddard markgoddard merged commit 3e53816 into stackhpc/yoga Feb 20, 2023
@markgoddard markgoddard deleted the upstream/yoga-2023-02-20 branch February 20, 2023 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automated Automated action performed by GitHub Actions synchronisation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants