Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-16541

Content View version Import is broken with Permission Denied error

XMLWordPrintable

    • 0
    • False
    • Critical
    • None
    • None
    • None
    • None

      Description of problem:

      Importing CV version from exported tar breaks things as below:
      ```

      1. hammer -u admin -p passwd content-view version import --export-tar abc/export-5.tar --organization-id 5
        [................................................................................................] [100%]
        No new packages.
        Error: RPM1004: Error retrieving metadata: [Errno 2] No such file or directory: '//abc/export-5/puppetOrg/content_views/puppetCV/2.0/custom/yumProd/yumRepo/repodata/repomd.xml'
        Could not import the content view.:
        bear-4.1-1.noarch.rpm not available in repository yumRepo
        ```

      Version-Release number of selected component (if applicable):
      Satellite 6.5.0 snap 7

      How reproducible:
      Always

      Steps to Reproduce:
      1. Create Product with yum repository contents.
      2. Create CV, add above product to the CV.
      3. Publish the CV
      4. Export the above CV version.
      5. Attempt to import the CV version contents from the exported directory.
      ```

      1. hammer -u admin -p passwd content-view version import --export-tar abc/export-5.tar --organization-id 5
        ```

      Actual results:
      Import fails with Permission denied error:
      ```
      Error: RPM1004: Error retrieving metadata: [Errno 2] No such file or directory: '//abc/export-5/puppetOrg/content_views/puppetCV/2.0/custom/yumProd/yumRepo/repodata/repomd.xml'
      Could not import the content view.:
      bear-4.1-1.noarch.rpm not available in repository yumRepo

      ```

      Expected results:
      Import of Content View version should be successful.

      Additional info:

              jira-bugzilla-migration RH Bugzilla Integration
              mdolezel@redhat.com Marie Hornickova
              RH Bugzilla Integration RH Bugzilla Integration
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: