It started happening again today with diffrent symptoms.
--- cloud-init.log
2023-06-13 21:03:41,434 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
2023-06-13 21:03:41,434 - handlers.py[DEBUG]: finish: modules-final/config-scripts-user: FAIL: running config-scripts-user with frequency once-per-instance
2023-06-13 21:03:41,434 - util.py[WARNING]: Running module scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_user.py'>) failed
2023-06-13 21:03:41,434 - util.py[DEBUG]: Running module scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_user.py'>) failed
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cloudinit/config/modules.py", line 246, in _run_modules
ran, _r = cc.run(
File "/usr/lib/python3/dist-packages/cloudinit/cloud.py", line 67, in run
return self._runners.run(name, functor, args, freq, clear_on_fail)
File "/usr/lib/python3/dist-packages/cloudinit/helpers.py", line 185, in run
results = functor(*args)
File "/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_user.py", line 54, in handle
subp.runparts(runparts_path)
File "/usr/lib/python3/dist-packages/cloudinit/subp.py", line 427, in runparts
raise RuntimeError(
RuntimeError: Runparts: 1 failures (part-001) in 1 attempted commands
--- user-data.log
+ /etc/eks/bootstrap.sh REDACTED --apiserver-endpoint REDACTED --b64-cluster-ca REDACTED --container-runtime containerd --kubelet-extra-args '--node-labels=REDACTED --register-with-taints=dedicated=REDACTED:NoSchedule'
Using containerd as the container runtime
Aliasing EKS k8s snap commands
Added:
- kubelet-eks.kubelet as kubelet
Added:
- kubectl-eks.kubectl as kubectl
Stopping k8s daemons until configured
error: snap "kubelet-eks" has "auto-refresh" change in progress
Exited with error on line 353
---
And there is no snap.kubelet-eks.daemon jounral logs in system.
I also create custom ami via Packer, the source AMI was latest image that 20230517 serial.
It started happening again today with diffrent symptoms.
--- cloud-init.log user.py[ WARNING] : Failed to run module scripts-user (scripts in /var/lib/ cloud/instance/ scripts) final/config- scripts- user: FAIL: running config-scripts-user with frequency once-per-instance config. cc_scripts_ user' from '/usr/lib/ python3/ dist-packages/ cloudinit/ config/ cc_scripts_ user.py' >) failed config. cc_scripts_ user' from '/usr/lib/ python3/ dist-packages/ cloudinit/ config/ cc_scripts_ user.py' >) failed python3/ dist-packages/ cloudinit/ config/ modules. py", line 246, in _run_modules python3/ dist-packages/ cloudinit/ cloud.py" , line 67, in run run(name, functor, args, freq, clear_on_fail) python3/ dist-packages/ cloudinit/ helpers. py", line 185, in run python3/ dist-packages/ cloudinit/ config/ cc_scripts_ user.py" , line 54, in handle runparts( runparts_ path) python3/ dist-packages/ cloudinit/ subp.py" , line 427, in runparts
2023-06-13 21:03:41,434 - cc_scripts_
2023-06-13 21:03:41,434 - handlers.py[DEBUG]: finish: modules-
2023-06-13 21:03:41,434 - util.py[WARNING]: Running module scripts-user (<module 'cloudinit.
2023-06-13 21:03:41,434 - util.py[DEBUG]: Running module scripts-user (<module 'cloudinit.
Traceback (most recent call last):
File "/usr/lib/
ran, _r = cc.run(
File "/usr/lib/
return self._runners.
File "/usr/lib/
results = functor(*args)
File "/usr/lib/
subp.
File "/usr/lib/
raise RuntimeError(
RuntimeError: Runparts: 1 failures (part-001) in 1 attempted commands
--- user-data.log bootstrap. sh REDACTED --apiserver- endpoint REDACTED --b64-cluster-ca REDACTED --container-runtime containerd --kubelet- extra-args '--node- labels= REDACTED --register- with-taints= dedicated= REDACTED: NoSchedule'
+ /etc/eks/
Using containerd as the container runtime
Aliasing EKS k8s snap commands
Added:
- kubelet-eks.kubelet as kubelet
Added:
- kubectl-eks.kubectl as kubectl
Stopping k8s daemons until configured
error: snap "kubelet-eks" has "auto-refresh" change in progress
Exited with error on line 353
---
And there is no snap.kubelet- eks.daemon jounral logs in system.
I also create custom ami via Packer, the source AMI was latest image that 20230517 serial.