Actions
Bug #25715
closedContent View version Import is broken with Permission Denied error
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Description
Description of problem:
Importing CV version from exported tar breaks things as below:```
- 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
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.
```
- 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.
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
Updated by John Mitsch over 5 years ago
- Target version set to Katello 3.10.1
- Triaged changed from No to Yes
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)
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)
Updated by Chris Roberts about 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset theforemanorg|bcccb59fd902d840ebf6a14657cb86cf135e14f3.
Actions