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
Add --force
argument to the stop
command
#1946
base: main
Are you sure you want to change the base?
Conversation
Hey @luis4a0, I know this is still in draft, but I always envisioned just adding a |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1946 +/- ##
==========================================
+ Coverage 88.82% 88.90% +0.08%
==========================================
Files 254 255 +1
Lines 14115 14164 +49
==========================================
+ Hits 12537 12593 +56
+ Misses 1578 1571 -7 ☔ View full report in Codecov by Sentry. |
Hey @townsend2010, thanks a lot for your comment! What you propose makes complete sense, I'll finish testing if the commands I used indeed work to turn off VM's and then rework the code. |
1f21eac
to
3a7b09d
Compare
36d6cec
to
a4f04ff
Compare
b10bc1a
to
69ebeca
Compare
Once this is in, I think we should also change |
65903a3
to
708bd3a
Compare
41f273e
to
b1a5b88
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @townsend2010, thanks for the PR! Not a proper review, but I was looking in order to base my work on top, so leaving a couple of comments.
4be3838
to
8ac8d93
Compare
8ac8d93
to
45dcacd
Compare
This will make it explicit that the user wants to force stop an instance.
Change "Forced" to "Forcing" Co-authored-by: Ricardo Abreu <6698114+ricab@users.noreply.github.com> Signed-off-by: Chris Townsend <christopher.townsend@canonical.com>
If the instance is suspended when a force shutdown is issued, then delete the suspend image.
This will account for the case if an instance is starting and getting stuck when resuming from a suspend image.
This is fit in with the style used in other implementations.
45dcacd
to
1861b89
Compare
1861b89
to
36b6601
Compare
7914638
to
ece9a6c
Compare
Add a new parameter to force the shutdown instances (i.e., power down them).
Fixes #1909, Fixes #2492