Project

Profile

Help

Issue #9290

pulp fails while syncing a http repository of its own

Added by tp-hlawatsch about 2 months ago. Updated about 2 months ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Debian:
Platform Release:
Target Release - Debian:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Hello everybody ,

I try to implement a staged repository workflow at the moment . I created a repository dv with a distant remote and synced with success. Now I created a repository in with the distribution of dv as remote ( http://$(hostname):8080/pulp/content/repo/deb/dv ) I switched of tls validation but when I try to sync this new remote I run into the following error

(failed; Cannot connect to host localhost:8080 ssl:default [Connect call failed ('127.0.0.1', 8080)])

In the logs I see the following error [¹]

the pulp is dockerized with the following version: pulp/pulp:3.14

Can it be that pulp is expecting alwasy a https repository even when http is configured ?

Kind regards Stephan

[¹] pulp [4d4c93f49ea94ab68f733fc22def7e53]: pulpcore.tasking.pulpcore_worker:INFO: Task 05ef9319-9854-4228-a459-4cc24eaafb45 failed (Cannot connect to host localhost:8080 ssl:default [Connect call failed ('127.0.0.1', 8080)]) pulp [4d4c93f49ea94ab68f733fc22def7e53]: pulpcore.tasking.pulpcore_worker:INFO: File "/usr/local/lib/python3.6/site-packages/pulpcore/tasking/pulpcore_worker.py", line 272, in _perform_task result = func(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/pulp_deb/app/tasks/synchronizing.py", line 124, in synchronize DebDeclarativeVersion(first_stage, repository, mirror=mirror).create() File "/usr/local/lib/python3.6/site-packages/pulpcore/plugin/stages/declarative_version.py", line 151, in create loop.run_until_complete(pipeline) File "/usr/lib64/python3.6/asyncio/base_events.py", line 484, in run_until_complete return future.result() File "/usr/local/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py", line 225, in create_pipeline await asyncio.gather(*futures) File "/usr/local/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py", line 43, in call await self.run() File "/usr/local/lib/python3.6/site-packages/pulpcore/plugin/stages/artifact_stages.py", line 181, in run pb.done += task.result() # download_count File "/usr/local/lib/python3.6/site-packages/pulpcore/plugin/stages/artifact_stages.py", line 207, in _handle_content_unit await asyncio.gather(*downloaders_for_content) File "/usr/local/lib/python3.6/site-packages/pulp_deb/app/tasks/synchronizing.py", line 137, in download await super().download() File "/usr/local/lib/python3.6/site-packages/pulpcore/plugin/stages/models.py", line 89, in download download_result = await downloader.run(extra_data=self.extra_data) File "/usr/local/lib/python3.6/site-packages/pulpcore/download/http.py", line 258, in run return await download_wrapper() File "/usr/local/lib/python3.6/site-packages/backoff/_async.py", line 133, in retry ret = await target(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/pulpcore/download/http.py", line 256, in download_wrapper return await self._run(extra_data=extra_data) File "/usr/local/lib/python3.6/site-packages/pulpcore/download/http.py", line 277, in _run self.url, proxy=self.proxy, proxy_auth=self.proxy_auth, auth=self.auth File "/usr/local/lib64/python3.6/site-packages/aiohttp/client.py", line 1117, in aenter self._resp = await self._coro File "/usr/local/lib64/python3.6/site-packages/aiohttp/client.py", line 521, in _request req, traces=traces, timeout=real_timeout File "/usr/local/lib64/python3.6/site-packages/aiohttp/connector.py", line 535, in connect proto = await self._create_connection(req, traces, timeout) File "/usr/local/lib64/python3.6/site-packages/aiohttp/connector.py", line 892, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) File "/usr/local/lib64/python3.6/site-packages/aiohttp/connector.py", line 1051, in _create_direct_connection raise last_exc File "/usr/local/lib64/python3.6/site-packages/aiohttp/connector.py", line 1032, in _create_direct_connection client_error=client_error, File "/usr/local/lib64/python3.6/site-packages/aiohttp/connector.py", line 975, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc

History

#1 Updated by quba42 about 2 months ago

Can you provide the full remote (GET) that is failing to sync? That would help.

#2 Updated by quba42 about 2 months ago

The backtrace with linebreaks:

pulp [4d4c93f49ea94ab68f733fc22def7e53]: pulpcore.tasking.pulpcore_worker:INFO:
Task 05ef9319-9854-4228-a459-4cc24eaafb45 failed (Cannot connect to host localhost:8080 ssl:default [Connect call failed ('127.0.0.1', 8080)]) 
pulp [4d4c93f49ea94ab68f733fc22def7e53]: pulpcore.tasking.pulpcore_worker:INFO: 
File "/usr/local/lib/python3.6/site-packages/pulpcore/tasking/pulpcore_worker.py", line 272, in _perform_task result = func(*args, **kwargs) 
File "/usr/local/lib/python3.6/site-packages/pulp_deb/app/tasks/synchronizing.py", line 124, in synchronize DebDeclarativeVersion(first_stage, repository, mirror=mirror).create() 
File "/usr/local/lib/python3.6/site-packages/pulpcore/plugin/stages/declarative_version.py", line 151, in create loop.run_until_complete(pipeline) 
File "/usr/lib64/python3.6/asyncio/base_events.py", line 484, in run_until_complete return future.result() 
File "/usr/local/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py", line 225, in create_pipeline await asyncio.gather(*futures) 
File "/usr/local/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py", line 43, in call await self.run() 
File "/usr/local/lib/python3.6/site-packages/pulpcore/plugin/stages/artifact_stages.py", line 181, in run pb.done += task.result() # download_count 
File "/usr/local/lib/python3.6/site-packages/pulpcore/plugin/stages/artifact_stages.py", line 207, in _handle_content_unit await asyncio.gather(*downloaders_for_content) 
File "/usr/local/lib/python3.6/site-packages/pulp_deb/app/tasks/synchronizing.py", line 137, in download await super().download() 
File "/usr/local/lib/python3.6/site-packages/pulpcore/plugin/stages/models.py", line 89, in download download_result = await downloader.run(extra_data=self.extra_data) 
File "/usr/local/lib/python3.6/site-packages/pulpcore/download/http.py", line 258, in run return await download_wrapper() 
File "/usr/local/lib/python3.6/site-packages/backoff/_async.py", line 133, in retry ret = await target(*args, **kwargs) 
File "/usr/local/lib/python3.6/site-packages/pulpcore/download/http.py", line 256, in download_wrapper return await self._run(extra_data=extra_data) 
File "/usr/local/lib/python3.6/site-packages/pulpcore/download/http.py", line 277, in _run self.url, proxy=self.proxy, proxy_auth=self.proxy_auth, auth=self.auth 
File "/usr/local/lib64/python3.6/site-packages/aiohttp/client.py", line 1117, in aenter self._resp = await self._coro 
File "/usr/local/lib64/python3.6/site-packages/aiohttp/client.py", line 521, in _request req, traces=traces, timeout=real_timeout 
File "/usr/local/lib64/python3.6/site-packages/aiohttp/connector.py", line 535, in connect proto = await self._create_connection(req, traces, timeout) 
File "/usr/local/lib64/python3.6/site-packages/aiohttp/connector.py", line 892, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) 
File "/usr/local/lib64/python3.6/site-packages/aiohttp/connector.py", line 1051, in _create_direct_connection raise last_exc 
File "/usr/local/lib64/python3.6/site-packages/aiohttp/connector.py", line 1032, in _create_direct_connection client_error=client_error, 
File "/usr/local/lib64/python3.6/site-packages/aiohttp/connector.py", line 975, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc

Please register to edit this issue

Also available in: Atom PDF