Bug 1412868
| Summary: | UI crashes when showing "system information" if a service has a timestamp of "null" | |||
|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Anil Dhingra <adhingra> | |
| Component: | python-cinderclient | Assignee: | Eric Harney <eharney> | |
| Status: | CLOSED ERRATA | QA Contact: | Ola Pavlenko <opavlenk> | |
| Severity: | high | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 9.0 (Mitaka) | CC: | adhingra, aortega, athomas, eharney, jruzicka, mrunge, rdopiera, srevivo | |
| Target Milestone: | --- | Keywords: | ZStream | |
| Target Release: | 9.0 (Mitaka) | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | python-cinderclient-1.6.0-2.el7ost | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1414806 (view as bug list) | Environment: | ||
| Last Closed: | 2017-03-09 17:54:00 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: | ||||
| Bug Depends On: | 1414806 | |||
| Bug Blocks: | ||||
|
Description
Anil Dhingra
2017-01-13 02:06:11 UTC
I couldn't reproduce this bug. With an null timestamp, my horizon just displays "-" in that column. I'm afraid that the cause for this crash may be actually different. It would be helpful to have any logs or traceback from the crash. I think I managed to reproduce the error, but the problem is actually not in Horizon, but in python-cinderclient:
...
File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 381, in get_data
data = self.get_raw_data(datum)
File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 363, in get_raw_data
"%(obj)s.") % {'attr': self.transform, 'obj': datum}
File "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 178, in __mod__
return six.text_type(self) % rhs
File "/usr/lib/python2.7/site-packages/cinderclient/v2/services.py", line 25, in __repr__
return "<Service: %s>" % self.service
File "/usr/lib/python2.7/site-packages/cinderclient/openstack/common/apiclient/base.py", line 505, in __getattr__
raise AttributeError(k)
TemplateSyntaxError: service
It looks like it's referencing a non-existing attribute "service" on the service object.
I can see the problematic line of code has been fixed. 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. https://rhn.redhat.com/errata/RHBA-2017-0478.html |