=== RUN TestCertExpiration
=== PAUSE TestCertExpiration
=== CONT TestCertExpiration
cert_options_test.go:123: (dbg) Run: out/minikube-windows-amd64.exe start -p cert-expiration-423600 --memory=3072 --cert-expiration=3m --driver=docker
cert_options_test.go:123: (dbg) Non-zero exit: out/minikube-windows-amd64.exe start -p cert-expiration-423600 --memory=3072 --cert-expiration=3m --driver=docker: exit status 85 (1m7.1855336s)
-- stdout --
* [cert-expiration-423600] minikube v1.37.0 on Microsoft Windows 10 Enterprise N 10.0.19045.6575 Build 19045.6575
- KUBECONFIG=C:\Users\jenkins.minikube4\minikube-integration\kubeconfig
- MINIKUBE_FORCE_SYSTEMD=
- MINIKUBE_HOME=C:\Users\jenkins.minikube4\minikube-integration\.minikube
- MINIKUBE_LOCATION=21974
- MINIKUBE_SUPPRESS_DOCKER_PERFORMANCE=true
* Using the docker driver based on user configuration
* Using Docker Desktop driver with root privileges
* Starting "cert-expiration-423600" primary control-plane node in "cert-expiration-423600" cluster
* Pulling base image v0.0.48-1764169655-21974 ...
* Stopping node "cert-expiration-423600" ...
* Powering off "cert-expiration-423600" via SSH ...
* Deleting "cert-expiration-423600" in docker ...
-- /stdout --
** stderr **
! 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 2025-11-24 21:58:08.000000000 +0000
+++ /lib/systemd/system/docker.service.new 2025-11-26 20:34:46.605026136 +0000
@@ -9,23 +9,34 @@
[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
+
+
+# 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 fd:// --containerd=/run/containerd/containerd.sock -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
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-423600" may fix it: error loading existing host. Please try running [minikube delete], then run [minikube start] again: filestore "cert-expiration-423600": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-423600\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-423600": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-423600\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-423600 --memory=3072 --cert-expiration=3m --driver=docker" : exit status 85
cert_options_test.go:131: (dbg) Run: out/minikube-windows-amd64.exe start -p cert-expiration-423600 --memory=3072 --cert-expiration=8760h --driver=docker
cert_options_test.go:131: (dbg) Non-zero exit: out/minikube-windows-amd64.exe start -p cert-expiration-423600 --memory=3072 --cert-expiration=8760h --driver=docker: exit status 85 (6.3733835s)
-- stdout --
* [cert-expiration-423600] minikube v1.37.0 on Microsoft Windows 10 Enterprise N 10.0.19045.6575 Build 19045.6575
- KUBECONFIG=C:\Users\jenkins.minikube4\minikube-integration\kubeconfig
- MINIKUBE_FORCE_SYSTEMD=
- MINIKUBE_HOME=C:\Users\jenkins.minikube4\minikube-integration\.minikube
- MINIKUBE_LOCATION=21974
- MINIKUBE_SUPPRESS_DOCKER_PERFORMANCE=true
* Using the docker driver based on existing profile
* Starting "cert-expiration-423600" primary control-plane node in "cert-expiration-423600" cluster
* Pulling base image v0.0.48-1764169655-21974 ...
-- /stdout --
** stderr **
E1126 20:37:59.347752 13180 start.go:838] api.Load failed for cert-expiration-423600: filestore "cert-expiration-423600": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-423600\config.json: The system cannot find the file specified.
E1126 20:37:59.348349 13180 start.go:838] api.Load failed for cert-expiration-423600: filestore "cert-expiration-423600": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-423600\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-423600": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-423600\config.json: The system cannot find the file specified.
* Failed to start docker container. Running "minikube delete -p cert-expiration-423600" may fix it: error loading existing host. Please try running [minikube delete], then run [minikube start] again: filestore "cert-expiration-423600": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-423600\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-423600": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-423600\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-423600 --memory=3072 --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-423600] minikube v1.37.0 on Microsoft Windows 10 Enterprise N 10.0.19045.6575 Build 19045.6575
- KUBECONFIG=C:\Users\jenkins.minikube4\minikube-integration\kubeconfig
- MINIKUBE_FORCE_SYSTEMD=
- MINIKUBE_HOME=C:\Users\jenkins.minikube4\minikube-integration\.minikube
- MINIKUBE_LOCATION=21974
- MINIKUBE_SUPPRESS_DOCKER_PERFORMANCE=true
* Using the docker driver based on existing profile
* Starting "cert-expiration-423600" primary control-plane node in "cert-expiration-423600" cluster
* Pulling base image v0.0.48-1764169655-21974 ...
-- /stdout --
** stderr **
E1126 20:37:59.347752 13180 start.go:838] api.Load failed for cert-expiration-423600: filestore "cert-expiration-423600": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-423600\config.json: The system cannot find the file specified.
E1126 20:37:59.348349 13180 start.go:838] api.Load failed for cert-expiration-423600: filestore "cert-expiration-423600": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-423600\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-423600": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-423600\config.json: The system cannot find the file specified.
* Failed to start docker container. Running "minikube delete -p cert-expiration-423600" may fix it: error loading existing host. Please try running [minikube delete], then run [minikube start] again: filestore "cert-expiration-423600": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-423600\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-423600": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-423600\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 2025-11-26 20:38:05.555941 +0000 UTC m=+3762.869219301
helpers_test.go:222: -----------------------post-mortem--------------------------------
helpers_test.go:223: ======> post-mortem[TestCertExpiration]: network settings <======
helpers_test.go:230: HOST ENV snapshots: PROXY env: HTTP_PROXY="<empty>" HTTPS_PROXY="<empty>" NO_PROXY="<empty>"
helpers_test.go:238: ======> post-mortem[TestCertExpiration]: docker inspect <======
helpers_test.go:239: (dbg) Run: docker inspect cert-expiration-423600
helpers_test.go:243: (dbg) docker inspect cert-expiration-423600:
-- stdout --
[
{
"CreatedAt": "2025-11-26T20:33:54Z",
"Driver": "local",
"Labels": {
"created_by.minikube.sigs.k8s.io": "true",
"name.minikube.sigs.k8s.io": "cert-expiration-423600"
},
"Mountpoint": "/var/lib/docker/volumes/cert-expiration-423600/_data",
"Name": "cert-expiration-423600",
"Options": null,
"Scope": "local"
}
]
-- /stdout --
helpers_test.go:247: (dbg) Run: out/minikube-windows-amd64.exe status --format={{.Host}} -p cert-expiration-423600 -n cert-expiration-423600
helpers_test.go:247: (dbg) Non-zero exit: out/minikube-windows-amd64.exe status --format={{.Host}} -p cert-expiration-423600 -n cert-expiration-423600: exit status 7 (155.1049ms)
-- stdout --
Nonexistent
-- /stdout --
** stderr **
E1126 20:38:05.767657 13188 status.go:121] status error: host: load: filestore "cert-expiration-423600": open C:\Users\jenkins.minikube4\minikube-integration\.minikube\machines\cert-expiration-423600\config.json: The system cannot find the file specified.
** /stderr **
helpers_test.go:247: status error: exit status 7 (may be ok)
helpers_test.go:249: "cert-expiration-423600" host is not running, skipping log retrieval (state="Nonexistent")
helpers_test.go:175: Cleaning up "cert-expiration-423600" profile ...
helpers_test.go:178: (dbg) Run: out/minikube-windows-amd64.exe delete -p cert-expiration-423600
helpers_test.go:178: (dbg) Done: out/minikube-windows-amd64.exe delete -p cert-expiration-423600: (1.1898867s)
--- FAIL: TestCertExpiration (254.99s)