Bug 2070254

Summary: Repository export not working due to out-of-date API cache
Product: Red Hat Satellite Reporter: Gary Scarborough <gscarbor>
Component: HammerAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.10.4CC: ahumbe, apatel, aruzicka, ehelms, iballou, jpasqual, kgaikwad, ofedoren, paji, rabajaj, saydas
Target Milestone: UnspecifiedKeywords: WorkAround
Target Release: UnusedFlags: ofedoren: needinfo? (ehelms)
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: 2023-08-14 08:50:12 UTC 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 Gary Scarborough 2022-03-30 18:01:59 UTC
Description of problem:

The new addition of repository export added to content-export does not seem to be working.

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

Satellite 6.10.4


How reproducible:

Always

Steps to Reproduce:
1. Upgrade to 6.10.4
2. Try to export a repository
3.

Actual results:

Export fails with an error (see below)

Expected results:

Export to succeed.

Additional info:


[root@sat610 ~]# hammer repository list --fields Id,Name
---|---------------------------------------------------------------------------------
ID | NAME
---|---------------------------------------------------------------------------------
1  | Red Hat Ansible Engine 2.9 RPMs for Red Hat Enterprise Linux 7
Server x86_64
2  | Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server
3  | Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8
4  | Red Hat Enterprise Linux 8 for x86_64 - BaseOS RPMs 8
5  | Red Hat Satellite Capsule 6.10 for RHEL 7 Server RPMs x86_64
6  | Red Hat Satellite Maintenance 6 for RHEL 7 Server RPMs x86_64
7  | Red Hat Satellite Tools 6.10 for RHEL 7 Server RPMs x86_64
8  | Red Hat Satellite Tools 6.10 for RHEL 8 x86_64 RPMs
9  | Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7
Server x86_6...
---|---------------------------------------------------------------------------------
[root@sat610 ~]# hammer content-export complete repository --product-id 1
Could not export the repository:
  Error: Unknown option name 'option_id'.
[root@sat610 ~]# hammer content-export complete repository --name "Red
Hat Ansible Engine 2.9 RPMs for Red Hat Enterprise Linux 7 Server
x86_64"
Could not export the repository:
  Error: Unknown option name 'option_id'.
[root@sat610 ~]#

Comment 13 Adam Ruzicka 2023-08-14 08:50:12 UTC
This should be resolved in Satellite 6.12 and later. If you run into the issue again, feel free to reopen.