Demo: OpenStack Client and Web Console
- Objective
-
Demonstrate how an OpenStack operator accesses an OpenStack cluster to create and expose a simple VM-based workload.
Recording
This demonstration will be recorded and the video will be linked here, so learners can watch the video and optionally try to replicate it by themselves.
Environment
There is no demo environment for now. Presenters must be able to provide their own environment, which should be a minimally configured OpenStack cluster with domains, projects, server flavors, floating IPs, tenant networks, etc. It should be configured in a way that it is ready for an OpenStack operator, that is, an OpenStack user with a member role in a few projects, to create a server instance and connect to that instance.
The demo environment should also include some workloads that are visible to the operator user, that is, it’s not an empty cluster, so there are resources to list using the CLI or Horizon.
The demo environment must also provide a user workstation preconfigured with the OpenStack client and a web browser to access the Horizon dashboard.
Demonstration
-
Open a web browser and access Horizon. Log in as the operator user.
-
Show that the user can switch between different projects and see different server instances on each project.
-
Create a basic server running RHEL and connect to that server’s console. Login to the server and run a couple of local sysadmin commands.
-
Open a terminal and log in to the same OpenStack cluster. Show something in Horizon and the CLI to prove it’s connecting to the same OpenStack cluster.
-
From the CLI, list the same projects and server instances you saw previously from Horizon.
-
Use the online help from the CLI to build a minimal command to create another server instance, and run the command. Show that both instances, the one created from Horizon, and the other created from the CLI, are running.
-
Go back to horizon, open the console of the second instance, and show that it can connect to the first instance, because they’re connected to the same virtual network.
-
Expose one of the instances to external access, using an avaliable floating IP. Demonstrate that you can access it from the user’s workstation with SSH. Show that you cannot SSH to the other instance, because its IP address is internal to the OpenStack cluster.
-
From Horizon, delete the instance you created with the CLI. And from the CLI, delete the instance you created from Horizon, to show that resources are not tied to the UI they were created.
-
Try to list the hypervisor hosts of the cluster. Show that the operator user has no access to those APIs.
-
On Horizon, switch to an administrator user. Show that it can list more projects that were hidden from the operator user.
-
Still on Horizon, show networks and mention that the provider network connects the virtual network to the outside world, enabling SSH access. The operator can see only tenant networks from his projects, but the administrator can see the tenant network and configure routers that allow traffic between the tenant/internal and provider/external networks.
-
Go back to the terminal, and log in as the administrator user. Show that it can list the same projects as from Horizon (more than as an operator). Also, list networks.
-
List hypervisor hosts in the cluster. Now the user has the required access privileges for that API.
This ends the demonstration.