yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #44807
[Bug 1532897] Re: octal ip address disallowed during create but still works during update of setting router gw
Closing this bug out. There is a patch out which inadvertently solves
this: https://review.openstack.org/#/c/266319/
** Changed in: neutron
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1532897
Title:
octal ip address disallowed during create but still works during
update of setting router gw
Status in neutron:
Invalid
Bug description:
environment: all-in-one devstack
description: we have disallowed the usage of leading "0" in ip v4
addresses due to the confusion of them being interpreted as octal
addresses in some instances. This was first reported:
https://bugs.launchpad.net/neutron/+bug/1524220 and then it was
patched https://review.openstack.org/255217 . I am able to bypass the
fix while updating gw router ip.
ex:
-VirtualBox:~/devstack$ neutron router-create test-routr
Created a new router:
+-------------------------+--------------------------------------+
| Field | Value |
+-------------------------+--------------------------------------+
| admin_state_up | True |
| availability_zone_hints | |
| availability_zones | |
| distributed | False |
| external_gateway_info | |
| ha | False |
| id | 7b5a90b6-9db2-4a83-b249-e320cbc049e4 |
| name | test-routr |
| routes | |
| status | ACTIVE |
| tenant_id | 20042bf593564b21b5957f0977d746fc |
+-------------------------+--------------------------------------+
-VirtualBox:~/devstack$ neutron router-gateway-set --fixed-ip subnet_id=2a146a9d-9834-4fa1-a313-64f2ad677a97,ip_address=172.24.4.014 test-routr public
Request Failed: internal server error while processing your request. <---- ERROR HERE IS EXPECTED
-VirtualBox:~/devstack$ neutron router-gateway-set --fixed-ip subnet_id=2a146a9d-9834-4fa1-a313-64f2ad677a97,ip_address=172.24.4.17 test-routr public
Set gateway for router test-routr
-VirtualBox:~/devstack$ neutron router-gateway-set --fixed-ip subnet_id=2a146a9d-9834-4fa1-a313-64f2ad677a97,ip_address=172.24.4.014 test-routr public
Set gateway for router test-routr <-- THIS IS THE SAME THING THAT I TRIED EARLIER AND IT FAILED BUT SINCE THERE WAS ALREADY AN IP AND I WAS SIMPLY UPDATING, IT WAS ABLE TO BYPASS VALIDATION.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1532897/+subscriptions
References