Hello list,
i'm testing pulp-v1-stable on CentOS6 and RHEL6 (pymongo-1.9-6,
mongodb-2.0.7-1).
currently i'm at the sync part and tried to specify a sync timeout, but it
didn't work:
$ pulp-admin repo sync --id centos5-x86_64-addons --start 2012-09-08T03:00:00
--interval P1D
--exclude distribution --exclude errata --timeout PT12H --threads=1
error: operation failed: InvalidDocument: Cannot encode object:
datetime.timedelta(0, 43200)
$ pulp-admin repo sync --id centos5-x86_64-addons --start 2012-09-08T03:00:00
--interval P1D
--exclude distribution --exclude errata --timeout bogus --threads=1
error: Improperly formatted timeout: bogus
the format seems to be right, but i don't know what the "Cannot encode object"
message means.
from pulp.log:
2012-09-13 18:33:10,177 2626:139776048269056:
pulp.server.webservices.controllers.decorators:ERROR:
decorators:52 Traceback (most recent call last):
File
"/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/decorators.py",
line
48, in report_error
return method(self, *args, **kwargs)
File
"/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/decorators.py",
line
127, in _auth_decorator
value = method(self, *args, **kwargs)
File
"/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/repositories.py",
line
757, in PUT
scheduled_sync.update_repo_schedule(repo, new_schedule, new_options)
File "/usr/lib/python2.6/site-packages/pulp/server/api/scheduled_sync.py",
line 249, in
update_repo_schedule
safe=True)
File "/usr/lib/python2.6/site-packages/pulp/server/db/connection.py", line
80, in retry
return method(*args, **kwargs)
File "/usr/lib64/python2.6/site-packages/pymongo/collection.py", line 363, in
update
spec, document, safe, kwargs), safe)
File "/usr/lib64/python2.6/site-packages/pymongo/message.py", line 94, in
update
data += bson.BSON.encode(doc)
File "/usr/lib64/python2.6/site-packages/bson/__init__.py", line 462, in
encode
return cls(_dict_to_bson(document, check_keys))
InvalidDocument: Cannot encode object: datetime.timedelta(0, 43200)
Can anyone help?
regards,
-ap
_______________________________________________
Pulp-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pulp-list