*** This bug is a duplicate of bug 1533518 ***
    https://bugs.launchpad.net/bugs/1533518

** Changed in: neutron
       Status: Invalid => New

** This bug has been marked a duplicate of bug 1533518
   Remove 'validate' key in 'type:dict_or_nodata' type in resource attribute map

-- 
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:
  New

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to