Bug 694846

Summary: package install returns a type error
Product: [Retired] Pulp Reporter: dgao
Component: z_otherAssignee: Jason Connor <jconnor>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: mmccune, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 22   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 12:08:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 647488    

Description dgao 2011-04-08 15:22:18 UTC
Seems like the latest scheduling work borked it.


[root@pulp-nightly pulp]# pulp-admin package install --consumerid=fred -n patb
error: operation failed: TypeError: a float is required


==> pulp.log <==
2011-04-08 11:08:43,427 [ERROR][Dummy-5] report_error() @ base.py:56 - Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/base.py", line 52, in report_error
    return method(self, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/base.py", line 131, in _auth_decorator
    value = method(self, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/consumers.py", line 543, in POST
    return action(id)
  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/consumers.py", line 403, in installpackages
    scheduled_time = datetime.utcfromtimestamp(data["scheduled_time"])
TypeError: a float is required

Comment 1 Jason Connor 2011-04-13 16:03:59 UTC
fixed pushed

Comment 2 Jay Dobies 2011-04-13 19:23:00 UTC
Fixed in build 0.163.

Comment 3 Preethi Thomas 2011-04-14 15:05:17 UTC
verified


[root@preethi ~]# pulp-admin package install --consumerid=pulp-client -n zsh
Created task id: 2d26c39e-66aa-11e0-803e-002564a85a58
Task is scheduled for: 2011-04-14 11:16
Waiting: [\] 
[[['zsh-4.3.10-5.fc14.x86_64', 'zsh-4.3.10-5.fc14.x86_64'], None]] installed on pulp-client

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

pulp-0.0.223-4.

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

pulp-0.0.223-4.