Monday, 2024-05-13

seongsoochoHi timburke , I try to upgrade liberasurecode . I downloaded the source code of  liberasurecode (1.6.2)  and build, installed in my proxy server.  After that, I run a command  `python3 -c 'import pyeclib.ec_iface as ec; print(ec.LIBERASURECODE_VERSION)` but, It said the version is 1.4.0 .  ( liberasurce code already installed with apt, 1.5.0) Am I missing something?04:40
opendevreviewMatthew Oliver proposed openstack/swift master: wip: shard replication sync points  https://review.opendev.org/c/openstack/swift/+/90506407:25
opendevreviewYan Xiao proposed openstack/swift master: stats: API for native labeled metrics  https://review.opendev.org/c/openstack/swift/+/90988213:56
clarkbseongsoocho: your pyeclib installation may link against a specific version of liberasurecode. You may need to rebuild pyeclib with the updated liberasurecode installed15:23
seongsoochooh.. I relinked all symlink of liberasurecode in /lib, /usr/lib but.. I should rebuild pyeclib too..15:25
timburkeseongsoocho, that's really strange! since pyeclib 1.5.0, it should get the liberasurecode version dynamically (see https://github.com/openstack/pyeclib/commit/47493a0f), provided liberasurecode>=1.5.0 (see https://github.com/openstack/liberasurecode/commit/09d8bbf3)15:25
timburkewhat version of pyeclib is it? was it from apt, too?15:25
timburkeyou might try running `ldd $(python -c 'import pyeclib_c; print(pyeclib_c.__file__)')` to see what pyeclib is looking at15:26
seongsoochopyeclib also from apt.15:29
seongsoochookay I will try it soon15:29
timburkeso presumably 1.6.015:31
timburkeand it can't be that the link to liberasurecode is *completely* broken, or you'd get something like "ImportError: liberasurecode.so.1: cannot open shared object file: No such file or directory"15:37
seongsoochoThe version of python3-pyeclib from apt  is 1.3.1-1ubuntu315:40
seongsoochoand.. the result of ldd said "liberasurecode.so.1 => /usr/lib/x86_64-linux-gnu/liberasurecode.so.1"15:40
seongsoochoand that so.1 file is..15:41
seongsoocholrwxrwxrwx 1 root root 23 May 13 12:03 /usr/local/lib/liberasurecode.so.1 -> liberasurecode.so.1.6.215:41
clarkbthat pyeclib version is too old to autodetect accordign to what timburke said above15:44
clarkbits also possible that in the future distro packaging would remove autodetection to force use of the distro packaged lib? I have no evidence they have done this15:44
seongsoochoI'm using ubuntu 18.04 for proxy-server.. then I will try to upgrade pyeclib over 1.5.015:46
timburkeah, yep -- pyeclib 1.3.1 would continue to report the version of liberasurecode it was built against rather than what's available at runtime. it should still be running the upgraded code, though -- you could probably write a test frag then read back the version from it to verify16:01
seongsoochotimburke , clarkb  thanks for helping me. after I upgraded pyeclib to 1.5.0,   pyeclib can use liberasurecode 1.6.216:11
opendevreviewMerged openstack/swift master: backend ratelimit: support per-method rate limits  https://review.opendev.org/c/openstack/swift/+/84054216:11
opendevreviewJianjian Huo proposed openstack/python-swiftclient master: Add reset function for ReadableToIterable  https://review.opendev.org/c/openstack/python-swiftclient/+/91870118:17
timburkeoh yeah, i still need to figure out how to take the build artifacts from something like https://zuul.opendev.org/t/openstack/build/a8e195bfe57b4d2c928d1a52a0523e4e/artifacts and use them in the release job...19:05
clarkbtimburke: the opendev container image build jobs may be useful for that. We build and publish images in the gate then if that results in merging a post merge job promotes those artifacts19:46
clarkbI think you can do similar with release jobs instead of post jobs19:46
opendevreviewASHWIN A NAIR proposed openstack/python-swiftclient master: support part-num in python swiftclient  https://review.opendev.org/c/openstack/python-swiftclient/+/90202020:22
opendevreviewASHWIN A NAIR proposed openstack/python-swiftclient master: Fix upload with "parent-relative" file paths  https://review.opendev.org/c/openstack/python-swiftclient/+/28031220:35
timburkeclarkb, does pypi have the same concept of "promoting" a release? and i certainly wouldn't want every commit off master to show up on https://pypi.org/project/pyeclib/#history -- maybe there's something we could do with https://test.pypi.org/ ?21:44
timburkeor maybe i should look at writing a custom release-pyeclib-python job that inherits from release-openstack-python but also builds wheels the way i need...21:44
clarkbI don't think so. pypi is far more static about things to prevent people from replacing one thing with another nefariously22:09
clarkbbut you could publish to tarballs and then promote that maybe22:10
opendevreviewShreeya Deshpande proposed openstack/swift master: HybridMultiObjectDispatcher  https://review.opendev.org/c/openstack/swift/+/91548323:06

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!