Project

Profile

Help

Issue #1835

export fails when units are not downloaded

Added by mhrivnak over 4 years ago. Updated about 1 year ago.

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

Description

When a repository has been sync'd with an on_demand download policy, and one or more units have not been fully downloaded, the export distributor will fail, reporting numerous file copy operation failures. The distributor should instead fail gracefull.

A good option would be to check at the beginning of the task if all units in the repo are downloaded, using a simple database query. Fail gracefully if not. This would prevent it from attempting any copy operations.

Associated revisions

Revision 9488db3a View on GitHub
Added by mhrivnak over 4 years ago

added distributor methods to ensure all units in a repo have been downloaded

https://pulp.plan.io/issues/1835

re #1835

Revision 9488db3a View on GitHub
Added by mhrivnak over 4 years ago

added distributor methods to ensure all units in a repo have been downloaded

https://pulp.plan.io/issues/1835

re #1835

Revision 2b8093fd View on GitHub
Added by mhrivnak over 4 years ago

Export distributors now fail gracefully when files have not been downloaded

https://pulp.plan.io/issues/1835

fixes #1835

History

#2 Updated by mhrivnak over 4 years ago

  • Platform Release set to 2.8.3

#3 Updated by mhrivnak over 4 years ago

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

#4 Updated by mhrivnak over 4 years ago

https://github.com/pulp/pulp/pull/2520

There will be a pulp_rpm PR also.

#5 Updated by mhrivnak over 4 years ago

When trying to export a repo with undownloaded files, this should be the new behavior:

$ pulp-admin rpm repo export run --repo-id=rhel7
+----------------------------------------------------------------------+
                     Publishing Repository [rhel7]
+----------------------------------------------------------------------+

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

Task Failed

The repository cannot be exported because some units have not yet been
downloaded.

When trying to export a repo group with undownloaded files, this should be the new behavior:

$ pulp-admin rpm repo group export run --group-id=g1
+----------------------------------------------------------------------+
                    Exporting Repository Group [g1]
+----------------------------------------------------------------------+

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

Task Failed

The repository group cannot be exported because these repos have units that have
not yet been downloaded: rhel7, rhel7-copy

#9 Updated by mhrivnak over 4 years ago

  • Status changed from ASSIGNED to POST

#10 Updated by mhrivnak over 4 years ago

  • Priority changed from Normal to High
  • Triaged changed from No to Yes

#11 Updated by mhrivnak over 4 years ago

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

#12 Updated by pthomas@redhat.com over 4 years ago

Verified

[root@mgmt5 ~]# rpm -qa pulp-server
pulp-server-2.8.3-0.1.beta.git.68.46caf15.el7.noarch
[root@mgmt5 ~]# 

[root@mgmt5 ~]# pulp-admin rpm repo group export run --group-id grp1
+----------------------------------------------------------------------+
                   Exporting Repository Group [grp1]
+----------------------------------------------------------------------+

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

Task Failed

The repository group cannot be exported because these repos have units that are
not downloaded: zoo

[root@mgmt5 ~]# pulp-admin rpm repo export run  --repo-id zoo
+----------------------------------------------------------------------+
                      Publishing Repository [zoo]
+----------------------------------------------------------------------+

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

Task Failed

The repository cannot be exported because some units are not downloaded.

[root@mgmt5 ~]# 

#13 Updated by semyers over 4 years ago

  • Status changed from MODIFIED to 5

#14 Updated by pthomas@redhat.com over 4 years ago

  • Status changed from 5 to 6

#15 Updated by pthomas@redhat.com over 4 years ago

verified

#16 Updated by semyers over 4 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#18 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF