Bug 2179018 - [Doc] Need to correct -r option in the reposync command for RHEL8.
Summary: [Doc] Need to correct -r option in the reposync command for RHEL8.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Upgrades
Version: 6.12.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 6.14.0
Assignee: Akshay Gadhave
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-16 12:59 UTC by Avnish Kumar
Modified: 2023-09-09 16:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-29 08:26:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-16521 0 None None None 2023-03-16 13:01:32 UTC

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)


Note You need to log in before you can comment on or make changes to this bug.