-
-
Notifications
You must be signed in to change notification settings - Fork 363
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
containers: Deploying after destroying makes nixops hang #809
Comments
PR in #810 |
Also related: NixOS/nixpkgs#32551 that makes container shutdowns take the full 90 seconds, thus making this issue here very visible. |
8 tasks
Closed
nh2
added a commit
to nh2/nixpkgs
that referenced
this issue
Dec 29, 2017
…xOS#32545. This also fixes the race condition found in NixOS#32551. And it fixes nixops's repeated destroy/deploy being broken (NixOS/nixops#809).
fpletz
pushed a commit
to NixOS/nixpkgs
that referenced
this issue
Mar 12, 2018
…2545. This also fixes the race condition found in #32551. And it fixes nixops's repeated destroy/deploy being broken (NixOS/nixops#809). (cherry picked from commit 5d83988)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I use
targetEnv = "container";
, andnixops destroy
, and then immediatelynixops deploy
again, nixops hangs at this output:The
^C
is where I killed it with Ctrl+C because it hung forever.The reason for this is that
nixos-container destroy
, which nixops calls, is asynchronous and exits immediately; thus for the next deploy (and if the container didn't shut down immediately), nixops and nixos-container think they can re-use existing container names that are actually still in use (they show up inmachinectl
).See NixOS/nixpkgs#32545
The text was updated successfully, but these errors were encountered: