Hi Numan, Logs i have posted from screens contrail-api and q-svc.
There's bottle 404 errors, but when it triggers that I need to know. Is there any matching constraint on the request body for API, like if extra param or mismatch, then raise 404 error? couldn't locate such logic. Regards, Yatin On Fri, Jun 19, 2015 at 4:51 PM, Numan Siddique <[email protected]> wrote: > Yatin, > > You should see the reason for the error in the api-server logs. If you > running a devstack, see the api-server screen. > > Thanks > Numan > > > > On 06/19/2015 04:37 PM, yatin kumbhare wrote: > > Hello, > > Virtual Env= (Ubuntu 14.04, Contrail R2.1, Openstack Icehouse) > > Want to support booting of VMs via subnet-id (*net-id and port-id is > supported via nova boot cli*). > > On the config node, vnc_openstack->neutron_plugin_db.py -> def > port_create(self, context, port_q): > > I'm able to get subnet_id into port_q variable. > > When passing same subnet_id into _port_create_instance_ip() > > code snip: > if 'fixed_ips' in port_q: > self.*_port_create_instance_ip*(net_obj, port_obj, > port_q) > elif net_obj.get_network_ipam_refs(): > if (ip_obj_v4_create is True): > self.*_port_create_instance_ip*(net_obj, port_obj, > {'fixed_ips':[{'ip_address': None}]}, > ip_family="v4", subnet_id) > if (ip_obj_v6_create is True): > self.*_port_create_instance_ip*(net_obj, port_obj, > {'fixed_ips':[{'ip_address': None}]}, > ip_family="v6", subnet_id) > > Changed the method to add subnet_id: > def _port_create_instance_ip(self, net_obj, port_obj, port_q, > ip_family="v4", subnet_uuid=None): > > Getting same errors for all neutron call after this change > > $ neutron net-list > #gives following error on contrail-api server log > 127.0.0.1 - - [2015-06-19 16:09:41] "POST /neutron/network HTTP/1.1" *404* > 152 0.000297 > > Neutron server (q-svc) logs > 2015-06-19 16:09:41.509 DEBUG requests.packages.urllib3.connectionpool > [-] "POST /neutron/network HTTP/1.1" 404 29 from (pid=5948) _make_request > /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.py:383 > 2015-06-19 16:09:41.510 ERROR neutron.api.v2.resource > [req-86092f4d-b3d4-43e2-9d22-7cec2fa74569 admin > 984e323fd2754970ada9294357b2f29a] index failed > 2015-06-19 16:09:41.510 TRACE neutron.api.v2.resource Traceback (most > recent call last): > 2015-06-19 16:09:41.510 TRACE neutron.api.v2.resource File > "/opt/stack/neutron/neutron/api/v2/resource.py", line 87, in resource > 2015-06-19 16:09:41.510 TRACE neutron.api.v2.resource result = > method(request=request, **args) > 2015-06-19 16:09:41.510 TRACE neutron.api.v2.resource File > "/opt/stack/neutron/neutron/api/v2/base.py", line 304, in index > 2015-06-19 16:09:41.510 TRACE neutron.api.v2.resource return > self._items(request, True, parent_id) > 2015-06-19 16:09:41.510 TRACE neutron.api.v2.resource File > "/opt/stack/neutron/neutron/api/v2/base.py", line 242, in _items > 2015-06-19 16:09:41.510 TRACE neutron.api.v2.resource obj_list = > obj_getter(request.context, **kwargs) > 2015-06-19 16:09:41.510 TRACE neutron.api.v2.resource File > "/usr/local/lib/python2.7/dist-packages/neutron_plugin_contrail/plugins/opencontrail/contrail_plugin.py", > line 359, in get_networks > 2015-06-19 16:09:41.510 TRACE neutron.api.v2.resource fields) > 2015-06-19 16:09:41.510 TRACE neutron.api.v2.resource File > "/usr/local/lib/python2.7/dist-packages/neutron_plugin_contrail/plugins/opencontrail/contrail_plugin.py", > line 311, in _list_resource > 2015-06-19 16:09:41.510 TRACE neutron.api.v2.resource fields=fields, > obj_name=res_type) > 2015-06-19 16:09:41.510 TRACE neutron.api.v2.resource File > "/usr/local/lib/python2.7/dist-packages/neutron_plugin_contrail/plugins/opencontrail/contrail_plugin.py", > line 220, in _transform_response > 2015-06-19 16:09:41.510 TRACE neutron.api.v2.resource > self._raise_contrail_error(info, obj_name) > 2015-06-19 16:09:41.510 TRACE neutron.api.v2.resource File > "/usr/local/lib/python2.7/dist-packages/neutron_plugin_contrail/plugins/opencontrail/contrail_plugin.py", > line 235, in _raise_contrail_error > 2015-06-19 16:09:41.510 TRACE neutron.api.v2.resource raise > exc.NeutronException(**info) > 2015-06-19 16:09:41.510 TRACE neutron.api.v2.resource NeutronException: An > unknown exception occurred. > 2015-06-19 16:09:41.510 TRACE neutron.api.v2.resource > 2015-06-19 16:09:41.563 INFO neutron.wsgi > [req-86092f4d-b3d4-43e2-9d22-7cec2fa74569 admin > 984e323fd2754970ada9294357b2f29a] 192.168.1.21 - - [19/Jun/2015 16:09:41] > "GET /v2.0/networks.json HTTP/1.1" 500 338 0.493817 > > Execution doesn't reach method, > def plugin_http_post_network(self): > from vnc_openstack/neutron_plugin_interface.py > > I didn't understand from where this 404 triggered? > > Regards, > Yatin > > > _______________________________________________ > Dev mailing > [email protected]http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org > > > > _______________________________________________ > Dev mailing list > [email protected] > http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org > >
_______________________________________________ Dev mailing list [email protected] http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org
