[contrail][horizon] Bad subnet request: update of allocation_pools is not allowed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel Contrail plugin |
Fix Released
|
Medium
|
Illia Polliul |
Bug Description
Detailed bug description:
The error appears when horizon user updates DNS servers addresses in existing subnet (VN subnet).
Erros comes from Contrail, log files contains
in Contrail controller /var/log/
172.18.62.1 - - [2016-11-01 13:32:00] "POST /neutron/subnet HTTP/1.1" 200 559 0.127021
<pre>Traceback (most recent call last):
File "/usr/lib/
subnet[
File "/usr/lib/
return func(self, *args, **kwargs)
File "/usr/lib/
msg="update of allocation_pools is not allowed")
File "/usr/lib/
bottle.
File "/usr/lib/
raise HTTPError(code, text)
HTTPError
</pre>
172.18.62.1 - - [2016-11-01 13:32:01] "POST /neutron/subnet HTTP/1.1" 400 227 0.007812
in MOS controller /var/log/
in MOS controller /var/log/
2016-11-01 12:50:31,803 1260 WARNING horizon.exceptions Recoverable error: Bad subnet request: update of allocation_pools is not allowed
Updating DNS servers using CLI works just fine:
root@node-
+------
| Field | Value |
+------
| allocation_pools | {"start": "10.10.10.10", "end": "10.10.10.32"} |
| cidr | 10.10.10.0/24 |
| dns_nameservers | 8.8.8.8 |
| enable_dhcp | True |
| gateway_ip | 10.10.10.1 |
| host_routes | |
| id | a662c998-
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | Joomla subnet |
| network_id | 62038f1a-
| tenant_id | 3f6dcba833ff42a
+------
root@node-
Updated subnet: a662c998-
root@node-
+------
| Field | Value |
+------
| allocation_pools | {"start": "10.10.10.10", "end": "10.10.10.32"} |
| cidr | 10.10.10.0/24 |
| dns_nameservers | 4.4.2.2 |
| enable_dhcp | True |
| gateway_ip | 10.10.10.1 |
| host_routes | |
| id | a662c998-
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | Joomla subnet |
| network_id | 62038f1a-
| tenant_id | 3f6dcba833ff42a
+------
Steps to reproduce:
deploy MOS8 with fuel-plugin-
select some VN, edit existing subnetwork, go to Subnet Detail tab change 'DNS Name Servers' value, hit 'Create'
Expected results:
DNS servers has been changed
Actual result:
error - Bad subnet request: update of allocation_pools is not allowed
Description of the environment:
VERSION:
feature_groups:
- mirantis
production: "docker"
release: "8.0"
api: "1.0"
build_number: "570"
build_id: "570"
fuel-nailgun_sha: "558ca91a854cf2
python-
fuel-agent_sha: "658be72c4b42d3
fuel-
astute_sha: "b81577a5b7857c
fuel-library_sha: "c2a335b5b725f1
fuel-ostf_sha: "3bc76a63a9e7d1
fuel-mirror_sha: "fb45b80d7bee58
fuelmenu_sha: "78ffc73065a967
shotgun_sha: "63645dea384a37
network-
fuel-upgrade_sha: "616a7490ec7199
fuelmain_sha: "d605bcbabf3153
[root@fuel8 ~]# fuel plugins | grep contrail
16 | contrail | 4.0.0 | 4.0.0
# contrail-version
Package Version Build-ID | Repo | Package Name
-------
contrail-analytics 3.0.2.0-51 51
contrail-config 3.0.2.0-51 51
contrail-
contrail-control 3.0.2.0-51 51
contrail-dns 3.0.2.0-51 51
contrail-f5 3.0.2.0-51 51
contrail-lib 3.0.2.0-51 51
contrail-nodemgr 3.0.2.0-51 51
contrail-
contrail-
contrail-
contrail-
contrail-
contrail-setup 3.0.2.0-51 51
contrail-utils 3.0.2.0-51 51
contrail-
contrail-web-core 3.0.2.0-51 51
ifmap-python-client 0.1-2 51
ifmap-server 0.3.2-1contrail2 51
neutron-
python-contrail 3.0.2.0-51 51
python-
Changed in mos: | |
status: | New → Confirmed |
Defect reporduced on MOS 9.0
Same behavior:
Expected results:
DNS servers has been changed
Actual result:
error - Bad subnet request: update of allocation_pools is not allowed
plugin version : ------- ------- ------- ------- --- ------- ------- ------- ------- -- ------- ------- ------- ------- ------ config- openstack 3.1.0.0-25 25 database- common 3.1.0.0-25 25 openstack- config 3.1.0.0-25 25 openstack- control 3.1.0.0-25 25 openstack- database 3.1.0.0-25 25 openstack- webui 3.1.0.0-25 25 web-controller 3.1.0.0-25 25 plugin- contrail 3.1.0.0-25 25 neutronclient 1:4.1.1- 2~cloud0. 2contrail 25
name | version | package_version | releases
Contrail | 5.0.0 | 4.0.0 | ubuntu (mitaka-9.0)
Contrail version :
Package Version Build-ID | Repo | Package Name
-------
contrail-config 3.1.0.0-25 25
contrail-
contrail-control 3.1.0.0-25 25
contrail-
contrail-dns 3.1.0.0-25 25
contrail-f5 3.1.0.0-25 25
contrail-lib 3.1.0.0-25 25
contrail-nodemgr 3.1.0.0-25 25
contrail-
contrail-
contrail-
contrail-
contrail-setup 3.1.0.0-25 25
contrail-utils 3.1.0.0-25 25
contrail-
contrail-web-core 3.1.0.0-25 25
ifmap-python-client 0.1-2 25
ifmap-server 0.3.2-1contrail2 25
neutron-
python-contrail 3.1.0.0-25 25
python-
------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---
There is a workaround to set DNS via Horizon.You need to update DNS and also clear section in Allocation Pool then hit Save. DNS for subnet will be updated .