Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up terraform apply when domains are shutdown #474

Merged
merged 1 commit into from
Nov 9, 2018

Conversation

moio
Copy link
Collaborator

@moio moio commented Nov 9, 2018

I almost always keep several domains shutdown when working, this makes terraform apply pretty slow.

Reason is we currently try to get an address from qemu-ga irrespective of the domain state - obviously if the domain is shut down that will eventually time out.

Ironically, we do avoid querying the libvirt API (in case qemu-ga is not used) when the domain is not running - in my understanding the check for the state should be the same irrespective of the usage of qemu-ga.

This patch just moves the check a few lines before it was.

Copy link
Collaborator

@MalloZup MalloZup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@MalloZup MalloZup merged commit f0f9b7c into dmacvicar:master Nov 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants