Ask Your Question

where are the conf. of service agent

asked 2015-02-12 03:53:20 -0500

Waid gravatar image

Very simple question, but I just cannot find it.

If we want to launch an instance from a remote IP, we must configure the IP for each service agent conf files after installing the service agent (novaclient, keystonecleint....etc). it is not enough to do it with only OS_* variables.

For example, from a remote host:

$nova flavor-list

ERROR (ConnectionError): ('Connection aborted.', gaierror(-2, 'Name or service not known'))

but I've already export OS_* variables, apparently, the agent cannot do it with only OS_*, say, OS_AUTH_URL.

We can see it by using neutron:

$neutron net-list

Unable to establish connection to http://controller:9696/v2.0/networks....

So it has used the conf file with some variable defined by http://controller:9696/v2.0/networks.... . But so far, I cannot find the conf file by grep.

Here is my solution to do it:

  1. add hosts name 'controller' with its IP

  2. export OS_* varaibles

But the question is still not answered. Anyone know it? Where are the conf files(for service client agent)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-02-15 04:54:49 -0500

Moe gravatar image

actually when you install nova-compute or neutron-l2-agent on a compute node some client APIs eventually installed including neutron, nova, keystone, ... clients these clients all work by REST protocol with the APIs and when you use export OS_* this helps the REST requests to authenticate in the keystone server.

about conf files they can be found in /etc/nova/ and /etc/neutron/ folders.

I wish this help

edit flag offensive delete link more



Moe, thanks for your reply. Here what I were saying is the case of we install service agent on remote computer, which is not belong to any node which has been installed the openstack service. So in this case there are no dir. of /etc/nova or /etc/neutron for the remote computer

Waid gravatar imageWaid ( 2015-02-16 04:06:24 -0500 )edit

misunderstanding i think ;) so from remote computer you want to connect to server but you faced these error?

I think some clients need to be installed for those rest calles at least curl

Moe gravatar imageMoe ( 2015-02-16 06:56:59 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2015-02-12 03:53:20 -0500

Seen: 297 times

Last updated: Feb 15 '15