Public bug reported: [Summary] an unclear message returned when update the allocation pool of the subnet for which gateway is disabled
[Topo] devstack all-in-one node [Description and expect result] should return a clear message and say what really happen about the command [Reproduceable or not] reproduceable [Recreate Steps] 1) create a subnet : root@45-59:~# neutron subnet-show sub-1 +-------------------+--------------------------------------------+ | Field | Value | +-------------------+--------------------------------------------+ | allocation_pools | {"start": "1.0.0.100", "end": "1.0.0.200"} | | cidr | 1.0.0.0/24 | | dns_nameservers | | | enable_dhcp | True | | gateway_ip | 1.0.0.1 | | host_routes | | | id | e9638d41-9346-4887-a27f-87eb12addbf7 | | ip_version | 4 | | ipv6_address_mode | | | ipv6_ra_mode | | | name | sub-1 | | network_id | 385191ef-3776-4144-9b8b-3e4688d59368 | | subnetpool_id | | | tenant_id | 6c15aacc1cfe4a9fac35a0c7f8c3e912 | +-------------------+--------------------------------------------+ 2) disable gateway of the subnet: root@45-59:~# neutron subnet-update --no-gateway sub-1 Updated subnet: sub-1 root@45-59:~# root@45-59:~# root@45-59:~# neutron subnet-show sub-1 +-------------------+--------------------------------------------+ | Field | Value | +-------------------+--------------------------------------------+ | allocation_pools | {"start": "1.0.0.100", "end": "1.0.0.200"} | | cidr | 1.0.0.0/24 | | dns_nameservers | | | enable_dhcp | True | | gateway_ip | | | host_routes | | | id | e9638d41-9346-4887-a27f-87eb12addbf7 | | ip_version | 4 | | ipv6_address_mode | | | ipv6_ra_mode | | | name | sub-1 | | network_id | 385191ef-3776-4144-9b8b-3e4688d59368 | | subnetpool_id | | | tenant_id | 6c15aacc1cfe4a9fac35a0c7f8c3e912 | +-------------------+--------------------------------------------+ 3) update the allocation pool of the subnet, got an unclear message: root@45-59:~# neutron subnet-update --allocation-pool start=1.0.0.150,end=1.0.0.200 sub-1 failed to detect a valid IP address from None >>>>ISSUE, unclear root@45-59:~# [Configration] reproduceable bug, no need [logs] reproduceable bug, no need [Root cause anlyze or debug inf] reproduceable bug [Attachment] None ** Affects: neutron Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1527149 Title: an unclear message returned when update the allocation pool of the subnet for which gateway is disabled Status in neutron: New Bug description: [Summary] an unclear message returned when update the allocation pool of the subnet for which gateway is disabled [Topo] devstack all-in-one node [Description and expect result] should return a clear message and say what really happen about the command [Reproduceable or not] reproduceable [Recreate Steps] 1) create a subnet : root@45-59:~# neutron subnet-show sub-1 +-------------------+--------------------------------------------+ | Field | Value | +-------------------+--------------------------------------------+ | allocation_pools | {"start": "1.0.0.100", "end": "1.0.0.200"} | | cidr | 1.0.0.0/24 | | dns_nameservers | | | enable_dhcp | True | | gateway_ip | 1.0.0.1 | | host_routes | | | id | e9638d41-9346-4887-a27f-87eb12addbf7 | | ip_version | 4 | | ipv6_address_mode | | | ipv6_ra_mode | | | name | sub-1 | | network_id | 385191ef-3776-4144-9b8b-3e4688d59368 | | subnetpool_id | | | tenant_id | 6c15aacc1cfe4a9fac35a0c7f8c3e912 | +-------------------+--------------------------------------------+ 2) disable gateway of the subnet: root@45-59:~# neutron subnet-update --no-gateway sub-1 Updated subnet: sub-1 root@45-59:~# root@45-59:~# root@45-59:~# neutron subnet-show sub-1 +-------------------+--------------------------------------------+ | Field | Value | +-------------------+--------------------------------------------+ | allocation_pools | {"start": "1.0.0.100", "end": "1.0.0.200"} | | cidr | 1.0.0.0/24 | | dns_nameservers | | | enable_dhcp | True | | gateway_ip | | | host_routes | | | id | e9638d41-9346-4887-a27f-87eb12addbf7 | | ip_version | 4 | | ipv6_address_mode | | | ipv6_ra_mode | | | name | sub-1 | | network_id | 385191ef-3776-4144-9b8b-3e4688d59368 | | subnetpool_id | | | tenant_id | 6c15aacc1cfe4a9fac35a0c7f8c3e912 | +-------------------+--------------------------------------------+ 3) update the allocation pool of the subnet, got an unclear message: root@45-59:~# neutron subnet-update --allocation-pool start=1.0.0.150,end=1.0.0.200 sub-1 failed to detect a valid IP address from None >>>>ISSUE, unclear root@45-59:~# [Configration] reproduceable bug, no need [logs] reproduceable bug, no need [Root cause anlyze or debug inf] reproduceable bug [Attachment] None To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1527149/+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