Bug 2167768

Summary: Misleading error while exporting a content view version in a Syncable format for Docker/Ansible type repository
Product: Red Hat Satellite Reporter: Sneha Arya <snarya>
Component: Inter Satellite SyncAssignee: satellite6-bugs <satellite6-bugs>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.13.0CC: ahumbe, paji, vsedmik
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sneha Arya 2023-02-07 13:56:20 UTC
Description of problem:

Misleading error while exporting a content view version in a Syncable format for Docker/Ansible type repository

Version-Release number of selected component (if applicable):
Satellite 6.13

How reproducible:
Always

Steps to Reproduce:

1. Login to the Satellite WebUI
2. Create a custom container repository with "docker type"
3. Ensure to change the download policy of the container repository to immediate
4. Sync the container repository
5. Create a Content view and add the container repository
5. Publish the Content view version
7. Login to the Satellite CLI and export the CV version as follows:
 
 
Actual results:

 # hammer content-export complete version --content-view="CV" --version=1.0 --organization="RedHat" --format=syncable
[..........................................................................................................................................................................................................] [100%]
Unable to access/write to '/var/lib/pulp/exports/RedHat/CV/1.0/2023-02-06XYZ-03-58-05-30'. Generated '/var/lib/pulp/exports/RedHat/metadata-11.json' instead. This file is necessary to perform an import.

 
Expected results:

An error/warning message saying Docker/Ansible repository type are not supported for syncable format.