Project

Profile

Help

Issue #1480

closed

Iso repo publish failing

Added by pthomas@redhat.com over 8 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Master
Platform Release:
2.8.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Repo publish for iso repo is failing.

[root@ibm-x3550m3-08 ~]# pulp-admin iso repo create --repo-id iso --feed https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/test_file_repo/
Successfully created repository [iso]

[root@ibm-x3550m3-08 ~]# pulp-admin iso repo sync run --repo-id iso
+----------------------------------------------------------------------+
                     Synchronizing Repository [iso]
+----------------------------------------------------------------------+

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

The Pulp Manifest was downloaded successfully.

Downloading 3 ISOs...
[==================================================] 100%
ISOs: 3/3    Data: 10.2 MB/10.2 MB    Avg: 874.7 kB/s

Successfully downloaded 3 ISOs.

Task Succeeded

Task Failed

The distributor iso_distributor indicated a failed response when publishing
repository iso.

[root@ibm-x3550m3-08 ~]# 
<pre>
Jan 06 15:35:27 ibm-x3550m3-08.lab.eng.brq.redhat.com pulp[30490]: pulp.plugins.file.distributor:INFO: Beginning publish for repository <568d260f2fb59472c180e225>
Jan 06 15:35:27 ibm-x3550m3-08.lab.eng.brq.redhat.com pulp[30490]: pulp.plugins.file.distributor:ERROR: (30490-20256) 'Repository' object has no attribute 'working_dir'
Jan 06 15:35:27 ibm-x3550m3-08.lab.eng.brq.redhat.com pulp[30490]: pulp.plugins.file.distributor:ERROR: (30490-20256) Traceback (most recent call last):
Jan 06 15:35:27 ibm-x3550m3-08.lab.eng.brq.redhat.com pulp[30490]: pulp.plugins.file.distributor:ERROR: (30490-20256)   File "/usr/lib/python2.7/site-packages/pulp/plugins/file/distributor.py", line 79, in publish_repo
Jan 06 15:35:27 ibm-x3550m3-08.lab.eng.brq.redhat.com pulp[30490]: pulp.plugins.file.distributor:ERROR: (30490-20256)     build_dir = os.path.join(repo.working_dir, BUILD_DIRNAME)
Jan 06 15:35:27 ibm-x3550m3-08.lab.eng.brq.redhat.com pulp[30490]: pulp.plugins.file.distributor:ERROR: (30490-20256) AttributeError: 'Repository' object has no attribute 'working_dir'
Jan 06 15:35:27 ibm-x3550m3-08.lab.eng.brq.redhat.com pulp[30490]: pulp.server.controllers.repository:INFO: {'state': 'failed', 'error_message': "'Repository' object has no attribute 'working_dir'", 'traceback': 'Traceback (most recent call last):\n  File "/usr/lib/python2.7/site-packages/pulp/plugins/file/distributor.py", line 79, in publish_repo\n    build_dir = os.path.join(repo.working_dir, BUILD_DIRNAME)\nAttributeError: \'Repository\' object has no attribute \'working_dir\'\n', 'state_times': {'failed': '2016-01-06T14:35:27', 'not_started': '2016-01-06T14:35:27', 'in_progress': '2016-01-06T14:35:27'}}
Jan 06 15:35:27 ibm-x3550m3-08.lab.eng.brq.redhat.com pulp[30490]: pulp.server.controllers.repository:ERROR: (30490-20256) Exception caught from plugin during publish for repo [iso]
Jan 06 15:35:27 ibm-x3550m3-08.lab.eng.brq.redhat.com pulp[30490]: pulp.server.controllers.repository:ERROR: (30490-20256) Traceback (most recent call last):
Jan 06 15:35:27 ibm-x3550m3-08.lab.eng.brq.redhat.com pulp[30490]: pulp.server.controllers.repository:ERROR: (30490-20256)   File "/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py", line 926, in _do_publish
Jan 06 15:35:27 ibm-x3550m3-08.lab.eng.brq.redhat.com pulp[30490]: pulp.server.controllers.repository:ERROR: (30490-20256)     distributor_id=dist_id, summary=publish_report.summary
Jan 06 15:35:27 ibm-x3550m3-08.lab.eng.brq.redhat.com pulp[30490]: pulp.server.controllers.repository:ERROR: (30490-20256) PulpCodedException: The distributor iso_distributor indicated a failed response when publishing repository iso.
Jan 06 15:35:27 ibm-x3550m3-08.lab.eng.brq.redhat.com pulp[30490]: pulp.server.async.tasks:INFO: Task failed : [afb6455e-c34a-489d-acd5-ff32c3967260] : The distributor iso_distributor indicated a failed response when publishing repository iso.

/pre>


Related issues

Related to RPM Support - Issue #1493: Iso repo creation doesn't describe its stepsCLOSED - WONTFIXActions
Actions #1

Updated by rbarlow over 8 years ago

  • Project changed from Pulp to RPM Support
Actions #2

Updated by mhrivnak over 8 years ago

  • Priority changed from Normal to High
  • Severity changed from 2. Medium to 3. High
  • Platform Release set to 2.8.0
  • Triaged changed from No to Yes
