Why does repodata generation fail for custom channel?

Solution Verified - Updated -

Issue

  • Yum update fails for updates from custom channels in Satellite
  • Taskomatic doesn't create repodata for custom channel:
INFO | jvm 1 | 2014/02/03 11:41:00 | 2014-02-03 11:41:00,273 [Thread-41169] WARN com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter - No repo will be generated for channel <channel-label>
INFO | jvm 1 | 2014/02/03 11:41:00 | 2014-02-03 11:41:00,273 [Thread-41169] INFO com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter - Removing <channel-label>
  • "noyumrepo.txt" file generated instead of channel repodata:
# ls -la /var/cache/rhn/repodata/<channel-label>
total 12
drwxr-xr-x  2 root root 4096 Jan 22 15:56 .
drwxr-xr-x 73 root root 4096 Jan 21 21:49 ..
-rw-r--r--  1 root root   53 Jan 22 15:56 noyumrepo.txt

# cat /var/cache/rhn/repodata/noyumrepo.txt
No repo will be generated for channel custom-channel.
  • Repodata regeneration fails after upgrade:
 /etc/sysconfig/rhn/satellite-upgrade/scripts/regenerate-repodata -l
Traceback (most recent call last):
  File "/etc/sysconfig/rhn/satellite-upgrade/scripts/regenerate-repodata", line 77, in <module>
    dict_label, dict_parents = __listChannels()
  File "/etc/sysconfig/rhn/satellite-upgrade/scripts/regenerate-repodata", line 45, in __listChannels
    parents[parent_channel].append(row['label'])
KeyError: 'test-rhel5u8-x86_64-rel3-01'

Environment

  • Red Hat Satellite

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.