Skip to content

Regarding the FS in Mirrord #3421

@yl-nuwan

Description

@yl-nuwan

Bug Description

I may be using the feature wrong or did I miss something.

We have a Microk8s Running in an EC2 and, those pods have general working working Dir /app/.

The application cannot read file mounts in my remote pod. I have tried fine gain control on fs feature, but not being able to fix this yet.

Is the following behavior an intended way of it working or, am I using the configuration wrong.

Testing python script:
`import os

log_dir = '/app/log'

if os.path.exists(log_dir):

print(f"Files in {log_dir}:")
files = os.listdir(log_dir)
for file in files:
    print(f"  {file}")

else:
print(f"Directory {log_dir} does not exist"`

My remote pod have multiple mounts, I will take /app/log folder as an example here. When My working Directory is set to /app I cannot see the /app/log folder. But When I change the working Directory to /app2 it works.

mirrord container -f mir.json --fs-mode=write -- docker run diffwrk:latest ! mirrord container is currently an unstable feature ✓ ! mirrord container is currently an unstable feature ✓ preparing to launch process ✓ operator not found ✓ agent pod docrp2/mirrord-agent-zym2rnssnj-jqprf created ✓ pod is ready Files in /app/log: gc-post-trade-service-1.log.1 market-data-gateway-1-2025-07-14-03-26-59-1.log.gz matching-engine-1.log gc-data-cache-reader-1.log.0 gc-stream-processor-1.log.1 data-cache-reader-1-2025-07-11-06-58-59-1.log.gz gc-matching-engine-1.log order-manager-2.log gc-custody-service-1.log.3 gc-ws-gateway-1.log.2

mirrord container -f mir.json --fs-mode=write -- docker run samewrk:latest ! mirrord container is currently an unstable feature ✓ ! mirrord container is currently an unstable feature ✓ preparing to launch process ✓ operator not found ✓ agent pod docrp2/mirrord-agent-9vqjfeiusd-qx6pc created ✓ pod is ready Directory /app/log does not exist

Steps to Reproduce

  1. Try to read a file from remote pod, with same named working directory as the remote pod.
  2. Try to read a file from remote pod, with different named working directory as the remote pod.

Backtrace

mirrord layer logs

mirrord intproxy logs

mirrord agent logs

mirrord config

{
  "target": {
    "path": "pod/om-modules-84ddcc784f-jlcrx",
    "namespace": "nmspace"
  },
  "feature": {
    "network": {
      "incoming": {
        "mode": "steal",
        "ignore_ports": [30025]
      },
      "outgoing": true,
      "dns": {
        "enabled": true
      }
    },

    "env": true
  },
  "container": {
  "cli_extra_args": ["-p", "8080:8080", "-p", "30025:30025"]
  },
  "agent": {
    "namespace": "nmspace"
  }
}

mirrord CLI version

mirrord 3.149.0

mirrord-agent version

mirrord 3.149.0

mirrord-operator version (if relevant)

No response

plugin kind and version (if relevant)

No response

Your operating system and version

KDE Kubuntu 24.04

Local process

/home/nuwan/.local/bin/mirrord: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=d9cab4a90c099fa1f61e41c2d110a4e6740f057e, not stripped

Local process version

No response

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions