lava-dashboard-tool bundles raises python exception

Bug #1175591 reported by Milosz Wasilewski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LAVA Tool
Fix Released
Medium
Senthil Kumaran S

Bug Description

Preconditions:
Bundle stream on LAVA dashboard exists and contains some bundles.

Steps to reproduce:
lava-dashboard-tool bundles --dashboard-url=http://<email address hidden>/path/RPC2/ /bundle/stream/path/

Outcome:
Traceback (most recent call last):
  File "/usr/bin/lava-dashboard-tool", line 9, in <module>
    load_entry_point('lava-dashboard-tool==0.7', 'console_scripts', 'lava-dashboard-tool')()
  File "/usr/lib/python2.7/dist-packages/lava_dashboard_tool/main.py", line 37, in main
    run_with_dispatcher_class(LaunchControlDispatcher)
  File "/usr/lib/python2.7/dist-packages/lava_tool/dispatcher.py", line 45, in run_with_dispatcher_class
    raise cls.run()
  File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py", line 147, in run
    raise SystemExit(cls().dispatch(args))
  File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py", line 137, in dispatch
    return command.invoke()
  File "/usr/lib/python2.7/dist-packages/lava_dashboard_tool/commands.py", line 443, in invoke
    return self.invoke_remote()
  File "/usr/lib/python2.7/dist-packages/lava_dashboard_tool/commands.py", line 628, in invoke_remote
    self.renderer.render(self.server.bundles(self.args.PATHNAME))
  File "/usr/lib/python2.7/dist-packages/lava_dashboard_tool/commands.py", line 303, in render
    self._render_dataset(dataset)
  File "/usr/lib/python2.7/dist-packages/lava_dashboard_tool/commands.py", line 283, in _render_dataset
    dataset, columns, maxlen = self._analyze_dataset(dataset)
  File "/usr/lib/python2.7/dist-packages/lava_dashboard_tool/commands.py", line 180, in _analyze_dataset
    row[column] = self.row_formatter[column](row[column])
  File "/usr/lib/python2.7/dist-packages/lava_dashboard_tool/commands.py", line 613, in <lambda>
    'uploaded_on': lambda x: x.strftime("%Y-%m-%d %H:%M:%S")},
AttributeError: DateTime instance has no attribute 'strftime'

Changed in lava-tool:
importance: Undecided → Medium
assignee: nobody → Senthil Kumaran S (stylesen)
Changed in lava-tool:
milestone: none → 2013.05
status: New → In Progress
Revision history for this message
Senthil Kumaran S (stylesen) wrote :

This is fixed in lava-tool and the following is a sample run:

<snip>
$ lava-tool bundles --dashboard-url=http://stylesen@192.168.1.50/RPC2/ /anonymous/stylesen/
                                                    Bundles
===============================================================================================================
                  SHA1 | File name | Uploader | Upload date | Deserialized?
---------------------------------------------------------------------------------------------------------------
2105c6e04d085fbe8c459b53c4e7bd5279e5b506 | qemu-test | (anonymous) | 20130225T00:47:29 | yes
4eb37d9c56d00f59fd3e12de4d9bade2177611fd | qemu-test | (anonymous) | 20130225T01:06:03 | yes
6eb3388ed97c19e66784f10c957a6265d3b8731d | qemu-test | (anonymous) | 20130225T01:17:58 | yes
717134703009b3ccba9e7cc7825038ac2bb32c28 | qemu-test | (anonymous) | 20130225T01:19:25 | yes
f48b0318ac8c15e38b05d880b33119c01bd8f6e5 | qemu-test | (anonymous) | 20130225T01:25:56 | yes
</snip>

Changed in lava-tool:
status: In Progress → Fix Committed
Revision history for this message
Senthil Kumaran S (stylesen) wrote :

New version (0.7.1) of lava-tool is available in pypi archive which has a fix for this bug.

Changed in lava-tool:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.