Project

Profile

Help

Issue #1909

Repository syncs fail

Added by Ichimonji10 over 4 years ago. Updated 9 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Docker:
2.0.1
Platform Release:
2.8.5
Target Release - Docker:
2.0.2
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

It should be possible to create a docker repository with a feed and then sync that repository, like so:

pulp-admin docker repo create --feed https://registry-1.docker.io --repo-id ichi10 --upstream-name library/busybox
pulp-admin docker repo sync run --repo-id ichi10

This fails on Pulp 2.9. Here's an example:

# pulp-admin docker repo create --feed https://registry-1.docker.io --repo-id ichi10 --upstream-name library/busybox
Repository [ichi10] successfully created

# pulp-admin docker repo sync run --repo-id ichi10
+----------------------------------------------------------------------+
                   Synchronizing Repository [ichi10]
+----------------------------------------------------------------------+

This command may be exited via ctrl+c without affecting the request.

Downloading manifests
[-]

Task Failed

'super' object has no attribute 'process_main'

Here's some log output from a RHEL 7 system:

# journalctl -u 'pulp*' | tail -n 33
May 11 12:28:01 pulp.example.com pulp[15568]: celery.worker.job:INFO: Task pulp.server.async.tasks._queue_reserved_task[770a99d1-2cc9-4df0-9a8b-70427ddc5d29] succeeded in 0.0383236650005s: None
May 11 12:28:01 pulp.example.com pulp[15455]: requests.packages.urllib3.connectionpool:INFO: Starting new HTTPS connection (1): auth.docker.io
May 11 12:28:01 pulp.example.com pulp[15455]: requests.packages.urllib3.connectionpool:INFO: Starting new HTTPS connection (2): registry-1.docker.io
May 11 12:28:02 pulp.example.com pulp[15455]: requests.packages.urllib3.connectionpool:INFO: Starting new HTTPS connection (3): registry-1.docker.io
May 11 12:28:07 pulp.example.com pulp[15455]: pulp.server.async.tasks:INFO: Task failed : [d0852596-069b-4526-a56d-43177fd67cf3]
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552) Task pulp.server.managers.repo.sync.sync[d0852596-069b-4526-a56d-43177fd67cf3] raised unexpected: AttributeError("'super' object has no attribute 'process_main'",)
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552) Traceback (most recent call last):
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)   File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)     R = retval = fun(*args, **kwargs)
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)   File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 473, in __call__
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)     return super(Task, self).__call__(*args, **kwargs)
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)   File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 103, in __call__
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)     return super(PulpTask, self).__call__(*args, **kwargs)
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)   File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 437, in __protected_call__
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)     return self.run(*args, **kwargs)
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)   File "/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py", line 760, in sync
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)     sync_report = sync_repo(transfer_repo, conduit, call_config)
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)   File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 658, in wrap_f
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)     return f(*args, **kwargs)
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)   File "/usr/lib/python2.7/site-packages/pulp_docker/plugins/importers/importer.py", line 84, in sync_repo
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)     return self.sync_step.process_lifecycle()
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 562, in process_lifecycle
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)     super(PluginStep, self).process_lifecycle()
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 159, in process_lifecycle
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)     step.process()
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 249, in process
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)     self._process_block()
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 293, in _process_block
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)     self.process_main()
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)   File "/usr/lib/python2.7/site-packages/pulp_docker/plugins/importers/sync.py", line 341, in process_main
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552)     super(TokenAuthDownloadStep).process_main(item)
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:ERROR: (15370-71552) AttributeError: 'super' object has no attribute 'process_main'
May 11 12:28:07 pulp.example.com pulp[15370]: celery.worker.job:INFO: Task pulp.server.async.tasks._release_resource[16879076-a05e-4bf1-a44c-0bbdf5b71084] succeeded in 0.00446204000036s: None

For what it's worth:

