From c97471b6b234d38562ab6655c6f4e079a2d1dfe7 Mon Sep 17 00:00:00 2001 From: Ondra Machacek Date: Wed, 30 Oct 2024 08:12:11 +0100 Subject: [PATCH] Rephrase the documenation of exploring host directories Signed-off-by: Ondra Machacek --- doc/agentvm.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/doc/agentvm.md b/doc/agentvm.md index 6d39b4f..59a4d29 100644 --- a/doc/agentvm.md +++ b/doc/agentvm.md @@ -32,10 +32,17 @@ $ systemctl --user status planner-agent ``` ### Inspecting the host directory with data -The ignition create a `.migration-planner` directory in `core` user home directory. -This directory should contain all relevant data, so in order to find misconfiguration please search in this directory. +When the virtual machine boots, ignition creates the `.migration-planner` directory in the `core` user's home directory. +This directory contains two subdirectories: `data` and `config`. +The `data` directory contains a `credentials.json` file, which is created when the user enters their vCenter credentials. +It also contains an `inventory.json` file, which is created by the `planner-agent` service when vCenter data is fetched. +The `config` directory contains a `config.yaml` file, which is created by ignition and contains configuration for the +`planner-agent` service. + +To explore the data and configuration created and used by `planner-agent`: ``` -$ ls -l .migration-planner +$ ls -l /home/core/.migration-planner/data +$ cat /home/core/.migration-planner/config/config.yaml ``` ### Check logs of the services