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

Add podman driver #6515

Merged
merged 63 commits into from
Feb 13, 2020
Merged

Add podman driver #6515

merged 63 commits into from
Feb 13, 2020

Conversation

medyagh
Copy link
Member

@medyagh medyagh commented Feb 6, 2020

 sudo podman version
Version:            1.7.0
RemoteAPI Version:  1
Go Version:         go1.11.6
OS/Arch:            linux/amd64

Distributor ID:	Debian
Description:	Debian GNU/Linux 10 (buster)
Release:	10
  • organize constants files
  • add min required and suggested docker and podman versions
  • added scripts for podman integration tests
  • podman volume to be created inside ./minikube/machine/name/var

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 6, 2020
@medyagh medyagh changed the title Add initial podman wip: Add initial podman Feb 6, 2020
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 6, 2020
@medyagh medyagh changed the title wip: Add initial podman wip: Add podman driver Feb 6, 2020
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 6, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: medyagh

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 6, 2020
@medyagh medyagh changed the title wip: Add podman driver wip: add podman driver Feb 6, 2020
Copy link
Contributor

@tstromberg tstromberg left a comment

Choose a reason for hiding this comment

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

Looks surprisingly easy!

pkg/drivers/kic/oci/oci.go Show resolved Hide resolved
pkg/drivers/kic/oci/oci.go Show resolved Hide resolved
pkg/minikube/command/kic_runner.go Outdated Show resolved Hide resolved
pkg/minikube/registry/drvs/podman/podman.go Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Feb 7, 2020
@medyagh medyagh changed the title wip: add podman driver add podman driver Feb 7, 2020
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 7, 2020
@codecov-io
Copy link

codecov-io commented Feb 7, 2020

Codecov Report

Merging #6515 into master will decrease coverage by 0.06%.
The diff coverage is 9.67%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6515      +/-   ##
==========================================
- Coverage   37.58%   37.51%   -0.07%     
==========================================
  Files         138      138              
  Lines        8775     8790      +15     
==========================================
  Hits         3298     3298              
- Misses       5061     5076      +15     
  Partials      416      416
Impacted Files Coverage Δ
pkg/minikube/driver/driver_linux.go 0% <ø> (ø) ⬆️
pkg/minikube/command/kic_runner.go 0% <0%> (ø) ⬆️
pkg/minikube/cluster/start.go 51.37% <0%> (ø) ⬆️
pkg/minikube/machine/client.go 43.84% <0%> (ø) ⬆️
pkg/minikube/cluster/ip.go 0% <0%> (ø) ⬆️
cmd/minikube/cmd/docker-env.go 39.83% <0%> (ø) ⬆️
pkg/minikube/driver/driver.go 58.97% <0%> (-1.56%) ⬇️
cmd/minikube/cmd/start.go 22.44% <0%> (-0.1%) ⬇️
pkg/addons/kubectl.go 56.52% <100%> (ø) ⬆️
pkg/minikube/bootstrapper/certs.go 75.24% <100%> (ø) ⬆️
... and 2 more

@medyagh
Copy link
Member Author

medyagh commented Feb 7, 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 Feb 7, 2020
@minikube-pr-bot
Copy link

All Times minikube: [ 92.899320 92.780025 95.546809]
All Times Minikube (PR 6515): [ 89.096992 89.537662 88.797497]

Average minikube: 93.742051
Average Minikube (PR 6515): 89.144051

Averages Time Per Log

+----------------------+-----------+--------------------+
|         LOG          | MINIKUBE  | MINIKUBE (PR 6515) |
+----------------------+-----------+--------------------+
| minikube v           |  0.203453 |           0.200925 |
| Creating kvm2        | 20.440440 |          20.038760 |
| Preparing Kubernetes | 49.879986 |          48.714457 |
| Pulling images       |           |                    |
| Launching Kubernetes | 21.186990 |          17.557764 |
| Waiting for cluster  |  0.242954 |           0.733634 |
+----------------------+-----------+--------------------+

@minikube-pr-bot
Copy link

All Times minikube: [ 93.474811 90.618187 93.899242]
All Times Minikube (PR 6515): [ 88.889356 90.573053 87.266211]

Average minikube: 92.664080
Average Minikube (PR 6515): 88.909540

Averages Time Per Log

