Updating a subnet to enable dhcp is failing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
Fix Committed
|
High
|
Praneet Bachheti |
Bug Description
Build 1.06-47
Create a subnet with dhcp disabled.
Update the subnet to enable the dhcp. This fails.
root@nodec34:~# neutron subnet-create net1 10.0.0.0/24 --enable_dhcp False
Created a new subnet:
+------
| Field | Value |
+------
| allocation_pools | {"start": "10.0.0.2", "end": "10.0.0.254"} |
| cidr | 10.0.0.0/24 |
| contrail:
| contrail:
| | default-project |
| | default-
| dns_nameservers | |
| enable_dhcp | False |
| gateway_ip | 10.0.0.1 |
| host_routes | |
| id | 7a7408dc-
| ip_version | 4 |
| name | |
| network_id | 333c09f3-
| tenant_id | bcbac3687162482
+------
root@nodec34:~#
root@nodec34:~# neutron subnet-update 7a7408dc-
Request Failed: internal server error while processing your request.
root@nodec34:~#
2014-06-19 23:18:43.3 ERROR [neutron.
Traceback (most recent call last):
File "/usr/lib/
result = method(
File "/usr/lib/
obj = obj_updater(
File "/usr/lib/
raise e
AttributeError: 'DBInterface' object has no attribute 'subnet_update'
information type: | Proprietary → Public |
Changed in juniperopenstack: | |
assignee: | Hampapur Ajay (hajay) → Praneet Bachheti (praneetb) |
On Build 1.06-50, I am getting below error while setting the dhcp to false.
2014-06-21 14:11:04.202 ERROR [neutron. api.v2. resource] update failed python2. 7/dist- packages/ neutron/ api/v2/ resource. py", line 84, in resource request= request, **args) python2. 7/dist- packages/ neutron/ api/v2/ base.py" , line 486, in update request. context, id, **kwargs) python2. 7/dist- packages/ neutron_ plugin_ contrail/ plugins/ opencontrail/ contrailplugin. py", line 408, in update_subnet Network( default- domain: admin:mynet1) has invalid subnet(10.0.1.0/24)
Traceback (most recent call last):
File "/usr/lib/
result = method(
File "/usr/lib/
obj = obj_updater(
File "/usr/lib/
raise e
HttpError: HTTP Status: 500 Content: Virtual-