Commit Graph

5 Commits

Author SHA1 Message Date
Rodolfo Alonso Hernandez 41846a6e8b [sqlalchemy-20] The Connection.connect() method is considered legacy
Closes-Bug: #2008227
Change-Id: I3dfa2688f7288dda43883b3cfba45e5f15f182fb
2023-03-01 14:36:51 +00:00
Rodolfo Alonso Hernandez 42fda206e9 Replace "Inspector.from_engine()" with "sqlalchemy.inspect()"
Since SQLAlchemy 1.4, the method "Inspector.from_engine()" is
deprecated.

Error message:
"The from_engine() method on Inspector is deprecated and will be removed
in a future release.  Please use the sqlalchemy.inspect() function on an
Engine or Connection in order to acquire an Inspector. (deprecated
since: 1.4)"

Minimum version of SQLAlchemy required is bumped to 1.4.23.

Change-Id: I6cf5944ccb3a0532cbf123ddc0d7df6b6de80af1
Closes-Bug: #1943155
2021-09-23 13:41:50 +00:00
Brian Haley de243a3513 Fix E402 pep8 errors
Fix E402 (module level import not at top of file) pep8 errors
and no longer ignore new failures.

Trivialfix

Change-Id: If9a202f1f322b5b03966c692e33e94b7c872079b
2018-04-20 18:13:07 +00:00
Henry Gessau a80b89b6fe Ignore NULL fixed_ips for duplicate floating_ip check
Closes-Bug: #1628549

Change-Id: Ie49b46af93697ca67009373eadce9ba4f312dcc0
2016-09-28 13:38:13 -04:00
Lujin Luo a9c3b7ef08 Add a composite unique key to floatingip table in Neutron database
This patch set avoids associating multiple floating IPs to one fixed_
ip_address on one internal port when commands are executed concurrently
by adding a composite unique key between floating_network_id, fixed_port
_id and fixed_ip_address in floatingips table in Neutron database.

This implies the following 2 use cases are allowed/supported in Neutron:
1. one port_id with different fixed_ip_address(es) can associate with
floating_ip_address(es) from the same floating_network_id [1]

2. same fixed_ip_address can associate to same floating_network_id, as
long as they are on different ports, because different internal networks
could be using the same IP ranges.

[1] https://bugs.launchpad.net/neutron/+bug/1057844

Change-Id: Ie8f3ec1b23c14f36992886510c3114cf956769d4
Closes-Bug: #1534445
2016-09-08 02:12:40 +00:00