| Dean Troyer | 54b9732 | 2014-06-20 17:53:55 -0500 | [diff] [blame] | 1 | <!DOCTYPE html> | 
|  | 2 | <html lang="en"> | 
|  | 3 | <head> | 
|  | 4 | <meta charset="utf-8"> | 
|  | 5 | <title>DevStack - eucarc</title> | 
|  | 6 | <meta name="description" content=""> | 
|  | 7 | <meta name="author" content=""> | 
|  | 8 |  | 
|  | 9 | <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> | 
|  | 10 | <!--[if lt IE 9]> | 
|  | 11 | <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> | 
|  | 12 | <![endif]--> | 
|  | 13 |  | 
|  | 14 | <!-- Le styles --> | 
|  | 15 | <link href="assets/css/bootstrap.css" rel="stylesheet"> | 
|  | 16 | <link href="assets/css/local.css" rel="stylesheet"> | 
|  | 17 | <style type="text/css"> | 
|  | 18 | body { padding-top: 60px; } | 
|  | 19 | dd { padding: 10px; } | 
|  | 20 | </style> | 
|  | 21 |  | 
|  | 22 | <!-- Le javascripts --> | 
|  | 23 | <script src="../assets/js/jquery-1.7.1.min.js" type="text/javascript" charset="utf-8"></script> | 
|  | 24 | <script src="../assets/js/bootstrap.js" type="text/javascript" charset="utf-8"></script> | 
|  | 25 | </head> | 
|  | 26 |  | 
|  | 27 | <body> | 
|  | 28 |  | 
|  | 29 | <div class="navbar navbar-fixed-top"> | 
|  | 30 | <div class="navbar-inner"> | 
|  | 31 | <div class="container"> | 
|  | 32 | <a class="brand" href="/">DevStack</a> | 
|  | 33 | <ul class="nav pull-right"> | 
|  | 34 | <li><a href="overview.html">Overview</a></li> | 
|  | 35 | <li><a href="changes.html">Changes</a></li> | 
|  | 36 | <li><a href="faq.html">FAQ</a></li> | 
|  | 37 | <li><a href="http://github.com/openstack-dev/devstack">GitHub</a></li> | 
|  | 38 | <li><a href="https://review.openstack.org/#/q/status:open+project:openstack-dev/devstack,n,z">Gerrit</a></li> | 
|  | 39 | </ul> | 
|  | 40 | </div> | 
|  | 41 | </div> | 
|  | 42 | </div> | 
|  | 43 |  | 
|  | 44 | <div class="container"> | 
|  | 45 |  | 
|  | 46 | <section class="span12"> | 
|  | 47 | <div class="page-header"> | 
|  | 48 | <h2>eucarc <small>EC2 settings</small></h2> | 
|  | 49 | <p><code>eucarc</code> creates EC2 credentials for the current user as | 
|  | 50 | defined by <code>OS_TENANT_NAME:OS_USERNAME</code>. | 
|  | 51 | <code>eucarc</code> sources <code>openrc</code> at the beginning | 
|  | 52 | (which in turn sources <code>stackrc</code> and <code>localrc</code>) | 
|  | 53 | in order to set credentials to create EC2 credentials in Keystone. | 
|  | 54 | </div> | 
|  | 55 | <dl> | 
|  | 56 |  | 
|  | 57 | <dt>EC2_URL</dt> | 
|  | 58 | <dd>Set the EC2 url for euca2ools.  The endpoint is extracted from the | 
|  | 59 | service catalog for <code>OS_TENANT_NAME:OS_USERNAME</code>. | 
|  | 60 | <pre>EC2_URL=$(keystone catalog --service ec2 | awk '/ publicURL / { print $4 }')</pre></dd> | 
|  | 61 |  | 
|  | 62 | <dt>S3_URL</dt> | 
|  | 63 | <dd>Set the S3 endpoint for euca2ools.  The endpoint is extracted from the | 
|  | 64 | service catalog for <code>OS_TENANT_NAME:OS_USERNAME</code>. | 
|  | 65 | <pre>export S3_URL=$(keystone catalog --service s3 | awk '/ publicURL / { print $4 }')</pre></dd> | 
|  | 66 |  | 
|  | 67 | <dt>EC2_ACCESS_KEY, EC2_SECRET_KEY</dt> | 
|  | 68 | <dd>Create EC2 credentials for the current tenant:user in Keystone. | 
|  | 69 | <pre>CREDS=$(keystone ec2-credentials-create) | 
|  | 70 | export EC2_ACCESS_KEY=$(echo "$CREDS" | awk '/ access / { print $4 }') | 
|  | 71 | export EC2_SECRET_KEY=$(echo "$CREDS" | awk '/ secret / { print $4 }')</pre></dd> | 
|  | 72 |  | 
|  | 73 | <dt>Certificates for Bundling</dt> | 
|  | 74 | <dd>Euca2ools requires certificate files to enable bundle uploading. | 
|  | 75 | The exercise script <code>exercises/bundle.sh</code> demonstrated | 
|  | 76 | retrieving certificates using the Nova CLI. | 
|  | 77 | <pre>EC2_PRIVATE_KEY=pk.pem | 
|  | 78 | EC2_CERT=cert.pem | 
|  | 79 | NOVA_CERT=cacert.pem | 
|  | 80 | EUCALYPTUS_CERT=${NOVA_CERT}</pre></dd> | 
|  | 81 |  | 
|  | 82 | </dl> | 
|  | 83 | </section | 
|  | 84 |  | 
|  | 85 | <footer> | 
|  | 86 | <p>© Openstack Foundation 2011-2013 — An | 
|  | 87 | <a href="https://wiki.openstack.org/wiki/Programs">OpenStack program</a> | 
|  | 88 | created by <a href="http://www.rackspace.com/cloud/private_edition/">Rackspace Cloud Builders</a></p> | 
|  | 89 | </footer> | 
|  | 90 |  | 
|  | 91 | </div> <!-- /container --> | 
|  | 92 |  | 
|  | 93 | </body> | 
|  | 94 | </html> |