User Tools

Site Tools


cloud:cli

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
cloud:cli [2020/05/14 14:54] – [Internet Addresses] chudlercloud:cli [2021/04/15 16:45] chudler
Line 8: Line 8:
 ===== CONFIGURATION ===== ===== CONFIGURATION =====
  
-Use clouds.yaml file to direct your client. Below is a canonical examplebut you __will__ have to modify the variables according to your account. +Use the ''~/.config/openstack/clouds.yaml'' file to direct your client.  
-''$HOME/.config/clouds.yaml''+ 
 +=== Generate New Credentials === 
 + 
 +Instead of taking risks and storing your University credentials in the fileuse the [[ https://overcloud.cs.uchicago.edu | Web Interface ]] to create an Application CredentialClick the menu on the left side, Identity→Application Credentials. On the right side of the top of the page, click "Create Application Credential". Complete the form and check the box for ''unrestricted access''Save the ''clouds.yaml'' file in your configuration directory. 
 + 
 +See the [[ cloud:recipe:coding | Python Examples Document ]] for detailed configuration recommendations. 
 + 
 +==Cloud Name== 
 +For convenience, export the cloud name to your environment. Otherwise, all commands must include the flag ''--os-cloud=openstack'':
 <code> <code>
-clouds: +export OS_CLOUD=openstack 
-  openstack+
-    auth: +
-      auth_url: https://overcloud.cs.uchicago.edu:5000 +
-      username: "CNetID" +
-      password: "sekret" +
-      project_name: "CNetID" +
-      user_domain_name: "CS_LDAP" +
-    region_name: "RegionOne" +
-    interface: "public" +
-    identity_api_version: 3+
 </code> </code>
-The [[ cloud:recipe:coding | Python Examples ]] use the same configuration, please read that document for detailed information about configuration and recommendations. 
- 
-You can also download a customized version of this data after you authenticate to the Web Interface (click API Access from the menu and then the button "Download Openstackrc File"). Make sure you read this file carefully in case you want to customize it. Your password is not included in the file by default. 
  
 ====== USAGE ====== ====== USAGE ======
Line 34: Line 29:
 </code> </code>
  
-take note and always use help for guidance <code>--help</code> +always use help for guidance <code>--help</code> 
  
 For example<code>openstack server create --help</code> For example<code>openstack server create --help</code>
Line 48: Line 43:
 ====Images==== ====Images====
  
-Images are prebuilt disks that are used to launch instances. They are usually a few GB in size. A copy of the disk image is written into the instance's boot volume just before it starts running.+Images are prebuilt operating systems that are used to launch instances. It is equivalent to a live CD. They are usually a few GB in size. A copy of the disk image is written into the instance's boot volume just before it starts running
 + 
 +There are images that Techstaff provides, some of which are restricted-use. We can build images for you or you can build and upload your own. Our images are generic, bare bones, cloud enabled, popular operating systems, that are a firm foundation for you to customize from. They are often in RAW format, not qcow2, for performance reasons.
  
-There are images that Techstaff provides, some of which are restricted-useWe can build images for you or you can build and upload your own. Our images are generic, bare bones, cloud enabled popular operating systems that are a firm foundation for you to customize from. They are often in RAW format, not qcow2, for performance reasons.+Beware of images that are used internally to provide cloud servicesYou should not usually launch these directly. You do have access to them for the use of a service, and are welcome to customize for advanced usage.
  
 <code>openstack image list</code> <code>openstack image list</code>
Line 57: Line 54:
  
 Openstack can hold a public key in its db, and insert it into instances when told. This is optional (your author does not use this capability) Openstack can hold a public key in its db, and insert it into instances when told. This is optional (your author does not use this capability)
-<code>openstack keypair create --public-key ~/.ssh/id_rsa.pub mykey</code>+<code>openstack keypair create --public-key ~/.ssh/id_ed25519.pub mykey</code>
  
 ==== Flavors ==== ==== Flavors ====
/var/lib/dokuwiki/data/pages/cloud/cli.txt · Last modified: 2021/04/15 16:53 by chudler

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki