Skip to content
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

Podman bugs #7640

Closed
wants to merge 2 commits into from
Closed

Podman bugs #7640

wants to merge 2 commits into from

Conversation

afbjorklund
Copy link
Collaborator

Here are some of the various podman driver bugs that I found, when trying to fix #7631

It seems like we have docker hardcoded in a lot of places, and that podman is untested.

podman
	Error: template parsing error: template: image:1: function "json" not defined
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 13, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: afbjorklund

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 13, 2020
@afbjorklund
Copy link
Collaborator Author

Hmm, wonder why the "unable to find" didn't work

return image.WriteImageToDaemon(kic.BaseImage)
})
glog.Infof("Beginning downloading kic artifacts for %s with %s", driver, cRuntime)
if driver == "docker" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldnt this be driver.IsKIC( ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is driver.IsKIC (in the caller), but this function calls the docker-specific WriteImageToDaemon

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use oci.Docker not string

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oci.Docker is a string, but ok. Would be nice to have something generic, in image ? Preferrably with a progressbar.

@afbjorklund
Copy link
Collaborator Author

So we just skip the cache, and let the podman run pull the image directly instead.

@afbjorklund
Copy link
Collaborator Author

Note that there is no daemon for local podman, only for remote podman (varlink socket).

So this does not make so much sense either: Try: restarting podman.

Maybe that should be Try: reinstalling podman or something like that ?

Also still wonder why this is called "OCI", but I guess it has to be called something.

i.e. this is mostly about the docker cli, and not so much about opencontainers.org

the standard is mostly about runc, and most people still use docker:// transport

But I'm not about to change any of that, I just want it to be running (similar to docker)

@medyagh
Copy link
Member

medyagh commented Apr 13, 2020

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Apr 13, 2020
@minikube-pr-bot
Copy link

kvm2 Driver
docker Driver

return image.WriteImageToDaemon(kic.BaseImage)
})
glog.Infof("Beginning downloading kic artifacts for %s with %s", driver, cRuntime)
if driver == "docker" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use oci.Docker not string

})
}
// TODO: driver == "podman"
glog.Info("Container runtime isn't docker, skipping download")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean the driver is not docker ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, the driver also has a container runtime. Which is of course confusing.

We download kicbase for the outer runtime, and kubernetes for the inner...
But the commands and messages are the same for both of the runtimes.

@@ -99,13 +99,17 @@ func doCacheBinaries(k8sVersion string) error {
}

// BeginDownloadKicArtifacts downloads the kic image + preload tarball, returns true if preload is available
func beginDownloadKicArtifacts(g *errgroup.Group) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cRuntime is not used here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it would be, but we don't use the preload hack for the kicbase image

@medyagh
Copy link
Member

medyagh commented Apr 13, 2020

On the oci naming it was hard to find any name that wasn't wrong. I looked up Wikipedia on both docker and podman and I saw what they had in common is they are both considered oci implementation.

By oci I meant anytime we have to talk to docker cli or podman cli outside the minikube node ( on th user's host machine and not using ssh runner or kic runner)

But I admit I wish there was a better less confusing name.

@afbjorklund
Copy link
Collaborator Author

I think most of this branch/PR will end up getting merged into #7631 instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants