master
Raw Download raw file

Lab 1 - DevStack Controller

Lab Objectives:

  1. Install a DevStack controller

Connect to your controller instance:

  1. chmod 400 student.pem
  2. ssh ubuntu@<CONTROLLER IP> -i student.pem
  3. sudo whoami

Install DevStack:

:red_circle: TODO: brief paragraph about packstack (i.e. that it is puppet based)

  1. sudo apt-get install git

  2. git clone https://git.openstack.org/openstack-dev/devstack

  3. cd devstack

  4. cp samples/local.conf local.conf

  5. Edit the sample ’local.conf` file to match the complete config provided below; additional configurations not providied in the sample are called out at the end. Read the comments provided in the sample config file. Be sure to replace the with the appropriate IP address.

    nano local.conf or vim local.conf

[[local|localrc]]

tokens and passwords

SERVICE_TOKEN=DKS3MQMX72MSLQP231N # an alphanumeric token ADMIN_PASSWORD=supersecret MYSQL_PASSWORD=radicallyrelational RABBIT_PASSWORD=rascallyrabbit SERVICE_PASSWORD=supersecret

$DEST is the install location (default /opt/stack)

LOGFILE=$DEST/logs/stack.sh.log LOGDAYS=2

SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5 SWIFT_REPLICAS=1 SWIFT_DATA_DIR=$DEST/data enable_service tempest

– Configs not provided in sample –

FLAT_INTERFACE=eth0 FIXED_RANGE=10.0.0.0/16 # private IP range FIXED_NETWORK_SIZE=65534 FLOATING_RANGE=192.168.0.0/24 # public IP range

Please replace x.x.x.x with the controller public IP

NOVNCPROXY_URL=“http://x.x.x.x:6080/vnc_auto.html" NOVA_VNC_ENABLED=True

Please replace x.x.x.x with the controller internal IP

VNCSERVER_LISTEN=x.x.x.x VNCSERVER_PROXYCLIENT_ADDRESS=$VNCSERVER_LISTEN

MULTI_HOST=True

———————————–

  ```
  1. Run stack.sh, this will take awhile, see common errors if anything fails.
`./stack.sh 2>&1 | tee stack.log`

> :white_check_mark: **Additional Info**:
>
> * `stack.sh` is a very long, but well documented script.  Check it out [here](http://docs.openstack.org/developer/devstack/stack.sh.html).
>
> *  In order to capture the printed results of `stack.sh` we pipe it to a file
>   * `2>&1` pipes stderr to stdout (allowing us to capture both)
>   * `|` is a pipe, it sends values to the next command
>   * `tee` is splits a pipe (like a "T) it sends printed results to a file `stack.log` in addition to printing to the screen
> * Logs are also available for `tail -f`-ing at:
>   * `/opt/stack/logs/stack.sh.log`
>   * `/opt/stack/logs/stack.sh.log.summary`
  1. Login to the OpenStack Horizon Web Interface by navigating your browser to the public IP address of your instance, explore the accessible pages and fill in the table of information
![Image of login](img/horizon-login.png)

![Image Dashboard](img/horizon-dashboard.png)

:red_circle: TODO items from interface

| Info to find | Value |
| -------------| ----- |
| Item 1 | |
| Item 2 | |

Next Lab