Tuesday, 2024-10-01

opendevreviewMerged openstack/swift feature/mpu: Embed mpu etag and bytes in etag override  https://review.opendev.org/c/openstack/swift/+/91701101:45
nathang15hello everyone, I'm a new contributor to swift and I'm trying to install the dev environment. I was following the SAIO guide but at the very end when I run remakerings, the cli said swift-ring-builder command or any other swift command to be not found. I am using Ubuntu 24.04 LTS and when I run tox and unittests, everything passed. Thank you and sorry if this seems like a dumb question!01:52
timburkenathang15, what happened when you ran `python setup.py develop` in the swift checkout? you can try running it again if you don't quickly see it in your terminal02:10
timburke(sorry, i'll probably be slow in replying; i'll be working on getting kids to bed)02:10
nathang15This is what it is saying: The following error occurred while trying to add or remove files in the02:16
nathang15installation directory:02:16
nathang15    [Errno 13] Permission denied: '/usr/local/lib/python3.12/dist-packages/test-easy-install-373131.write-test'02:16
nathang15The installation directory you specified (via --install-dir, --prefix, or02:16
nathang15the distutils default setting) was:02:16
nathang15    /usr/local/lib/python3.12/dist-packages/02:16
nathang15Perhaps your account does not have write access to this directory?  If the02:16
nathang15installation directory is a system-owned directory, you may need to sign in02:16
nathang15as the administrator or "root" account.  If you do not have administrative02:16
nathang15access to this machine, you may wish to choose a different installation02:16
nathang15directory, preferably one that is listed in your PYTHONPATH environment02:16
nathang15variable.02:16
nathang15For information on other options, you may wish to consult the02:16
nathang15documentation at:02:16
nathang15  https://setuptools.pypa.io/en/latest/deprecated/easy_install.html02:17
nathang15Please make the appropriate changes for your system and try again.02:17
nathang15I think I was able to get past installing and setup the python-swiftclient. This is the last few lines of the message: Using /usr/lib/python3/dist-packages02:18
nathang15Finished processing dependencies for python-swiftclient==4.7.0.dev202:18
nathang15"cd $HOME/swift; sudo pip install --no-binary cryptography -r requirements.txt; sudo python3 setup.py develop; cd -". This is the full command on the guide for your reference. I tried running this too but got AttributeError a few times.02:21
nathang15I'm sorry for the confusing message formatting since it's also my first time using IRC02:32
timburkenathang15, OK the "Permission denied" was probably me neglecting to include sudo to run as root, like `sudo python3 setup.py develop`02:32
timburkeno worries! it's readable enough. for longer error messages, you can create some snippets on https://paste.opendev.org/02:33
timburkei'm curious about what the AttributeErrors are, but let's start by seeing what happens when we try to install as root (so we *do* have write access)02:34
nathang15https://paste.opendev.org/show/b6i9Z9dBuzMJ709rV7Kd/02:35
nathang15Here is the output when I run the command in swift folder02:35
timburkehuh! that's a new one to me. maybe try it as `sudo pip install -e .` instead, see if we get anything different? do you know what version of setuptools you've got installed?02:36
timburkeoh! but that's complaining about trying to install a dependency! pyeclib in particular02:38
timburkeif you wanted to try something, i've got a patch series to make binary wheels for pyeclib, which should simplify some things02:40
timburkefrom the latest build of https://review.opendev.org/c/openstack/pyeclib/+/92765402:40
patch-botpatch 927654 - pyeclib - Publish manylinux wheels - 9 patch sets02:40
nathang15my setuptools version is 68.1.202:40
timburketry `curl --compressed -O https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_e24/927654/9/check/pyeclib-build-wheels/e244e4b/artifacts/pyeclib-1.6.1-cp35-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl`02:41
timburkethen `sudo pip install pyeclib-1.6.1-cp35-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl`02:41
nathang15It is saying "This environment is externally managed sudo pip install pyeclib-1.6.1-cp35-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl". Should I run it again with the flag? 02:43
nathang15note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.02:44
nathang15hint: See PEP 668 for the detailed specification.02:44
timburkeyes please.02:44
timburke(we really should re-work our SAIO instructions to use a venv...)02:45
nathang15pyeclib-1.6.1 is now installed. I suppose I can run the sudo python3 setup.py develop again right?02:45
timburkeyep! 🤞02:46
nathang15It works now! I'll try running the swift commands02:47
timburke🎉02:47
nathang15Yep swift commands work now too. Thank you!02:48
nathang15I have another question though. When I use devstack, it conflicts with swift for some reason. For example, if I run ./unstack.sh or ./clean.sh, it just deletes the /etc/swift folder. Is this normal behavior?02:48
nathang15Anyway, I'll avoid devstack for now. It's late in my region. Thank you for your help!02:56
DHEI've seen some things like that in debian, maybe ubuntu does it as well. PIP REALLY wants people to use virtualenvs to install packages with it, trying to keep /usr/lib directories clean for the package manager only.03:07
timburkenathang15, sorry, i don't do devstack much at all, really03:22
timburkeDHE, yeah, i've been noticing that more and more, too03:22
opendevreviewMerged openstack/swift feature/mpu: Shorten MPU upload-ids  https://review.opendev.org/c/openstack/swift/+/92896804:59
opendevreviewMerged openstack/swift feature/mpu: Embed MPU created timestamp in upload id  https://review.opendev.org/c/openstack/swift/+/92845905:06
opendevreviewMerged openstack/swift feature/mpu: Exclude aborted MPUs from session listing  https://review.opendev.org/c/openstack/swift/+/92877205:13
opendevreviewMerged openstack/swift feature/mpu: Refuse part upload to aborted or completing session  https://review.opendev.org/c/openstack/swift/+/92877305:13
opendevreviewJianjian Huo proposed openstack/swift master: Object-expirer: continue to process next container on listing errors  https://review.opendev.org/c/openstack/swift/+/93039305:31
opendevreviewTakashi Natsume proposed openstack/swift master: Replace deprecated datetime.utcfromtimestamp()  https://review.opendev.org/c/openstack/swift/+/93100712:56
opendevreviewAlistair Coles proposed openstack/swift feature/mpu: mpu: minor middleware fixes  https://review.opendev.org/c/openstack/swift/+/93101113:14
opendevreviewAlistair Coles proposed openstack/swift feature/mpu: mpu: use ':' delimiter for MPUId parts  https://review.opendev.org/c/openstack/swift/+/93102114:08
opendevreviewAlistair Coles proposed openstack/swift feature/mpu: mpu: use ':' delimiter for MPUId parts  https://review.opendev.org/c/openstack/swift/+/93102114:10
opendevreviewAlistair Coles proposed openstack/swift feature/mpu: mpu: use ':' delimiter for MPUId parts  https://review.opendev.org/c/openstack/swift/+/93102114:15
opendevreviewAlistair Coles proposed openstack/swift feature/mpu: mpu: make MPUSession.is_aborted a property  https://review.opendev.org/c/openstack/swift/+/93102314:22
opendevreviewShreeya Deshpande proposed openstack/swift master: Split statsd client from logger  https://review.opendev.org/c/openstack/swift/+/91548314:41
opendevreviewChinemerem Chigbo proposed openstack/swift master: Make object-expirer respect internal_client_conf_path  https://review.opendev.org/c/openstack/swift/+/93009516:23
opendevreviewMerged openstack/swift master: Replace deprecated datetime.utcfromtimestamp()  https://review.opendev.org/c/openstack/swift/+/93100717:02
opendevreviewChinemerem Chigbo proposed openstack/swift master: Make object-expirer respect internal_client_conf_path  https://review.opendev.org/c/openstack/swift/+/93009517:49
opendevreviewShreeya Deshpande proposed openstack/swift master: Kill inheritance  https://review.opendev.org/c/openstack/swift/+/93106020:15
opendevreviewShreeya Deshpande proposed openstack/swift master: Split statsd client from logger  https://review.opendev.org/c/openstack/swift/+/91548320:57
opendevreviewTim Burke proposed openstack/swift master: utils: Add crc32c function  https://review.opendev.org/c/openstack/swift/+/90980023:18
opendevreviewTim Burke proposed openstack/swift master: s3api: Add support for additional checksums  https://review.opendev.org/c/openstack/swift/+/90980123:18
opendevreviewTim Burke proposed openstack/swift master: s3api: Additional checksums for MPUs  https://review.opendev.org/c/openstack/swift/+/90980223:18
opendevreviewTim Burke proposed openstack/swift master: Add support of Sigv4-streaming  https://review.opendev.org/c/openstack/swift/+/83675523:18

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