Demo environment

_images/os_background.png

DevStack

DevStack Clone and Setup

git clone https://opendev.org/openstack/devstack
cd ./devstack
cp ./samples/local.conf .
nano ./local.conf

Note

  • Students can use a different editor instead of nano with their own preferences (e.g. vi, emacs, or whatever they want).
./stack.sh

Note

  • DevStack should already be installed in the VM image you downloaded. These instructions are provided for future reference in the case that students need to start from scratch.

http://localhost/

_images/devstack-http-localhost.png

Running services in DevStack

_images/devstack-screen.png

Note

  • Screen is going away in Queens : http://lists.openstack.org/pipermail/openstack-dev/2017-May/116301.html
  • Useful screen commands:
    • List sessions: screen -ls
    • Connect: screen -R <session name>
    • Start a new session: screen -C devstack/stack-screenrc
    • Move between services: <ctrl>-a n , <ctrl>-a p
    • Kill and restart a service: <ctrl>-c , <up arrow> to retrieve command
    • Disconnect: <ctrl>-a d

DevStack services with Systemd

Exercise