> For the complete documentation index, see [llms.txt](https://kth-expeca.gitbook.io/testbedconfig/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kth-expeca.gitbook.io/testbedconfig/checks-and-tests/services.md).

# Services

The main services in Openstack that we use are:

1. Doni: enrolling workers
2. Blazar: reservations and enrolling network segments (SDRs, Adv routers, EP5G)
3. Zun: container orchestration service using k8s
4. Neutron: networking service
5. Horizon: the web interface

Check if the service's container is healthy

* Blazar:

  ```console
  (venv) expeca@controller-01:/opt/chi-in-a-box$ docker ps | grep "blazar"
  722d4ff498b5   samiemostafavi/ubuntu-source-blazar-manager:xena  ... 4 months ago   Up 3 days (healthy)   blazar_manager
  9b72ebaab4a6   samiemostafavi/ubuntu-source-blazar-api:xena      ... 4 months ago   Up 3 days (healthy)   blazar_api
  ```
* Zun:

  ```console
  (venv) expeca@controller-01:/opt/chi-in-a-box$ docker ps | grep "zun"
  e8f723aee767   samiemostafavi/ubuntu-source-zun-compute-k8s:xena  ... 2 days ago     Up 2 days (healthy)  zun_compute_k8s
  d18d7348b92d   samiemostafavi/ubuntu-source-zun-wsproxy:xena      ... 2 days ago     Up 2 days (healthy)  zun_wsproxy
  54f7dbf64c50   samiemostafavi/ubuntu-source-zun-api:xena          ... 2 days ago     Up 2 days (healthy)  zun_api
  ```

Check the service's internal logs (last 100 lines)

* Blazar:

  ```
  docker exec -it blazar_manager tail -100 /var/log/kolla/blazar/blazar-manager.log
  ```
* Zun k8s:

  ```
  docker exec -it zun_compute_k8s tail -100 /var/log/kolla/zun/zun-compute.log
  ```

If it is restarting, you can check the container logs

````
```
docker logs blazar_manager
docker logs zun_compute_k8s
```
````

Check the config files

* Blazar:

  ```
  docker exec -it blazar_manager cat /etc/blazar/blazar.conf
  ```
* Zun k8s:

  ```
  docker exec -it zun_compute_k8s cat /etc/zun/zun.conf
  ```

Restart a service

````
```
docker restart blazar_manager
docker restart zun_compute_k8s
```
````

Re-deploy a service, after some configurations were changed

````
```
./cc-ansible --site ../site-config/ deploy --tags blazar
./cc-ansible --site ../site-config/ deploy --tags zun
./cc-ansible --site ../site-config/ deploy --tags doni
```
````


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kth-expeca.gitbook.io/testbedconfig/checks-and-tests/services.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
