Skip to content

13. Three windows on the same services

The Horizon front desk and the command-line table.

In a bright hall, LUMO stands between a large board on one side and a small terminal on the other, with a long corridor of counters behind.

At the front desk of the town hall, Imani shows Neri a large, clear board: the list of Neri's houses, their status, their addresses, a button to build another. Neri likes it at once.

At the back of the room LUMO sits at a plain table and types a short line. The same list appears, as text. Behind both, a third window that nobody looks at directly: the town hall's own counters, where every request really goes.

LUMO opens both arms over two screens showing the same symbol, one light and one dark.

"Which one is the real one?" Neri asks. "All three ask the same counters," Imani says. "I just make it easier to fill in the form."

LUMO and Imani, a keeper with a book, look at rows of identical bound registers on the shelves behind the front desk.

Important

Where the picture stops. Changing the client does not change the service being asked. The rights and the answers depend on the cloud: if your role does not allow an action, no window will let you do it.

What it is in OpenStack

  • Every OpenStack service exposes a REST API over HTTP. That is the only way to talk to it.
  • Horizon is the web dashboard: a client that calls those APIs for you.
  • The openstack command-line client (OSC) is another client, convenient for scripts and repeatable work.
  • SDKs (such as openstacksdk in Python) and tools such as Terraform or Ansible are clients too.

All of them authenticate with Keystone, read the catalog and send the same API calls.

From the village to OpenStack

flowchart LR
    H["Horizon<br/>(web dashboard)"] -->|"HTTPS + token"| NAPI["Nova API"]
    CLI["openstack CLI"] -->|"HTTPS + token"| NAPI
    SDK["SDK, Terraform, Ansible"] -->|"HTTPS + token"| NAPI
    NAPI -->|"answer: the same list of servers"| H

See it for real

In Horizon: Project → Compute → Instances. On the command line:

openstack server list
openstack server list --debug

--debug shows the actual API requests the client sends, and the endpoint from the catalog it sends them to.

The lantern: one light joins three windows to the same set of services.

Next: LUMO wants to see what lets the services of the town hall work together. 14. Behind the town hall →

To remember

Lumo: if you keep only 3 things from this page, keep these.

  • Every OpenStack service exposes a REST API; it is the only way to talk to it.
  • Horizon, the openstack CLI, SDKs and tools such as Terraform are all clients of those APIs.
  • Changing the client does not change what you are allowed to do: roles and policies decide.

Check yourself

Lumo: 2 quick questions to check the main ideas of this page. Choose an answer to see the explanation and the section that gives the evidence. Your score counts your first choices and stays in this browser only.

1. An action is refused in Horizon. Will the CLI allow it?
Show the answer

Answer: No, both call the same API with the same token and policy. All clients send the same API calls; the answer depends on roles and policies, not on the client. Read the section.

2. Which option shows the API requests the CLI sends?
Show the answer

Answer: --debug. openstack … --debug prints the requests, the endpoints and the answers. Read the section.