+----------------------+-----------+--------------------+
|         LOG          | MINIKUBE  | MINIKUBE (PR 6515) |
+----------------------+-----------+--------------------+
| minikube v           |  0.192725 |           0.194990 |
| Creating kvm2        | 19.786121 |          19.802899 |
| Preparing Kubernetes | 49.837156 |          48.331625 |
| Pulling images       |           |                    |
| Launching Kubernetes | 21.319205 |          18.393806 |
| Waiting for cluster  |  0.065813 |           0.579527 |
+----------------------+-----------+--------------------+

Copy link
Contributor

@tstromberg tstromberg left a comment

Choose a reason for hiding this comment

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

Looks good, but too much to sneak into a point release.

hack/jenkins/common.sh Outdated Show resolved Hide resolved
pkg/drivers/kic/oci/oci.go Outdated Show resolved Hide resolved
pkg/drivers/kic/oci/oci.go Show resolved Hide resolved
pkg/drivers/kic/oci/oci.go Outdated Show resolved Hide resolved
pkg/minikube/bootstrapper/bsutil/kubelet_test.go Outdated Show resolved Hide resolved
pkg/minikube/registry/drvs/docker/docker.go Outdated Show resolved Hide resolved
pkg/minikube/registry/drvs/podman/podman.go Outdated Show resolved Hide resolved
pkg/minikube/registry/drvs/podman/podman.go Outdated Show resolved Hide resolved
pkg/minikube/vmpath/constants.go Outdated Show resolved Hide resolved
@TravisBuddy
Copy link

Travis tests have failed

Hey @medyagh,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

TravisBuddy Request Identifier: ff7a20f0-49df-11ea-83a0-77379528e44b

@minikube-pr-bot
Copy link

All Times minikube: [ 100.684360 95.099886 93.801945]
All Times Minikube (PR 6515): [ 97.498472 98.395501 92.783577]

Average minikube: 96.528730
Average Minikube (PR 6515): 96.225850

Averages Time Per Log

+----------------------+-----------+--------------------+
|         LOG          | MINIKUBE  | MINIKUBE (PR 6515) |
+----------------------+-----------+--------------------+
| minikube v           |  0.198699 |           0.203313 |
| Creating kvm2        | 21.143866 |          21.606959 |
| Preparing Kubernetes | 51.538254 |          51.301518 |
| Pulling images       |           |                    |
| Launching Kubernetes | 21.445755 |          21.373518 |
| Waiting for cluster  |  0.231145 |           0.070359 |
+----------------------+-----------+--------------------+

@minikube-pr-bot
Copy link

All Times Minikube (PR 6515): [ 94.764254 94.648696 92.291526]
All Times minikube: [ 93.047231 97.128623 92.981030]

Average minikube: 94.385628
Average Minikube (PR 6515): 93.901492

Averages Time Per Log

+----------------------+-----------+--------------------+
|         LOG          | MINIKUBE  | MINIKUBE (PR 6515) |
+----------------------+-----------+--------------------+
| minikube v           |  0.198768 |           0.198352 |
| Creating kvm2        | 20.321734 |          20.338702 |
| Preparing Kubernetes | 51.100764 |          50.766133 |
| Pulling images       |           |                    |
| Launching Kubernetes | 21.092924 |          20.632560 |
| Waiting for cluster  |  0.056870 |           0.224417 |
+----------------------+-----------+--------------------+

@minikube-pr-bot
Copy link

All Times minikube: [ 92.691382 92.238937 88.440288]
All Times Minikube (PR 6515): [ 91.672345 92.270846 91.550423]

Average minikube: 91.123536
Average Minikube (PR 6515): 91.831205

Averages Time Per Log

+----------------------+-----------+--------------------+
|         LOG          | MINIKUBE  | MINIKUBE (PR 6515) |
+----------------------+-----------+--------------------+
| minikube v           |  0.202211 |           0.202091 |
| Creating kvm2        | 19.981525 |          20.362128 |
| Preparing Kubernetes | 48.488652 |          49.229663 |
| Pulling images       |           |                    |
| Launching Kubernetes | 20.719495 |          20.090758 |
| Waiting for cluster  |  0.045199 |           0.222498 |
+----------------------+-----------+--------------------+

@minikube-pr-bot
Copy link

All Times minikube: [ 92.912872 92.366315 96.167349]
All Times Minikube (PR 6515): [ 94.839826 92.652632 94.249844]

Average minikube: 93.815512
Average Minikube (PR 6515): 93.914101

Averages Time Per Log

+----------------------+-----------+--------------------+
|         LOG          | MINIKUBE  | MINIKUBE (PR 6515) |
+----------------------+-----------+--------------------+
| minikube v           |  0.208288 |           0.203630 |
| Creating kvm2        | 20.433788 |          19.851763 |
| Preparing Kubernetes | 50.885309 |          50.257655 |
| Pulling images       |           |                    |
| Launching Kubernetes | 20.366510 |          21.539712 |
| Waiting for cluster  |  0.214802 |           0.055092 |
+----------------------+-----------+--------------------+

@minikube-pr-bot
Copy link

All Times minikube: [ 97.908205 92.100632 92.691896]
All Times Minikube (PR 6515): [ 95.833821 93.863764 93.876792]

Average minikube: 94.233578
Average Minikube (PR 6515): 94.524792

Averages Time Per Log

+----------------------+-----------+--------------------+
|         LOG          | MINIKUBE  | MINIKUBE (PR 6515) |
+----------------------+-----------+--------------------+
| minikube v           |  0.204254 |           0.202216 |
| Creating kvm2        | 21.006350 |          20.186270 |
| Preparing Kubernetes | 49.632866 |          51.165447 |
| Pulling images       |           |                    |
| Launching Kubernetes | 21.125010 |          20.923988 |
| Waiting for cluster  |  0.227592 |           0.402145 |
+----------------------+-----------+--------------------+

@minikube-pr-bot
Copy link

All Times minikube: [ 97.445583 94.545706 95.357992]
All Times Minikube (PR 6515): [ 92.962239 95.221339 92.624868]

Average minikube: 95.783094
Average Minikube (PR 6515): 93.602815

Averages Time Per Log

+----------------------+-----------+--------------------+
|         LOG          | MINIKUBE  | MINIKUBE (PR 6515) |
+----------------------+-----------+--------------------+
| minikube v           |  0.202360 |           0.208102 |
| Creating kvm2        | 21.220413 |          20.211672 |
| Preparing Kubernetes | 51.038156 |          49.986255 |
| Pulling images       |           |                    |
| Launching Kubernetes | 21.681661 |          21.200246 |
| Waiting for cluster  |  0.072119 |           0.395011 |
+----------------------+-----------+--------------------+

@minikube-pr-bot
Copy link

All Times minikube: [ 94.863253 92.646258 91.128265]
All Times Minikube (PR 6515): [ 96.057540 94.775862 91.042648]

Average minikube: 92.879259
Average Minikube (PR 6515): 93.958683

Averages Time Per Log

+----------------------+-----------+--------------------+
|         LOG          | MINIKUBE  | MINIKUBE (PR 6515) |
+----------------------+-----------+--------------------+
| minikube v           |  0.210033 |           0.201988 |
| Creating kvm2        | 19.663544 |          20.634865 |
| Preparing Kubernetes | 50.488723 |          50.208527 |
| Pulling images       |           |                    |
| Launching Kubernetes | 20.538957 |          21.066591 |
| Waiting for cluster  |  0.067553 |           0.214991 |
+----------------------+-----------+--------------------+

@minikube-pr-bot
Copy link

All Times minikube: [ 95.267725 95.190305 95.986354]
All Times Minikube (PR 6515): [ 92.351943 93.103557 92.232135]

Average minikube: 95.481461
Average Minikube (PR 6515): 92.562545

Averages Time Per Log

+----------------------+-----------+--------------------+
|         LOG          | MINIKUBE  | MINIKUBE (PR 6515) |
+----------------------+-----------+--------------------+
| minikube v           |  0.209784 |           0.199813 |
| Creating kvm2        | 20.059316 |          20.183989 |
| Preparing Kubernetes | 51.656012 |          50.109821 |
| Pulling images       |           |                    |
| Launching Kubernetes | 20.514679 |          20.269342 |
| Waiting for cluster  |  0.057892 |           0.059723 |
+----------------------+-----------+--------------------+

@minikube-pr-bot
Copy link

All Times minikube: [ 95.245625 90.047538 96.860100]
All Times Minikube (PR 6515): [ 91.988893 92.015649 92.730748]

Average minikube: 94.051088
Average Minikube (PR 6515): 92.245097

Averages Time Per Log

+----------------------+-----------+--------------------+
|         LOG          | MINIKUBE  | MINIKUBE (PR 6515) |
+----------------------+-----------+--------------------+
| minikube v           |  0.201259 |           0.205920 |
| Creating kvm2        | 20.056492 |          19.839664 |
| Preparing Kubernetes | 50.301145 |          48.960722 |
| Pulling images       |           |                    |
| Launching Kubernetes | 21.401023 |          21.392890 |
| Waiting for cluster  |  0.052994 |           0.067248 |
+----------------------+-----------+--------------------+

@medyagh medyagh changed the title wip: add podman driver Add podman driver Feb 12, 2020
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 12, 2020
.github/workflows/main.yml Show resolved Hide resolved
cmd/minikube/cmd/start.go Outdated Show resolved Hide resolved
cmd/minikube/cmd/start.go Outdated Show resolved Hide resolved
pkg/drivers/kic/oci/oci.go Outdated Show resolved Hide resolved
runArgs = append(runArgs, "--volume", fmt.Sprintf("%s:/var:exec", hostVarVolPath))
}
if p.OCIBinary == Docker {
runArgs = append(runArgs, "--volume", fmt.Sprintf("%s:/var", hostVarVolPath))
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we limit this so that it is only mounted this way on Linux? It potentially offers poor performance when a VM is involved.

pkg/minikube/constants/constants.go Outdated Show resolved Hide resolved
@@ -106,6 +108,11 @@ func BareMetal(name string) bool {
return name == None || name == Mock
}

// NeedsRoot returns true if driver needs to run with root privileges
func NeedsRoot(name string) bool {
return name == None || name == Podman
Copy link
Contributor

Choose a reason for hiding this comment

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

This is fine for a first iteration, but do know that is possible to use podman without root:

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/building_running_and_managing_containers/index#running-rootfull-or-rootless_building-running-and-managing-containers

I'm not sure what the fastest way to notice whether or not the system configuration requires root or not, however.

cmd := exec.CommandContext(ctx, oci.Docker, "version", "-f", "'{{.Server.Version}}'")
o, err := cmd.CombinedOutput()
if err != nil {
return registry.State{Error: err, Installed: true, Healthy: false, Fix: "Cant verify minimum required version for docker . See docker website for installation guide.", Doc: "https://docs.docker.com/"}
Copy link
Contributor

Choose a reason for hiding this comment

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

Add apostrophe to can't.

pkg/minikube/registry/drvs/podman/podman.go Outdated Show resolved Hide resolved
pkg/minikube/registry/drvs/podman/podman.go Show resolved Hide resolved
@tstromberg
Copy link
Contributor

Just nits - this looks ready to merge otherwise.

@minikube-pr-bot
Copy link

All Times minikube: [ 91.568545 96.639706 94.855292]
All Times Minikube (PR 6515): [ 92.548127 92.058313 91.926167]

Average Minikube (PR 6515): 92.177536
Average minikube: 94.354514

Averages Time Per Log

+----------------------+-----------+--------------------+
|         LOG          | MINIKUBE  | MINIKUBE (PR 6515) |
+----------------------+-----------+--------------------+
| minikube v           |  0.195880 |           0.204662 |
| Creating kvm2        | 20.575451 |          20.025361 |
| Preparing Kubernetes | 50.652552 |          49.041295 |
| Pulling images       |           |                    |
| Launching Kubernetes | 21.216763 |          21.150276 |
| Waiting for cluster  |  0.051541 |           0.046568 |
+----------------------+-----------+--------------------+

@medyagh medyagh merged commit 398c7ef into kubernetes:master Feb 13, 2020
@medyagh medyagh deleted the podman_exp branch February 13, 2020 05:30
@runlevel5
Copy link

@medyagh Would this vm-driver mode need docker engine?

When I try to start with podman vm driver, I got following error:

[root@orion tle]# /usr/local/bin/minikube --alsologtostderr start --vm-driver=podman
I0317 13:34:33.087019    6950 notify.go:125] Checking for updates...
I0317 13:34:33.466099    6950 start.go:252] hostinfo: {"hostname":"orion.dev","uptime":7049,"bootTime":1584405424,"procs":441,"os":"linux","platform":"fedora","platformFamily":"fedora","platformVersion":"32","kernelVersion":"5.6.0-0.rc5.git0.2.fc32.ppc64le","virtualizationSystem":"","virtualizationRole":"","hostid":"5632f077-29a6-48c4-9d05-933910ac9490"}
I0317 13:34:33.483490    6950 start.go:262] virtualization:
😄  minikube v1.8.2 on Fedora 32 (ppc64le)
I0317 13:34:33.483766    6950 driver.go:226] Setting default libvirt URI to qemu:///system
✨  Using the podman (experimental) driver based on existing profile
I0317 13:34:33.660334    6950 start.go:299] selected driver: podman
I0317 13:34:33.660370    6950 start.go:488] validating driver "podman" against &{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: Memory:2200 CPUs:2 DiskSize:20000 Driver:podman HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] InsecureRegistry:[] RegistryMirror:[] HostOnlyCIDR:192.168.99.1/24 HypervVirtualSwitch: HypervUseExternalSwitch:false HypervExternalAdapter: KVMNetwork:default KVMQemuURI:qemu:///system KVMGPU:false KVMHidden:false DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true HostOnlyNicType:virtio NatNicType:virtio KubernetesConfig:{KubernetesVersion:v1.17.3 ClusterName:minikube APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: ExtraOptions:[] ShouldLoadCachedImages:true EnableDefaultCNI:false NodeIP: NodePort:0 NodeName:} Nodes:[{Name:m01 IP: Port:8443 KubernetesVersion:v1.17.3 ControlPlane:true Worker:true}] Addons:map[]}
<truncated>

# HERE - seems to me Docker is still needed
E0317 13:34:35.298230    6950 cache.go:106] Error downloading kic artifacts:  error loading image: 
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
I0317 13:34:35.298441    6950 start.go:245] acquiring machines lock for minikube: {Name:mka00e65579c2b557a802898fd1cf03ec4ab30a1 Clock:{} Delay:500ms Timeout:15m0s Cancel:<nil>}



I0317 13:34:35.298717    6950 start.go:249] acquired machines lock for "minikube" in 248.971µs
I0317 13:34:35.298737    6950 start.go:85] Skipping create...Using existing machine configuration
⌛  Reconfiguring existing host ...
I0317 13:34:35.298770    6950 fix.go:63] fixHost starting: m01
🔄  Starting existing podman container for "minikube" ...
I0317 13:34:35.500262    6950 fix.go:65] fixHost completed within 201.487044ms
I0317 13:34:35.500305    6950 start.go:73] releasing machines lock for "minikube", held for 201.570442ms
W0317 13:34:35.500514    6950 exit.go:101] Unable to start VM. Please investigate and run 'minikube delete' if possible: driver start: get kic state: get container minikube status: exit status 125

💣  Unable to start VM. Please investigate and run 'minikube delete' if possible: driver start: get kic state: get container minikube status: exit status 125

😿  minikube is exiting due to an error. If the above message is not useful, open an issue:
👉  https://github.com/kubernetes/minikube/issues/new/choose

@runlevel5
Copy link

runlevel5 commented Mar 17, 2020

@braderhart

Yes I have tried to remove the existing cluster yet gotten the same warning on docker:

