Skip to content

Fresh DEV environment & tests - No such file or directory: './.tmp/ssh-config' #553

Description

@stejskalleos

Steps to reproduce

git clone git@github.com:theforeman/foremanctl.git
cd foremanctl

./setup-environment
source .venv/bin/activate

./forge vms start
./foremanctl deploy --initial-admin-password=changeme --tuning development --add-feature smart-proxy

Then run tests

pytest tests/foreman_proxy_test.py

All fail with:

    @functools.cached_property
    def client(self) -> paramiko.SSHClient:
        client = paramiko.SSHClient()
        client.set_missing_host_key_policy(paramiko.WarningPolicy())
        cfg = {
            "hostname": self.host.name,
            "port": int(self.host.port) if self.host.port else 22,
            "username": self.host.user,
            "timeout": self.timeout,
            "password": self.host.password,
        }
        if self.ssh_config:
            ssh_config_dir = os.path.dirname(self.ssh_config)
    
>           with open(self.ssh_config) as f:
                 ^^^^^^^^^^^^^^^^^^^^^
E           FileNotFoundError: [Errno 2] No such file or directory: './.tmp/ssh-config'

.venv/lib64/python3.14/site-packages/testinfra/backend/paramiko.py:109: FileNotFoundError

Either we miss something in dev docs or in the setup-environment script

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions