Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2179018

Summary: [Doc] Need to correct -r option in the reposync command for RHEL8.
Product: Red Hat Satellite Reporter: Avnish Kumar <avnkumar>
Component: UpgradesAssignee: Akshay Gadhave <agadhave>
Status: CLOSED CURRENTRELEASE QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.12.0CC: agadhave, ehelms, lpramuk
Target Milestone: 6.14.0Keywords: Documentation, 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: 2023-05-29 08:26:26 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 Avnish Kumar 2023-03-16 12:59:29 UTC
Document URL: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.12/html-single/upgrading_and_updating_red_hat_satellite/index#updating_disconnected_satellite_server

Section Number and Name: 7.Enter the reposync command:

# reposync --delete --download-metadata -p ~/Satellite-repos -n \
 -r rhel-8-for-x86_64-baseos-rpms \
 -r rhel-8-for-x86_64-appstream-rpms \
 -r satellite-6.12-for-rhel-8-x86_64-rpms \
 -r satellite-maintenance-6.12-for-rhel-8-x86_64-rpms

Describe the issue: Seems like the reposync command have different option on RHEL 7 and 8 OS. For example:

RHEL7: # reposync --help
~~~
  -r REPOID, --repoid=REPOID
  specify repo ids to query, can be specified multiple times (default is all enabled)
~~~~

RHEL8: # reposync --help

~~~~
  --repo [repo], --repoid [repo]
    enable just specific repositories by an id or a glob, can be specified multiple times
~~~~

Suggestions for improvement: need to correct to:

# reposync --delete --download-metadata -p ~/Satellite-repos -n \
 --repoid rhel-8-for-x86_64-baseos-rpms \
 --repoid rhel-8-for-x86_64-appstream-rpms \
 --repoid satellite-6.12-for-rhel-8-x86_64-rpms \
 --repoid satellite-maintenance-6.12-for-rhel-8-x86_64-rpms

Additional information: Also we can correct this in Satellite 6.11 doc for RHEL8

Comment 1 Marie Hornickova 2023-03-17 09:25:53 UTC
Hello,

Thank you very much for reporting this issue.

The documentation team will share link to the updated docs in this ticket when it's done.

Thank you!

Comment 10 Lukas Pramuk 2023-05-03 15:21:33 UTC
VERIFIED.

@Upgrading and Updating Red Hat Satellite for 6.13

3.2. Updating Disconnected Satellite Server

7. Enter the reposync command: 

# reposync --delete --download-metadata -p ~/Satellite-repos -n \
 --disableplugin=foreman-protector \
 --repoid rhel-8-for-x86_64-baseos-rpms \
 --repoid rhel-8-for-x86_64-appstream-rpms \
 --repoid satellite-6.13-for-rhel-8-x86_64-rpms \
 --repoid satellite-maintenance-6.13-for-rhel-8-x86_64-rpms


>>> reposync command is correct (incl. the workaround)