Red Hat Satellite 6 Transition: spacewalk-export-channels fails with SyntaxError on Red Hat Enterprise Linux 5

Solution Verified - Updated -

Environment

  • Red Hat Satellite 5.6
  • Red Hat Enterprise Linux 5.x

Issue

  • When running spacewalk-export to prepare an export for migrating to Satellite 6, fails with following error:
[root@example tmp]# spacewalk-export --export-dir=/tmp/sat6b
INFO: Processing users...
INFO: Processing system-groups...
INFO: Processing config-files...
INFO: Processing repositories...
INFO: Processing channels...
  File "/usr/bin/spacewalk-export-channels", line 195
    epoch = pkg['epoch'] if pkg['epoch'] is not None else '0'
                          ^
SyntaxError: invalid syntax
INFO: Processing activation-keys...
INFO: Processing kickstart-scripts...
INFO: Processing system-profiles...
INFO: Export-file created at /tmp/sat6b/spacewalk_export.tar.gz

Resolution

This issue is fixed with release of errata RHBA-2014-1632.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments