-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add pod pause/unpause #1126
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 pod pause/unpause #1126
Conversation
|
📌 Commit 35d536c has been approved by |
|
⌛ Testing commit 35d536c with merge 743350a... |
Added Pause() and Unpause() to libpod/pod.go Added man pages, tests and completions Signed-off-by: haircommander <pehunt@redhat.com> Closes: #1126 Approved by: baude
|
bot, retest this please |
|
💡 This pull request was already approved, no need to approve it again.
|
|
📌 Commit 35d536c has been approved by |
|
💔 Test failed - status-papr |
cmd/podman/pod_pause.go
Outdated
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.
No need for else
cmd/podman/pod_unpause.go
Outdated
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.
No need for else.
docs/podman-pod.1.md
Outdated
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.
Alphabetize
cmd/podman/pod_unpause.go
Outdated
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.
The logic here is wrong - err will always be set if there's an error, even if ctr_errs is not nil
cmd/podman/pod.go
Outdated
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.
Alphabetize
d4d6b5b to
e40ae0a
Compare
|
LGTM |
|
All kinds of test unhappiness, including travis @haircommander |
cmd/podman/pod_unpause.go
Outdated
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.
Can you pause a running pod? Should this be "unpause all paused pods"?
cmd/podman/pod_unpause.go
Outdated
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.
Could be Name or ID no? I think we've other usage's that show you could do one or the other, emulate those.
cmd/podman/pod_pause.go
Outdated
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.
Name or ID no?
|
Couple nit things. |
|
@TomSweeneyRedHat We don't really have a solid pod state - we display one in |
|
@TomSweeneyRedHat Yeah, there's documentation on what container state constitutes what pod state in the pod ps man page. @mheon is correct in your scenario, if there are any running containers the pod is considered running. |
e40ae0a to
46d9f9e
Compare
|
Should be good to merge once travis goes green |
|
Travis isn't hip @haircommander |
|
☔ The latest upstream changes (presumably 8ce0e0b) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@haircommander Can you squash the commits down? |
|
yeah I'm trying to figure out how without having to redo the merge again. |
|
@haircommander |
1926861 to
c1eb681
Compare
|
There's some issue with the ginkgo suite and this code. It just stalls after finishing. I reproduce locally and am trying to figure out what is making it happen. |
c1eb681 to
dc64694
Compare
|
@haircommander Can you rebase against master to fix the tests? |
dc64694 to
1478c18
Compare
|
☔ The latest upstream changes (presumably f9152d0) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@haircommander Needs a rebase. |
Added Pause() and Unpause() to libpod/pod.go Added man pages, tests and completions Signed-off-by: haircommander <pehunt@redhat.com>
1478c18 to
f9b853d
Compare
|
I think this is the last thing I'd like in for today's release. |
|
📌 Commit f9b853d has been approved by |
|
☀️ Test successful - status-papr |
Added Pause() and Unpause() to libpod/pod.go
Added man pages, tests and completions
Signed-off-by: haircommander pehunt@redhat.com