|
| 1 | +# OpenStack Logging |
| 2 | + |
| 3 | +## How to interpret this OpenStack logging message |
| 4 | + |
| 5 | +To interpret the OpenStack logging message: |
| 6 | + |
| 7 | +```text |
| 8 | +2025-06-25 13:22:40.999 7 ERROR ironic.common.policy [None req-e75fced6-3a9c-4d8d-aa85-aea5398d5c9e 5f9179b7e200cd85c55e8a26400e266c6b4f7209f6d3fb2adc3cf8e1113c378c 32e02632f4f04415bab5895d1e7247b7 - - 1f75c3b20fcb41ec924a71be83a5ee94 7f46f53fcb3c4625a343eaa35b5e0d04] sometext |
| 9 | +``` |
| 10 | + |
| 11 | +## Structure of the Log Message |
| 12 | + |
| 13 | +### Timestamp and Process Info |
| 14 | + |
| 15 | +- `2025-06-25 13:22:40.999`: Date and time (with milliseconds) when the log entry was created. |
| 16 | +- `7`: The process ID (PID) of the process emitting the log. Note that this is PID in container namespace. |
| 17 | + |
| 18 | +### Log Level and Source** |
| 19 | + |
| 20 | +- `ERROR`: Severity level of the log. |
| 21 | +- `ironic.common.policy`: Python module or component where the error originated. Here, it is the policy engine of the Ironic service (bare metal provisioning). |
| 22 | + |
| 23 | +### Contextual Information (in brackets) |
| 24 | + |
| 25 | +This bracketed section contains various IDs and context fields, typically in this order: |
| 26 | + |
| 27 | +- `None`: Sometimes a placeholder for a missing field (could be project or domain). |
| 28 | +- `req-e75fced6-3a9c-4d8d-aa85-aea5398d5c9e`: The request ID, useful for tracing this request across different logs and services. |
| 29 | +- `5f9179b7e200cd85c55e8a26400e266c6b4f7209f6d3fb2adc3cf8e1113c378c`: User ID. |
| 30 | +- `32e02632f4f04415bab5895d1e7247b7`: Tenant or project ID. |
| 31 | +- `- -`: Placeholders for domain and user domain (may be empty if not set). |
| 32 | +- `1f75c3b20fcb41ec924a71be83a5ee94`: User domain ID or project domain ID. |
| 33 | +- `7f46f53fcb3c4625a343eaa35b5e0d04`: Project domain ID or similar. |
| 34 | + |
| 35 | +These IDs can be looked up with: |
| 36 | + |
| 37 | +#### User ID lookup |
| 38 | + |
| 39 | +```text |
| 40 | +❯ openstack user show 5f9179b7e200cd85c55e8a26400e266c6b4f7209f6d3fb2adc3cf8e1113c378c |
| 41 | ++---------------------+------------------------------------------------------------------+ |
| 42 | +| Field | Value | |
| 43 | ++---------------------+------------------------------------------------------------------+ |
| 44 | +| default_project_id | None | |
| 45 | +| domain_id | 1f75c3b20fcb41ec924a71be83a5ee94 | |
| 46 | + |
| 47 | +| enabled | True | |
| 48 | +| id | 5f9179b7e200cd85c55e8a26400e266c6b4f7209f6d3fb2adc3cf8e1113c378c | |
| 49 | + |
| 50 | +| description | None | |
| 51 | +| password_expires_at | None | |
| 52 | ++---------------------+------------------------------------------------------------------+ |
| 53 | +``` |
| 54 | + |
| 55 | +#### Project ID lookup |
| 56 | + |
| 57 | +```text |
| 58 | +❯ openstack project show 32e02632f4f04415bab5895d1e7247b7 |
| 59 | ++-------------+----------------------------------+ |
| 60 | +| Field | Value | |
| 61 | ++-------------+----------------------------------+ |
| 62 | +| description | Ironic Resources | |
| 63 | +| domain_id | 7f46f53fcb3c4625a343eaa35b5e0d04 | |
| 64 | +| enabled | True | |
| 65 | +| id | 32e02632f4f04415bab5895d1e7247b7 | |
| 66 | +| is_domain | False | |
| 67 | +| name | baremetal | |
| 68 | +| options | {} | |
| 69 | +| parent_id | 7f46f53fcb3c4625a343eaa35b5e0d04 | |
| 70 | +| tags | [] | |
| 71 | ++-------------+----------------------------------+ |
| 72 | +``` |
| 73 | + |
| 74 | +#### Domain lookup |
| 75 | + |
| 76 | +```text |
| 77 | +❯ openstack domain show 1f75c3b20fcb41ec924a71be83a5ee94 |
| 78 | ++-------------+----------------------------------+ |
| 79 | +| Field | Value | |
| 80 | ++-------------+----------------------------------+ |
| 81 | +| description | SSO to dex | |
| 82 | +| enabled | True | |
| 83 | +| id | 1f75c3b20fcb41ec924a71be83a5ee94 | |
| 84 | +| name | sso | |
| 85 | +| options | {} | |
| 86 | +| tags | [] | |
| 87 | ++-------------+----------------------------------+ |
| 88 | +``` |
0 commit comments