Skip to content

Add incus wait#2834

Merged
stgraber merged 2 commits intolxc:mainfrom
Mujib-Ahasan:incus-wait-command
Jan 21, 2026
Merged

Add incus wait#2834
stgraber merged 2 commits intolxc:mainfrom
Mujib-Ahasan:incus-wait-command

Conversation

@Mujib-Ahasan
Copy link
Copy Markdown
Contributor

Description:

Currently when an exec is run, it returns with an error if the agent is not running. Instead of letting bunch of background go routines trying to execute commands, it is more logical to introduce a subcommand wait.

command:

incus wait <instance-name> [condition]
here condition is agent, ip, ipv4, ipv6, status= (as per the discussion: (#2806 (comment))

closes: #2806

@stgraber stgraber changed the title Feature: Incus wait <instanace-name> [condition] Add incus wait Jan 20, 2026
Mujib-Ahasan and others added 2 commits January 20, 2026 21:57
Closes lxc#2806

Signed-off-by: Mujib Ahasan <[email protected]>
Signed-off-by: Stéphane Graber <[email protected]>
@stgraber stgraber enabled auto-merge January 21, 2026 03:00
@stgraber stgraber merged commit b1649d3 into lxc:main Jan 21, 2026
103 of 108 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Logic to wait for instance state

2 participants