~0x44/nova/bug838466

« back to all changes in this revision

Viewing changes to nova/rpc.py

  • Committer: Tarmac
  • Author(s): Vishvananda Ishaya, Eric Day
  • Date: 2010-12-22 22:04:30 UTC
  • mfrom: (469.2.16 move-ip-allocation)
  • Revision ID: tarmac-20101222220430-qqrsojvamfp6s3ef
Moves the ip allocation requests to the from the api host into calls to the network host made from the compute host.

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
        logging.error(_("Returning exception %s to caller"), message)
246
246
        logging.error(tb)
247
247
        failure = (failure[0].__name__, str(failure[1]), tb)
248
 
    conn = Connection.instance()
 
248
    conn = Connection.instance(True)
249
249
    publisher = DirectPublisher(connection=conn, msg_id=msg_id)
250
250
    try:
251
251
        publisher.send({'result': reply, 'failure': failure})