def init_glance_consumer(self, mq):
if not self.enable_component_notification(Openstack.Glance):<EOL><INDENT>log.debug("<STR_LIT>")<EOL>return<EOL><DEDENT>for i in range(self.config.glance_mq_consumer_count):<EOL><INDENT>mq.create_consumer(self.config.glance_mq_exchange,<EOL>self.config.glance_mq_queue,<EOL>ProcessFactory.process(Openstack.Glance))<EOL><DEDENT>log.debug("<STR_LIT>")<EOL>
Init openstack glance mq

1. Check if enable listening glance notification
2. Create consumer

:param mq: class ternya.mq.MQ