Description of problem: Docker registry password with special character as configured in all.yml "ceph_docker_registry_password: 123abc&'()" podman login fails when installing with error "ValueError: No closing quotation" Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. set registry.redhat.io password with ' 2. set password in all.yml ceph_docker_registry_password 3. ansible-playbook -i <hosts> site-docker.yml Actual results: ansible-playbook fails Expected results: podman log in successful with special character password Additional info:
Tried multiple formats of the password configurations in all.yml, like 123abc\&\'\(\) with no luck. From /roles/ceph-container-common/tasks/registry.yml , Enclose variable in double quotes like "{{ ceph_docker_registry_password }}" has resolved the issue Change from --- - name: container registry authentication command: '{{ container_binary }} login -u {{ ceph_docker_registry_username }} -p {{ ceph_docker_registry_password }} {{ ceph_docker_registry }}' changed_when: false no_log: false --- to --- - name: container registry authentication command: '{{ container_binary }} login -u {{ ceph_docker_registry_username }} -p "{{ ceph_docker_registry_password }}" {{ ceph_docker_registry }}' changed_when: false no_log: false --- In addition setting no_log: true may protect the password
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Red Hat Ceph Storage 4.2 Security and Bug Fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:0081