Bug 843529
| Summary: | UI - Error is displayed when clicking on system group event when system is missing. | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Hayk Hovsepyan <hhovsepy> |
| Component: | WebUI | Assignee: | Brad Buckingham <bbuckingham> |
| Status: | CLOSED ERRATA | QA Contact: | Hayk Hovsepyan <hhovsepy> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.0.1 | CC: | achan, bbuckingham, bkearney, dmacpher, mmccune, omaciel |
| Target Milestone: | Unspecified | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
The System Engine database was not properly cleaned when a system was deleted and records like task_statuses and job_tasks remained. Accessing event history items that involved removed systems resulted in an error.This change deletes all record entries pertaining to the removed system. The Event History page now displays correctly.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-12-04 19:48:27 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Hayk Hovsepyan
2012-07-26 14:36:50 UTC
katello github pull request:
https://github.com/Katello/katello/pull/589
katello github commit:
https://github.com/Katello/katello/commit/a03bf17c6b13e57883c20ee2ebf2687fa9f5a6bf
See commit for details.
Tested on revision:
katello-cli-1.1.8-4.el6cf.noarch
katello-certs-tools-1.1.8-1.el6cf.noarch
candlepin-selinux-0.7.8-1.el6cf.noarch
qpid-cpp-server-ssl-0.14-14.el6_2.x86_64
pulp-selinux-server-1.1.12-1.el6cf.noarch
katello-glue-pulp-1.1.12-7.el6cf.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-cli-common-1.1.8-4.el6cf.noarch
candlepin-0.7.8-1.el6cf.noarch
qpid-cpp-client-ssl-0.14-14.el6_2.x86_64
katello-configure-1.1.9-3.el6cf.noarch
katello-glue-candlepin-1.1.12-7.el6cf.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
candlepin-tomcat6-0.7.8-1.el6cf.noarch
pulp-common-1.1.12-1.el6cf.noarch
qpid-cpp-server-0.14-14.el6_2.x86_64
katello-selinux-1.1.1-1.el6cf.noarch
katello-all-1.1.12-7.el6cf.noarch
python-qpid-0.14-7.el6_2.noarch
python-isodate-0.4.4-4.pulp.el6.noarch
qpid-cpp-client-0.14-14.el6_2.x86_64
pulp-1.1.12-1.el6cf.noarch
katello-common-1.1.12-7.el6cf.noarch
katello-1.1.12-7.el6cf.noarch
katello-qpid-client-key-pair-1.0-1.noarch
m2crypto-0.21.1.pulp-7.el6.x86_64
python-oauth2-1.5.170-2.pulp.el6.noarch
mod_wsgi-3.3-3.pulp.el6.x86_64
The steps to duplicate are the same.
Now it does not show Error, but it shows empty list of events. Like if there were 3 history items, it shows "Viewing 3 of 3 results" in the bottom of the page. And shows list of 3 items but with empty data, event and date field values are empty.
On CLI when executing "system_group job_history" it returns "error: 'tasks' (more in the log file /var/log/katello/client.log)".
And in client.log file shows:
2012-09-17 16:03:31,681 [ERROR][MainThread] error() @ base.py:184 - 'tasks'
2012-09-17 16:03:31,682 [ERROR][MainThread] error() @ base.py:185 - Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/katello/client/cli/base.py", line 197, in main
ret_code = super(KatelloCLI, self).main(args, command_name, parent_usage)
File "/usr/lib/python2.6/site-packages/katello/client/core/base.py", line 298, in main
return subcommand.main(self.args[1:], self.args[0], self._get_usage_line(command_name, parent_usage))
File "/usr/lib/python2.6/site-packages/katello/client/core/base.py", line 298, in main
return subcommand.main(self.args[1:], self.args[0], self._get_usage_line(command_name, parent_usage))
File "/usr/lib/python2.6/site-packages/katello/client/core/base.py", line 376, in main
return self.run()
File "/usr/lib/python2.6/site-packages/katello/client/core/system_group.py", line 188, in run
job['tasks'] = len(job['tasks'])
KeyError: 'tasks'
katello github pull request: https://github.com/Katello/katello/pull/685 katello commits: 05c941dd16ba70fa4f4c5e7d19f971bde9393e94 f5823261e7d7698e441f726f606803188896bfd0 9aac8e09c799a402ef6cf5e9916d51c423cb9a17 Verified on revision: katello-common-1.1.12-9.el6cf.noarch katello-1.1.12-9.el6cf.noarch katello-qpid-client-key-pair-1.0-1.noarch katello-cli-common-1.1.8-5.el6cf.noarch katello-cli-1.1.8-5.el6cf.noarch katello-certs-tools-1.1.8-1.el6cf.noarch katello-configure-1.1.9-4.el6cf.noarch katello-selinux-1.1.1-1.el6cf.noarch katello-glue-candlepin-1.1.12-9.el6cf.noarch katello-qpid-broker-key-pair-1.0-1.noarch katello-agent-1.1.2-1.el6cf.noarch katello-glue-pulp-1.1.12-9.el6cf.noarch katello-candlepin-cert-key-pair-1.0-1.noarch pulp-selinux-server-1.1.12-1.el6cf.noarch m2crypto-0.21.1.pulp-7.el6.x86_64 python-oauth2-1.5.170-2.pulp.el6.noarch pulp-common-1.1.12-1.el6cf.noarch pulp-1.1.12-1.el6cf.noarch katello-glue-pulp-1.1.12-9.el6cf.noarch python-isodate-0.4.4-4.pulp.el6.noarch mod_wsgi-3.3-3.pulp.el6.x86_64 Now it does not show empty history for removed systems and does not show error on CLI. 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 getting rid of 6.0.0 version since that doesn't exist |