cockpit-podman icon indicating copy to clipboard operation
cockpit-podman copied to clipboard

Better pod management

Open strzinek opened this issue 3 years ago • 6 comments

  • Allow to create new pods with port mappings - new kebab control on containers panel
  • Show pod owner in listings - under pod name
  • Correctly limit container ownership when creating container in existing pod - select owner according to pod and disable owner selection

strzinek avatar Apr 14 '22 18:04 strzinek

@garrett as we have limited set of integrations, do we still want to have a tabbed layout?

No, please drop the tabs from this modal dialog. Thanks!

garrett avatar Apr 25 '22 16:04 garrett

Tabs removed.

I also added volumes section, but found out that mounts wont get created for pod because of bug in Podman: https://github.com/containers/podman/issues/13548 . I am not able to verify it is fixed in 4.x version as I am on fedora 35 for now.

I would also add a new test for creating pod later on.

strzinek avatar May 02 '22 17:05 strzinek

Now it is possible to choose if infra container is created. Also, infra containers are not hidden in pods listings anymore.

I also prepared two new tests, TestApplication.testCreatePodUser and TestApplication.testCreatePodSystem.

strzinek avatar May 12 '22 20:05 strzinek

I think this is a good PR to look at landing next after the rename PR.

jelly avatar May 18 '22 16:05 jelly

The rename PR landed, can you please rebase this PR?

jelly avatar Aug 08 '22 11:08 jelly

I've rebased the PR, resolved the conflicts and dropped some of the things which can be a follow up PR.

jelly avatar Aug 19 '22 08:08 jelly

This breaks pixel tests: https://cockpit-logs.us-east-1.linodeobjects.com/pull-961-20220819-084819-8540cbeb-fedora-35/TestApplication-testRunImageSystem-integration-pixels.png

It causes regression, I did this change a few weeks ago - wrong checkout?

Also needs some new tests

marusak avatar Aug 22 '22 06:08 marusak

This breaks pixel tests: https://cockpit-logs.us-east-1.linodeobjects.com/pull-961-20220819-084819-8540cbeb-fedora-35/TestApplication-testRunImageSystem-integration-pixels.png

It causes regression, I did this change a few weeks ago - wrong checkout?

Also needs some new tests

Hmm the code was moved around so maybe it doesn't pick up some css changes?

jelly avatar Aug 22 '22 08:08 jelly

Failing tests on ubuntu-2204 are due to podman not support user mounts on 3.4.4 and requires 4.0.0 so our gui should hide it https://github.com/containers/podman/issues/10379

jelly avatar Sep 19 '22 09:09 jelly

Issue summary:

  • Fedora-coreos/debian-testing testCreatePodUser fails for unknown reasons
  • Changed Pixel tests for https://cockpit-logs.us-east-1.linodeobjects.com/pull-961-20220927-091133-81d25dcc-fedora-36/pixeldiff.html#TestApplication-testRunImageSystem-integration-medium Ok, issue here is:
    • Our own scss is not applied, ImageRunModal.scss has CSS included in Volume.jsx and ImageRunModal.scss now, that makes no sense at all.
  • Requires a new review

jelly avatar Sep 27 '22 10:09 jelly

Why Owner label is not on the same row? Screenshot from 2022-09-29 13-52-30

Like here for example? Screenshot from 2022-09-29 13-52-18

Also found it a bit confusing, that when you create pod and give it ports and volumes, you don't see them in the UI unless you add there container and start it.

marusak avatar Sep 29 '22 14:09 marusak

Also found it a bit confusing, that when you create pod and give it ports and volumes, you don't see them in the UI unless you add there container and start it.

Agreed, however.... the Ports can be found in infraContainer but for the mounts we need infraContainerDetails and that is only available when the pod is started. We should ask the podman guys to expose the mounts in the containers information to make this work nicely.

jelly avatar Sep 29 '22 16:09 jelly

Can you please write proper release note with screenshot as well?

marusak avatar Oct 03 '22 08:10 marusak

Thanks everyone for pushing things through, I haven't had any time to pursue this myself.

strzinek avatar Oct 03 '22 15:10 strzinek

Thanks everyone for pushing things through, I haven't had any time to pursue this myself.

No problem, thanks for the initial PR!

jelly avatar Oct 04 '22 07:10 jelly