Actions
Issue #3145
closedstrange error when feed_url is not a valid manifest
Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
Ticket moved to GitHub: "pulp/pulp_file/605":https://github.com/pulp/pulp_file/issues/605
I tried to sync with this importer config:
{
'name': 'foo',
'download_policy': 'immediate',
'sync_mode': 'mirror',
'validate': True,
'ssl_validation': True,
'feed_url': 'https://repos.fedorapeople.org/repos/pulp/pulp/fixtures/file/',
}
Astute readers have noticed that I forgot to append PULP_MANIFEST to the feed_url. User error, so I expect a sync to fail.
BUT the sync fails with this unexpected traceback, which suggests the importer attempted to create the directory "/repos":
Nov 20 20:44:15 pulp3.dev celery[3685]: [2017-11-20 20:44:15,261: ERROR/ForkPoolWorker-1] Task failed : [ff4fdfa2-2db7-4322-be1e-d4aefa07fe51]
Nov 20 20:44:15 pulp3.dev celery[3685]: [2017-11-20 20:44:15,267: ERROR/ForkPoolWorker-1] Task pulpcore.app.tasks.importer.sync[ff4fdfa2-2db7-4322-be1e-d4aefa07fe51] raised unexpected: PermissionError(13, 'Permi
Nov 20 20:44:15 pulp3.dev celery[3685]: Traceback (most recent call last):
Nov 20 20:44:15 pulp3.dev celery[3685]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.5/site-packages/celery/app/trace.py", line 374, in trace_task
Nov 20 20:44:15 pulp3.dev celery[3685]: R = retval = fun(*args, **kwargs)
Nov 20 20:44:15 pulp3.dev celery[3685]: File "/home/vagrant/devel/pulp/pulpcore/pulpcore/tasking/tasks.py", line 272, in __call__
Nov 20 20:44:15 pulp3.dev celery[3685]: return super(UserFacingTask, self).__call__(*args, **kwargs)
Nov 20 20:44:15 pulp3.dev celery[3685]: File "/home/vagrant/.virtualenvs/pulp/lib64/python3.5/site-packages/celery/app/trace.py", line 629, in __protected_call__
Nov 20 20:44:15 pulp3.dev celery[3685]: return self.run(*args, **kwargs)
Nov 20 20:44:15 pulp3.dev celery[3685]: File "/home/vagrant/devel/pulp/pulpcore/pulpcore/app/tasks/importer.py", line 83, in sync
Nov 20 20:44:15 pulp3.dev celery[3685]: importer.sync()
Nov 20 20:44:15 pulp3.dev celery[3685]: File "/home/vagrant/devel/pulp_file/pulp_file/app/models.py", line 71, in sync
Nov 20 20:44:15 pulp3.dev celery[3685]: Synchronizer(self).run()
Nov 20 20:44:15 pulp3.dev celery[3685]: File "/home/vagrant/devel/pulp_file/pulp_file/app/models.py", line 107, in run
Nov 20 20:44:15 pulp3.dev celery[3685]: self._fetch_manifest()
Nov 20 20:44:15 pulp3.dev celery[3685]: File "/home/vagrant/devel/pulp_file/pulp_file/app/models.py", line 131, in _fetch_manifest
Nov 20 20:44:15 pulp3.dev celery[3685]: download()
Nov 20 20:44:15 pulp3.dev celery[3685]: File "/home/vagrant/devel/pulp/plugin/pulpcore/plugin/download/futures/single.py", line 287, in __call__
Nov 20 20:44:15 pulp3.dev celery[3685]: self._attempt()
Nov 20 20:44:15 pulp3.dev celery[3685]: File "/home/vagrant/devel/pulp/plugin/pulpcore/plugin/download/futures/single.py", line 207, in _attempt
Nov 20 20:44:15 pulp3.dev celery[3685]: with self.writer:
Nov 20 20:44:15 pulp3.dev celery[3685]: File "/home/vagrant/devel/pulp/plugin/pulpcore/plugin/download/futures/writer.py", line 70, in __enter__
Nov 20 20:44:15 pulp3.dev celery[3685]: self.open()
Nov 20 20:44:15 pulp3.dev celery[3685]: File "/home/vagrant/devel/pulp/plugin/pulpcore/plugin/download/futures/writer.py", line 103, in open
Nov 20 20:44:15 pulp3.dev celery[3685]: self._mkdir()
Nov 20 20:44:15 pulp3.dev celery[3685]: File "/home/vagrant/devel/pulp/plugin/pulpcore/plugin/download/futures/writer.py", line 136, in _mkdir
Nov 20 20:44:15 pulp3.dev celery[3685]: os.makedirs(_dir)
Nov 20 20:44:15 pulp3.dev celery[3685]: File "/usr/lib64/python3.5/os.py", line 231, in makedirs
Nov 20 20:44:15 pulp3.dev celery[3685]: makedirs(head, mode, exist_ok)
Nov 20 20:44:15 pulp3.dev celery[3685]: File "/usr/lib64/python3.5/os.py", line 231, in makedirs
Nov 20 20:44:15 pulp3.dev celery[3685]: makedirs(head, mode, exist_ok)
Nov 20 20:44:15 pulp3.dev celery[3685]: File "/usr/lib64/python3.5/os.py", line 231, in makedirs
Nov 20 20:44:15 pulp3.dev celery[3685]: makedirs(head, mode, exist_ok)
Nov 20 20:44:15 pulp3.dev celery[3685]: File "/usr/lib64/python3.5/os.py", line 231, in makedirs
Nov 20 20:44:15 pulp3.dev celery[3685]: makedirs(head, mode, exist_ok)
Nov 20 20:44:15 pulp3.dev celery[3685]: File "/usr/lib64/python3.5/os.py", line 241, in makedirs
Nov 20 20:44:15 pulp3.dev celery[3685]: mkdir(name, mode)
Nov 20 20:44:15 pulp3.dev celery[3685]: PermissionError: [Errno 13] Permission denied: '/repos'
Actions