<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m trying with devstack, and when running nova boot, the result is ambiguous endpoints as expected:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">stack@wubuntu:/opt/stack/horizon/openstack_dashboard$ <b>nova boot region2vm --image 2fc0af8a-3beb-438f-8816-0fa683f7db20 --flavor 1 
<o:p></o:p></b></p>
<p class="MsoNormal">Found more than one valid endpoint. Use a more restrictive filter<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>ERROR: AmbiguousEndpoints</b>: [{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'}]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We can see the two endpoints for the service. But if I try to select the endpoint by region, the argument is not recognized:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">stack@wubuntu:/opt/stack/horizon/openstack_dashboard$ <b>nova boot region2vm --image 2fc0af8a-3beb-438f-8816-0fa683f7db20 --flavor 1 --os-region-name RegionTwo<o:p></o:p></b></p>
<p class="MsoNormal">usage: nova [--version] [--debug] [--os-cache] [--timings]<o:p></o:p></p>
<p class="MsoNormal">            [--os-username <auth-user-name>] [--os-password <auth-password>]<o:p></o:p></p>
<p class="MsoNormal">            [--os-tenant-name <auth-tenant-name>] [--os-auth-url <auth-url>]<o:p></o:p></p>
<p class="MsoNormal">            <b>[--os-region-name <region-name></b>] [--os-auth-system <auth-system>]<o:p></o:p></p>
<p class="MsoNormal">            [--service-type <service-type>] [--service-name <service-name>]<o:p></o:p></p>
<p class="MsoNormal">            [--volume-service-name <volume-service-name>]<o:p></o:p></p>
<p class="MsoNormal">            [--endpoint-type <endpoint-type>]<o:p></o:p></p>
<p class="MsoNormal">            [--os-compute-api-version <compute-api-ver>] [--insecure]<o:p></o:p></p>
<p class="MsoNormal">            [--bypass-url <bypass-url>]<o:p></o:p></p>
<p class="MsoNormal">            <subcommand> ...<o:p></o:p></p>
<p class="MsoNormal"><b>error: unrecognized arguments: --os-region-name RegionTwo<o:p></o:p></b></p>
<p class="MsoNormal">Try 'nova help ' for more information.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">So, can I use the --os-region-name as some sort of endpoint selector?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any help is appreciated,<o:p></o:p></p>
<p class="MsoNormal">Thanks in advance,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Gabriel Wainer.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>