← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1221541] Re: create console failed by rpc call

 

** Changed in: nova
       Status: Fix Committed => Fix Released

-- 
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/1221541

Title:
  create console failed by rpc call

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Create console by:

  curl -i
  http://cloudcontroller:8774/v2/5fbc0de7642a47729bfdfa7cb17166e2/servers
  /adab90bb-a0fd-436b-8aac-e48f34cd9627/consoles -X POST -H "X-Auth-
  Project-Id: admin" -H "User-Agent: python-novaclient" -H "Content-
  Type: application/json" -H "Accept: application/json" -H "X-Auth-
  Token:
  MIILpgYJKoZIhvcNAQcCoIILlzCCC5MCAQExCTAHBgUrDgMCGjCCCn8GCSqGSIb3DQEHAaCCCnAEggpseyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wOS0wNlQwNToyMToyNy43OTA4MzEiLCAiZXhwaXJlcyI6ICIyMDEzLTA5LTA3VDA1OjIxOjI3WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogbnVsbCwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiNWZiYzBkZTc2NDJhNDc3MjliZmRmYTdjYjE3MTY2ZTIiLCAibmFtZSI6ICJhZG1pbiJ9fSwgInNlcnZpY2VDYXRhbG9nIjogW3siZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovL2Nsb3VkY29udHJvbGxlcjo4Nzc0L3YyLzVmYmMwZGU3NjQyYTQ3NzI5YmZkZmE3Y2IxNzE2NmUyIiwgInJlZ2lvbiI6ICJSZWdpb25PbmUiLCAiaW50ZXJuYWxVUkwiOiAiaHR0cDovL2Nsb3VkY29udHJvbGxlcjo4Nzc0L3YyLzVmYmMwZGU3NjQyYTQ3NzI5YmZkZmE3Y2IxNzE2NmUyI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jknC6FetRixwmLuaBvW1DsCdqw8kJg2C4REQLUaB7oPxaLX-
  N4UWIK7rxTj3Ce0Sx4-jdKLBXlXQmmvrTt+J2IZ+Wpx-vg=="


  
  Then get exception from nova-api as below:

  
  2013-09-06 14:23:36.288 ERROR nova.api.openstack.wsgi [req-cb16c320-77a7-4df5-a935-4d4b817560a7 admin admin] Exception handling resource: 'tuple' does not have
   the buffer interface
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi Traceback (most recent call last):
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi   File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 971, in _process_stack
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi     action_result = self.dispatch(meth, request, action_args)
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi   File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 1052, in dispatch
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi     return method(req=request, **action_args)
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi   File "/opt/stack/nova/nova/api/openstack/compute/consoles.py", line 102, in create
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi     server_id)
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi   File "/opt/stack/nova/nova/console/api.py", line 60, in create_console
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi     rpcapi.add_console(context, instance['id'])
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi   File "/opt/stack/nova/nova/console/rpcapi.py", line 77, in add_console
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi     self.client.cast(ctxt, 'add_console', instance_id=instance_id)
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi   File "/opt/stack/nova/nova/rpcclient.py", line 82, in cast
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi     self._invoke(caster, ctxt, method, **kwargs)
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi   File "/opt/stack/nova/nova/rpcclient.py", line 63, in _invoke
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi     return cast_or_call(ctxt, msg, **self.kwargs)
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi   File "/opt/stack/nova/nova/openstack/common/rpc/proxy.py", line 171, in cast
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi     rpc.cast(context, self._get_topic(topic), msg)
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi   File "/opt/stack/nova/nova/openstack/common/rpc/__init__.py", line 157, in cast
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi     return _get_impl().cast(CONF, context, topic, msg)
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi   File "/opt/stack/nova/nova/openstack/common/rpc/impl_kombu.py", line 823, in cast
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi     rpc_amqp.get_connection_pool(conf, Connection))
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi   File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 586, in cast
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi     conn.topic_send(topic, rpc_common.serialize_msg(msg))
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi   File "/opt/stack/nova/nova/openstack/common/rpc/impl_kombu.py", line 720, in topic_send
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi     self.publisher_send(TopicPublisher, topic, msg, timeout)
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi   File "/opt/stack/nova/nova/openstack/common/rpc/impl_kombu.py", line 691, in publisher_send
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi     self.ensure(_error_callback, _publish)
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi   File "/opt/stack/nova/nova/openstack/common/rpc/impl_kombu.py", line 577, in ensure
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi     return method(*args, **kwargs)
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi   File "/opt/stack/nova/nova/openstack/common/rpc/impl_kombu.py", line 689, in _publish
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi     publisher.send(msg, timeout)
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi   File "/opt/stack/nova/nova/openstack/common/rpc/impl_kombu.py", line 334, in send
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi     self.producer.publish(msg)
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi   File "/usr/local/lib/python2.7/dist-packages/kombu/messaging.py", line 164, in publish
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi     routing_key, mandatory, immediate, exchange, declare)
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi   File "/usr/local/lib/python2.7/dist-packages/kombu/messaging.py", line 180, in _publish
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi     mandatory=mandatory, immediate=immediate,
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi   File "/usr/local/lib/python2.7/dist-packages/amqp/channel.py", line 2095, in basic_publish
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi     args.write_shortstr(routing_key)
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi   File "/usr/local/lib/python2.7/dist-packages/amqp/serialization.py", line 285, in write_shortstr
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi     self.out.write(s)
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi TypeError: 'tuple' does not have the buffer interface
  2013-09-06 14:23:36.288 TRACE nova.api.openstack.wsgi

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1221541/+subscriptions