Uploaded image for project: 'Automation Hub'
  1. Automation Hub
  2. AAH-1243

Synchronization using authenticated proxy is failing again

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 2.1.2
    • 2.1
    • Backend
    • 4.5.0 Sprint 7

      Using proxy authentication returns 407. We already faced a similar error that was fixed but it is coming again. There is any possibility to add some testing to avoid this problem happening again? 

       

      "versions": [
      {"component": "core","version": "3.15.2"}
      ,
      {"component": "container","version": "2.8.1"}
      ,
      {"component": "ansible","version": "0.10.1"}
      ,
      {"component": "galaxy","version": "4.4.0"}
      

       

       

          "pulp_href": "/pulp/api/v3/remotes/ansible/collection/ea014577-96ce-4cf5-8b00-9ed573ae99d0/",
          "download_concurrency": 10,
          "proxy_url": "http://192.168.122.212:3128",
          "proxy_username": "admin",
          "write_only_fields": [
              {
                  "name": "client_key",
                  "is_set": false
              },
              {
                  "name": "token",
                  "is_set": false
              },
              {
                  "name": "password",
                  "is_set": false
              },
              {
                  "name": "client_key",
                  "is_set": false
              },
              {
                  "name": "proxy_password",
                  "is_set": true
              }
          ], 

       

      Jan  7 03:51:24 ah21 gunicorn[1104]: pulp [-]:  - - [07/Jan/2022:08:51:24 +0000] "POST /api/galaxy/content/community/v3/sync/ HTTP/1.0" 200 47 "https://192.168.122.252/ui/repositories?page_size=10&tab=remote" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]: pulp []: pulpcore.tasking.pulpcore_worker:INFO: Starting task 47f38ab2-9c72-4e52-8449-cd3f5aa4a5ef
      Jan  7 03:51:24 ah21 gunicorn[1104]: pulp [-]:  - - [07/Jan/2022:08:51:24 +0000] "GET /api/galaxy/_ui/v1/remotes/?tab=remote&offset=0&limit=10 HTTP/1.0" 200 9117 "https://192.168.122.252/ui/repositories?page_size=10&tab=remote" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]: Giving up download_wrapper(...) after 1 tries (aiohttp.client_exceptions.ClientHttpProxyError: 407, message='Proxy Authentication Required', url=URL('http://192.168.122.212:3128'))
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]: pulp []: backoff:ERROR: Giving up download_wrapper(...) after 1 tries (aiohttp.client_exceptions.ClientHttpProxyError: 407, message='Proxy Authentication Required', url=URL('http://192.168.122.212:3128'))
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]: pulp []: pulpcore.tasking.pulpcore_worker:INFO: Task 47f38ab2-9c72-4e52-8449-cd3f5aa4a5ef failed (407, message='Proxy Authentication Required', url=URL('http://192.168.122.212:3128'))
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]: pulp []: pulpcore.tasking.pulpcore_worker:INFO:   File "/usr/lib/python3.8/site-packages/pulpcore/tasking/pulpcore_worker.py", line 323, in _perform_task
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:    result = func(*args, **kwargs)
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:  File "/usr/lib/python3.8/site-packages/pulp_ansible/app/tasks/collections.py", line 137, in sync
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:    first_stage = CollectionSyncFirstStage(
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:  File "/usr/lib/python3.8/site-packages/pulp_ansible/app/tasks/collections.py", line 402, in {}init{}
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:    self.should_sync = not optimize or asyncio.get_event_loop().run_until_complete(
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:  File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:    return future.result()
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:  File "/usr/lib/python3.8/site-packages/pulp_ansible/app/tasks/collections.py", line 755, in _should_we_sync
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:    root, api_version = await self._get_root_api(self.remote.url)
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:  File "/usr/lib/python3.8/site-packages/async_lru.py", line 237, in wrapped
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:    return (yield from asyncio.shield(fut, loop=_loop))
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:  File "/usr/lib/python3.8/site-packages/pulp_ansible/app/tasks/collections.py", line 419, in _get_root_api
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:    api_data = parse_metadata(await downloader.run())
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:  File "/usr/lib/python3.8/site-packages/pulpcore/download/http.py", line 247, in run
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:    return await download_wrapper()
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:  File "/usr/lib/python3.8/site-packages/backoff/_async.py", line 133, in retry
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:    ret = await target(*args, **kwargs)
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:  File "/usr/lib/python3.8/site-packages/pulpcore/download/http.py", line 245, in download_wrapper
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:    return await self._run(extra_data=extra_data)
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:  File "/usr/lib/python3.8/site-packages/pulp_ansible/app/downloaders.py", line 86, in _run
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:    return await super()._run(extra_data=extra_data)
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:  File "/usr/lib/python3.8/site-packages/pulpcore/download/http.py", line 265, in _run
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:    async with self.session.get(
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:  File "/usr/lib64/python3.8/site-packages/aiohttp/client.py", line 1117, in {}aenter{}
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:    self._resp = await self._coro
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:  File "/usr/lib64/python3.8/site-packages/aiohttp/client.py", line 520, in _request
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:    conn = await self._connector.connect(
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:  File "/usr/lib64/python3.8/site-packages/aiohttp/connector.py", line 535, in connect
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:    proto = await self._create_connection(req, traces, timeout)
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:  File "/usr/lib64/python3.8/site-packages/aiohttp/connector.py", line 890, in _create_connection
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:    _, proto = await self._create_proxy_connection(req, traces, timeout)
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:  File "/usr/lib64/python3.8/site-packages/aiohttp/connector.py", line 1128, in _create_proxy_connection
      Jan  7 03:51:24 ah21 pulpcore-worker[1108]:    raise ClientHttpProxyError(

       

              cspealma@redhat.com Clara Spealman (Inactive)
              rhn-support-rafsanch Rafael Minguillón Sánchez
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: