cloud:cli
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
cloud:cli [2020/05/14 09:36] – created chudler | cloud:cli [2020/05/14 09:52] – chudler | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== CLI ACCESS ===== | + | ===== CLOUD CLI ACCESS ===== |
== INSTALL == | == INSTALL == | ||
- | It is installable in many ways. | + | Pip is preferred. The general CS infrastructure |
- | + | ||
- | Use your favorite package manager on your own computer. | + | |
Try: < | Try: < | ||
- | == PRELIMINARY SETUP == | + | ===== CONFIGURATION ===== |
- | Use environment variables | + | Use a clouds.yaml file to direct your client. Below is a canonical example, but you __will__ have to modify the variables according to your account. |
+ | '' | ||
< | < | ||
- | # Clear any old environment that may conflict. | + | clouds: |
- | for key in $( set | awk ' | + | |
- | export OS_NO_CACHE=True | + | auth: |
- | export COMPUTE_API_VERSION=1.1 | + | |
- | export OS_USERNAME=chudler | + | |
- | export no_proxy=overcloud.cs.uchicago.edu | + | |
- | export OS_REGION_NAME=regionOne | + | |
- | export OS_USER_DOMAIN_NAME=Default | + | |
- | export OS_VOLUME_API_VERSION=3 | + | |
- | export OS_CLOUDNAME=overcloud | + | |
- | export OS_AUTH_URL=https:// | + | |
- | export NOVA_VERSION=1.1 | + | |
- | export OS_IMAGE_API_VERSION=2 | + | |
- | export OS_PASSWORD=sekret | + | |
- | export OS_PROJECT_DOMAIN_NAME=Default | + | |
- | export OS_IDENTITY_API_VERSION=3 | + | |
- | export OS_PROJECT_NAME=chudler | + | |
- | export OS_AUTH_TYPE=password | + | |
- | export PYTHONWARNINGS=" | + | |
- | export OS_COMPUTE_API_VERSION=2.latest | + | |
</ | </ | ||
+ | The [[ cloud: | ||
- | 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 " | + | 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 " |
- | == USAGE == | + | ====== USAGE ====== |
First, Take note of a loose UX pattern that the client has: | First, Take note of a loose UX pattern that the client has: | ||
Line 47: | Line 39: | ||
For example< | For example< | ||
- | Once you have the software installed and the shell' | + | Once you have the software installed and the configuration file created, |
- | ==== Annotated Example ==== | + | ====== Annotated Example |
Read what has been written above before you read this. | Read what has been written above before you read this. | ||
- | Look around. The list could be empty, but we use this command a lot! | + | We use this command a lot |
< | < | ||
+ | |||
+ | ====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' | 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' | ||
+ | |||
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-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. | ||
+ | |||
< | < | ||
- | 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) | + | ====SSH Keys==== |
+ | |||
+ | 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) | ||
< | < | ||
- | A flavor is a pre-chosen size for resources that make up an instance. It is a mandatory parameter when creating instances. Look at the available flavors ,which your admins have created.\\ | + | ==== Flavors ==== |
- | Servers can grow after creation. For example, the disk-size attribute merely expresses the **minimum** size of the boot volume, and most cloud-enabled operating systems expand the root volume on first-boot. In spite of this, relying on dynamically resizing instances increases risk, and it is far better | + | A flavor is a pre-chosen size for resources that make up an instance. It is a mandatory parameter when creating instances. Look at the available flavors, which your admins have created.\\ |
+ | Servers can grow after creation. For example, the disk-size attribute merely expresses the **minimum** size of the boot volume, and most cloud-enabled operating systems expand the root volume on first-boot. In spite of this, relying on dynamically resizing instances increases risk, and you should choose a size that is close to what you expect to use. | ||
< | < | ||
- | Look at the Networks that are available | + | ==== Networks ===== |
+ | Look at the Networks that are available. The meaning of an Openstack " | ||
+ | |||
+ | You are free to use the Network called __cloud__, if you don't need your hosts to be L2 isolated from other users, and you would like to proceed directly to creating servers. | ||
- | You are free to use the Network called __cloud__, if you don't need your hosts to be L2 isolated from other people, and you would like to proceed directly to creating servers. | ||
Using the __cloud__ network cuts down your complexity significantly, | Using the __cloud__ network cuts down your complexity significantly, | ||
/var/lib/dokuwiki/data/pages/cloud/cli.txt · Last modified: 2021/04/15 16:53 by chudler