Incorrect Padding error during k8s module operation #42605
Labels
affects_2.5
This issue/PR affects Ansible v2.5
bug
This issue/PR relates to a bug.
k8s
module
This issue/PR relates to a module.
support:community
This issue/PR relates to code supported by the Ansible community.
traceback
This issue/PR includes a traceback.
SUMMARY
When attempting to use the k8s module to deploy a ClusterRole component used in Traefik, an error is produced citing "Incorrect Padding" related to the kube config.
All related files: https://gist.github.com/Tzrlk/b5ecafe3eb5adeabeed4796b5b33f1a9
ISSUE TYPE
COMPONENT NAME
k8s
ANSIBLE VERSION
CONFIGURATION
DEFAULT_HOST_LIST(/work/ansible.cfg) = [u'/work/inventories']
DEFAULT_ROLES_PATH(/work/ansible.cfg) = [u'/work/.imported_roles', u'/work/roles']
DEFAULT_VAULT_PASSWORD_FILE(/work/ansible.cfg) = /work/.build/ansible/vault-pass
OS / ENVIRONMENT
docker container running on Windows 10 based on williamyeh/ansible:alpine3 with the following additions:
apk: gcc, musl-dev, python2-dev
pip:* ansible, boto3, botocore, openshift
additionally: heptio-authenticator-aws
Ansible project directory is mounted to /work inside the container.
STEPS TO REPRODUCE
Using the files from https://gist.github.com/Tzrlk/b5ecafe3eb5adeabeed4796b5b33f1a9, attempt to deploy to the running cluster via
docker run --rm -v /c/code/devops/ansible://work -e http_proxy=http://proxy:3128/ -e https_proxy=http://proxy:3128/ -e no_proxy=127.0.0.1,localhost,local tzrlk/ansible ansible-playbook -vvv playbooks/k8s_virginia.yml
EXPECTED RESULTS
Expected the resource to be applied in the same manner as
kubectl apply -f
ACTUAL RESULTS
Instead, an "Incorrect Padding" error was produced, and playbook execution halted.
The text was updated successfully, but these errors were encountered: