Closed friendlypenguin closed 5 months ago
As I see from attached log, it's a problem to pull the image, not to push it:
2023-05-15T12:25:57.105053+00:00 DEBUG 'ansible_navigator.runner.base._event_handler' ansible-runner event handle: {'uuid': '18e79646-5163-4ee9-9f79-41b11b81ee26', 'counter': 8, 'stdout': '\x1b[0;31mfatal: [XXXXserver.XXXX.com]: FAILED! => {"changed": false, "msg": "Failed to pull image default_ee:latest"}\x1b[0m', 'start_line': 7, 'end_line': 8, 'runner_ident': '80f6a6ba-a0ec-48a0-be7a-17288378f573', 'event': 'runner_on_failed', 'pid': 26, 'created': '2023-05-15T12:25:57.103733', 'parent_uuid': '8acc70df-5274-5c6c-6393-000000000062', 'event_data': {'playbook': '/home/userx/ansible/plays/maintenance/ee_builder_issue.yml', 'playbook_uuid': '87fde179-5dd3-4fa3-8d55-0574c7875655', 'play': 'build execution environment', 'play_uuid': '8acc70df-5274-5c6c-6393-000000000060', 'play_pattern': 'ee_builder', 'task': 'push tag', 'task_uuid': '8acc70df-5274-5c6c-6393-000000000062', 'task_action': 'containers.podman.podman_image', 'resolved_action': 'containers.podman.podman_image', 'task_args': '', 'task_path': '/home/userx/ansible/plays/maintenance/ee_builder_issue.yml:6', 'host': 'XXXXserver.XXXX.com', 'remote_addr': 'XXXXserver.XXXX.com', 'res': {'msg': 'Failed to pull image default_ee:latest', 'invocation': {'module_args': {'name': 'default_ee', 'tag': 'latest', 'push': True, 'force': True, 'username': 'VALUE_SPECIFIED_IN_NO_LOG_PARAMETER', 'password': 'VALUE_SPECIFIED_IN_NO_LOG_PARAMETER', 'push_args': {'dest': 'registry.XXXX.com', 'compress': None, 'format': None, 'remove_signatures': None, 'sign_by': None, 'transport': None}, 'pull': True, 'state': 'present', 'executable': 'podman', 'build': {'force_rm': False, 'format': 'oci', 'cache': True, 'rm': True, 'annotation': None, 'file': None, 'volume': None, 'extra_args': None}, 'path': None, 'validate_certs': None, 'auth_file': None, 'ca_cert_dir': None}}, '_ansible_no_log': None, 'changed': False}, 'start': '2023-05-15T12:25:53.502655', 'end': '2023-05-15T12:25:57.103480', 'duration': 3.600825, 'ignore_errors': None, 'event_loop': None, 'uuid': '18e79646-5163-4ee9-9f79-41b11b81ee26'}}
"Failed to pull image default_ee:latest"
Not sure how --force
is related here, it tries and can't pull the image. Please mention exactly the image you try to pull. If it succeeds without --force
, it means the image is on the host, in this case podman won't try to pull it.
@friendlypenguin please reopen the issue if it happens again with additional information
/kind bug
Description
podman_images module fails to push a image to a registry when set "force: true" complaining about not beeing able to pull. It works however when "force" option is not set.
Steps to reproduce the issue:
The playbook works fine when omitting the line "force: true"
Describe the results you received: Non-working version fails with:
│ msg: Failed to pull image default_ee:latest
Describe the results you expected:
Expecting the task to succeed like when not setting "force: true"
Additional information you deem important (e.g. issue happens only occasionally): fails always
Content of the Execution Environment running the playbook:
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Playbok you run with ansible (e.g. content of
playbook.yaml
):Command line and output of ansible run with high verbosity
content of ansible-navigator logfile (with loglevel set to debug) see attached file log.txt