Sync error with ansible squeezer module

Hi ,

I have configured pulp operator in openshift .Route is accessible and pulp status manual pulp creation command works . With ansible squeezer module , I am getting below error .

Code:

[root@yd3248.danskenet.net TEST:playbook]# cat pulp_repo.yml

  • hosts: all
    tasks:
    • name: Make repository present
      pulp.squeezer.rpm_repository:
      name: local_demo_repo
      username: admin
      pulp_url: “route url”
      password:
      state: present

Error
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: socket.timeout: The read operation timed out
fatal: [localhost]: FAILED! => {“changed”: false, “module_stderr”: “Shared connection to localhost closed.\r\n”, “module_stdout”: “Traceback (most recent call last):\r\n File “/tmp/ansible_pulp.squeezer.rpm_repository_payload_t96gkpfi/ansible_pulp.squeezer.rpm_repository_payload.zip/ansible_collections/pulp/squeezer/plugins/module_utils/openapi.py”, line 79, in load_api\r\nFileNotFoundError: [Errno 2] No such file or directory: ‘/root/.cache/squeezer/https___pulp.apps.az3-ost00.danskenet.net_/api.json’\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File “/root/.ansible/tmp/ansible-tmp-1715935367.3072984-1097707-45958407448274/AnsiballZ_rpm_repository.py”, line 107, in \r\n _ansiballz_main()\r\n File “/root/.ansible/tmp/ansible-tmp-1715935367.3072984-1097707-45958407448274/AnsiballZ_rpm_repository.py”, line 99, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File “/root/.ansible/tmp/ansible-tmp-1715935367.3072984-1097707-45958407448274/AnsiballZ_rpm_repository.py”, line 47, in invoke_module\r\n runpy.run_module(mod_name=‘ansible_collections.pulp.squeezer.plugins.modules.rpm_repository’, init_globals=dict(_module_fqn=‘ansible_collections.pulp.squeezer.plugins.modules.rpm_repository’, _modlib_path=modlib_path),\r\n File “/usr/lib64/python3.9/runpy.py”, line 225, in run_module\r\n return _run_module_code(code, init_globals, run_name, mod_spec)\r\n File “/usr/lib64/python3.9/runpy.py”, line 97, in _run_module_code\r\n _run_code(code, mod_globals, init_globals,\r\n File “/usr/lib64/python3.9/runpy.py”, line 87, in _run_code\r\n exec(code, run_globals)\r\n File “/tmp/ansible_pulp.squeezer.rpm_repository_payload_t96gkpfi/ansible_pulp.squeezer.rpm_repository_payload.zip/ansible_collections/pulp/squeezer/plugins/modules/rpm_repository.py”, line 110, in \r\n File “/tmp/ansible_pulp.squeezer.rpm_repository_payload_t96gkpfi/ansible_pulp.squeezer.rpm_repository_payload.zip/ansible_collections/pulp/squeezer/plugins/modules/rpm_repository.py”, line 93, in main\r\n File “/tmp/ansible_pulp.squeezer.rpm_repository_payload_t96gkpfi/ansible_pulp.squeezer.rpm_repository_payload.zip/ansible_collections/pulp/squeezer/plugins/module_utils/pulp.py”, line 72, in enter\r\n File “/tmp/ansible_pulp.squeezer.rpm_repository_payload_t96gkpfi/ansible_pulp.squeezer.rpm_repository_payload.zip/ansible_collections/pulp/squeezer/plugins/module_utils/openapi.py”, line 65, in init\r\n File “/tmp/ansible_pulp.squeezer.rpm_repository_payload_t96gkpfi/ansible_pulp.squeezer.rpm_repository_payload.zip/ansible_collections/pulp/squeezer/plugins/module_utils/openapi.py”, line 84, in load_api\r\n File “/tmp/ansible_pulp.squeezer.rpm_repository_payload_t96gkpfi/ansible_pulp.squeezer.rpm_repository_payload.zip/ansible_collections/pulp/squeezer/plugins/module_utils/openapi.py”, line 107, in _download_api\r\n File “/tmp/ansible_pulp.squeezer.rpm_repository_payload_t96gkpfi/ansible_pulp.squeezer.rpm_repository_payload.zip/ansible/module_utils/urls.py”, line 1557, in open\r\n File “/usr/lib64/python3.9/urllib/request.py”, line 214, in urlopen\r\n return opener.open(url, data, timeout)\r\n File “/usr/lib64/python3.9/urllib/request.py”, line 517, in open\r\n response = self._open(req, data)\r\n File “/usr/lib64/python3.9/urllib/request.py”, line 534, in _open\r\n result = self._call_chain(self.handle_open, protocol, protocol +\r\n File “/usr/lib64/python3.9/urllib/request.py”, line 494, in _call_chain\r\n result = func(*args)\r\n File “/tmp/ansible_pulp.squeezer.rpm_repository_payload_t96gkpfi/ansible_pulp.squeezer.rpm_repository_payload.zip/ansible/module_utils/urls.py”, line 602, in https_open\r\n File “/usr/lib64/python3.9/urllib/request.py”, line 1350, in do_open\r\n r = h.getresponse()\r\n File “/usr/lib64/python3.9/http/client.py”, line 1377, in getresponse\r\n response.begin()\r\n File “/usr/lib64/python3.9/http/client.py”, line 320, in begin\r\n version, status, reason = self._read_status()\r\n File “/usr/lib64/python3.9/http/client.py”, line 281, in _read_status\r\n line = str(self.fp.readline(_MAXLINE + 1), “iso-8859-1”)\r\n File “/usr/lib64/python3.9/socket.py”, line 704, in readinto\r\n return self._sock.recv_into(b)\r\n File “/usr/lib64/python3.9/ssl.py”, line 1275, in recv_into\r\n return self.read(nbytes, buffer)\r\n File “/usr/lib64/python3.9/ssl.py”, line 1133, in read\r\n return self._sslobj.read(len, buffer)\r\nsocket.timeout: The read operation timed out\r\n”, “msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”, “rc”: 1}

I see its working now .

2 Likes

Do you in any circumstance happen to know what changed?