-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Running playbook - Error loading unit file 'k8s-certs-renew.timer' #7810
Comments
I have same issue with @mhabicht in CentOS 7 |
@haminhcong are you by any chance using an old CentOS 7 version ? |
@mhabicht Ubuntu 16.04 is just too old and the version of systemd there doesn't support the 'timespec' we use. |
@champtar Understood. What is the minimum Ubuntu version, I did not see that listed in the requirements for 15.1? If it is 18, let me ask if 20 is supported yet? |
Kubespray CI has both 18.04 and 20.04 if I remember correctly, so yes 20.04 is supported |
@champtar Does this setting affect the self cert renewal at 365 days? |
Not sure to understand your question |
@champtar No, i don't think my OS is too old. It is 2020 update version
|
@champtar The core certs expire after 365 days. Originally it was thought that in Kube 15.3 had the fix to renew these certs, but there was a bug. This bug was fixed in 19.9. |
The timer just runs the script to do the cert renew, you can run the script manually |
Both: maybe you don't have #7472 in the version you are using |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
UPDATE: I have narrowed this down to when this setting is set to true, the error occurs
inventory/mycluster/group_vars/k8s-cluster/k8s-cluster.yml
Automatically renew K8S control plane certificates on first Monday of each month
auto_renew_certificates: true
Yet setting this one to true does not cause a problem
roles/kubernetes/master/defaults/main/main.yml
Automatically renew K8S control plane certificates on first Monday of each month
auto_renew_certificates: true
ORIGINAL:
When running playbook I get this error, not sure what is causing this error. I saw another person had this problem, but was closed do to OS version, no resolve.
FAILED! => {"changed": false, "msg": "Error loading unit file 'k8s-certs-renew.timer': org.freedesktop.DBus.Error.InvalidArgs \"Invalid argument\""}
Full output
https://gist.github.com/mhabicht/8498befb5c7d3184ec5fc5dae66b5f10
roles/kubernetes/master/tasks/main.yml
systemd:
name: k8s-certs-renew.timer
enabled: yes
state: started
daemon-reload: "{{ k8s_certs_units is changed }}"
when: auto_renew_certificates
Bare Metal-Dell servers
Linux 4.4.0-210-generic x86_64
NAME="Ubuntu"
VERSION="16.04.7 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.7 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
Version of Ansible (
ansible --version
):ansible 2.9.18
config file = /root/kubespray-2.15.1/ansible.cfg
configured module search path = ['/root/kubespray-2.15.1/library']
ansible python module location = /usr/local/lib/python3.5/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.5.2 (default, Jan 26 2021, 13:30:48) [GCC 5.4.0 20160609]
Version of Python (
python --version
): 2.7.12**Kubespray version : 2.15.1
Network plugin used: Calico
Full inventory with variables (
ansible -i inventory/sample/inventory.ini all -m debug -a "var=hostvars[inventory_hostname]"
):https://gist.github.com/mhabicht/b848b4d4e6b5019195cc0b6d57dcab7f
Command used to invoke ansible:
ansible-playbook -i inventory/mycluster/hosts.yaml cluster.yml -u root --ask-pass -b --become-user=root -vv
Output of ansible run:
https://gist.github.com/mhabicht/82db919441d9552858c2c5cb2b40e2c4
The text was updated successfully, but these errors were encountered: