Bug 1805644
| Summary: | [OSP16][Neutron] Adding subnet to router with already assigned IP address failing without error | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Rafal Szmigiel <rszmigie> |
| Component: | python-openstacksdk | Assignee: | Bernard Cafarelli <bcafarel> |
| Status: | CLOSED ERRATA | QA Contact: | Eran Kuris <ekuris> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 16.0 (Train) | CC: | apevec, jjoyce, jpichon, jschluet, lhh |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-openstacksdk-0.36.1-0.20200225114654.50c9898.el8ost | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-05-14 12:18:28 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Rafal Szmigiel
2020-02-21 09:37:18 UTC
2 separate issues here. First, adding a leg to another subnet on a router: "openstack router add subnet" only works for the first router, and adding new ones will fail with IpAddressAlreadyAllocated - we try to allocate the gateway IP for the router port, so there can be only one. If you need to have other routers, you need to create a port in that subnet, and then associate that port to the router. Something like: $ openstack port create --fixed-ip subnet=private-subnet --network private port_router2 $ openstack router add port router2 port_router2 Second, the client should report the error (which you saw in log), I could not find the relevant fix but remember it. Current master code works fine: $ openstack router add subnet router2 private-subnet BadRequestException: 400: Client Error for url: http://10.48.0.137:9696/v2.0/routers/7bae3e02-deec-49a0-8491-72771ce466cb/add_router_interface, Bad router request: Router already has a port on subnet 1825b046-ffd0-43e0-ab87-ccd0611595d6. I will check on OSP 16 (redeploying in progress), one possible cause is that you used an older client (or one of its components) I found the relevant story and master fix, backporting to stable/train (and OSP 16) Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2155 |