def init_nova_consumer(self, mq):
if not self.enable_component_notification(Openstack.Nova):<EOL><INDENT>log.debug("<STR_LIT>")<EOL>return<EOL><DEDENT>for i in range(self.config.nova_mq_consumer_count):<EOL><INDENT>mq.create_consumer(self.config.nova_mq_exchange,<EOL>self.config.nova_mq_queue,<EOL>ProcessFactory.process(Openstack.Nova))<EOL><DEDENT>log.debug("<STR_LIT>")<EOL>
Init openstack nova mq

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

:param mq: class ternya.mq.MQ