Project

General

Profile

Bug #25715

Content View version Import is broken with Permission Denied error

Added by Chris Roberts almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
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.

Associated revisions

Revision bcccb59f (diff)
Added by Chris Roberts almost 3 years ago

Fixes #25715 - Update ISS with perm and SELinux info.

History

#1 Updated by The Foreman Bot almost 3 years ago

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

#2 Updated by John Mitsch almost 3 years ago

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

#3 Updated by Chris Roberts almost 3 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)

#4 Updated by Chris Roberts almost 3 years ago

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

#5 Updated by Chris Roberts almost 3 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF