yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #24329
[Bug 1389933] [NEW] cell create api failed with string number
Public bug reported:
When request as below:
curl -i 'http://cloudcontroller:8774/v2/04e2ab93c10a4c2dbef1c648d04567cc/os-cells' -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Project-Id: admin" -H "X-Auth-Token: 016d26c590ab4a0b91de718d01d7a649" -d '{"cell": {"name": "abc", "rpc_port": "123"}}'
Get error as below:
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi Traceback (most recent call last):
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 950, in _process_stack
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi action_result = self.dispatch(meth, request, action_args)
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 1034, in dispatch
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi return method(req=request, **action_args)
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi File "/opt/stack/nova/nova/api/openstack/compute/contrib/cells.py", line 360, in create
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi self._normalize_cell(cell)
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi File "/opt/stack/nova/nova/api/openstack/compute/contrib/cells.py", line 340, in _normalize_cell
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi cell['transport_url'] = str(transport_url)
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/transport.py", line 318, in __str__
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi netloc += ':%d' % port
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi TypeError: %d format: a number is required, not unicode
** Affects: nova
Importance: Undecided
Assignee: Alex Xu (xuhj)
Status: New
** Changed in: nova
Assignee: (unassigned) => Alex Xu (xuhj)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1389933
Title:
cell create api failed with string number
Status in OpenStack Compute (Nova):
New
Bug description:
When request as below:
curl -i 'http://cloudcontroller:8774/v2/04e2ab93c10a4c2dbef1c648d04567cc/os-cells' -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Project-Id: admin" -H "X-Auth-Token: 016d26c590ab4a0b91de718d01d7a649" -d '{"cell": {"name": "abc", "rpc_port": "123"}}'
Get error as below:
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi Traceback (most recent call last):
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 950, in _process_stack
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi action_result = self.dispatch(meth, request, action_args)
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 1034, in dispatch
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi return method(req=request, **action_args)
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi File "/opt/stack/nova/nova/api/openstack/compute/contrib/cells.py", line 360, in create
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi self._normalize_cell(cell)
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi File "/opt/stack/nova/nova/api/openstack/compute/contrib/cells.py", line 340, in _normalize_cell
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi cell['transport_url'] = str(transport_url)
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/transport.py", line 318, in __str__
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi netloc += ':%d' % port
2014-11-06 10:41:37.099 TRACE nova.api.openstack.wsgi TypeError: %d format: a number is required, not unicode
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1389933/+subscriptions
Follow ups
References