Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1156266 - spacewalk-export --entities channels fails
Summary: spacewalk-export --entities channels fails
Keywords:
Status: CLOSED DUPLICATE of bug 1140593
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Transitions
Version: 6.0.4
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: Unspecified
Assignee: Tomas Lestach
QA Contact: Lukas Pramuk
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-24 03:43 UTC by Chris Roberts
Modified: 2019-02-15 13:49 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-24 14:01:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Updated scrit (11.54 KB, text/x-python)
2014-10-24 03:43 UTC, Chris Roberts
no flags Details

Description Chris Roberts 2014-10-24 03:43:35 UTC
Created attachment 950183 [details]
Updated scrit

Description of problem:


running:  spacewalk-export --entities users,repositories,channels

fails with:

INFO: Processing users...
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


How reproducible:


Steps to Reproduce:
1. on sat 5.6 server run spacewalk-export with all variables
2.
3.

Actual results:
  File "/usr/bin/spacewalk-export-channels", line 195
    epoch = pkg['epoch'] if pkg['epoch'] is not None else '0'
                          ^
SyntaxError: invalid syntax


Expected results:
For export to run correctly and export everything

The customer I am working with has fixed the script and the updated one that runs is attached to this bz.

Comment 1 RHEL Program Management 2014-10-24 04:02:54 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Tomas Lestach 2014-10-24 14:01:28 UTC
Hello Chris,

you didn't fill what version of spacewalk-utils the customer uses.

I suspect, he runs Satellite 5.6 on RHEL5 and uses spacewalk-utils < 2.0.2-20.
It that's true, look at Bug 1140593. The issue has already been fixed and the updated spacewalk-utils package is available in the Satellite 5.6 channel.

Closing as duplicate.

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


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