Skip to content

hooks enabled: client times out and disconnects prematurely during long afterLease #243

@evakhoni

Description

@evakhoni

during a long afterHook which is set to eventually timeout, the client disconnects prematurely. with default timeout of 120s, client kicked out after ~30secs

[02/17/26 18:55:53] INFO     Running afterLease hook (Ctrl+C to skip)... [jumpstarter_cli.shell]
                    INFO     Starting hook subprocess... [exporter:afterLease]
                    INFO     Creating PTY pair... [exporter:afterLease]
                    INFO     PTY created: parent_fd=16, child_fd=17 [exporter:afterLease]
                    INFO     Executing inline script (interpreter: /bin/sh) [exporter:afterLease]
                    INFO     Spawning subprocess with command: ['/bin/sh', '-c', 'echo "start posthook long sleep"\nsleep 999\necho "done postlease"\n'] [exporter:afterLease]
                    INFO     Subprocess spawned with PID 2707870 [exporter:afterLease]
                    INFO     Starting PTY output reader and process waiter (timeout=120) [exporter:afterLease]
                    INFO     Task group created, starting tasks... [exporter:afterLease]
                    INFO     Waiting for subprocess to complete... [exporter:afterLease]
                    INFO     start posthook long sleep [exporter:afterLease]
[02/17/26 18:55:54] INFO     Status changed: LEASE_READY -> AFTER_LEASE_HOOK (version=4) [jumpstarter.client.status_monitor]
[02/17/26 18:56:23] WARNING  Timeout waiting for afterLease hook to complete [jumpstarter_cli.shell]
                    INFO     Releasing Lease 019c6c86-7740-7e17-a169-9dfce9fc2a86 [jumpstarter.client.lease]  

# the exporter is still in afterLease at this point

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions