oslo.messaging.simulator: TypeError: object of type 'int' has no len()

Bug #1622662 reported by Abhinav Srivastava
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
oslo.messaging
Expired
Undecided
Unassigned

Bug Description

I'm trying to use oslo.messaging.simulator tool to measure the performance of RabbitMQ/Oslo. I'm following the instructions as described in the OpenStack doc:

http://docs.openstack.org/developer/performance-docs/test_plans/mq/plan.html

However, when I run the following test I get "TypeError: object of type 'int' has no len()" error, both in the rpc-server and rpc-client side.

I'm using the following commands:

python simulator.py --url rabbit://<mycredentials>@myIP:port/ --debug true rpc-server

python simulator.py --url rabbit://<mycredentials>@myIP:port/ rpc-client -p 10 -m 100

The problem seems to be in the "call" test as my "cast" test seems to be working. I've pasted the detailed error message that I'm getting when I ran the "RPC call" test as described in the OpenStack doc.

Traceback (most recent call last):
  File "simulator.py", line 501, in _rpc_call
    res = client.call({}, 'info', message=msg)
  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py", line 169, in call
    retry=self.retry)
  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/transport.py", line 97, in _send
    timeout=timeout, retry=retry)
  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 464, in send
    retry=retry)
  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 450, in _send
    msg=msg, timeout=timeout, retry=retry)
  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 1278, in topic_send
    retry=retry)
  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 1162, in _ensure_publishing
    self.ensure(method, retry=retry, error_callback=_error_callback)
  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 791, in ensure
    ret, channel = autoretry_method()
  File "/usr/local/lib/python2.7/dist-packages/kombu/connection.py", line 436, in _ensured
    return fun(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/kombu/connection.py", line 508, in __call__
    return fun(*args, channel=channels[0], **kwargs), channels[0]
  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 767, in execute_method
    method()
  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/impl_rabbit.py", line 1193, in _publish
    compression=self.kombu_compression)
  File "/usr/local/lib/python2.7/dist-packages/kombu/messaging.py", line 168, in publish
    routing_key, mandatory, immediate, exchange, declare)
  File "/usr/local/lib/python2.7/dist-packages/kombu/messaging.py", line 184, in _publish
    mandatory=mandatory, immediate=immediate,
  File "/usr/local/lib/python2.7/dist-packages/amqp/channel.py", line 2129, in basic_publish_confirm
    ret = self._basic_publish(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/amqp/channel.py", line 2122, in _basic_publish
    self._send_method((60, 40), args, msg)
  File "/usr/local/lib/python2.7/dist-packages/amqp/abstract_channel.py", line 56, in _send_method
    self.channel_id, method_sig, args, content,
  File "/usr/local/lib/python2.7/dist-packages/amqp/method_framing.py", line 219, in write_method
    properties = content._serialize_properties()
  File "/usr/local/lib/python2.7/dist-packages/amqp/serialization.py", line 500, in _serialize_properties
    getattr(raw_bytes, 'write_' + proptype)(val)
  File "/usr/local/lib/python2.7/dist-packages/amqp/serialization.py", line 324, in write_shortstr
    if len(s) > 255:
TypeError: object of type 'int' has no len()

Revision history for this message
Ken Giusti (kgiusti) wrote :

Cannot reproduce on master nor stable branches ocata, pike, and queens.
Please re-open if this problem still occurs for you.

Changed in oslo.messaging:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for oslo.messaging because there has been no activity for 60 days.]

Changed in oslo.messaging:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.