Bug 674591 - pulp-admin consumer history is entirely broken
Summary: pulp-admin consumer history is entirely broken
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jay Dobies
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-02-02 15:21 UTC by Jay Dobies
Modified: 2011-08-16 12:21 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 12:08:03 UTC


Attachments (Terms of Use)

Description Jay Dobies 2011-02-02 15:21:05 UTC
pulp-admin consumer history --id guardian
+------------------------------------------+
              Consumer History
+------------------------------------------+
Traceback (most recent call last):
  File "/usr/bin/pulp-admin", line 7, in <module>
    execfile(__file__)
  File "/home/jdob/code/pulp/bin/pulp-admin", line 147, in <module>
    admin.main()
  File "/home/jdob/code/pulp/src/pulp/client/cli/base.py", line 98, in main
    command.main(args[1:])
  File "/home/jdob/code/pulp/src/pulp/client/core/base.py", line 118, in main
    action.main(args[1:])
  File "/home/jdob/code/pulp/src/pulp/client/core/base.py", line 231, in main
    self.run()
  File "/home/jdob/code/pulp/src/pulp/client/core/consumer.py", line 344, in run
    (event_type, json_utils.parse_date(entry['timestamp']), entry['originator'])
  File "/home/jdob/code/pulp/src/pulp/client/json_utils.py", line 32, in parse_date
    return datetime.utcfromtimestamp(float(date_string))
TypeError: float() argument must be a string or a number

Comment 1 Jay Dobies 2011-02-02 16:36:45 UTC
commit	c173d6197f18e1aac6839a3903aac37f93f60620
tree	604fa297c06b8e48639030b45be851a2110a6330


674591 - Changed how timestamps are stored.


src/pulp/server/db/model/resource.py

Comment 2 Jay Dobies 2011-02-02 20:07:11 UTC
Fixed in 0.134.

Comment 3 Preethi Thomas 2011-02-03 14:33:50 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.134-1.fc14.noarch


[root@preethi ~]# pulp-client consumer history --id=preethi
+------------------------------------------+
              Consumer History
+------------------------------------------+

Event Type              Consumer Created         
Timestamp               2011-02-03 14:34:50      
Originator              admin                    

[root@preethi ~]# pulp-admin consumer history --id=preethi
+------------------------------------------+
              Consumer History
+------------------------------------------+

Event Type              Consumer Created         
Timestamp               2011-02-03 14:34:50      
Originator              admin

Comment 4 Preethi Thomas 2011-08-16 12:08:03 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 5 Preethi Thomas 2011-08-16 12:21:21 UTC
Closing with Community Release 15

pulp-0.0.223-4.


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