TypeError: basic_publish() got an unexpected keyword argument 'body'

Bug #1320000 reported by Chris Johnston
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu CI Engine
Fix Released
Critical
Vincent Ladeuil

Bug Description

After creating a ticket I saw:

20:35:59 INFO lander: Steps to run ticket: ppa_assigner, bsbuilder, image_builder, test_runner, publisher, ppa_assigner_release
20:35:59 DEBUG lander_service_wrapper: Executing service wrapper: ppa_assigner
20:35:59 INFO lander_service_wrapper: Calling via POST [http://10.0.0.217:8080/api/v1/ppa/]: {'ticket_id': 4}
20:36:00 INFO lander_service_wrapper: Calling via GET [http://10.0.0.217:8080/api/v1/ppa/1/]
20:36:01 DEBUG lander: Step completed with rc=0
20:36:02 DEBUG lander_service_wrapper: Executing service wrapper: bsbuilder
20:36:02 DEBUG amqplib: Start from server, version: 8.0, properties: {u'information': u'Licensed under the MPL. See http://www.rabbitmq.com/', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2011 VMware, Inc.', u'capabilities': {}, u'platform': u'Erlang/OTP', u'version': u'2.7.1'}, mechanisms: [u'PLAIN', u'AMQPLAIN'], locales: [u'en_US']
20:36:02 DEBUG amqplib: Open OK! known_hosts []
20:36:02 DEBUG amqplib: using channel_id: 1
20:36:02 DEBUG amqplib: Channel open
20:36:02 DEBUG amqplib: Closed channel #1
20:36:02 ERROR root: Unexpected error: basic_publish() got an unexpected keyword argument 'body'
Traceback (most recent call last):
  File "/srv/lander/lander/lander/../bin/lander_service_wrapper.py", line 370, in main
    results = handler(amqp_config, workflow)
  File "/srv/lander/lander/lander/../bin/lander_service_wrapper.py", line 172, in _handle_bsbuilder
    amqp_utils.send(amqp_utils.BSBUILDER_QUEUE, json.dumps(params), True)
  File "/srv/lander/ci-utils/ci_utils/amqp_utils.py", line 92, in send
    channel.basic_publish(exchange='', routing_key=queue_name, body=body)
TypeError: basic_publish() got an unexpected keyword argument 'body'
20:36:02 DEBUG lander: Step completed with rc=1
20:36:02 INFO lander: Freeing up PPA
20:36:03 DEBUG lander_service_wrapper: Executing service wrapper: ppa_assigner_release
20:36:03 INFO lander_service_wrapper: Calling via PATCH [http://10.0.0.217:8080/api/v1/ppa/1/]: {'state': 'dirty'}
20:36:03 DEBUG lander: Step completed with rc=0

Related branches

Revision history for this message
Chris Johnston (cjohnston) wrote :

It looks like the code change that effects this may have been:
http://bazaar.launchpad.net/~canonical-ci-engineering/uci-engine/trunk/revision/485

Changed in uci-engine:
milestone: none → uce-0
Changed in uci-engine:
importance: Undecided → Critical
Changed in uci-engine:
assignee: nobody → Vincent Ladeuil (vila)
Vincent Ladeuil (vila)
Changed in uci-engine:
status: New → In Progress
Vincent Ladeuil (vila)
Changed in uci-engine:
status: In Progress → Fix Committed
Vincent Ladeuil (vila)
Changed in uci-engine:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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