Bugzilla – Bug 1203311
python-softlayer / xmlrpc y2038 problem
Last modified: 2023-05-09 08:31:56 UTC
While working on reproducible builds for openSUSE, I found that our python-softlayer package failed tests in 2038 with self = <xmlrpc.client.Marshaller object at 0x7fa5770e91f0>, value = 2167459529 write = <built-in method append of list object at 0x7fa577194740> def dump_long(self, value, write): if value > MAXINT or value < MININT: > raise OverflowError("int exceeds XML-RPC limits") E OverflowError: int exceeds XML-RPC limits /usr/lib64/python3.8/xmlrpc/client.py:539: OverflowError =========================== short test summary info ============================ FAILED tests/CLI/modules/cdn_tests.py::CdnTests::test_detail_account - Overfl... FAILED tests/managers/cdn_tests.py::CDNTests::test_detail_usage_metric - Over... =========== 2 failed, 1831 passed, 6 skipped, 5 deselected in 38.01s =========== To Reproduce: osc co openSUSE:Factory/python-softlayer && cd $_ osc build --noservice --trust-all-projects --vm-type=kvm \ --alternative-project=home:bmwiedemann:reproducible \ --build-opt=--vm-custom-opt="-rtc base=2038-01-20T00:00:00" \ openSUSE_Tumbleweed x86_64
Could I ask for some logs to the upstream ticket, please? I have hard time to run osc build with vm on my system (not sure, what’s wrong).
(In reply to Matej Cepl from comment #1) > Could I ask for some logs to the upstream ticket, please? I have hard time > to run osc build with vm on my system (not sure, what’s wrong). if you're using tumbleweed, you're hitting https://github.com/openSUSE/obs-build/pull/893
I think this bug should be better be resolved upstream. Of course, when the solution is found we will update our package as well.
Tests pass now with https://github.com/softlayer/softlayer-python/pull/1765 but they also expect to fail in 2038, so the underlying issue with python-xmlrpc is still unsolved.