Ask Your Question
0

When nova-api and keystone run on different nodes, EC2 API does not work

asked 2012-03-21 22:18:35 -0500

dkang gravatar image

Hi,

We've set up openstack (early essex version) with keystone successfully. We put nova-api and keystone on a head node (10.99.1.1), and glance on the other node (10.99.1.254). It worked well. Both nova API and EC2 API worked well.

Now we put nova-api on a head node (10.99.1.1) and put keystone and glance on the other node (10.99.1.254). Now, nova API works well. But EC2 API does not work. From the nova-api log, "error: [Errno 111] ECONNREFUSED" happens.

Should nova-api and keystone must be on the same node?

Here are our settings:

  1. api-paste.ini: [filter:authtoken] paste.filter_factory = keystone.middleware.auth_token:filter_factory service_protocol = http service_host = 10.99.1.1 service_port = 5000 auth_host = 10.99.1.254 auth_port = 35357 auth_protocol = http auth_uri = http://10.99.1.254:5000/ ....

  2. endpointTemplates $ keystone-manage endpointTemplates list All EndpointTemplates

    service region Public URL

nova RegionOne http://10.99.1.1:8774/v1.1/%25tenant_id%25 (http://10.99.1.1:8774/v1.1/%tenant_id%) keystone RegionOne http://10.99.1.254:5000/v2.0 glance RegionOne http://10.99.1.254:9292/v1/%25tenant_id%25 (http://10.99.1.254:9292/v1/%tenant_id%)

  1. nova.conf --ec2_url=http://10.99.1.1:8773/services/Cloud --rabbit_host=10.99.1.1 --sql_connection=mysql://root:nova@10.99.1.1/nova --glance_api_servers=10.0.11.1:9292 ...
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-03-21 22:39:03 -0500

vishvananda gravatar image

you have to set keystone_ec2_url in your flagfile --keystone_ec2_url=http://10.99.1.254:5000/v2.0/ec2tokens

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-03-21 22:18:35 -0500

Seen: 21 times

Last updated: Mar 21 '12