Bug 1403389 - when cdn-sync fails because of "21:18:45 ERROR: Cannot retrieve repository metadata (repomd.xml) for repository: .... Please verify its path and try again" it returns 0
Summary: when cdn-sync fails because of "21:18:45 ERROR: Cannot retrieve repository me...
Keywords:
Status: CLOSED DUPLICATE of bug 1397427
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Satellite Synchronization
Version: 580
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Gennadii Altukhov
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 1340444
TreeView+ depends on / blocked
 
Reported: 2016-12-09 22:40 UTC by Jan Hutař
Modified: 2017-02-27 11:07 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-13 16:23:55 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Jan Hutař 2016-12-09 22:40:50 UTC
Description of problem:
When cdn-sync fails because of "21:18:45 ERROR: Cannot retrieve repository metadata (repomd.xml) for repository: .... Please verify its path and try again" it returns exit code 0. IMO this can be a problem for automated scripts whose logic might depend on exit code of the cdn-sync.


Version-Release number of selected component (if applicable):
spacewalk-backend-cdn-2.5.3-34.el6sat.noarch


How reproducible:
rarely


Steps to Reproduce:
1. Run cdn-sync and make it return that error (maybe by setting wrong IP for cd.redhat.com in /etc/hosts?)


Actual results:
# cdn-sync -c rhel-x86_64-server-7
21:18:46 ======================================
21:18:46 | Channel: rhel-x86_64-server-7
21:18:46 ======================================
21:18:46 Sync of channel started.
21:18:46 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os
21:18:46 ERROR: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-7-server-rpms__7Server__x86_64. Please verify its path and try again
21:18:46 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/7/7.1/x86_64/kickstart
21:18:46 ERROR: Cannot retrieve repository metadata (repomd.xml) for repository: ks-rhel-x86_64-server-7-7.1. Please verify its path and try again
21:18:46 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/7/7.2/x86_64/kickstart
21:18:46 ERROR: Cannot retrieve repository metadata (repomd.xml) for repository: ks-rhel-x86_64-server-7-7.2. Please verify its path and try again
21:18:46 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/7/7.0/x86_64/kickstart
21:18:46 ERROR: Cannot retrieve repository metadata (repomd.xml) for repository: ks-rhel-x86_64-server-7-7.0. Please verify its path and try again
21:18:46 Sync of channel completed in 0:00:00.
21:18:46 Total time: 0:00:00
# echo $?
0


Expected results:
Should return non-0 exit code

Comment 2 Gennadii Altukhov 2016-12-13 16:23:55 UTC

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


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