<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
As far as my experience goes, you have to use %(tenant_id)s. I ran
into this problem the first time I did it as well. $ makes the shell
think it's a variable.<br>
<br>
David Kranz<br>
Quanta Research Cambridge<br>
<br>
<br>
<br>
On 4/13/2012 9:28 AM, Guilherme Birk wrote:
<blockquote cite="mid:COL103-W603B6DF1B4DC480F8F0866A63B0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<div dir="ltr">
I've tried to execute the following command:<br>
<br>
keystone --token ADMIN --endpoint
<a class="moz-txt-link-freetext" href="http://192.168.100.142:35357/v2.0">http://192.168.100.142:35357/v2.0</a> endpoint-create --region
RegionOne --service_id=1fd7b5f1add74aa4b6efc514fd153e72
--publicurl=<a class="moz-txt-link-rfc2396E" href="http://192.168.100.142:8774/v2/$(tenant_id)s">"http://192.168.100.142:8774/v2/$(tenant_id)s"</a>
--adminurl=<a class="moz-txt-link-rfc2396E" href="http://192.168.100.142:8774/v2/$(tenant_id)s">"http://192.168.100.142:8774/v2/$(tenant_id)s"</a>
--internalurl=<a class="moz-txt-link-rfc2396E" href="http://192.168.100.142:8774/v2/$(tenant_id)s">"http://192.168.100.142:8774/v2/$(tenant_id)s"</a><br>
<br>
But I'm getting a "tenant_id: command not found". When I list
the endpoints all my url's are like
<a class="moz-txt-link-rfc2396E" href="http://192.168.100.142:8774/v2/s">"http://192.168.100.142:8774/v2/s"</a> for the created endpoint.<br>
Am I doing something wrong ?<br>
<br>
Thanks.<br>
<br>
<div>
<hr id="stopSpelling">From: <a class="moz-txt-link-abbreviated" href="mailto:anne@openstack.org">anne@openstack.org</a><br>
Date: Thu, 12 Apr 2012 15:28:21 -0500<br>
Subject: Re: [Openstack] Endpoints problems<br>
To: <a class="moz-txt-link-abbreviated" href="mailto:guibirk@hotmail.com">guibirk@hotmail.com</a><br>
CC: <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
<br>
Hi Guilherme - <br>
Sorry you ran into a doc bug - <a moz-do-not-send="true"
href="https://bugs.launchpad.net/openstack-manuals/+bug/977905"
target="_blank">https://bugs.launchpad.net/openstack-manuals/+bug/977905</a>.
<br>
<br>
Basically, the bug states that the nova endpoint definition
should be:<br>
<br>
keystone --token 012345SECRET99TOKEN012345 --endpoint <a
moz-do-not-send="true" rel="nofollow"
href="http://192.168.206.130:35357/v2.0" target="_blank">http://192.168.206.130:35357/v2.0</a>
endpoint-create \<br>
<p id="ecxyui_3_2_0_1_13342622689402450">
--region RegionOne \<br>
--service_id=abc0f03c02904c24abdcc3b7910e2eed
\<br>
--publicurl <a
moz-do-not-send="true" rel="nofollow"
href="http://192.168.206.130:8774/v2/%24%28tenant_id%29s"
target="_blank">http://192.168.206.130:8774/v2/$(tenant_id)s</a>
\<br>
--adminurl <a moz-do-not-send="true"
rel="nofollow"
href="http://192.168.206.130:8774/v2/%24%28tenant_id%29s"
target="_blank">http://192.168.206.130:8774/v2/$(tenant_id)s</a>
\<br>
--internalurl <a
moz-do-not-send="true" rel="nofollow"
href="http://192.168.206.130:8774/v2/%24%28tenant_id%29s"
target="_blank">http://192.168.206.130:8774/v2/$(tenant_id)s</a></p>
<br>
I haven't fixed this yet because I'm not sure if the
$(tenant_id)s is literal or which tenant_id specifically to
use (the Service tenant for the adminurl possibly)?<br>
<br>
If someone on the list could offer more input here and on the
doc bug it would be greatly appreciated!<br>
Anne<br>
<br>
<div class="ecxgmail_quote">On Thu, Apr 12, 2012 at 12:25 PM,
Guilherme Birk <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:guibirk@hotmail.com">guibirk@hotmail.com</a>></span>
wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px
#ccc solid;padding-left:1ex">
<div>
<div dir="ltr">
I'm having problems setting up the nova endpoint. I've
followed the manual <a moz-do-not-send="true"
href="http://docs.openstack.org/trunk/openstack-compute/install/content/setting-up-tenants-users-and-roles.html"
target="_blank">http://docs.openstack.org/trunk/openstack-compute/install/content/setting-up-tenants-users-and-roles.html</a>,
putting the tenant id on the url's, like the manual
says to do. But when I try execute "nova list" I got a
malformed url error. When I set the endpoint without
the tenant id on the url's I got a 404 error. Anyone
having the same problem?<br>
<br>
I can access the dashboard normally, but I'm unable to
retrieve instance list. </div>
</div>
<br>
_______________________________________________<br>
Mailing list: <a moz-do-not-send="true"
href="https://launchpad.net/%7Eopenstack"
target="_blank">https://launchpad.net/~openstack</a><br>
Post to : <a moz-do-not-send="true"
href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a moz-do-not-send="true"
href="https://launchpad.net/%7Eopenstack"
target="_blank">https://launchpad.net/~openstack</a><br>
More help : <a moz-do-not-send="true"
href="https://help.launchpad.net/ListHelp"
target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Mailing list: <a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a>
Post to : <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>
Unsubscribe : <a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a>
More help : <a class="moz-txt-link-freetext" href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a>
</pre>
</blockquote>
<br>
</body>
</html>