master
Raw Download raw file

Lab 5 - DevStack CLI

Lab Objectives:

  1. The objective of this lab is to demonstrate that any mouseclicks made in the Openstack GUI may also be issued from the OpenStack CLI. We will accomplish this goal by performing the same tasks we just performed in the OpenStack GUI, but instead After this lab, you should feel familiar with launching OpenStack command line utilities.

Connect to controller CLI:

  1. Connect (ssh) into the controller
  2. cd ~/devstack
  3. source openrc admin
  4. openstack (starts openstack promt)

List all the things!

  1. endpoint list - service endpoints and their ID’s

    :red_circle: TODO: DevStack Broken? get screen shot Endpoints

  2. hypervisor list - compute hypervisors

    Hypervisors

  3. host list - openstack services and the host they are running on

    Hosts

  4. image list - glance OS images (from basic stack.sh install)

    Images

  5. flavor list - instance flavors (resources)

    Flavor Flave

  6. user list - user IDs

    User IDs

  7. project list - projects

    Projects

  8. catalog list - API endponts

    Catalog

  9. help - all commands

Create a Project and User:

  1. project create Alta3Project

    Create Project

  2. user create --email ubuntu@localhost --project Alta3Project --password supersecret student1

    Create User

  3. exit

Boot an Instance and assign a Floating IP:

  1. nova boot --flavor m1.tiny --image cirros-0.3.4-x86_64-uec cliboot

    Nova Boot

  2. nova list :red_circle: TODO: this image should be updated to reflect the 3 instances that would now be running, not 2

    Nova List

  3. nova floating-ip-create

  4. nova floating-ip-associate cliboot x.x.x.x cliboot (replace x.x.x.x with the floating IP created in the above step)

    Nova Floating IP Nova List

  5. Now log back into the DevStack GUI (accessed by navigating to the IP address of your controller on your webbrowser) and make sure that the new instance you populated at the OpenStackCLI (cliboot) is displayed, along with its newly assocaited floating IP address.

Next Lab