Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Attempts to list sync plans via the "sync_plan list" command results in a traceback error, due to a programming error. This fix corrects date column header name. A list of created sync plans now displays when the command is issued.
DescriptionGarik Khachikyan
2012-05-17 13:32:24 UTC
Description of problem:
recent katello latest ends up with tracebac kon "sync_plan list --org ACME_Corporation"
---
error: expected string or buffer (more in the log file)
---
... and log explains:
---
2012-05-17 15:25:45,920 [ERROR][MainThread] error() @ base.py:188 - expected string or buffer
2012-05-17 15:25:45,950 [ERROR][MainThread] error() @ base.py:189 - Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/katello/client/cli/base.py", line 237, in main
return command.main(command_args)
File "/usr/lib/python2.6/site-packages/katello/client/core/base.py", line 150, in main
return action.main(args[1:])
File "/usr/lib/python2.6/site-packages/katello/client/core/base.py", line 400, in main
return self.run()
File "/usr/lib/python2.6/site-packages/katello/client/core/sync_plan.py", line 75, in run
self.printer.print_items(plans)
File "/usr/lib/python2.6/site-packages/katello/client/utils/printer.py", line 323, in print_items
self.__printer_strategy.print_items(self.__heading, self.__filtered_columns(), items)
File "/usr/lib/python2.6/site-packages/katello/client/utils/printer.py", line 172, in print_items
column_widths = self._calc_column_widths(items, columns)
File "/usr/lib/python2.6/site-packages/katello/client/utils/printer.py", line 257, in _calc_column_widths
widths[column['attr_name']] = self._column_width(items, column)
File "/usr/lib/python2.6/site-packages/katello/client/utils/printer.py", line 241, in _column_width
for column_value in [u_str(self._get_column_value(column, item)) for item in items]:
File "/usr/lib/python2.6/site-packages/katello/client/utils/printer.py", line 79, in _get_column_value
value = value_format_func(value)
File "/usr/lib/python2.6/site-packages/katello/client/core/utils.py", line 134, in format_date
t = iso8601.parse(date)
File "/usr/lib64/python2.6/site-packages/_xmlplus/utils/iso8601.py", line 20, in parse
m = __datetime_rx.match(s)
TypeError: expected string or buffer
---
Version-Release number of selected component (if applicable):
python-oauth2-1.5.170-2.pulp.el6.noarch
candlepin-0.5.32-1.el6.noarch
katello-glue-foreman-0.2.35-1.git.52.1ef9503.el6.noarch
pulp-1.0.4-1.el6.noarch
katello-repos-testing-0.2.4-1.el6.noarch
qpid-cpp-client-ssl-0.14-14.el6_2.x86_64
katello-qpid-broker-key-pair-1.0-1.noarch
katello-agent-1.0.3-1.git.0.cccd0b4.el6.noarch
mod_wsgi-3.3-3.pulp.el6.x86_64
pulp-common-1.0.4-1.el6.noarch
katello-common-0.2.35-1.git.52.1ef9503.el6.noarch
pulp-selinux-server-1.0.4-1.el6.noarch
katello-qpid-client-key-pair-1.0-1.noarch
katello-cli-0.2.33-1.git.47.57dfe29.el6.noarch
katello-cli-tests-0.2.15-1.git.6.e9265a5.el6.noarch
qpid-cpp-server-0.14-14.el6_2.x86_64
katello-glue-pulp-0.2.35-1.git.52.1ef9503.el6.noarch
katello-0.2.35-1.git.52.1ef9503.el6.noarch
katello-configure-0.2.20-1.git.46.ee20972.el6.noarch
candlepin-tomcat6-0.5.32-1.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-cli-common-0.2.33-1.git.47.57dfe29.el6.noarch
m2crypto-0.21.1.pulp-7.el6.x86_64
katello-certs-tools-1.1.6-1.git.0.4878f30.el6.noarch
python-qpid-0.14-7.el6_2.noarch
qpid-cpp-client-0.14-14.el6_2.x86_64
katello-glue-candlepin-0.2.35-1.git.52.1ef9503.el6.noarch
katello-selinux-0.2.4-1.git.0.b03a73e.el6.noarch
katello-repos-0.2.4-1.el6.noarch
qpid-cpp-server-ssl-0.14-14.el6_2.x86_64
How reproducible:
always
Steps to Reproduce:
1.sync_plan create --name sp1 --date 2012-05-17 --interval hourly
2.sync_plan list
3.
Actual results:
failure
Expected results:
no failures, list of created sync plans should be returned.
Additional info:
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHSA-2012-1543.html
Description of problem: recent katello latest ends up with tracebac kon "sync_plan list --org ACME_Corporation" --- error: expected string or buffer (more in the log file) --- ... and log explains: --- 2012-05-17 15:25:45,920 [ERROR][MainThread] error() @ base.py:188 - expected string or buffer 2012-05-17 15:25:45,950 [ERROR][MainThread] error() @ base.py:189 - Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/katello/client/cli/base.py", line 237, in main return command.main(command_args) File "/usr/lib/python2.6/site-packages/katello/client/core/base.py", line 150, in main return action.main(args[1:]) File "/usr/lib/python2.6/site-packages/katello/client/core/base.py", line 400, in main return self.run() File "/usr/lib/python2.6/site-packages/katello/client/core/sync_plan.py", line 75, in run self.printer.print_items(plans) File "/usr/lib/python2.6/site-packages/katello/client/utils/printer.py", line 323, in print_items self.__printer_strategy.print_items(self.__heading, self.__filtered_columns(), items) File "/usr/lib/python2.6/site-packages/katello/client/utils/printer.py", line 172, in print_items column_widths = self._calc_column_widths(items, columns) File "/usr/lib/python2.6/site-packages/katello/client/utils/printer.py", line 257, in _calc_column_widths widths[column['attr_name']] = self._column_width(items, column) File "/usr/lib/python2.6/site-packages/katello/client/utils/printer.py", line 241, in _column_width for column_value in [u_str(self._get_column_value(column, item)) for item in items]: File "/usr/lib/python2.6/site-packages/katello/client/utils/printer.py", line 79, in _get_column_value value = value_format_func(value) File "/usr/lib/python2.6/site-packages/katello/client/core/utils.py", line 134, in format_date t = iso8601.parse(date) File "/usr/lib64/python2.6/site-packages/_xmlplus/utils/iso8601.py", line 20, in parse m = __datetime_rx.match(s) TypeError: expected string or buffer --- Version-Release number of selected component (if applicable): python-oauth2-1.5.170-2.pulp.el6.noarch candlepin-0.5.32-1.el6.noarch katello-glue-foreman-0.2.35-1.git.52.1ef9503.el6.noarch pulp-1.0.4-1.el6.noarch katello-repos-testing-0.2.4-1.el6.noarch qpid-cpp-client-ssl-0.14-14.el6_2.x86_64 katello-qpid-broker-key-pair-1.0-1.noarch katello-agent-1.0.3-1.git.0.cccd0b4.el6.noarch mod_wsgi-3.3-3.pulp.el6.x86_64 pulp-common-1.0.4-1.el6.noarch katello-common-0.2.35-1.git.52.1ef9503.el6.noarch pulp-selinux-server-1.0.4-1.el6.noarch katello-qpid-client-key-pair-1.0-1.noarch katello-cli-0.2.33-1.git.47.57dfe29.el6.noarch katello-cli-tests-0.2.15-1.git.6.e9265a5.el6.noarch qpid-cpp-server-0.14-14.el6_2.x86_64 katello-glue-pulp-0.2.35-1.git.52.1ef9503.el6.noarch katello-0.2.35-1.git.52.1ef9503.el6.noarch katello-configure-0.2.20-1.git.46.ee20972.el6.noarch candlepin-tomcat6-0.5.32-1.el6.noarch katello-candlepin-cert-key-pair-1.0-1.noarch katello-cli-common-0.2.33-1.git.47.57dfe29.el6.noarch m2crypto-0.21.1.pulp-7.el6.x86_64 katello-certs-tools-1.1.6-1.git.0.4878f30.el6.noarch python-qpid-0.14-7.el6_2.noarch qpid-cpp-client-0.14-14.el6_2.x86_64 katello-glue-candlepin-0.2.35-1.git.52.1ef9503.el6.noarch katello-selinux-0.2.4-1.git.0.b03a73e.el6.noarch katello-repos-0.2.4-1.el6.noarch qpid-cpp-server-ssl-0.14-14.el6_2.x86_64 How reproducible: always Steps to Reproduce: 1.sync_plan create --name sp1 --date 2012-05-17 --interval hourly 2.sync_plan list 3. Actual results: failure Expected results: no failures, list of created sync plans should be returned. Additional info: