Comment 6 for bug 1332231

Revision history for this message
Vedamurthy Joshi (vedujoshi) wrote : Re: [Bug 1332231] Re: Updating a subnet to enable dhcp is failing

Could you please commit this to 1.10 ?

On 7/31/14, 10:01 AM, "Praneet Bachheti" <email address hidden> wrote:

>commit 04a065157ce759d0fc05e76c03b8297e9a4ed8b9
>Author: Praneet Bachheti <email address hidden>
>Date: Tue Jul 29 10:18:23 2014 -0700
>
> port subnet update from R1.06
> - we do not support gateway_ip update
>
> Change-Id: I56d336a2ef2cdcc8463eb7dee267baa632735910
>
>** Changed in: juniperopenstack
> Status: New => Fix Committed
>
>--
>You received this bug notification because you are a member of Contrail
>Systems engineering, which is subscribed to Juniper Openstack.
>https://bugs.launchpad.net/bugs/1332231
>
>Title:
> Updating a subnet to enable dhcp is failing
>
>Status in Juniper Openstack distribution:
> Fix Committed
>
>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:instance_count | 0 |
> | contrail:ipam_fq_name | default-domain |
> | | default-project |
> | | default-network-ipam |
> | dns_nameservers | |
> | enable_dhcp | False |
> | gateway_ip | 10.0.0.1 |
> | host_routes | |
> | id | 7a7408dc-363d-44ea-a0f9-30e6e6d824ca |
> | ip_version | 4 |
> | name | |
> | network_id | 333c09f3-bd69-4207-acd5-5f157f8aaeb3 |
> | tenant_id | bcbac3687162482bb9a59175e58f639b |
> +-------------------------+--------------------------------------------+
> root@nodec34:~#
>
> root@nodec34:~# neutron subnet-update
>7a7408dc-363d-44ea-a0f9-30e6e6d824ca --enable_dhcp true
> Request Failed: internal server error while processing your request.
> root@nodec34:~#
>
>
> 2014-06-19 23:18:43.3 ERROR [neutron.api.v2.resource] update failed
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py",
>line 84, in resource
> result = method(request=request, **args)
> File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line
>486, in update
> obj = obj_updater(request.context, id, **kwargs)
> File
>"/usr/lib/python2.7/dist-packages/neutron_plugin_contrail/plugins/opencont
>rail/contrailplugin.py", line 406, in update_subnet
> raise e
> AttributeError: 'DBInterface' object has no attribute 'subnet_update'
>
>To manage notifications about this bug go to:
>https://bugs.launchpad.net/juniperopenstack/+bug/1332231/+subscriptions