-
Notifications
You must be signed in to change notification settings - Fork 90
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
Show user owned containers and images #173
Conversation
The user service landed. We can continue with this (while we wait for release). |
@marusak: I wouldn't block on that. We need to be able to run on Fedora 30, RHEL 8.1, or even custom kernels without cgroupsv2. So some placeholder, or simply not showing the graphs at all, seems prudent. |
I agree with @martinpitt. The cpu/memory graphs shouldn't be mixed into this PR. Also, don't show placeholders. |
Now I am reading comment from @martinpitt and I realized I misread it the first time. So I guess I should finish it up.
What do you mean by that? I am afraid I do not follow.
I just thought that we should show some information and not just leave those fields blank, as blank are for containers that are not running. |
The conversation is basically as follows:
Basically: Don't worry about the graphs. (Don't add in a placeholder, either.) Just ignore it for now, please. |
@marusak Oh, I thought you meant this (from the Docker page): Whoops! I guess if there are only user containers and no system containers, don't show those rows? If it makes the code too spaghetti-ish; we could have something like /* Don't show CPU and Memory columns when there are only user containers */
.has-user-containers:not(.has-system-containers) .container-cpu,
.has-user-containers:not(.has-system-containers) .container-memory {
display: none;
} |
I get a bunch of blank named containers that I don't see when using podman from the command line... At the command line, I have this: $ podman images
REPOSITORY TAG IMAGE ID CREATED SIZE
localhost/brscan latest 0be09b995085 4 weeks ago 1.38 GB
docker.io/library/python 3.6 1bf411c4dc77 5 weeks ago 936 MB
localhost/fedora-toolbox-garrett 30 90f2a3231b9e 6 weeks ago 420 MB
docker.io/library/fedora latest 2b74bf3d2430 6 weeks ago 255 MB
registry.fedoraproject.org/f30/fedora-toolbox 30 cb04d2792cf8 7 weeks ago 419 MB
registry.fedoraproject.org/f31/fedora-toolbox 31 940fabe824b3 4 months ago 493 MB I have been using toolbox, so perhaps it's related... $ toolbox list
Images created by toolbox
IMAGE ID IMAGE NAME CREATED
90f2a3231b9e localhost/fedora-toolbox-garrett:30 6 weeks ago
cb04d2792cf8 registry.fedoraproject.org/f30/fedora-toolbox:30 7 weeks ago
940fabe824b3 registry.fedoraproject.org/f31/fedora-toolbox:31 4 months ago
Containers created by toolbox
CONTAINER ID CONTAINER NAME CREATED STATUS IMAGE NAME
146f51127d55 31-2 5 hours ago Created registry.fedoraproject.org/f31/fedora-toolbox:31
a00508c0e94e 31 5 weeks ago Created registry.fedoraproject.org/f31/fedora-toolbox:31
146f51127d55 31-2 5 hours ago Created registry.fedoraproject.org/f31/fedora-toolbox:31
a7407e40fc9d cockpit-website 6 weeks ago Exited (143) 2 weeks ago registry.fedoraproject.org/f30/fedora-toolbox:30
dcc67f3b05b3 cockpit 6 weeks ago Created registry.fedoraproject.org/f30/fedora-toolbox:30
a7407e40fc9d cockpit-website 6 weeks ago Exited (143) 2 weeks ago registry.fedoraproject.org/f30/fedora-toolbox:30
82617a4d650d darktable 5 weeks ago Created registry.fedoraproject.org/f30/fedora-toolbox:30
09ad2732ad17 displaycal 4 weeks ago Created registry.fedoraproject.org/f30/fedora-toolbox:30
f89f41388c2b fedora-toolbox-30 4 weeks ago Up 3 hours ago registry.fedoraproject.org/f30/fedora-toolbox:30
fea1a33c8e5d google-chrome 6 weeks ago Created registry.fedoraproject.org/f30/fedora-toolbox:30
34904bd9e74d rpmbuild 4 hours ago Created registry.fedoraproject.org/f30/fedora-toolbox:30
28b87b2ede78 test 5 hours ago Created registry.fedoraproject.org/f30/fedora-toolbox:30
e2c79d4c50fe test2 5 hours ago Created registry.fedoraproject.org/f31/fedora-toolbox:31
e2c79d4c50fe test2 5 hours ago Created registry.fedoraproject.org/f31/fedora-toolbox:31 |
1ad32e1
to
791cdfa
Compare
71e665a
to
44dc0ad
Compare
44dc0ad
to
a9e8871
Compare
This is ready for review. Anyone interested? :) |
The tests failed due to the internal mirror thing, that should be fixed now. Retrying. |
Nice work! Initial testing:
So, ignoring all the podman varlink process bugs, and the unrelated Console unavailability, I think the only issue that's really related to this PR is the State column width. |
It may be worth re-testing this with a current podman (the F30/F31release is a month old). Not sure how well that can be tested from a git build. |
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.
I'm not completely through yet (sorry, need to run), but this is the first review batch. Thanks!
Good point. This is most likely not related, it is now just more obvious. I'll try to style it.
Can you
This works for me. I think the problem might be the executable of your toolbox container.
I think that podman was just acting up. Normally it works.
What version of podman do you use? I think I haven't seen such problems so often. Thank you Martin for the review and comments, I'll look into those:) |
podman-1.5.1-3.fc30.x86_64 |
Needs cockpit-project/bots#138 |
The fedora-30 failure looks like it's going to need a special case for not having cgroupsv2 yet? |
Fixes cockpit-project#83 Fixes cockpit-project#84 Closes cockpit-project#173
366c5d2
to
5f6d76a
Compare
Fixes cockpit-project#83 Fixes cockpit-project#84 Closes cockpit-project#173
5f6d76a
to
879834a
Compare
Fixes cockpit-project#83 Fixes cockpit-project#84 Closes cockpit-project#173
879834a
to
ee67d48
Compare
Fixes cockpit-project#83 Fixes cockpit-project#84 Closes cockpit-project#173
Fedora-31 very often does not shut down in image-customize. This needs to be looked at. https://logs-https-cockpit.apps.ci.centos.org/logs/pull-173-20191016-054343-ee67d486-cockpit-project-cockpit-podman--fedora-31/log.html (outside of this PR) |
Debugging the shutdown hang a bit. I can't reproduce any hang with the standard unmodified image:
However, it does hang with the vm.install change from this PR. The smallest reproducer is
while running podman help or another command in the admin session doesn't hang:
So the problem isn't with the Doing this more interactively with But it's also not the command itself that hangs:
During all phases I can login with ssh and the machine works, and it gets insta-broken at With a slightly longer sleep, I can console-attach and log in after There are still some admin processes running after that command, mostly systemd --user, dbus, and podman itself. But killing them doesn't help:
So let's enable debug mode:
And now of course it doesn't hang! (grumble Heisenbug) I tried the same with a standard F31 cloud image:
and that reproduces it as well. I filed this as https://bugzilla.redhat.com/show_bug.cgi?id=1762663 |
@marusak : I filed the kernel bug (see above); ideas for workaround:
|
8626336
to
9a6d20c
Compare
9a6d20c
to
d1018a2
Compare
Makefile
Outdated
@@ -123,7 +123,10 @@ rpm: dist-gzip $(RPM_NAME).spec | |||
# build a VM with locally built rpm installed | |||
$(VM_IMAGE): rpm bots | |||
rm -f $(VM_IMAGE) $(VM_IMAGE).qcow2 | |||
# HACK: https://bugzilla.redhat.com/show_bug.cgi?id=1762663 | |||
if [ $(TEST_OS) == "fedora-31" ]; then bots/image-customize -v -r 'grub2-editenv - set "$$(grub2-editenv list | grep ^kernelopts) debug"' $(TEST_OS); fi |
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.
Bashism, please use a single =
d1018a2
to
3aa8368
Compare
This implements showing of user owned containers. Can be tried with this podman build.
Fixes #84
Fixes #83
Blocked on:
TODOs:
Follow-ups: