ansible-role-kubernetes icon indicating copy to clipboard operation
ansible-role-kubernetes copied to clipboard

Add KUBELET_EXTRA_ARGS step fails

Open enolfc opened this issue 2 years ago • 3 comments

On Ubuntu 20.04 with kubernetes v1.20.5, this error appears for wn:

TASK [grycap.kubernetes : Add KUBELET_EXTRA_ARGS] **************************************************************************************************************
fatal: [x.y.z.x]: FAILED! => {"msg": "No file was found when using first_found. Use errors='ignore' to allow this task to be skipped if no files are found"}

As a workaround I have commented out the step

enolfc avatar Jun 06 '22 08:06 enolfc

Hi @enolfc Could you confirm that, in the VM where it is failing, none of this directories exists?: - /etc/sysconfig/ - /etc/default/

micafer avatar Jun 06 '22 08:06 micafer

Hi @enolfc, I added a workaround to aviod the error. But in ubuntu 20.04 the directory /etc/default/ afaik must exist.

micafer avatar Jun 06 '22 08:06 micafer

It does exist:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.4 LTS
Release:	20.04
Codename:	focal
$ ls /etc/default/
amd64-microcode  bsdmainutils   cron        docker  grub.ucf-dist    irqbalance  mdadm                nfs-common  open-iscsi  rsync  useradd
apport           console-setup  cryptdisks  grub    grube            keyboard    motd-news            nss         pollinate   ssh
aufs             crda           dbus        grub.d  intel-microcode  locale      networkd-dispatcher  ntp         rpcbind     ufw

enolfc avatar Jun 06 '22 09:06 enolfc