Commit 3328be0
committed
Return 409 Conflict to tenant user deleting port attached to FIP
When a tenant user try to delete a port that has attached a FIP by
an admin user is getting a 500 ServerError.
This patch improves the error to 409 Conflict doing some additionals
checks on the delete_port method.
New exception has been included locally, but will be removed as soon
neutron-lib bumps to a newer release.
Closes-Bug: 2017680
Change-Id: Iab77c64c03fd0d44ff7a3fc1c556d85a8c480bb9
(cherry picked from commit 9f6f6d5)1 parent d3dc53d commit 3328be0
2 files changed
+44
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
84 | 91 | | |
85 | 92 | | |
86 | 93 | | |
| |||
1766 | 1773 | | |
1767 | 1774 | | |
1768 | 1775 | | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
1769 | 1780 | | |
1770 | | - | |
| 1781 | + | |
1771 | 1782 | | |
1772 | 1783 | | |
1773 | 1784 | | |
1774 | 1785 | | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
1775 | 1797 | | |
1776 | 1798 | | |
1777 | 1799 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
331 | 352 | | |
332 | 353 | | |
333 | 354 | | |
| |||
0 commit comments