Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-23738

Cannot pull from offline smart PyPi repo

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: 4 - Normal
    • Resolution: Done
    • Affects Version/s: 6.21.0, 7.7.3
    • Fix Version/s: 7.17.4
    • Component/s: None
    • Labels:
      None
    • Severity:
      Medium
    • Team:
      dev-artifactory-packages

      Description

      Description:

      The remote repository offline feature indicates that when attempting to pull from the remote repo, only artifacts in the remote-cache repo will be available. However, when the remote-cache repo is filled via a smart repo push replication, PyPi packages cannot be pulled when "offline" is checked. An elaborated explanation & walkthrough can be found below:

       Setup:

      Two Artifactory instances (RT-A & RT-B).

      RT-A contains a single local PyPi repository: pypi-local
      RT-B contains a virtual PyPi repository that includes a smart remote PyPi repository (pypi-remote) which resolves packages from RT-A’s pypi-local.

      RT-B’s pypi-remote is configured with push replication which automatically caches artifacts from RT-A’s pypi-local.

       

      Steps to reproduce:

      Test 1:
      a) Push a Python package to RT-A pypi-local
      b) Force replication in RT-B pypi-remote
      c) Make sure that the package is now cached in RT-B pypi-remote-cache
      d) Attempt to pull the package from RT-B virtual repo
      e) Package is pulled successfully

      Test 2:
      a) Push a Python package to RT-A pypi-local
      b) Force replication in RT-B pypi-remote
      c) Make sure that the package is now cached in RT-B pypi-remote-cache
      d) Set RT-B pypi-remote to “offline”
      e) Attempt to pull the package from RT-B virtual repo
      f) Although the package exists in the RT-B’s pypi-remote-cache repo, it cannot be pulled

       

      Additional note:

      As there was a similar Docker bug which got fixed in Artifactory 7.7.0 (RTFACT-21554), I have attempted the same tests on this version, but encountered the same behavior.

       

        Attachments

          Activity

            People

            Assignee:
            shahafg Shahaf Golan
            Reporter:
            joeyn Joey Naor
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Sync Status

                Connection: RTFACT Sync
                RTMID-23738 -
                SYNCHRONIZED
                • Last Sync Date: