The gateway in subnet can be treated as default gateway of the subnet.
However, the router interface is the port that plug to router. They are
not the same thing.

When you create router interface, you can specify subnet. And at this
time, the default gateway will be used.

But if you specify port when create router interface, you can make any
number of ports in a subnet to be router interface.

So, I think this it works as designed.

** 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/1552964

Title:
  neutron subnet gateway is inconsistent with port ip

Status in neutron:
  Invalid

Bug description:
  We are using liberty.
  When attaching a subnet to its tenant router, we specify the subnet gateway 
to be 1.1.1.44.
  However, the subnet still uses 1.1.1.1 as its gateway.
  Following is the example.

  [root@numa1 ~(keystone_admin)]# neutron net-list
  
+--------------------------------------+------+-------------------------------------------------+
  | id                                   | name | subnets                       
                  |
  
+--------------------------------------+------+-------------------------------------------------+
  | 4e461989-e99f-438e-87d7-46456eb3559c | xin  | 
016de55b-52d7-4b99-af72-586935749a02 1.1.1.0/24 |
  
+--------------------------------------+------+-------------------------------------------------+
  [root@numa1 ~(keystone_admin)]# neutron subnet-show 
016de55b-52d7-4b99-af72-586935749a02
  +-------------------+------------------------------------------+
  | Field             | Value                                    |
  +-------------------+------------------------------------------+
  | allocation_pools  | {"start": "1.1.1.2", "end": "1.1.1.254"} |
  | cidr              | 1.1.1.0/24                               |
  | dns_nameservers   |                                          |
  | enable_dhcp       | True                                     |
  | gateway_ip        | 1.1.1.1                                  |
  | host_routes       |                                          |
  | id                | 016de55b-52d7-4b99-af72-586935749a02     |
  | ip_version        | 4                                        |
  | ipv6_address_mode |                                          |
  | ipv6_ra_mode      |                                          |
  | name              | xin                                      |
  | network_id        | 4e461989-e99f-438e-87d7-46456eb3559c     |
  | subnetpool_id     |                                          |
  | tenant_id         | 3a8ac6432efe4e90b79554270cda915d         |
  +-------------------+------------------------------------------+
  [root@numa1 ~(keystone_admin)]# neutron port-list
  
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
  | id                                   | name | mac_address       | fixed_ips 
                                                                      |
  
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
  | bab59f8d-6d99-4619-bb7e-aeb5a43588a8 |      | fa:16:3e:de:ea:7e | 
{"subnet_id": "016de55b-52d7-4b99-af72-586935749a02", "ip_address": "1.1.1.2"}  
|
  | fcb53ef0-3178-4149-97da-7cc8826ad6bd |      | fa:16:3e:92:86:d2 | 
{"subnet_id": "016de55b-52d7-4b99-af72-586935749a02", "ip_address": "1.1.1.44"} 
|
  
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
  [root@numa1 ~(keystone_admin)]# neutron port-show 
fcb53ef0-3178-4149-97da-7cc8826ad6bd
  
+-----------------------+--------------------------------------------------------------------------------------------------+
  | Field                 | Value                                               
                                             |
  
+-----------------------+--------------------------------------------------------------------------------------------------+
  | admin_state_up        | True                                                
                                             |
  | allowed_address_pairs |                                                     
                                             |
  | binding:host_id       |                                                     
                                             |
  | binding:profile       | {}                                                  
                                             |
  | binding:vif_details   | {}                                                  
                                             |
  | binding:vif_type      | unbound                                             
                                             |
  | binding:vnic_type     | normal                                              
                                             |
  | device_id             | 7815c71c-9a3f-4a41-84e5-9eb72b03c712                
                                             |
  | device_owner          | network:router_interface                            
                                             |
  | dns_assignment        | {"hostname": "host-1-1-1-44", "ip_address": 
"1.1.1.44", "fqdn": "host-1-1-1-44.openstacklocal."} |
  | dns_name              |                                                     
                                             |
  | extra_dhcp_opts       |                                                     
                                             |
  | fixed_ips             | {"subnet_id": 
"016de55b-52d7-4b99-af72-586935749a02", "ip_address": "1.1.1.44"}               
   |
  | id                    | fcb53ef0-3178-4149-97da-7cc8826ad6bd                
                                             |
  | mac_address           | fa:16:3e:92:86:d2                                   
                                             |
  | name                  |                                                     
                                             |
  | network_id            | 4e461989-e99f-438e-87d7-46456eb3559c                
                                             |
  | security_groups       | c8eaed1e-235a-4547-a8d3-f1aecd6a93c9                
                                             |
  | status                | ACTIVE                                              
                                             |
  | tenant_id             | 3a8ac6432efe4e90b79554270cda915d                    
                                             |
  
+-----------------------+--------------------------------------------------------------------------------------------------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1552964/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to