Skip to content

Logic to wait for instance state #2806

@DarkressX

Description

@DarkressX

Is there an existing issue for this?

  • There is no existing issue for this feature

What are you currently unable to do

Currently when an exec is run, it returns with an error if the agent is not running.

As discussed in the forum, it would be nice to have a wait-for-agent flag, which would keep the exec session open, until the vm/container has a running agent.

What do you think would need to be added

As also discussed in the forum, since incus has no information whether the agent is running or not, the only way to implement this would be to loop internally.

To prevent clogging up resources forever (in case the agent never starts) we should also implement a fixed reasonable timeout (e.g. 60s).

Metadata

Metadata

Assignees

Labels

EasyGood for new contributors

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions