=== RUN TestCertExpiration
=== PAUSE TestCertExpiration
=== CONT TestCertExpiration
cert_options_test.go:123: (dbg) Run: out/minikube-windows-amd64.exe start -p cert-expiration-622500 --memory=2048 --cert-expiration=3m --driver=docker
E0308 04:10:41.196924 6728 cert_rotation.go:168] key failed with : open C:\Users\jenkins.minikube4\minikube-integration\.minikube\profiles\addons-215800\client.crt: The system cannot find the path specified.
cert_options_test.go:123: (dbg) Non-zero exit: out/minikube-windows-amd64.exe start -p cert-expiration-622500 --memory=2048 --cert-expiration=3m --driver=docker: exit status 85 (1m37.0218751s)
-- stdout --
* [cert-expiration-622500] minikube v1.32.0 on Microsoft Windows 10 Enterprise N 10.0.19045.4046 Build 19045.4046
- KUBECONFIG=C:\Users\jenkins.minikube4\minikube-integration\kubeconfig
- MINIKUBE_FORCE_SYSTEMD=
- MINIKUBE_HOME=C:\Users\jenkins.minikube4\minikube-integration\.minikube
- MINIKUBE_LOCATION=18333
- MINIKUBE_SUPPRESS_DOCKER_PERFORMANCE=true
* Using the docker driver based on user configuration
* Using Docker Desktop driver with root privileges
* Starting "cert-expiration-622500" primary control-plane node in "cert-expiration-622500" cluster
* Pulling base image v0.0.42-1708944392-18244 ...
* Creating docker container (CPUs=2, Memory=2048MB) ...
* Stopping node "cert-expiration-622500" ...
* Powering off "cert-expiration-622500" via SSH ...
* Deleting "cert-expiration-622500" in docker ...
-- /stdout --
** stderr **
W0308 04:09:44.995745 14940 main.go:291] Unable to resolve the current Docker CLI context "default": context "default": context not found: open C:\Users\jenkins.minikube4\.docker\contexts\meta\37a8eec1ce19687d132fe29051dca629d164e2c4958ba141d5f4133a33f0688f\meta.json: The system cannot find the path specified.
! StartHost failed, but will try again: creating host: create: provisioning: ssh command error:
command : sudo diff -u /lib/systemd/system/docker.service /lib/systemd/system/docker.service.new || { sudo mv /lib/systemd/system/docker.service.new /lib/systemd/system/docker.service; sudo systemctl -f daemon-reload && sudo systemctl -f enable docker && sudo systemctl -f restart docker; }
err : Process exited with status 1
output : --- /lib/systemd/system/docker.service 2024-02-06 21:12:51.000000000 +0000
+++ /lib/systemd/system/docker.service.new 2024-03-08 04:11:06.908319801 +0000
@@ -1,46 +1,49 @@
[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
-After=network-online.target docker.socket firewalld.service containerd.service time-set.target
-Wants=network-online.target containerd.service
+BindsTo=containerd.service
+After=network-online.target firewalld.service containerd.service
+Wants=network-online.target
Requires=docker.socket
+StartLimitBurst=3
+StartLimitIntervalSec=60
[Service]
Type=notify
-# the default is not to use systemd for cgroups because the delegate issues still
-# exists and systemd currently does not support the cgroup feature set required
-# for containers run by docker
-ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
-ExecReload=/bin/kill -s HUP $MAINPID
-TimeoutStartSec=0
-RestartSec=2
-Restart=always
+Restart=on-failure
-# Note that StartLimit* options were moved from "Service" to "Unit" in systemd 229.
-# Both the old, and new location are accepted by systemd 229 and up, so using the old location
-# to make them work for either version of systemd.
-StartLimitBurst=3
-# Note that StartLimitInterval was renamed to StartLimitIntervalSec in systemd 230.
-# Both the old, and new name are accepted by systemd 230 and up, so using the old name to make
-# this option work for either version of systemd.
-StartLimitInterval=60s
+
+# This file is a systemd drop-in unit that inherits from the base dockerd configuration.
+# The base configuration already specifies an 'ExecStart=...' command. The first directive
+# here is to clear out that command inherited from the base configuration. Without this,
+# the command from the base configuration and the command specified here are treated as
+# a sequence of commands, which is not the desired behavior, nor is it valid -- systemd
+# will catch this invalid input and refuse to start the service with an error like:
+# Service has more than one ExecStart= setting, which is only allowed for Type=oneshot services.
+
+# NOTE: default-ulimit=nofile is set to an arbitrary number for consistency with other
+# container runtimes. If left unlimited, it may result in OOM issues with MySQL.
+ExecStart=
+ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock --default-ulimit=nofile=1048576:1048576 --tlsverify --tlscacert /etc/docker/ca.pem --tlscert /etc/docker/server.pem --tlskey /etc/docker/server-key.pem --label provider=docker --insecure-registry 10.96.0.0/12
+ExecReload=/bin/kill -s HUP $MAINPID
# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
+LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
-# Comment TasksMax if your systemd version does not support it.
-# Only systemd 226 and above support this option.
+# Uncomment TasksMax if your systemd version supports it.
+# Only systemd 226 and above support this version.
TasksMax=infinity
+TimeoutStartSec=0
# set delegate yes so that systemd does not reset the cgroups of docker containers
Delegate=yes
# kill only the docker process, not all processes in the cgroup
KillMode=process
-OOMScoreAdjust=-500
[Install]
WantedBy=multi-user.target
Synchronizing state of docker.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable docker
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xeu docker.service" for details.
* Failed to start docker container. Running "minikube delete -p cert-expiration-622500" may fix it: error loading existing host. Please try running [minikube delete], then run [minikube start] again: filestore "cert-expiration-622500": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-622500\config.json: The system cannot find the file specified.
X Exiting due to GUEST_NOT_FOUND: Failed to start host: error loading existing host. Please try running [minikube delete], then run [minikube start] again: filestore "cert-expiration-622500": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-622500\config.json: The system cannot find the file specified.
* Suggestion: minikube is missing files relating to your guest environment. This can be fixed by running 'minikube delete'
* Related issue: https://github.com/kubernetes/minikube/issues/9130
** /stderr **
cert_options_test.go:125: failed to start minikube with args: "out/minikube-windows-amd64.exe start -p cert-expiration-622500 --memory=2048 --cert-expiration=3m --driver=docker" : exit status 85
cert_options_test.go:131: (dbg) Run: out/minikube-windows-amd64.exe start -p cert-expiration-622500 --memory=2048 --cert-expiration=8760h --driver=docker
cert_options_test.go:131: (dbg) Non-zero exit: out/minikube-windows-amd64.exe start -p cert-expiration-622500 --memory=2048 --cert-expiration=8760h --driver=docker: exit status 85 (6.8258297s)
-- stdout --
* [cert-expiration-622500] minikube v1.32.0 on Microsoft Windows 10 Enterprise N 10.0.19045.4046 Build 19045.4046
- KUBECONFIG=C:\Users\jenkins.minikube4\minikube-integration\kubeconfig
- MINIKUBE_FORCE_SYSTEMD=
- MINIKUBE_HOME=C:\Users\jenkins.minikube4\minikube-integration\.minikube
- MINIKUBE_LOCATION=18333
- MINIKUBE_SUPPRESS_DOCKER_PERFORMANCE=true
* Using the docker driver based on existing profile
* Starting "cert-expiration-622500" primary control-plane node in "cert-expiration-622500" cluster
* Pulling base image v0.0.42-1708944392-18244 ...
-- /stdout --
** stderr **
W0308 04:14:22.041600 10308 main.go:291] Unable to resolve the current Docker CLI context "default": context "default": context not found: open C:\Users\jenkins.minikube4\.docker\contexts\meta\37a8eec1ce19687d132fe29051dca629d164e2c4958ba141d5f4133a33f0688f\meta.json: The system cannot find the path specified.
E0308 04:14:22.347293 10308 start.go:812] api.Load failed for cert-expiration-622500: filestore "cert-expiration-622500": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-622500\config.json: The system cannot find the file specified.
E0308 04:14:22.348195 10308 start.go:812] api.Load failed for cert-expiration-622500: filestore "cert-expiration-622500": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-622500\config.json: The system cannot find the file specified.
! StartHost failed, but will try again: error loading existing host. Please try running [minikube delete], then run [minikube start] again: filestore "cert-expiration-622500": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-622500\config.json: The system cannot find the file specified.
* Failed to start docker container. Running "minikube delete -p cert-expiration-622500" may fix it: error loading existing host. Please try running [minikube delete], then run [minikube start] again: filestore "cert-expiration-622500": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-622500\config.json: The system cannot find the file specified.
X Exiting due to GUEST_NOT_FOUND: Failed to start host: error loading existing host. Please try running [minikube delete], then run [minikube start] again: filestore "cert-expiration-622500": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-622500\config.json: The system cannot find the file specified.
* Suggestion: minikube is missing files relating to your guest environment. This can be fixed by running 'minikube delete'
* Related issue: https://github.com/kubernetes/minikube/issues/9130
** /stderr **
cert_options_test.go:133: failed to start minikube after cert expiration: "out/minikube-windows-amd64.exe start -p cert-expiration-622500 --memory=2048 --cert-expiration=8760h --driver=docker" : exit status 85
cert_options_test.go:136: minikube start output did not warn about expired certs:
-- stdout --
* [cert-expiration-622500] minikube v1.32.0 on Microsoft Windows 10 Enterprise N 10.0.19045.4046 Build 19045.4046
- KUBECONFIG=C:\Users\jenkins.minikube4\minikube-integration\kubeconfig
- MINIKUBE_FORCE_SYSTEMD=
- MINIKUBE_HOME=C:\Users\jenkins.minikube4\minikube-integration\.minikube
- MINIKUBE_LOCATION=18333
- MINIKUBE_SUPPRESS_DOCKER_PERFORMANCE=true
* Using the docker driver based on existing profile
* Starting "cert-expiration-622500" primary control-plane node in "cert-expiration-622500" cluster
* Pulling base image v0.0.42-1708944392-18244 ...
-- /stdout --
** stderr **
W0308 04:14:22.041600 10308 main.go:291] Unable to resolve the current Docker CLI context "default": context "default": context not found: open C:\Users\jenkins.minikube4\.docker\contexts\meta\37a8eec1ce19687d132fe29051dca629d164e2c4958ba141d5f4133a33f0688f\meta.json: The system cannot find the path specified.
E0308 04:14:22.347293 10308 start.go:812] api.Load failed for cert-expiration-622500: filestore "cert-expiration-622500": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-622500\config.json: The system cannot find the file specified.
E0308 04:14:22.348195 10308 start.go:812] api.Load failed for cert-expiration-622500: filestore "cert-expiration-622500": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-622500\config.json: The system cannot find the file specified.
! StartHost failed, but will try again: error loading existing host. Please try running [minikube delete], then run [minikube start] again: filestore "cert-expiration-622500": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-622500\config.json: The system cannot find the file specified.
* Failed to start docker container. Running "minikube delete -p cert-expiration-622500" may fix it: error loading existing host. Please try running [minikube delete], then run [minikube start] again: filestore "cert-expiration-622500": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-622500\config.json: The system cannot find the file specified.
X Exiting due to GUEST_NOT_FOUND: Failed to start host: error loading existing host. Please try running [minikube delete], then run [minikube start] again: filestore "cert-expiration-622500": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-622500\config.json: The system cannot find the file specified.
* Suggestion: minikube is missing files relating to your guest environment. This can be fixed by running 'minikube delete'
* Related issue: https://github.com/kubernetes/minikube/issues/9130
** /stderr **
cert_options_test.go:138: *** TestCertExpiration FAILED at 2024-03-08 04:14:28.7476468 +0000 UTC m=+4657.149228001
helpers_test.go:222: -----------------------post-mortem--------------------------------
helpers_test.go:230: ======> post-mortem[TestCertExpiration]: docker inspect <======
helpers_test.go:231: (dbg) Run: docker inspect cert-expiration-622500
helpers_test.go:235: (dbg) docker inspect cert-expiration-622500:
-- stdout --
[
{
"CreatedAt": "2024-03-08T04:09:48Z",
"Driver": "local",
"Labels": {
"created_by.minikube.sigs.k8s.io": "true",
"name.minikube.sigs.k8s.io": "cert-expiration-622500"
},
"Mountpoint": "/var/lib/docker/volumes/cert-expiration-622500/_data",
"Name": "cert-expiration-622500",
"Options": null,
"Scope": "local"
}
]
-- /stdout --
helpers_test.go:239: (dbg) Run: out/minikube-windows-amd64.exe status --format={{.Host}} -p cert-expiration-622500 -n cert-expiration-622500
helpers_test.go:239: (dbg) Non-zero exit: out/minikube-windows-amd64.exe status --format={{.Host}} -p cert-expiration-622500 -n cert-expiration-622500: exit status 7 (253.3896ms)
-- stdout --
Nonexistent
-- /stdout --
** stderr **
W0308 04:14:29.099868 4852 main.go:291] Unable to resolve the current Docker CLI context "default": context "default": context not found: open C:\Users\jenkins.minikube4\.docker\contexts\meta\37a8eec1ce19687d132fe29051dca629d164e2c4958ba141d5f4133a33f0688f\meta.json: The system cannot find the path specified.
E0308 04:14:29.198885 4852 status.go:249] status error: host: load: filestore "cert-expiration-622500": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-622500\config.json: The system cannot find the file specified.
** /stderr **
helpers_test.go:239: status error: exit status 7 (may be ok)
helpers_test.go:241: "cert-expiration-622500" host is not running, skipping log retrieval (state="Nonexistent")
helpers_test.go:175: Cleaning up "cert-expiration-622500" profile ...
helpers_test.go:178: (dbg) Run: out/minikube-windows-amd64.exe delete -p cert-expiration-622500
helpers_test.go:178: (dbg) Done: out/minikube-windows-amd64.exe delete -p cert-expiration-622500: (2.1283091s)
--- FAIL: TestCertExpiration (286.46s)