[Yahoo-eng-team] [Bug 1593652] Re: When created subnet for a network failed, it seems that error info returned by neutronclient didn't return network and subnet info

2016-06-20 Thread John Davidge
It seems to me that the problem is with how Horizon is reporting the
error. The python-neutronclient will not return a subnet_id as no subnet
is created. It could be changed to return the network_id, but seeing as
that is included in the subnet-create request I'm not sure it's
necessary.

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

Title:
  When created subnet for a network failed,it seems that error info
  returned by neutronclient didn't return  network and subnet info

Status in neutron:
  Invalid

Bug description:
  Created subnet associated with subnetpool_1 for a network,through
  Horizon Web,creating another subnet associated with subnetpool_2
  returned error info as follows:

  Error: Failed to create subnet "" for network "None": Subnets hosted
  on the same network must be allocated from the same subnet pool.
  Neutron server returns request_ids: ['req-
  cad13014-6fe6-4db4-99e6-750de19fbf85']

  " subnet "" " and " network "None" " appeared in the error info above
  is not friendly,it seems that neutronclient didn't return network and
  subnet info caused this.

  [root@localhost devstack]# neutron net-show net_xwj
  +---+--+
  | Field | Value|
  +---+--+
  | admin_state_up| True |
  | availability_zone_hints   |  |
  | availability_zones| nova |
  | created_at| 2016-06-16T01:52:55  |
  | description   |  |
  | id| 49fbc0cf-1d0a-4fbf-a2fc-e21264752760 |
  | ipv4_address_scope|  |
  | ipv6_address_scope|  |
  | mtu   | 1450 |
  | name  | net_xwj  |
  | port_security_enabled | True |
  | provider:network_type | vxlan|
  | provider:physical_network |  |
  | provider:segmentation_id  | 1076 |
  | router:external   | False|
  | shared| False|
  | status| ACTIVE   |
  | subnets   | e4fadcb7-ac99-4c14-82e2-1195c3618779 |
  |   | 8868eaed-55c5-4707-b41e-8798cc8b9cc9 |
  | tags  |  |
  | tenant_id | d692c40b9bd74af38361d855bebb60ac |
  | updated_at| 2016-06-16T01:52:56  |
  +---+--+
  [root@localhost devstack]# neutron subnet-show  
e4fadcb7-ac99-4c14-82e2-1195c3618779
  +---+-+
  | Field | Value   |
  +---+-+
  | allocation_pools  | {"start": "110.1.0.2", "end": "110.1.0.14"} |
  | cidr  | 110.1.0.0/28|
  | created_at| 2016-06-17T03:18:27 |
  | description   | |
  | dns_nameservers   | |
  | enable_dhcp   | True|
  | gateway_ip| 110.1.0.1   |
  | host_routes   | |
  | id| e4fadcb7-ac99-4c14-82e2-1195c3618779|
  | ip_version| 4   |
  | ipv6_address_mode | |
  | ipv6_ra_mode  | |
  | name  | subnet_xwj_01   |
  | network_id| 49fbc0cf-1d0a-4fbf-a2fc-e21264752760|
  | subnetpool_id | 4547f41d-c4cd-4336-9138-642dd2187b5b|
  | tenant_id | d692c40b9bd74af38361d855bebb60ac|
  | updated_at| 2016-06-17T03:18:27 |
  +---+-+
  [root@localhost devstack]# neutron subnet-show 
8868eaed-55c5-4707-b41e-8798cc8b9cc9
  +---+--+
  | Field | Value|
  

[Yahoo-eng-team] [Bug 1593652] Re: When created subnet for a network failed, it seems that error info returned by neutronclient didn't return network and subnet info

2016-06-20 Thread dongwenshuai
** Project changed: python-neutronclient => neutron

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1593652

Title:
  When created subnet for a network failed,it seems that error info
  returned by neutronclient didn't return  network and subnet info

Status in neutron:
  New

Bug description:
  Created subnet associated with subnetpool_1 for a network,through
  Horizon Web,creating another subnet associated with subnetpool_2
  returned error info as follows:

  Error: Failed to create subnet "" for network "None": Subnets hosted
  on the same network must be allocated from the same subnet pool.
  Neutron server returns request_ids: ['req-
  cad13014-6fe6-4db4-99e6-750de19fbf85']

  " subnet "" " and " network "None" " appeared in the error info above
  is not friendly,it seems that neutronclient didn't return network and
  subnet info caused this.

  [root@localhost devstack]# neutron net-show net_xwj
  +---+--+
  | Field | Value|
  +---+--+
  | admin_state_up| True |
  | availability_zone_hints   |  |
  | availability_zones| nova |
  | created_at| 2016-06-16T01:52:55  |
  | description   |  |
  | id| 49fbc0cf-1d0a-4fbf-a2fc-e21264752760 |
  | ipv4_address_scope|  |
  | ipv6_address_scope|  |
  | mtu   | 1450 |
  | name  | net_xwj  |
  | port_security_enabled | True |
  | provider:network_type | vxlan|
  | provider:physical_network |  |
  | provider:segmentation_id  | 1076 |
  | router:external   | False|
  | shared| False|
  | status| ACTIVE   |
  | subnets   | e4fadcb7-ac99-4c14-82e2-1195c3618779 |
  |   | 8868eaed-55c5-4707-b41e-8798cc8b9cc9 |
  | tags  |  |
  | tenant_id | d692c40b9bd74af38361d855bebb60ac |
  | updated_at| 2016-06-16T01:52:56  |
  +---+--+
  [root@localhost devstack]# neutron subnet-show  
e4fadcb7-ac99-4c14-82e2-1195c3618779
  +---+-+
  | Field | Value   |
  +---+-+
  | allocation_pools  | {"start": "110.1.0.2", "end": "110.1.0.14"} |
  | cidr  | 110.1.0.0/28|
  | created_at| 2016-06-17T03:18:27 |
  | description   | |
  | dns_nameservers   | |
  | enable_dhcp   | True|
  | gateway_ip| 110.1.0.1   |
  | host_routes   | |
  | id| e4fadcb7-ac99-4c14-82e2-1195c3618779|
  | ip_version| 4   |
  | ipv6_address_mode | |
  | ipv6_ra_mode  | |
  | name  | subnet_xwj_01   |
  | network_id| 49fbc0cf-1d0a-4fbf-a2fc-e21264752760|
  | subnetpool_id | 4547f41d-c4cd-4336-9138-642dd2187b5b|
  | tenant_id | d692c40b9bd74af38361d855bebb60ac|
  | updated_at| 2016-06-17T03:18:27 |
  +---+-+
  [root@localhost devstack]# neutron subnet-show 
8868eaed-55c5-4707-b41e-8798cc8b9cc9
  +---+--+
  | Field | Value|
  +---+--+
  | allocation_pools  | {"start": "110.1.0.18", "end": "110.1.0.30"} |
  | cidr  | 110.1.0.16/28|
  | created_at| 2016-06-17T03:20:54  |
  | description   |