Bulk IPv6 subnet create error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Oleg Bondarev |
Bug Description
When trying to create bulk IPv6 subnet from .json file on devstack( ubuntu server 16.04, latest openstack master version ), it throws an 500 internal server error.
This only happens, when trying to create bulk IPv6 subnets in slaac and dhcp stateless modes and there is already another subnet on that specific network.
It works fine with dhcp stateful.
There is also no problem when trying to do this with "openstack subnet create" or without bulk .json file.
Here are reproduction steps:
$ . ~/devstack/openrc admin
$ openstack network create n1
+------
| Field | Value |
+------
| admin_state_up | UP |
| availability_
| availability_zones | |
| created_at | 2019-04-
| description | |
| dns_domain | None |
| id | 435383ce-
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | False |
| is_vlan_transparent | None |
| location | Munch({'project': Munch({'domain_id': 'default', 'id': u'c83b8eb6f6de4
| mtu | 1450 |
| name | n1 |
| port_security_
| project_id | c83b8eb6f6de41d
| provider:
| provider:
| provider:
| qos_policy_id | None |
| revision_number | 1 |
| router:external | Internal |
| segments | None |
| shared | False |
| status | ACTIVE |
| subnets | |
| tags | |
| updated_at | 2019-04-
+------
$ export MY_TOKEN=
$ cat bulk_ipv4.json
{
"subnets": [
{
"cidr": "192.168.0.0/24",
"ip_version": 4,
"network_id": "435383ce-
"enable_dhcp": true,
"name": "subnet1"
}
]
}
$ curl -H "X-Auth-Token: $MY_TOKEN" -X POST http://
$ cat bulk_ipv6.json
{
"subnets": [
{
"name": "subnet12_v6",
"network_id": "435383ce-
"gateway_ip": "fd00:2:1234::1",
"ip_version": 6,
"cidr": "fd00:2:1234::/64",
"enable_dhcp": true,
"ipv6_ra_mode": "slaac",
"ipv6_
}
]
}
$ curl -H "X-Auth-Token: $MY_TOKEN" -X POST http://
% Total % Received % Xferd Average Speed Time Time Time Current
100 402 100 150 100 252 471 792 --:--:-- --:--:-- --:--:-- 794
{
"NeutronError": {
"message": "Request Failed: internal server error while processing your request.",
"type": "HTTPInternalSe
"detail": ""
}
}
[Last few lines are from neutron server log]
Apr 01 13:55:37 vm neutron-
Apr 01 13:55:37 vm neutron-
Apr 01 13:55:37 vm neutron-
Apr 01 13:55:37 vm neutron-
Apr 01 13:55:37 vm neutron-
Apr 01 13:55:37 vm neutron-
Apr 01 13:55:37 vm neutron-
Apr 01 13:55:37 vm neutron-
Apr 01 13:55:37 vm neutron-
tags: | added: ipv6 |
tags: | added: bulk |
Changed in neutron: | |
assignee: | nobody → Bernard Cafarelli (bcafarel) |
Changed in neutron: | |
assignee: | Bernard Cafarelli (bcafarel) → Oleg Bondarev (obondarev) |
Changed in neutron: | |
status: | Confirmed → In Progress |
Confirmed reproducer on current devstack (and also that plain openstack subnet create command works with similar parameters)