It's hard to say without docs, as the openstack.identity.endpoint shown there is just throwing errors for me, and the openstack.endpoint is raising 401.<div><br></div><div>However, the port used for the identity endpoint is typically used for the administrative/management identity endpoint (keystone), and the openstack.endpoint refers to specifically to "compute" in the hostname (nova).</div>
<div><br></div>-Dolph<br>
<br><br><div class="gmail_quote">On Sun, Oct 28, 2012 at 11:21 PM, Tummala Pradeep <span dir="ltr"><<a href="mailto:pradeep.tummala@ericsson.com" target="_blank">pradeep.tummala@ericsson.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi Joe,<br>
<br>
I am actually trying to integrate cloudify with Openstack. To
accomplish this, I have to configure openstack.groovy file in
cloudify.<br>
<br>
There are two fields here - openstack.endpoint &
openstack.identity.endpoint. I have an example for cloudify
integration with HP Openstack cloud. Hope, it will help you to
understand what exactly these two fields (Last 4 lines) require.<br>
<br>
<pre><div> <span>
cloud</span> <span>{</span><pre><div> <span>// Mandatory. The name of the cloud, as it will appear in the Cloudify UI.</span></div><div> <span>name</span> <span>=</span> <span>"Openstack"</span></div><div> <span>configuration</span> <span>{</span></div>
<div> <span>// Mandatory - openstack Diablo cloud driver.</span></div><div> <span>className</span> <span>"org.cloudifysource.esc.driver.provisioning.openstack.OpenstackCloudDriver"</span></div><div> <span>// Optional. The template name for the management machines. Defaults to the first template in the templates section below.</span></div>
<div> <span>managementMachineTemplate</span> <span>"SMALL_LINUX"</span></div><div> <u></u>// Optional. Indicates whether internal cluster communications should use the machine private IP. Defaults to true.</div>
<div> <span>connectToPrivateIp</span> <span>true</span></div><div>
</div><div> <span>remoteUsername</span> <span>"REPLACE_WITH_THE_SSH_USER_NAME"</span></div><div> <span>remotePassword</span> <span>"REPLACE_WITH_THE_SS_USER_PASSWORD"</span></div>
<div> <span>}</span></div><div>
</div><div> <span>provider</span> <span>{</span></div><div> <span>// optional </span></div><div> <span>provider</span> <span>"openstack"</span></div><div> <span>localDirectory</span> <span>"tools/cli/plugins/esc/hp/upload"</span></div>
<div> <span>remoteDirectory</span> <span>"/root/gs-files"</span></div><div> <span>cloudifyUrl</span> <span><a href="http://s3.amazonaws.com/gigaspaces-cloudify/cloudify/hp/gigaspaces-hp.zip" target="_blank">"http://s3.amazonaws.com/gigaspaces-cloudify/cloudify/hp/gigaspaces-hp.zip"</a></span> </div>
<div> <span>machineNamePrefix</span> <span>"agent"</span></div><div>
</div><div> <span>dedicatedManagementMachines</span> <span>true</span></div><div> <span>managementOnlyFiles</span> <span>([])</span></div><div>
</div><div> <span>managementGroup</span> <span>"management"</span></div><div> <span>numberOfManagementMachines</span> <span>1</span></div><div> <span>zones</span> <span>([</span><span>"agent"</span><span>])</span></div>
<div> <span>reservedMemoryCapacityPerMachineInMB</span> <span>1024</span></div><div>
</div><div> <span>}</span></div><div> <span>user</span> <span>{</span></div><div> <span>user</span> <span>"ENTER_USER"</span></div><div> <span>apiKey</span> <span>"ENTER_KEY"</span></div><div> <span>keyFile</span> <span>"ENTER_KEY_FILE"</span></div>
<div> <span>}</span></div><div> <span>templates</span> <span>([</span></div><div> <span>SMALL_LINUX</span> <span>:</span> <span>template</span><span>{</span></div><div> <span>imageId</span> <span>"221"</span></div>
<div> <span>machineMemoryMB</span> <span>1600</span></div><div>
<span>hardwareId</span> <span>"102"</span></div><div> <span>//locationId "us-east-1"</span></div><div> <span>options</span> <span>([</span></div><div> <span>"openstack.securityGroup"</span> <span>:</span> <span>"test"</span><span>,</span></div>
<div> <span>"openstack.keyPair"</span> <span>:</span> <span>"hp-cloud-demo"</span><span>,</span></div><div> <span>// indicates if a floating IP should be assigned to this machine. Defaults to true.</span></div>
<div> <span>"openstack.allocate-floating-ip"</span> <span>:</span> <span>"true"</span></div><div> <span>])</span></div><div>
</div><div> <span>}</span></div><div> <span>])</span></div><div>
</div><div> <span>custom</span> <span>([</span></div><div> <b><span>"openstack.endpoint"</span> <span>:</span> <span><a href="https://az-2.region-a.geo-1.compute.hpcloudsvc.com/" target="_blank">"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/"</a></span><span>,</span></b></div>
<div><b> <span>"openstack.identity.endpoint"</span><span>:</span> <span><a href="https://region-a.geo-1.identity.hpcloudsvc.com:35357/" target="_blank">"https://region-a.geo-1.identity.hpcloudsvc.com:35357/"</a></span><span>,</span></b></div>
<div> <span>"openstack.tenant"</span> <span>:</span> <span>"ENTER_TENANT"</span><span>,</span></div><div> <span>"openstack.wireLog"</span><span>:</span> <span>"false"</span></div>
<div>
</div><div> <span>])</span></div><div><span>}</span></div><div>
</div></pre></div></pre>
Now, I am trying the integration with OpenStack deployed on my
server. Do let me know if you get any idea from the above example.<br>
<br>
Thanks<span class="HOEnZb"><font color="#888888"><br>
<br>
Pradeep <br></font></span><div class="im">
<br>
<br>
<div>On 10/26/2012 01:36 AM, heckj wrote:<br>
</div>
<blockquote type="cite">
<pre>Hi Pradeep,
I'm not sure what the context is for these values, so it's a little hard to assert a clear answer.
For most openstack projects, (all but keystone), there's generally a single API endpoints, and the keystone service catalog is configured on deployment to point to those. The service catalog supports exposing internal and public endpoints.
Keystone (quirky thing that it is) has two endpoints - one for general public authorization with a very limited API - in the docs and on the CLI, this is referred to as the "auth_url". In a devstack setup, this auth_url is <a href="http://localhost:5000/v2.0" target="_blank">"http://localhost:5000/v2.0"</a> - your deployment I'd expect to be different.
There's also an administrative endpoint for Keystone where a Keystone admin (or associated scripts) can configure services, endpoints, users, etc depending on the keystone deployment configuration. The CLI refers to this as the "management_url", and in a devstack setup, it would be <a href="http://localhost:35357/v2.0" target="_blank">"http://localhost:35357/v2.0"</a>
This help?
-joe
On Oct 24, 2012, at 10:53 PM, Tummala Pradeep <a href="mailto:pradeep.tummala@ericsson.com" target="_blank"><pradeep.tummala@ericsson.com></a> wrote:
</pre>
<blockquote type="cite">
<pre>Hi,
I want to configure "openstack.endpoint" and "openstack.identity.endpoint". However, I am a bit confused between the two. How can I configure them through terminal ?
Thanks
Pradeep
_______________________________________________
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a>
Post to : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a>
More help : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a>
</pre>
</blockquote>
<pre></pre>
</blockquote>
<br>
<br>
</div></div>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br>