OIM Logs

Caution

It is not recommended to delete the below log files or the directories they reside in.

Note

If you want log files for specific playbook execution, ensure to use the cd command to move into the specific directory before executing the playbook. For example, if you want local repo logs, ensure to enter cd local_repo before executing the playbook. If the directory is not changed, all the playbook execution log files will be consolidated and provided as part of omnia logs located in /opt/omnia/log/core/playbooks.

Omnia Logs

The following table provides an overview of the various Omnia log files, their locations, and their purposes for monitoring.

Location

Purpose

/opt/omnia/log/core/playbooks/discovery.log

Discovery logs

/opt/omnia/log/core/playbooks/local_repo.log

Local Repository logs

/opt/omnia/log/core/playbooks/prepare_oim.log

Prepare OIM Logs

/opt/omnia/log/core/playbooks/provision.log

Provision Logs

/opt/omnia/log/core/playbooks/scheduler.log

Scheduler Logs

/opt/omnia/log/core/playbooks/telemetry.log

Telemetry logs

/opt/omnia/log/core/playbooks/utils.log

Utility logs

/opt/omnia/log/core/playbooks/credential_utility.log

Credential utility logs

/opt/omnia/log/openchami/*log

OpenCHAMI playbook logs

/opt/omnia/log/pulp/*log

Pulp container logs

/opt/omnia/log/local_repo/*log

Local repo logs

/opt/omnia/log/core/container/*log

Core container logs

/opt/omnia/log/core/playbooks/validation_omnia_project_default.log

Omnia input validation report logs

/opt/omnia/log/core/playbooks/input_validation.log

Omnia input validation playbook logs

Logs of Individual Podman Containers in OIM

  1. To view the containers running on OIM, run the following command:

    podman ps -a

    The following table shows the status of Omnia containers running on the OIM:

Podman Logs

CONTAINER ID

IMAGE

COMMAND

CREATED

STATUS

PORTS

NAMES

0e327d3addf0

docker.io/minio/minio:latest

server /data –co…

2 hours ago

Up 2 hours

0.0.0.0:9000-9001->9000-9001/tcp

minio-server

1439b4ba453e

docker.io/library/registry:latest

/etc/distribution…

2 hours ago

Up 2 hours

0.0.0.0:5000->5000/tcp

registry

01c7a7eaeb7d

localhost/omnia_core:1.0

/bin/sh -c mkdi..

3 hours ago

Up 3 hours

2222/tcp

omnia_core

3087ca8e0324

localhost/omnia_auth:1.0

/opt/bitnami/scri…

2 hours ago

Up 2 hours

0.0.0.0:389->389/tcp, 0.0.0.0:636->636/tcp

omnia_auth

bfec21c3e14a

ghcr.io/openchami/local-ca:v0.2.2

/bin/sh -c exec /…

2 hours ago

Up 2 hours

9000/tcp

step-ca

577af6a7af16

docker.io/library/postgres:11.5-alpine

postgres

2 hours ago

Up 2 hours

5432/tcp

postgres

d267d7eee9c8

docker.io/oryd/hydra:v2.3

serve -c /etc/con…

2 hours ago

Up 2 hours

hydra

c609cf73dd4f

ghcr.io/openchami/opaal:v0.3.10

/opaal/opaal serv…

2 hours ago

Up 2 hours

opaal-idp

be4dea6159f3

ghcr.io/openchami/smd:v2.18.0

/smd

2 hours ago

Up 2 hours

27779/tcp

smd

2aa3b79b9e1f

ghcr.io/openchami/bss:v1.32.0

/bin/sh -c /usr/l…

2 hours ago

Up 2 hours

27778/tcp

bss

eea83cdfaf93

ghcr.io/openchami/opaal:v0.3.10

/opaal/opaal logi…

2 hours ago

Up 2 hours

opaal

5d32b95a8083

ghcr.io/openchami/cloud-init:v1.2.3

/bin/sh -c /usr/l…

2 hours ago

Up 2 hours

cloud-init-server

3ad8781f4d1d

cgr.dev/chainguard/haproxy:latest

haproxy -f /usr/l…

2 hours ago

Up 2 hours

0.0.0.0:8081->80/tcp, 0.0.0.0:8443->443/tcp

haproxy

b08dc56c006f

ghcr.io/openchami/coredhcp:v0.3.0

/coredhcp

2 hours ago

Up 2 hours

coresmd

28d98bc5d18c

docker .io/pulp/pulp:3.80

2 hours ago

Up 2 hours

0.0.0.0:2225 -> 2225/tcp, 80.tcp

pulp

  1. To view the logs from a specific container, run the following command:

    podman logs <container name>

  2. Alternatively, if the container is managed as a systemd service, you can view the logs using the following command:

    journalctl -xeu <container name>

Logs of Individual K8s Containers on Service Cluster

  1. A list of namespaces and their corresponding pods can be obtained using:

    kubectl get pods -A

  2. Get a list of containers for the pod in question using:

    kubectl get pods <pod_name> -o jsonpath='{.spec.containers[*].name}'

  3. Once you have the namespace, pod and container names, run the below command to get the required logs:

    kubectl logs pod <pod_name> -n <namespace> -c <container_name>

If you have any feedback about Omnia documentation, please reach out at omnia.readme@dell.com.