Project

General

Profile

Actions

Bug #25715

closed

Content View version Import is broken with Permission Denied error

Added by Chris Roberts over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

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.

Actions #1

Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/609 added
Actions #2

Updated by John Mitsch over 5 years ago

  • Target version set to Katello 3.10.1
  • Triaged changed from No to Yes
Actions #3

Updated by Chris Roberts about 5 years ago

  • Pull request https://github.com/theforeman/theforeman.org/pull/1273 added
  • Pull request deleted (https://github.com/Katello/hammer-cli-katello/pull/609)
Actions #4

Updated by Chris Roberts about 5 years ago

  • Project changed from Katello to Website
  • Category deleted (Inter Server Sync)
  • Target version deleted (Katello 3.10.1)
Actions #5

Updated by Chris Roberts about 5 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF