yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #60593
[Bug 1657364] [NEW] onet net has a subnet with a cidr in subnetpool, and then create a subnet with cidr not in subnetpool fail
Public bug reported:
For branch master
1. I hava a net and a subnetpool:
[root@devstack178 devstack]# neutron net-create poolnet
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| availability_zone_hints | |
| availability_zones | |
| created_at | 2017-01-18T16:14:10Z |
| description | |
| id | ce04f4db-22e3-4ba4-9f64-686e57c2d633 |
| ipv4_address_scope | |
| ipv6_address_scope | |
| mtu | 1450 |
| name | poolnet |
| port_security_enabled | True |
| project_id | db0c096ae736499b84b08ef06106b138 |
| provider:network_type | vxlan |
| provider:physical_network | |
| provider:segmentation_id | 68 |
| revision_number | 3 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tags | |
| tenant_id | db0c096ae736499b84b08ef06106b138 |
| updated_at | 2017-01-18T16:14:10Z |
+---------------------------+--------------------------------------+
[root@devstack178 devstack]# neutron subnetpool-create addresspool25 --pool-prefix 25.0.0.0/8 --default-prefixlen 24
Created a new subnetpool:
+-------------------+--------------------------------------+
| Field | Value |
+-------------------+--------------------------------------+
| address_scope_id | |
| created_at | 2017-01-18T16:16:23Z |
| default_prefixlen | 24 |
| default_quota | |
| description | |
| id | c84855bb-bf76-4ed5-b213-9ec4bac20077 |
| ip_version | 4 |
| is_default | False |
| max_prefixlen | 32 |
| min_prefixlen | 8 |
| name | addresspool25 |
| prefixes | 25.0.0.0/8 |
| project_id | db0c096ae736499b84b08ef06106b138 |
| revision_number | 1 |
| shared | False |
| tenant_id | db0c096ae736499b84b08ef06106b138 |
| updated_at | 2017-01-18T16:16:23Z |
+-------------------+--------------------------------------+
2. creat a subnet which cidr in subnetpool
[root@devstack178 devstack]# neutron subnet-create poolnet --subnetpool addresspool25
Created a new subnet:
+-------------------+--------------------------------------------+
| Field | Value |
+-------------------+--------------------------------------------+
| allocation_pools | {"start": "25.0.0.2", "end": "25.0.0.254"} |
| cidr | 25.0.0.0/24 |
| created_at | 2017-01-18T16:17:54Z |
| description | |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 25.0.0.1 |
| host_routes | |
| id | 8705a697-8c63-4511-b4b7-7e0e968ce460 |
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | |
| network_id | ce04f4db-22e3-4ba4-9f64-686e57c2d633 |
| project_id | db0c096ae736499b84b08ef06106b138 |
| revision_number | 2 |
| service_types | |
| subnetpool_id | c84855bb-bf76-4ed5-b213-9ec4bac20077 |
| tenant_id | db0c096ae736499b84b08ef06106b138 |
| updated_at | 2017-01-18T16:17:54Z |
+-------------------+--------------------------------------------+
3. create another subnet in same net but cidr not in subnetpool, result is failed
[root@devstack178 devstack]# neutron subnet-create poolnet --name subnet1 192.168.1.0/24
Subnets hosted on the same network must be allocated from the same subnet pool.
Neutron server returns request_ids: ['req-d89eb5ba-1d85-4e75-8afc-68af0ff8375b']
** Affects: neutron
Importance: Undecided
Assignee: QunyingRan (ran-qunying)
Status: New
** Changed in: neutron
Assignee: (unassigned) => QunyingRan (ran-qunying)
** Description changed:
For branch master
1. I hava a net and a subnetpool:
- [root@devstack178 devstack]# neutron net-create poolnet
+ [root@devstack178 devstack]# neutron net-create poolnet
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| availability_zone_hints | |
| availability_zones | |
| created_at | 2017-01-18T16:14:10Z |
| description | |
| id | ce04f4db-22e3-4ba4-9f64-686e57c2d633 |
| ipv4_address_scope | |
| ipv6_address_scope | |
| mtu | 1450 |
| name | poolnet |
| port_security_enabled | True |
| project_id | db0c096ae736499b84b08ef06106b138 |
| provider:network_type | vxlan |
| provider:physical_network | |
| provider:segmentation_id | 68 |
| revision_number | 3 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tags | |
| tenant_id | db0c096ae736499b84b08ef06106b138 |
| updated_at | 2017-01-18T16:14:10Z |
+---------------------------+--------------------------------------+
[root@devstack178 devstack]# neutron subnetpool-create addresspool25 --pool-prefix 25.0.0.0/8 --default-prefixlen 24
Created a new subnetpool:
+-------------------+--------------------------------------+
| Field | Value |
+-------------------+--------------------------------------+
| address_scope_id | |
| created_at | 2017-01-18T16:16:23Z |
| default_prefixlen | 24 |
| default_quota | |
| description | |
| id | c84855bb-bf76-4ed5-b213-9ec4bac20077 |
| ip_version | 4 |
| is_default | False |
| max_prefixlen | 32 |
| min_prefixlen | 8 |
| name | addresspool25 |
| prefixes | 25.0.0.0/8 |
| project_id | db0c096ae736499b84b08ef06106b138 |
| revision_number | 1 |
| shared | False |
| tenant_id | db0c096ae736499b84b08ef06106b138 |
| updated_at | 2017-01-18T16:16:23Z |
+-------------------+--------------------------------------+
2. creat a subnet which cidr in subnetpool
- [root@devstack178 devstack]# neutron subnet-create poolnet --subnetpool addresspool25
+ [root@devstack178 devstack]# neutron subnet-create poolnet --subnetpool addresspool25
Created a new subnet:
+-------------------+--------------------------------------------+
| Field | Value |
+-------------------+--------------------------------------------+
| allocation_pools | {"start": "25.0.0.2", "end": "25.0.0.254"} |
| cidr | 25.0.0.0/24 |
| created_at | 2017-01-18T16:17:54Z |
| description | |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 25.0.0.1 |
| host_routes | |
| id | 8705a697-8c63-4511-b4b7-7e0e968ce460 |
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | |
| network_id | ce04f4db-22e3-4ba4-9f64-686e57c2d633 |
| project_id | db0c096ae736499b84b08ef06106b138 |
| revision_number | 2 |
| service_types | |
| subnetpool_id | c84855bb-bf76-4ed5-b213-9ec4bac20077 |
| tenant_id | db0c096ae736499b84b08ef06106b138 |
| updated_at | 2017-01-18T16:17:54Z |
+-------------------+--------------------------------------------+
- 3. create another subnet in same net which cidr not in subnetpool, result is failed
+ 3. create another subnet in same net but cidr not in subnetpool, result is failed
[root@devstack178 devstack]# neutron subnet-create poolnet --name subnet1 192.168.1.0/24
Subnets hosted on the same network must be allocated from the same subnet pool.
Neutron server returns request_ids: ['req-d89eb5ba-1d85-4e75-8afc-68af0ff8375b']
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1657364
Title:
onet net has a subnet with a cidr in subnetpool, and then create a
subnet with cidr not in subnetpool fail
Status in neutron:
New
Bug description:
For branch master
1. I hava a net and a subnetpool:
[root@devstack178 devstack]# neutron net-create poolnet
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| availability_zone_hints | |
| availability_zones | |
| created_at | 2017-01-18T16:14:10Z |
| description | |
| id | ce04f4db-22e3-4ba4-9f64-686e57c2d633 |
| ipv4_address_scope | |
| ipv6_address_scope | |
| mtu | 1450 |
| name | poolnet |
| port_security_enabled | True |
| project_id | db0c096ae736499b84b08ef06106b138 |
| provider:network_type | vxlan |
| provider:physical_network | |
| provider:segmentation_id | 68 |
| revision_number | 3 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tags | |
| tenant_id | db0c096ae736499b84b08ef06106b138 |
| updated_at | 2017-01-18T16:14:10Z |
+---------------------------+--------------------------------------+
[root@devstack178 devstack]# neutron subnetpool-create addresspool25 --pool-prefix 25.0.0.0/8 --default-prefixlen 24
Created a new subnetpool:
+-------------------+--------------------------------------+
| Field | Value |
+-------------------+--------------------------------------+
| address_scope_id | |
| created_at | 2017-01-18T16:16:23Z |
| default_prefixlen | 24 |
| default_quota | |
| description | |
| id | c84855bb-bf76-4ed5-b213-9ec4bac20077 |
| ip_version | 4 |
| is_default | False |
| max_prefixlen | 32 |
| min_prefixlen | 8 |
| name | addresspool25 |
| prefixes | 25.0.0.0/8 |
| project_id | db0c096ae736499b84b08ef06106b138 |
| revision_number | 1 |
| shared | False |
| tenant_id | db0c096ae736499b84b08ef06106b138 |
| updated_at | 2017-01-18T16:16:23Z |
+-------------------+--------------------------------------+
2. creat a subnet which cidr in subnetpool
[root@devstack178 devstack]# neutron subnet-create poolnet --subnetpool addresspool25
Created a new subnet:
+-------------------+--------------------------------------------+
| Field | Value |
+-------------------+--------------------------------------------+
| allocation_pools | {"start": "25.0.0.2", "end": "25.0.0.254"} |
| cidr | 25.0.0.0/24 |
| created_at | 2017-01-18T16:17:54Z |
| description | |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 25.0.0.1 |
| host_routes | |
| id | 8705a697-8c63-4511-b4b7-7e0e968ce460 |
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | |
| network_id | ce04f4db-22e3-4ba4-9f64-686e57c2d633 |
| project_id | db0c096ae736499b84b08ef06106b138 |
| revision_number | 2 |
| service_types | |
| subnetpool_id | c84855bb-bf76-4ed5-b213-9ec4bac20077 |
| tenant_id | db0c096ae736499b84b08ef06106b138 |
| updated_at | 2017-01-18T16:17:54Z |
+-------------------+--------------------------------------------+
3. create another subnet in same net but cidr not in subnetpool, result is failed
[root@devstack178 devstack]# neutron subnet-create poolnet --name subnet1 192.168.1.0/24
Subnets hosted on the same network must be allocated from the same subnet pool.
Neutron server returns request_ids: ['req-d89eb5ba-1d85-4e75-8afc-68af0ff8375b']
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1657364/+subscriptions
Follow ups