~midokura/nova/network-refactoring

« back to all changes in this revision

Viewing changes to nova/rpc.py

  • Committer: Ryu Ishimoto
  • Date: 2011-06-30 03:39:04 UTC
  • mfrom: (1118.1.112 nova)
  • Revision ID: ryu@midokura.jp-20110630033904-7l6m3wzdyx95tq01
Merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
275
275
        unique = uuid.uuid4().hex
276
276
        self.queue = '%s_fanout_%s' % (topic, unique)
277
277
        self.durable = False
 
278
        # Fanout creates unique queue names, so we should auto-remove
 
279
        # them when done, so they're not left around on restart.
 
280
        # Also, we're the only one that should be consuming.  exclusive
 
281
        # implies auto_delete, so we'll just set that..
 
282
        self.exclusive = True
278
283
        LOG.info(_('Created "%(exchange)s" fanout exchange '
279
284
                   'with "%(key)s" routing key'),
280
285
                 dict(exchange=self.exchange, key=self.routing_key))