Where does AMQP come into play?

Asked by HP

So I made calls to openstack through ec2, like *euca-describe-images* and *euca-run-instances*, traced how the call went through the system by looking at logs, and never see AMQP come into play. It looks like nova-api calls nova-compute, nova-network directly... I know that nova uses carrot framework to work with rabbitmq, and found two modules that implement rpc calls (rpc.py and fakerabbit.py).

Here is how I see the process of running an instance:
1. Call made through euca, goes through ec2 log request, authenticate adminrequest authorizer ec2executor,
2. ec2executor calls APIRequest.invoke(...), which calls ec2 cloud CloudController.run_instances, which then uses an instance of compute.API to execute method create(...)..., then _format_run_instances(...), then _format_instances(...).

Did not see any AMQP whatsoever.
Guide me please; what did I miss here?

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vish Ishaya (vishvananda) said :
#1

API uses rpc.cast and rpc.call to send a message to nova-compute. Nova compute runs a ComputeManager wrapped in a service.Service which listens for messages sent via rpc.cast and rpc.call

Vish

On Jul 25, 2011, at 11:56 AM, HP wrote:

> New question #165968 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/165968
>
> So I made calls to openstack through ec2, like *euca-describe-images* and *euca-run-instances*, traced how the call went through the system by looking at logs, and never see AMQP come into play. It looks like nova-api calls nova-compute, nova-network directly... I know that nova uses carrot framework to work with rabbitmq, and found two modules that implement rpc calls (rpc.py and fakerabbit.py).
>
> Here is how I see the process of running an instance:
> 1. Call made through euca, goes through ec2 log request, authenticate adminrequest authorizer ec2executor,
> 2. ec2executor calls APIRequest.invoke(...), which calls ec2 cloud CloudController.run_instances, which then uses an instance of compute.API to execute method create(...)..., then _format_run_instances(...), then _format_instances(...).
>
> Did not see any AMQP whatsoever.
> Guide me please; what did I miss here?
>
> Thanks
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Can you help with this problem?

Provide an answer of your own, or ask HP for more information if necessary.

To post a message you must log in.