[openstack-dev] Keystone region as endpoint selector
Wainer, Gabriel (Brazil R&D-ECL)
gabriel.wainer at hp.com
Wed Mar 20 11:50:46 UTC 2013
Hello, I'm tinkering with keystone regions and having two endpoints for a service, I would like to choose one of them by its region. For example when running nova boot I want to choose the endpoint from "regionX" set in keystone to be used.
I'm trying with devstack, and when running nova boot, the result is ambiguous endpoints as expected:
stack at wubuntu:/opt/stack/horizon/openstack_dashboard$ nova boot region2vm --image 2fc0af8a-3beb-438f-8816-0fa683f7db20 --flavor 1
Found more than one valid endpoint. Use a more restrictive filter
ERROR: AmbiguousEndpoints: [{u'adminURL': u'http://172.16.101.239:8774/v2/be431c86da3a4417b628fcde4fa15086', u'region': u'RegionOne', u'id': u'4bebd32c639845199028c794d30eee06', 'serviceName': u'nova', u'internalURL': u'http://172.16.101.239:8774/v2/be431c86da3a4417b628fcde4fa15086', u'publicURL': u'http://172.16.101.239:8774/v2/be431c86da3a4417b628fcde4fa15086'}, {u'adminURL': u'http://172.16.103.231:8774/v2/admin', u'region': u'RegionTwo', u'id': u'3234d759d4054067b78c456adc658c2f', 'serviceName': u'nova', u'internalURL': u'http://172.16.103.231:8774/v2/admin', u'publicURL': u'http://172.16.103.231:8774/v2/admin'}]
We can see the two endpoints for the service. But if I try to select the endpoint by region, the argument is not recognized:
stack at wubuntu:/opt/stack/horizon/openstack_dashboard$ nova boot region2vm --image 2fc0af8a-3beb-438f-8816-0fa683f7db20 --flavor 1 --os-region-name RegionTwo
usage: nova [--version] [--debug] [--os-cache] [--timings]
[--os-username <auth-user-name>] [--os-password <auth-password>]
[--os-tenant-name <auth-tenant-name>] [--os-auth-url <auth-url>]
[--os-region-name <region-name>] [--os-auth-system <auth-system>]
[--service-type <service-type>] [--service-name <service-name>]
[--volume-service-name <volume-service-name>]
[--endpoint-type <endpoint-type>]
[--os-compute-api-version <compute-api-ver>] [--insecure]
[--bypass-url <bypass-url>]
<subcommand> ...
error: unrecognized arguments: --os-region-name RegionTwo
Try 'nova help ' for more information.
So, can I use the --os-region-name as some sort of endpoint selector?
Any help is appreciated,
Thanks in advance,
Gabriel Wainer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130320/c6f105dd/attachment.html>
More information about the OpenStack-dev
mailing list