# rpm -qa | grep -i pulp
python-pulp-common-2.9.0-0.1.beta.git.149.1053750.el7.noarch
python-kombu-3.0.33-5.pulp.el7.noarch
python-pulp-puppet-common-2.9.0-0.1.beta.git.19.415ab2a.el7.noarch
pulp-selinux-2.9.0-0.1.beta.git.149.1053750.el7.noarch
pulp-admin-client-2.9.0-0.1.beta.git.149.1053750.el7.noarch
python-pulp-ostree-common-1.2.0-0.1.beta.git.20.76b914b.el7.noarch
pulp-ostree-admin-extensions-1.2.0-0.1.beta.git.20.76b914b.el7.noarch
python-isodate-0.5.0-4.pulp.el7.noarch
python-pulp-docker-common-2.1.0-0.1.beta.git.31.5cc801a.el7.noarch
python-pulp-rpm-common-2.9.0-0.1.beta.git.90.21fe769.el7.noarch
python-pulp-repoauth-2.9.0-0.1.beta.git.149.1053750.el7.noarch
pulp-rpm-plugins-2.9.0-0.1.beta.git.90.21fe769.el7.noarch
pulp-puppet-plugins-2.9.0-0.1.beta.git.19.415ab2a.el7.noarch
python-pulp-bindings-2.9.0-0.1.beta.git.149.1053750.el7.noarch
pulp-puppet-admin-extensions-2.9.0-0.1.beta.git.19.415ab2a.el7.noarch
pulp-rpm-admin-extensions-2.9.0-0.1.beta.git.90.21fe769.el7.noarch
pulp-ostree-plugins-1.2.0-0.1.beta.git.20.76b914b.el7.noarch
python-pulp-python-common-1.2.0-0.1.beta.git.22.72b7835.el7.noarch
pulp-python-admin-extensions-1.2.0-0.1.beta.git.22.72b7835.el7.noarch
python-pulp-streamer-2.9.0-0.1.beta.git.149.1053750.el7.noarch
python-pulp-oid_validation-2.9.0-0.1.beta.git.149.1053750.el7.noarch
pulp-server-2.9.0-0.1.beta.git.149.1053750.el7.noarch
pulp-docker-plugins-2.1.0-0.1.beta.git.31.5cc801a.el7.noarch
python-pulp-client-lib-2.9.0-0.1.beta.git.149.1053750.el7.noarch
pulp-docker-admin-extensions-2.1.0-0.1.beta.git.31.5cc801a.el7.noarch
pulp-python-plugins-1.2.0-0.1.beta.git.22.72b7835.el7.noarch

Associated revisions

Revision f6605490 View on GitHub
Added by Austin Macdonald over 4 years ago

Fix syntax error in docker sync

closes #1909

Revision f6605490 View on GitHub
Added by Austin Macdonald over 4 years ago

Fix syntax error in docker sync

closes #1909

Revision f6605490 View on GitHub
Added by Austin Macdonald over 4 years ago

Fix syntax error in docker sync

closes #1909

Revision f6605490 View on GitHub
Added by Austin Macdonald over 4 years ago

Fix syntax error in docker sync

closes #1909

Revision c6d873c7 View on GitHub
Added by Austin Macdonald over 4 years ago

Fix syntax error in docker sync

closes #1909

Revision c6d873c7 View on GitHub
Added by Austin Macdonald over 4 years ago

Fix syntax error in docker sync

closes #1909

Revision c6d873c7 View on GitHub
Added by Austin Macdonald over 4 years ago

Fix syntax error in docker sync

closes #1909

Revision c6d873c7 View on GitHub
Added by Austin Macdonald over 4 years ago

Fix syntax error in docker sync

closes #1909

History

#1 Updated by Ichimonji10 over 4 years ago

Here's one method for reproducing this failure with Pulp Smash: python -m unittest2 pulp_smash.tests.docker.cli.test_sync_publish.SyncUnnamespacedV2TestCase

#2 Updated by Ichimonji10 over 4 years ago

May be related to https://pulp.plan.io/issues/1893. I'm unsure.

#3 Updated by amacdona@redhat.com over 4 years ago

  • Status changed from NEW to POST
  • Assignee set to amacdona@redhat.com
  • Triaged changed from No to Yes

#4 Updated by Anonymous over 4 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#5 Updated by semyers over 4 years ago

  • Version - Docker changed from master to 2.0.1
  • Platform Release set to 2.8.4
  • Target Release - Docker set to 2.0.2

#6 Updated by semyers over 4 years ago

  • Status changed from MODIFIED to 5

#7 Updated by semyers over 4 years ago

  • Platform Release changed from 2.8.4 to 2.8.5

#8 Updated by semyers over 4 years ago

  • Status changed from 5 to MODIFIED

#9 Updated by semyers over 4 years ago

  • Status changed from MODIFIED to 5

#10 Updated by semyers over 4 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#11 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF