create/update respource_provider APIs raises HTTP 500 Internal Server Error when name is greater than 200 characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Bhagyashri Shewale |
Bug Description
create/update resource_provider APIs raises HTTP 500 Internal Server Error if you pass name
greater than 200 character
Steps to reproduce:
$ curl -g -i -X POST http://
Output:
HTTP/1.1 500 Internal Server Error
Date: Thu, 17 Nov 2016 06:45:05 GMT
Server: Apache/2.4.7 (Ubuntu)
x-openstack-
Content-Length: 128
Connection: close
Content-Type: application/json; charset=UTF-8
{"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}
Error log:
2016-11-17 12:15:05.334 TRACE nova.api.openstack Traceback (most recent call last):
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/opt/stack/
__init__.py", line 88, in __call__
2016-11-17 12:15:05.334 TRACE nova.api.openstack return req.get_
n)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
ges/webob/
2016-11-17 12:15:05.334 TRACE nova.api.openstack application, catch_exc_
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
ges/webob/
2016-11-17 12:15:05.334 TRACE nova.api.openstack app_iter = application(
art_response)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
ges/webob/dec.py", line 130, in __call__
2016-11-17 12:15:05.334 TRACE nova.api.openstack resp = self.call_func(req, *args, **sel
f.kwargs)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
ges/webob/dec.py", line 195, in call_func
2016-11-17 12:15:05.334 TRACE nova.api.openstack return self.func(req, *args, **kwargs)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/opt/stack/
placement/
2016-11-17 12:15:05.334 TRACE nova.api.openstack response = req.get_
ation)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
ges/webob/
2016-11-17 12:15:05.334 TRACE nova.api.openstack application, catch_exc_
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
ges/webob/
2016-11-17 12:15:05.334 TRACE nova.api.openstack app_iter = application(
art_response)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/opt/stack/
placement/
2016-11-17 12:15:05.334 TRACE nova.api.openstack return dispatch(environ, start_response
, self._map)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/opt/stack/
placement/
2016-11-17 12:15:05.334 TRACE nova.api.openstack return handler(environ, start_response)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
ges/webob/dec.py", line 130, in __call__
2016-11-17 12:15:05.334 TRACE nova.api.openstack resp = self.call_func(req, *args, **sel
f.kwargs)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
ges/webob/dec.py", line 195, in call_func
2016-11-17 12:15:05.334 TRACE nova.api.openstack return self.func(req, *args, **kwargs)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/opt/stack/
2016-11-17 12:15:05.334 TRACE nova.api.openstack return f(req)
2016-11-17 12:15:05.334 TRACE nova.api.openstack return f(req)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/opt/stack/
2016-11-17 12:15:05.334 TRACE nova.api.openstack resource_
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack return fn(self, *args, **kwargs)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/opt/stack/
2016-11-17 12:15:05.334 TRACE nova.api.openstack db_rp = self._create_
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack return fn(*args, **kwargs)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/lib/
2016-11-17 12:15:05.334 TRACE nova.api.openstack self.gen.next()
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack yield resource
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/lib/
2016-11-17 12:15:05.334 TRACE nova.api.openstack self.gen.next()
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack self._end_
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack session.commit()
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack self.transactio
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack self._prepare_
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack self.session.
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack self._flush(
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack transaction.
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack compat.
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack flush_context.
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack rec.execute(self)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack uow
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack mapper, table, insert)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack execute(statement, params)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack return meth(self, multiparams, params)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack return connection.
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack compiled_sql, distilled_params
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack context)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack util.raise_
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack reraise(
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack context)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack cursor.
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack result = self._query(query)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack conn.query(q)
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack self._affected_rows = self._read_
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack result.read()
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack first_packet = self.connection
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack packet.
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack err.raise_
2016-11-17 12:15:05.334 TRACE nova.api.openstack File "/usr/local/
2016-11-17 12:15:05.334 TRACE nova.api.openstack raise errorclass(errno, errval)
2016-11-17 12:15:05.334 TRACE nova.api.openstack DBError: (pymysql.
Changed in nova: | |
assignee: | nobody → Bhagyashri Shewale (bhagyashri-shewale) |
summary: |
- create/update respource_provider APIs raises HTTP Internal Server Error - when name is greater than 200 characters + create/update respource_provider APIs raises HTTP 500 Internal Server + Error when name is greater than 200 characters |
Changed in nova: | |
importance: | Undecided → Medium |
tags: | added: api |
Fix proposed to branch: master /review. openstack. org/398998
Review: https:/