Bug 1399627 - satellite-sync error messages not pointing to cdn-sync
Summary: satellite-sync error messages not pointing to cdn-sync
Keywords:
Status: CLOSED DUPLICATE of bug 1413788
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Satellite Synchronization
Version: 580
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Dobes
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-29 13:08 UTC by Lukáš Hellebrandt
Modified: 2017-05-18 14:18 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-18 14:12:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Lukáš Hellebrandt 2016-11-29 13:08:10 UTC
Description of problem:
There is wrong help text in satellite-sync command.
When running satellite-sync without parameters, the "ERROR: No channels currently imported; try satellite-sync --list-channels; then satellite-sync -c chn0 -c chn1..." error message is shown. I think it should point to cdn-sync instead.
When doing as the message says and running "satellite-sync -l", the "ERROR: Can't use live synchronization from RHN. This is not supported." message is shown which is in fact correct but it would be better to suggest solution: using cdn-sync.
The same happens for "satellite-sync -c ...".
Running "satellite-sync -h" results in the same help as in Satellite 5.7.

How reproducible:
Deterministic

Steps to Reproduce:
1. satellite-sync # this points me to using "satellite-sync -l" which is wrong
2. satellite-sync -l # this tells me the action is not supported which is nice but it would be better if it suggested what to do
3. satellite-sync -c test # the same as 2)
4. satellite-sync -h # help with deprecated commands

Actual results:
Incorrectly suggesting using satellite-sync

Expected results:
Suggest cdn-sync instead

Comment 1 Tomas Lestach 2016-11-29 13:36:19 UTC
I do not think satellite-sync error messages should point to cdn-sync. The only request to change satellite-sync was to inform the user RHN is deprecated in case it should try to contact RHN. See Bug 1390504 for more info.

JanD, please, check, whether this has been fixed already.

Comment 2 Jan Dobes 2017-05-18 14:12:11 UTC
According to comment 3 in Bug 1390504 it now reports:

[root@satellite580 ~]# satellite-sync
03:22:52 Red Hat Satellite - live synchronization
03:22:52 ERROR: Live content synchronizing with RHN Classic Hosted is no longer supported.
Please use the cdn-sync command instead unless you are attempting to sync from another Satellite via Inter-Satelite-Sync (ISS), or from local content on disk via Channel Dump ISOs.

Which was improved in Bug 1413788 and it's describing cdn-sync, ISS and sync from dump as alternatives, not only cdn-sync. I'll close this bug as duplicate.

*** This bug has been marked as a duplicate of bug 1413788 ***

Comment 3 Jan Dobes 2017-05-18 14:18:56 UTC
The help page is not probably changed because parameters are same as before but there were fixes for man page in Bug 1415193.


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