[root@orion tle]# minikube delete
🙄  "minikube" profile does not exist, trying anyways.
💀  Removed all traces of the "minikube" cluster.
[root@orion tle]# minikube delete
🙄  "minikube" profile does not exist, trying anyways.
💀  Removed all traces of the "minikube" cluster.
[root@orion tle]# rm -rf /tmp/minikube*
[root@orion tle]# rm -rf /tmp/juju*
[root@orion tle]# /usr/local/bin/minikube --alsologtostderr start --driver=podman
I0317 22:40:42.091465   10546 notify.go:125] Checking for updates...
I0317 22:40:42.369365   10546 start.go:252] hostinfo: {"hostname":"orion.dev","uptime":39818,"bootTime":1584405424,"procs":443,"os":"linux","platform":"fedora","platformFamily":"fedora","platformVersion":"32","kernelVersion":"5.6.0-0.rc5.git0.2.fc32.ppc64le","virtualizationSystem":"","virtualizationRole":"","hostid":"5632f077-29a6-48c4-9d05-933910ac9490"}
I0317 22:40:42.381682   10546 start.go:262] virtualization:
😄  minikube v1.8.2 on Fedora 32 (ppc64le)
I0317 22:40:42.381757   10546 driver.go:226] Setting default libvirt URI to qemu:///system
✨  Using the podman (experimental) driver based on user configuration
I0317 22:40:42.570332   10546 start.go:299] selected driver: podman
I0317 22:40:42.570356   10546 start.go:488] validating driver "podman" against <nil>
I0317 22:40:42.570382   10546 start.go:494] status for podman: {Installed:true Healthy:true Error:<nil> Fix: Doc:}
W0317 22:40:42.700205   10546 start.go:852] Unable to query memory limits: get podman system info: exit status 125
I0317 22:40:42.700471   10546 start.go:863] Using suggested 2200MB memory alloc based on sys=-1MB, container=-1MB
I0317 22:40:42.700663   10546 cache.go:97] Beginning downloading kic artifacts
I0317 22:40:42.700707   10546 preload.go:84] Found local preload: /root/.minikube/cache/preloaded-tarball/preloaded-images-k8s-v1-v1.17.3-docker-overlay2.tar.lz4
I0317 22:40:42.700720   10546 cache.go:41] Caching tarball of preloaded images
I0317 22:40:42.700747   10546 preload.go:113] Found /root/.minikube/cache/preloaded-tarball/preloaded-images-k8s-v1-v1.17.3-docker-overlay2.tar.lz4 in cache, skipping download
I0317 22:40:42.700750   10546 cache.go:99] Downloading gcr.io/k8s-minikube/kicbase:v0.0.7@sha256:a6f288de0e5863cdeab711fa6bafa38ee7d8d285ca14216ecf84fcfb07c7d176 to local daemon
I0317 22:40:42.700792   10546 image.go:84] Writing gcr.io/k8s-minikube/kicbase:v0.0.7@sha256:a6f288de0e5863cdeab711fa6bafa38ee7d8d285ca14216ecf84fcfb07c7d176 to local daemon
I0317 22:40:42.700764   10546 cache.go:44] Finished downloading the preloaded tar for v1.17.3 on docker
I0317 22:40:42.701503   10546 profile.go:121] Saving config to /root/.minikube/profiles/minikube/config.json ...
I0317 22:40:42.701926   10546 lock.go:35] WriteFile acquiring /root/.minikube/profiles/minikube/config.json: {Name:mk270d1b5db5965f2dc9e9e25770a63417031943 Clock:{} Delay:500ms Timeout:1m0s Cancel:<nil>}

# ========
E0317 22:40:44.130208   10546 cache.go:106] Error downloading kic artifacts:  error loading image: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
# ========