Actions #3

Updated by semyers over 8 years ago

  • Related to Issue #1493: Iso repo creation doesn't describe its steps added
Actions #4

Updated by mhrivnak over 8 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to mhrivnak

Added by mhrivnak over 8 years ago

Revision 81543bdf | View on GitHub

file distributor no longer fails to get working directory

This is a partial fix for issue 1480. In pulp 2.8, following the mongoengine refactor, the working directory for plugins is obtained in a different way. This code didn't get converted until now.

re #1480 https://pulp.plan.io/issues/1480

Added by mhrivnak over 8 years ago

Revision 81543bdf | View on GitHub

file distributor no longer fails to get working directory

This is a partial fix for issue 1480. In pulp 2.8, following the mongoengine refactor, the working directory for plugins is obtained in a different way. This code didn't get converted until now.

re #1480 https://pulp.plan.io/issues/1480

Added by mhrivnak over 8 years ago

Revision 3e51d3ce | View on GitHub

iso distributor no longer fails with wrong type of Repository object

This is the remaining work outside platform to fix #1480. The conversion from old to new style repository was apparently not complete. It was simplest and safest to go back to passing around the old style object, especially since the workflow passes back and forth between the parent and child classes, in platform and this plugin respectively.

re #1480 https://pulp.plan.io/issues/1480

Actions #6

Updated by mhrivnak over 8 years ago

  • Status changed from POST to MODIFIED
Actions #7

Updated by rbarlow about 8 years ago

  • Status changed from MODIFIED to 5
Actions #8

Updated by pthomas@redhat.com about 8 years ago

  • Status changed from 5 to 6

verified
[root@mgmt5 ~]# rpm -qa |grep pulp
python-pulp-repoauth-2.8.0-0.9.rc.el7.noarch
pulp-rpm-plugins-2.8.0-0.9.rc.el7.noarch
pulp-docker-plugins-2.0.0-0.9.rc.el7.noarch
pulp-selinux-2.8.0-0.9.rc.el7.noarch
python-pulp-puppet-common-2.8.0-0.9.rc.el7.noarch
pulp-admin-client-2.8.0-0.9.rc.el7.noarch
pulp-rpm-admin-extensions-2.8.0-0.9.rc.el7.noarch
pulp-puppet-handlers-2.8.0-0.9.rc.el7.noarch
python-pulp-agent-lib-2.8.0-0.9.rc.el7.noarch
pulp-nodes-common-2.8.0-0.9.rc.el7.noarch
pulp-consumer-client-2.8.0-0.9.rc.el7.noarch
pulp-puppet-consumer-extensions-2.8.0-0.9.rc.el7.noarch
pulp-docker-admin-extensions-2.0.0-0.9.rc.el7.noarch
pulp-puppet-plugins-2.8.0-0.9.rc.el7.noarch
pulp-rpm-yumplugins-2.8.0-0.9.rc.el7.noarch
pulp-test-package-0.2.1-1.fc11.x86_64
python-pulp-common-2.8.0-0.9.rc.el7.noarch
python-pulp-rpm-common-2.8.0-0.9.rc.el7.noarch
python-pulp-docker-common-2.0.0-0.9.rc.el7.noarch
python-pulp-oid_validation-2.8.0-0.9.rc.el7.noarch
pulp-agent-2.8.0-0.9.rc.el7.noarch
pulp-nodes-admin-extensions-2.8.0-0.9.rc.el7.noarch
python-pulp-streamer-2.8.0-0.9.rc.el7.noarch
python-kombu-3.0.33-4.pulp.el7.noarch
python-pulp-bindings-2.8.0-0.9.rc.el7.noarch
python-pulp-client-lib-2.8.0-0.9.rc.el7.noarch
pulp-puppet-admin-extensions-2.8.0-0.9.rc.el7.noarch
pulp-rpm-handlers-2.8.0-0.9.rc.el7.noarch
pulp-server-2.8.0-0.9.rc.el7.noarch
pulp-rpm-consumer-extensions-2.8.0-0.9.rc.el7.noarch
pulp-nodes-parent-2.8.0-0.9.rc.el7.noarch
python-isodate-0.5.0-4.pulp.el7.noarch
[root@mgmt5 ~]#

[root@mgmt5 ~]# pulp-admin iso repo create --repo-id iso --feed https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/test_file_repo/
Successfully created repository [iso]

[root@mgmt5 ~]# pulp-admin iso repo sync run --repo-id iso
--------------------------------------------------------------------
Synchronizing Repository [iso]
--------------------------------------------------------------------

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

The Pulp Manifest was downloaded successfully.

Downloading 3 ISOs...
[==================================================] 100%
ISOs: 3/3 Data: 10.2 MB/10.2 MB Avg: 1.7 MB/s

Successfully downloaded 3 ISOs.

Task Succeeded

The repository was successfully published.

Task Succeeded

[root@mgmt5 ~]#

Actions #9

Updated by dkliban@redhat.com about 8 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE
Actions #11

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF