<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body 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 class="line" id="LC54">   <span class="n">
        cloud</span> <span class="o">{</span><pre><div class="line" id="LC2">       <span class="c1">// Mandatory. The name of the cloud, as it will appear in the Cloudify UI.</span></div><div class="line" id="LC3">       <span class="n">name</span> <span class="o">=</span> <span class="s2">"Openstack"</span></div><div class="line" id="LC4">   <span class="n">configuration</span> <span class="o">{</span></div><div class="line" id="LC5">              <span class="c1">// Mandatory - openstack Diablo cloud driver.</span></div><div class="line" id="LC6">            <span class="n">className</span> <span class="s2">"org.cloudifysource.esc.driver.provisioning.openstack.OpenstackCloudDriver"</span></div><div class="line" id="LC7">             <span class="c1">// Optional. The template name for the management machines. Defaults to the first template in the templates section below.</span></div><div class="line" id="LC8">               <span class="n">managementMachineTemplate</span> <span class="s2">"SMALL_LINUX"</span></div><div class="line" id="LC9">           <spa
n class="c1">// Optional. Indicates whether internal cluster communications should use the machine private IP. Defaults to true.</span></div><div class="line" id="LC10">            <span class="n">connectToPrivateIp</span> <span class="kc">true</span></div><div class="line" id="LC11">
</div><div class="line" id="LC12">               <span class="n">remoteUsername</span> <span class="s2">"REPLACE_WITH_THE_SSH_USER_NAME"</span></div><div class="line" id="LC13">               <span class="n">remotePassword</span> <span class="s2">"REPLACE_WITH_THE_SS_USER_PASSWORD"</span></div><div class="line" id="LC14">   <span class="o">}</span></div><div class="line" id="LC15">
</div><div class="line" id="LC16">      <span class="n">provider</span> <span class="o">{</span></div><div class="line" id="LC17">          <span class="c1">// optional </span></div><div class="line" id="LC18">            <span class="n">provider</span> <span class="s2">"openstack"</span></div><div class="line" id="LC19">             <span class="n">localDirectory</span> <span class="s2">"tools/cli/plugins/esc/hp/upload"</span></div><div class="line" id="LC20">         <span class="n">remoteDirectory</span> <span class="s2">"/root/gs-files"</span></div><div class="line" id="LC21">         <span class="n">cloudifyUrl</span> <span class="s2"><a class="moz-txt-link-rfc2396E" href="http://s3.amazonaws.com/gigaspaces-cloudify/cloudify/hp/gigaspaces-hp.zip">"http://s3.amazonaws.com/gigaspaces-cloudify/cloudify/hp/gigaspaces-hp.zip"</a></span> </div><div class="line" id="LC22">           <span class="n">machineNamePrefix</span> <span class="s2">"agent"</span></div><div class="line" id="LC23">
</div><div class="line" id="LC24">              <span class="n">dedicatedManagementMachines</span> <span class="kc">true</span></div><div class="line" id="LC25">           <span class="nf">managementOnlyFiles</span> <span class="o">([])</span></div><div class="line" id="LC26">
</div><div class="line" id="LC27">              <span class="n">managementGroup</span> <span class="s2">"management"</span></div><div class="line" id="LC28">             <span class="n">numberOfManagementMachines</span> <span class="mi">1</span></div><div class="line" id="LC29">               <span class="n">zones</span> <span class="o">([</span><span class="s2">"agent"</span><span class="o">])</span></div><div class="line" id="LC30">              <span class="n">reservedMemoryCapacityPerMachineInMB</span> <span class="mi">1024</span></div><div class="line" id="LC31">
</div><div class="line" id="LC32">      <span class="o">}</span></div><div class="line" id="LC33">        <span class="n">user</span> <span class="o">{</span></div><div class="line" id="LC34">              <span class="n">user</span> <span class="s2">"ENTER_USER"</span></div><div class="line" id="LC35">                <span class="n">apiKey</span> <span class="s2">"ENTER_KEY"</span></div><div class="line" id="LC36">               <span class="n">keyFile</span> <span class="s2">"ENTER_KEY_FILE"</span></div><div class="line" id="LC37"> <span class="o">}</span></div><div class="line" id="LC38">        <span class="n">templates</span> <span class="o">([</span></div><div class="line" id="LC39">                                <span class="n">SMALL_LINUX</span> <span class="o">:</span> <span class="n">template</span><span class="o">{</span></div><div class="line" id="LC40">                                   <span class="n">imageId</span> <span class="s2">"221"</span></div><div class="line" id="LC41">                                    <span class="n">machineMemoryMB</span> <span class="mi">1600</span></div><div class="line" id="LC42">       
                                <span class="n">hardwareId</span> <span class="s2">"102"</span></div><div class="line" id="LC43">                                 <span class="c1">//locationId "us-east-1"</span></div><div class="line" id="LC44">                                      <span class="n">options</span> <span class="o">([</span></div><div class="line" id="LC45">                                          <span class="s2">"openstack.securityGroup"</span> <span class="o">:</span> <span class="s2">"test"</span><span class="o">,</span></div><div class="line" id="LC46">                                         <span class="s2">"openstack.keyPair"</span> <span class="o">:</span> <span class="s2">"hp-cloud-demo"</span><span class="o">,</span></div><div class="line" id="LC47">                                              <span class="c1">// indicates if a floating IP should be assigned to this machine. Defaults to true.</span></div><div class="line" id="LC48">                                             <span class="s2">"openstack.allocate-floating-ip"</span> <span class="o">:</span> <span class="s2">"true"</span></div><div class="line" id="LC49">                                        <span class="o">])</span></div><div class="line" id="LC50">
</div><div class="line" id="LC51">                              <span class="o">}</span></div><div class="line" id="LC52">                        <span class="o">])</span></div><div class="line" id="LC53">
</div><div class="line" id="LC54">      <span class="n">custom</span> <span class="o">([</span></div><div class="line" id="LC55">           <b><span class="s2">"openstack.endpoint"</span> <span class="o">:</span> <span class="s2"><a class="moz-txt-link-rfc2396E" href="https://az-2.region-a.geo-1.compute.hpcloudsvc.com/">"https://az-2.region-a.geo-1.compute.hpcloudsvc.com/"</a></span><span class="o">,</span></b></div><div class="line" id="LC56"><b>           <span class="s2">"openstack.identity.endpoint"</span><span class="o">:</span> <span class="s2"><a class="moz-txt-link-rfc2396E" href="https://region-a.geo-1.identity.hpcloudsvc.com:35357/">"https://region-a.geo-1.identity.hpcloudsvc.com:35357/"</a></span><span class="o">,</span></b></div><div class="line" id="LC57">         <span class="s2">"openstack.tenant"</span> <span class="o">:</span> <span class="s2">"ENTER_TENANT"</span><span class="o">,</span></div><div class="line" id="LC58">                <span class="s2">"openstack.wireLog"</span><span class="o">:</span> <span c
lass="s2">"false"</span></div><div class="line" id="LC59">
</div><div class="line" id="LC60">      <span class="o">])</span></div><div class="line" id="LC61"><span class="o">}</span></div><div class="line" id="LC62">
</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<br>
    <br>
    Pradeep <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 10/26/2012 01:36 AM, heckj wrote:<br>
    </div>
    <blockquote cite="mid:28FB2DBA-92E3-4AE7-BEA0-0DDC20ABE9ED@mac.com"
      type="cite">
      <pre wrap="">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 class="moz-txt-link-rfc2396E" href="http://localhost:5000/v2.0">"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 class="moz-txt-link-rfc2396E" href="http://localhost:35357/v2.0">"http://localhost:35357/v2.0"</a>

This help?

-joe

On Oct 24, 2012, at 10:53 PM, Tummala Pradeep <a class="moz-txt-link-rfc2396E" href="mailto:pradeep.tummala@ericsson.com"><pradeep.tummala@ericsson.com></a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">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 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>
      <pre wrap="">
</pre>
    </blockquote>
    <br>
    <br>
  </body>
</html>