cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alena Prokharchyk <Alena.Prokharc...@citrix.com>
Subject Re: Enabling AMQP/RabbitMQ Events on master
Date Thu, 07 Nov 2013 17:42:06 GMT
David,

Here are the instructions that I've got from one of the CS QA engineers, hope it helps.

FS - http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html/Admin_Guide/events.html#event-framework

Test cases relating to this feature was covered as part of Regions Feature testing - https://cwiki.apache.org/confluence/download/attachments/30757955/Regions-Test-Execution-42.xlsx


Steps to set up RabbitMQ Server:

Have a RabbitMQ server set up.

Enable rabbitmq_management plugin

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.0.3\sbin>rabbitmq-plugins enable rabbitmq_management

Restart RabbitMQ service.

In management server :
Added the following in /usr/share/cloudstack-management/webapps/client/WEB-INF/classes/componentContext.xml

        <bean id="eventNotificationBus" class="org.apache.cloudstack.mom.rabbitmq.RabbitMQEventBus">
    <property name="name" value="eventNotificationBus"/>
    <property name="server" value="10.223.52.61"/>
    <property name="port" value="15672"/>
    <property name="username" value="guest"/>
    <property name="password" value="guest"/>
   <property name="exchange" value="cloudstack-events"/>
  </bean>

Restart management server.

-Alena.

From: David Grizzanti <david.grizzanti@sungard.com<mailto:david.grizzanti@sungard.com>>
Reply-To: "dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>" <dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>>
Date: Thursday, November 7, 2013 5:04 AM
To: "dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>" <dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>>
Subject: Enabling AMQP/RabbitMQ Events on master

Hi,

I was looking for some help in enabling the AMQP/RabbitMQ events in
CloudStack.  I'm familiar with enabling these events in 4.2, however, I'm
not all the familiar with Spring and given the new modularized changes I'm
not really sure where the XML snippet belongs for the eventNotificationBus.
Previously I had been placing this in applicationContext.xml (or the
simulatorComponentContext.xml in the case of the Simulator).

If you could point me in the right direction that would be great.

Thanks!

XML sample for reference:
<bean id="eventNotificationBus"
class="org.apache.cloudstack.mom.rabbitmq.RabbitMQEventBus">
    <property name="name" value="eventNotificationBus"/>
    <property name="server" value="localhost"/>
    <property name="port" value="5672"/>
    <property name="username" value="guest"/>
    <property name="password" value="guest"/>
   <property name="exchange" value="cloudstack-events"/>
</bean>

--
David Grizzanti
Software Engineer
Sungard Availability Services

e: david.grizzanti@sungard.com<mailto:david.grizzanti@sungard.com>
w: 215.446.1431
c: 570.575.0315


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message