Bug 694846 - package install returns a type error
Summary: package install returns a type error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 22
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-04-08 15:22 UTC by dgao
Modified: 2014-03-31 01:39 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-16 12:08:27 UTC
Embargoed:


Attachments (Terms of Use)

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.


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