I0317 22:40:44.130429   10546 start.go:245] acquiring machines lock for minikube: {Name:mka00e65579c2b557a802898fd1cf03ec4ab30a1 Clock:{} Delay:500ms Timeout:15m0s Cancel:<nil>}
I0317 22:40:44.130652   10546 start.go:249] acquired machines lock for "minikube" in 200.14µs
I0317 22:40:44.130674   10546 start.go:82] Provisioning new machine with config: {Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: Memory:2200 CPUs:2 DiskSize:20000 Driver:podman HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] InsecureRegistry:[] RegistryMirror:[] HostOnlyCIDR:192.168.99.1/24 HypervVirtualSwitch: HypervUseExternalSwitch:false HypervExternalAdapter: KVMNetwork:default KVMQemuURI:qemu:///system KVMGPU:false KVMHidden:false DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true HostOnlyNicType:virtio NatNicType:virtio KubernetesConfig:{KubernetesVersion:v1.17.3 ClusterName:minikube APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: ExtraOptions:[] ShouldLoadCachedImages:true EnableDefaultCNI:false NodeIP: NodePort:0 NodeName:} Nodes:[{Name:m01 IP: Port:8443 KubernetesVersion:v1.17.3 ControlPlane:true Worker:true}] Addons:map[]}
I0317 22:40:44.130758   10546 start.go:101] createHost starting for "minikube" (driver="podman")
I0317 22:40:44.290506   10546 start.go:137] libmachine.API.Create for "minikube" (driver="podman")
I0317 22:40:44.290596   10546 main.go:110] libmachine: Reading certificate data from /root/.minikube/certs/ca.pem
I0317 22:40:44.290649   10546 main.go:110] libmachine: Decoding PEM data...
I0317 22:40:44.290680   10546 main.go:110] libmachine: Parsing certificate...
I0317 22:40:44.290847   10546 main.go:110] libmachine: Reading certificate data from /root/.minikube/certs/cert.pem
I0317 22:40:44.290885   10546 main.go:110] libmachine: Decoding PEM data...
I0317 22:40:44.290909   10546 main.go:110] libmachine: Parsing certificate...
I0317 22:42:06.541618   10546 start.go:104] createHost completed in 1m22.410840273s
I0317 22:42:06.541650   10546 start.go:73] releasing machines lock for "minikube", held for 1m22.41098338s
W0317 22:42:06.543435   10546 exit.go:101] Unable to start VM. Please investigate and run 'minikube delete' if possible: creating host: create: creating: create kic node: create container: failed args: [run --cgroup-manager cgroupfs -d -t --privileged --security-opt seccomp=unconfined --tmpfs /tmp --tmpfs /run -v /lib/modules:/lib/modules:ro --hostname minikube --name minikube --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=minikube --label role.minikube.sigs.k8s.io= --label mode.minikube.sigs.k8s.io=minikube --volume /root/.minikube/machines/minikube/var:/var:exec --expose 8443 --publish=127.0.0.1::8443 --publish=127.0.0.1::22 --publish=127.0.0.1::2376 gcr.io/k8s-minikube/kicbase:v0.0.7] output: Trying to pull gcr.io/k8s-minikube/kicbase:v0.0.7...
Getting image source signatures
Copying blob sha256:15fa850485767a7b5ef5a59fcd74b158b9a7faffef6254d4cf0c8d86d347e1ec
Copying blob sha256:6bd890da28be3b501e0dc75627755a536831416ed3268f47c2a517065f4edd5b
Copying blob sha256:8aa40341c4fa46ae7bf3b1915da155fd05e53bcc06cfea0606a055b781dd14cc
Copying blob sha256:46bddb84d1c5e5324fcc5efc270c7e081cc9966c125ac56c900dbca6b7a2fe06
Copying blob sha256:922219304a679d5e50e5d0428842216835a792da80fde4f4aaead52cb3baf824
Copying blob sha256:93956c6f8d9ea3e705e03e79d66a5c2acc9a4ac10ed6fb5c6cf654ba9c297df5
Copying blob sha256:a58bb48ed799948df93d5a6bde4feea06b5bb7e4b61d2c3cdca4f71050b113d7
Copying blob sha256:0dc2bee53732b00357eab324b5923de8410b75dcdbdeddf5dda80c378ff6f8d7
Copying blob sha256:998bda65c4e623ae5513998c4a0491ca9c5538ff601587b30fe3fb0b8c9c10c6
Copying blob sha256:54894fbd4ed0f89a552938808f56f8728ce07c0b2b236726b6c89102080a7af4
Copying blob sha256:33b335b88b45f8eaf38714537ca6a60692251cfd644a050bfef81e5e6e580298
Copying blob sha256:9deea2def60c3a520e2a9b36c76e9592124a1efeddb174334c9f5487660e2f60
Copying blob sha256:3e8f76e34c5db014fe4497b76025ddebdc6a4ff4a54059c757b820aa02215916
Copying blob sha256:359ec970e234324726fe5e8e70f8fc3a88743cd6976b3078e0334cf62af9b6fe
Copying blob sha256:eb43b9231aa1f8cb5718927bb7b0662e9b40f5a763374f0b817ea37b18cb5c35
Copying blob sha256:bb9df884c801ffcb4aa35216ec0b0f32b4366815749550a438a773412f356f3f
Copying blob sha256:455a40adb4259c8dda78c35d5cfc938305fa97a4f69daa233b4de9dfa41c19ec
Copying blob sha256:8318dc076aee62be32bac0c305c52be1e2685789930ed9b9fb2fca3643af0b7e
Copying blob sha256:53f24a064b6afcd3a71c87af9b479af1a21f01d2046a3cb51e34f3420fcc88ac
Copying blob sha256:277bbe363ef3c4d87bc8cf7291880a3fbbf701319bb1a64f4566fac04e183502
Copying blob sha256:cd4b881d58cc58a1bd39a900a754e74fda0916440c82ceaedf7a2b7336e918da
Copying config sha256:7980bce73693acb180efd04278d5f9fe4a14f75fb8a54f6e119578bdf1e49a72
Writing manifest to image destination
Storing signatures
Error: incompatible image architecture "amd64" on "ppc64le" host
: exit status 125

@afbjorklund
Copy link
Collaborator

See #7071 for the IBM POWER (ppc64le), rather than commenting on this closed PR

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/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kic: add podman driver for minikube Add support for VM-free deployments using Podman
8 participants