Wednesday, 2022-04-13

*** rlandy|bbl is now known as rlandy|out01:23
dpawlikdansmith: good work. Only one think can be problematic: there is no date, so it will use current date for result that can be done few hours ago06:07
*** rlandy_ is now known as rlandy10:32
*** dviroel|out is now known as dviroel11:11
xiaolonghi11:24
*** dasm|off is now known as dasm13:12
dansmithdpawlik: ack, will add a timestamp :)13:25
*** soniya29 is now known as soniya29|out13:51
dpawlikthanks dansmith14:38
fzzf[m]fungiclarkb : when I run df -h , it shows mount on /run/media/root/cloudimg-rootfs, run kpartx -d /dev/loop0 also shows device or resource busy, and I run lsof | grep loop0p2 can't find process. follow is different build from before.... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/FrPjssLVEUUKrHAdwioAAbep)15:03
fungifzzf[m]: try grepping lsof output for the mount path rather than the device name. it'll either be a file held open somewhere in the tree being umounted, or maybe just a race with lazy umount15:08
fzzf[m]fungi: I run losf | grep clouding-rootfs, still no results. curious df -h show loop0p2 mount on /run/media/root/cloudimg-rootfs rather than /var/cache/nodepool/dib_tmp/dib_build.3DMuQbbI/mnt. 15:13
fungidoes it show anything mounted under /var/cache/nodepool/dib_tmp?15:14
fzzf[m]I'm using HDD disk, will this matter? 15:14
fungishouldn't, no15:14
fungii'll admit i'm not super familiar with the internals of dib, so just approaching this as a typical *nix sysadmin problem15:15
fzzf[m]fungi: /var/cache/nodepool/dib_tmp/dib_build.3DMuQbbI/mnt is empty.but its parent's block-device and hooks stats have file.... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/DFMPWVxWZvAMqPMSAdOCTboV)15:18
clarkbfzzf[m]: a raw disk file is mounted via loopback dev then a filesystem is created on it and the contents of the dib chroot are copied into it. Then it is unmounted and the loopback device is removed and the file can be converted using qemu-img to qcow2 or vhd etc15:21
clarkbfungi: ^ that was meant for you to15:21
clarkbit isn't doing anything special other than treating a file as a disk15:22
fzzf[m]log show umount mnt. I run umount already show not mounted. but  I run kpartx -d /dev/loop0 also show device busy.... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/ZbuqiJDKTluPqQLLNJQrTduQ)15:23
fungiyep, that much i get. as to exactly where it mounts the loop devices, or what gets executed with them as a chroot i'm less clear15:23
clarkboh ya I think grub installation happens within a chroot on the loopback dev because grub wants rael partitions or something15:24
fungifzzf[m]: right, the prior lazy umount has marked it as no longer mounted, but the kernel won't free the references until it's no longer busy15:24
clarkbdoes dmesg indicate why it might be busy if lsof is empty? that said I would really expect lsof (run as root) to show you what files are open and by what processes15:25
fungiyeah, i have a feeling trying to run it after a lazy umount is hiding that15:26
fungibecause the file paths no longer exist15:26
fungimight be a good idea to find all the umount -l/--lazy calls in dib and wrap them in some sort of debug fixture so they can be toggled to hard umounts15:27
fungithat would make debugging things like this easier15:27
*** dviroel is now known as dviroel|lunch15:28
fzzf[m]<fungi> "might be a good idea to find all..." <- I check log. it's use umount -lf. do you mean i use hard mount replace15:33
fungifzzf[m]: i mean drop the -l/--lazy option, so it would just be umount -f15:34
fungithat way the umount command blocks until the device is no longer mounted. if the problem isn't a race between umount and kpartx commands, then the umount command may just hang indefinitely, but at least then lsof will probably show you what's open where it's still mounted15:35
fzzf[m]fungi: okay. I'll make a try.15:35
fzzf[m]fungi: I get it15:36
*** dviroel|lunch is now known as dviroel16:35
elodilleshi, the usual heads up: since we have some new EOL'd stable/ussuri branch for tripleo, as usual I will run the clean-up script to remove the branches (as far as I see there's no problem with gerrit & zuul)17:21
clarkbelodilles: no problem with gerrit and zuul that I am aware of however the git issues on ubuntu are distracting fungi and I17:22
clarkbmore a caution that if something does go wrong with the EOL'ing we may not be able to help immediately.17:22
fungiyep17:26
elodillesclarkb: thanks, ack (yeah, that issue that came with the new git release is not nice... I'm glad we didn't face it at Yoga release time :S)17:26
iceyhey, any chance for more reviews on https://review.opendev.org/c/openstack/project-config/+/835430? thanks in advance!17:45
clarkbicey: we're deep in firefighting mode today so not sure if we'll get to it today17:46
iceyclarkb: no worries - it's been sitting for a couple of weeks so just hoping to move it forward :)17:46
clarkbfungi and I have both +2'd it now. Once fires die down we can approve it. My main concern with ^ is that the current fire is related to git operations and I'd like to not make the fire bigger if that project improtation process has trbouel17:49
clarkboh we can rerun the gerrit system-cofnig test jobs to sanity check that. /me does this17:49
fungioh, yep, i'll remove my +w17:49
fungier, no, i won't since i didn't +w that ;)17:49
clarkbfungi: I rechecked https://review.opendev.org/c/opendev/system-config/+/827774 whcih should exercise jeepyb for us I think17:49
fungibut yeah, what clarkb said17:49
clarkboh but maybe it doesn/t jeepyb and gerritlib changes do though17:50
clarkbI'll push up a jeepyb chagne to cover our bases17:50
clarkbremote:   https://review.opendev.org/c/opendev/jeepyb/+/837753 DNM want to run jeepyb testing against gerrit17:51
sean-k-mooneyby the way woudl use the USE_VENV flag in devstack help with the git issue18:13
sean-k-mooneythat would not do gloabl installs18:13
clarkbno18:14
clarkbbecause it doesn't work18:14
sean-k-mooneyi have not hit the issue yet but i was going to play with getting devstack working on my macbookair nativly on debian18:14
sean-k-mooneydoes it not?18:14
clarkbits missing a lot of stuff iirc18:14
sean-k-mooneyhum i was using it to work around path issues on debian18:15
clarkbwhen I tried to switch devstack to use a global virtualenv to work around the pip 9 cannot uninstall package problem it basically had to be completely rewritten because it didn't actually do half of what was required18:15
sean-k-mooneyand it seamed to be getting me past the inital issue i was having but it brok trying to connect to ovs so i did not get that far18:15
sean-k-mooneyok 18:16
clarkbhttps://review.opendev.org/c/openstack/devstack/+/559418 is where that effort tailed off when I realized no one was really interesting in making the big switch18:16
clarkbwhich is the other problem. I tried to take our time and find the issues and address them with the intent of making that change by defaulta nd it was really unpopular18:16
sean-k-mooneythe two main downsides would be co installablity18:17
sean-k-mooneyand disk space 18:17
sean-k-mooneyand i guess time right18:17
sean-k-mooneyalthough time is mitigated by pip cache18:17
clarkbwell my proposal there uses a single virtualenv for everything to maintain all that18:18
sean-k-mooneyah ok18:18
clarkball it did was shift the installs from /usr/local to /some/other/path/.venv18:18
sean-k-mooneyyou could get the same effect by doign a user install now18:18
clarkbI'm not a fan of user installs. They do some weird stuff18:19
sean-k-mooneywe woudl just need to make sure the python path was correct in teh systemd files18:19
sean-k-mooneyor make those also user services18:19
clarkb(even locally I make a virtualenv and then symlink to it from /home/foo/bin to get python utilities like tox)18:19
sean-k-mooneywell i currently do that too18:19
clarkbsean-k-mooney: ya my change does all that if you want to look at it. I even got grenade working18:19
sean-k-mooneybut only because im using nixos18:19
sean-k-mooneyand i have no idea how to actully make tox work any other way18:20
clarkbthere were problems with ironic jobs because ironic does stuff with python in weird ways18:20
sean-k-mooneyok am do ye have an overall game plan on how to adress the issue18:20
sean-k-mooneyi see https://review.opendev.org/c/openstack/devstack/+/83765918:21
clarkbyes, in #openstack-qa we're landing changes to set the git config to trust the repos that devstack clones as the short term correction. fungi is working on a change to stop trusting the repos and create a package artifact that root can install without access to the repo18:21
fungiyeah, pip install --user is very hacky18:21
fungiit's like halfway between a venv and not18:22
sean-k-mooneyya 18:22
sean-k-mooneyit also relise on your distor have ~/.local/bin ectra on your path18:22
clarkbto be clear I have no intention of resurrecting my devstack global venv change. I spent many many many hours trying to get ahead of problems just like this one and it was clear no one else thought that work was a priority so I gave up18:22
clarkbif anyone wants to resurrect the changes feel free18:23
sean-k-mooneyclarkb: oh im not asking you too18:23
sean-k-mooneyi was just wondifn if that could be used in the interim18:23
sean-k-mooneythat being virtual envs18:23
sean-k-mooneyto bypass the need to use sudo18:23
sean-k-mooneyi would not have ask if it was not the fact i seamed to be making progress setinng USE_VENV=True at the weekend18:24
fungiit could have been used, but apparently no amount of warning that `sudo pip install` is a bad idea has motivated significant change in the codebase18:24
sean-k-mooneywell i dont know i prefonally dont like to use python packages form distos18:25
clarkbI remember being convinced USE_VENV was a dead end when I did that work since it just missed stuff. Looking at my change I see issues with libguestfs for example that I bet I hit with USE_VENV when If irst looked at it18:25
sean-k-mooneyso sudo pip install is only bad if you mix both worlds18:25
clarkbbasically since no one ever used USE_VENV and it was never tested it just lacked coverage of what needed to be done18:25
clarkbsean-k-mooney: or if you pip install out of git repos :)18:25
fungi`pip install` into a venv is fine, it's using pip to install into system paths which compete with the distro package managers that causes problems18:26
sean-k-mooneyfungi: yep18:26
sean-k-mooneyi generally try not to install any python project form the distro to avoid that18:26
sean-k-mooneyalthogh on nixos i have now been forced to use virtual envs for everything more or less18:27
fungidebian has patched around that problem to some extent by carrying non-upstream changes which provide additional non-distro-package-managed module paths, but red hat just lets them overwrite one another at will18:27
sean-k-mooneynot nessiarly a bad thing as im more comfortable using them now18:27
sean-k-mooneywell thats because redhat dont really supprot using pip at all18:27
sean-k-mooneyits there but your kind of on your own if you use it18:28
fungidebian basically patches distribute in the stdlib to make it so that pip installs into /usr/local instead of /usr, but that's fragile and does things which will soon not be possible in the upcoming stdlib refactors18:28
sean-k-mooneyclarkb: so is the plan basically to build wheels and isntall those going forward18:28
sean-k-mooneyand use sudo git config --global --add safe.directory as a interim step18:29
clarkbsean-k-mooney: thats the longer term plan fungi is trying to sort out. short term we're telling git to trust the repos that devstack git clones18:29
fungisean-k-mooney: the near-term plan is to tell git it's okay to run in those directories even though the process owner isn't the file owner18:29
sean-k-mooneyack18:29
clarkband if anyone wants to resurrect the the global virtualenvs idea so we can avoid this class of problem entirely going forward I would be happy18:29
fungithe mid-term idea i have is to separate package building from installation, though in so doing we lose the editable-mode/develop install feature18:29
sean-k-mooneyfungi: its kind of broken already18:30
fungilong-term in my mind would be to stop calling pip as root and use venvs, yeah18:30
sean-k-mooneyyou can nolonger just sudo pip install -e a different directory18:30
sean-k-mooneye.g. sudo pip install -e /opt/repos/nova18:31
fungiright, and future changes to setuptools in order to support pep-660 editable mode installs are likely to just make the system-wide editables a no-go anyway18:31
sean-k-mooneyso you can only use the editbale repos if you edit the one on /opt/stack18:31
sean-k-mooneywhich means you cant use reclone=true without risk of lossing work18:31
fungialso it's just plain scary to have a system-wide editable mode install backed by files which are owned by an entirely different user18:32
sean-k-mooneywell the files and serivce are all the stack user by default right18:32
fungii get that it's a dev tool and we throw securit yconcerns out the window, but it's also just really fragile18:32
sean-k-mooneyor your current user if you dont use stack18:32
sean-k-mooneyfungi: it would be a pretty big regression if we have to install the package every time we make an edit18:33
sean-k-mooneythat is what eventually force me to start usign /opt/stack/nova for dev and disabel reclone=true18:34
fungitechnically you don't have to reinstall the package if you just edit the files where they're installed and then copy them back to the repo, but yes i understand the desire to use editable mode. it's just that i don't think it's going to be viable long-term18:34
sean-k-mooneyso personally i woudl prefer to keep editbale installs long term18:34
fungiunless we switch to using one or more venvs for it18:35
sean-k-mooneyyep venvs or a user install i think shoudl be our long term play if we are force to stop doign gloabal editbale installs18:36
sean-k-mooneythat or modify the system service files18:36
sean-k-mooneyso they reinstall when you do a restart18:37
sean-k-mooneyi.e. add pre-start=pip install ...18:37
sean-k-mooneyyou know this is going to break peopel in a lot of intersting ways18:40
sean-k-mooneyi dont personally use sshfs or anything like that to use remote git repos form an ide18:41
sean-k-mooneybut i know a lot of peopel used to install pycharm and mount a filesystem remotely18:41
clarkbyes, I expect the fallout to be quite widespread. Someone I know that does university IT said "this might be fun"18:41
sean-k-mooneyi guess depending on how its mounted it might be ok if it looks like they are the same user18:41
clarkbI think students in multi user environments might do a lot more sharing than you and I :)18:42
sean-k-mooneyha ya perhaps18:42
sean-k-mooneyi was just thinking if i will need to do anything with the simple caching i implemtned recently18:42
sean-k-mooneyi think i chown all the git dirs after i copy them18:43
sean-k-mooneyno i dont i just become the stack user. i think that should be ok18:45
sean-k-mooneybut i guess i know what to lookfor if its unhappy18:45
sean-k-mooneyclarkb: by the way i dont see why https://review.opendev.org/c/openstack/devstack/+/559418 stalled out18:58
sean-k-mooneyoh i see there are comment in the master version18:58
sean-k-mooneyhttps://review.opendev.org/c/openstack/devstack/+/55893018:59
sean-k-mooneyok today i suspect it woudl be simpler to do since we are python3 only18:59
clarkbsean-k-mooney: ya iirc ianw's indication the tc should be involved was part of it. I tried to get people to say "we're going to make the change and deal ith the fallout" and no one wanted to make that decision18:59
clarkbbasically the qa team wasn't willign to assert that themselves (which is fair given the likely widespread impact)19:00
sean-k-mooneyi see19:00
sean-k-mooneypersonally i think it would be a nice win form a clean build env perspecitve19:00
clarkband there were definitely ironic problems and I waas losing my ability to dig into them19:01
sean-k-mooneyit woudl be much easier to clean the system after an install19:01
clarkbso if we merged it we knoew ironic would break or we needed to get someone in ironic to try and care neough to address things19:01
sean-k-mooneyack19:02
clarkbit basically stalled out because there wasn't enough global interest to push it further than it got19:02
sean-k-mooneyi mean if it comes down to venvs or no more editble installs19:02
sean-k-mooneythat might be more of a motivation19:02
sean-k-mooneylosing editable install woudl be a major ux regression19:03
sean-k-mooneynot fatal by any means19:03
sean-k-mooneybut it would change the cost benifit of alternitives like this19:03
fungiwell, unfortunately, it's probably going to come down to merging some git config changes and then ignoring it until it catches on fire yet again for another reason19:03
fungibecause being able to merge project changes is more important than fixing the test framework for it19:04
sean-k-mooneyi feel this is aproptite https://i.kym-cdn.com/entries/icons/facebook/000/018/012/this_is_fine.jpg19:05
funginobody wants to worry about it until it's broken, and then it's a sudden scramble to do whatever it takes to just make it run again19:05
sean-k-mooneywell its not jsut the test framework19:05
sean-k-mooneyits what most of use use to deploy and test our chagnes19:06
fungilocal and ci test framework, but you're still using it to test your development work19:06
sean-k-mooneyyep19:06
sean-k-mooneyi tried using kolla-ansibel with git repos in the container for a while19:07
sean-k-mooneybut i havent really found a good replacment of devstack19:07
sean-k-mooneyit does what we want it too for the most part19:07
fungihttps://pics.me.me/ill-just-put-this-over-here-with-the-rest-of-30833910.png19:07
sean-k-mooney you have to keep the office organised 19:08
fungii love that he's surprised the fire extinguisher burst into flames, but then checks the label and it says "made in the uk" and he shrugs19:08
sean-k-mooneyi mean it makes sesnes hehe19:09
sean-k-mooneywhen was the last time the uk made things instead of out sourcing to china like everyone else19:09
fungibesides flammable fire extinguishers and wine which doubles as automotive fuel19:10
sean-k-mooneythey make good cider however. you have to at least give them that19:12
fungioh sure! and "real ale"19:12
sean-k-mooneyas someone who actull likes cider im alway a littel sad that the craft beer craze did not really carry over to craft cider in ireland at least19:13
fungiwe have some great craft cideries here, there's one mere minutes from my parents' house and they live in the middle of nowhere (granted it's a middle of nowhere with a lot of orchards and fresh mountain water)19:15
clarkbthe PNW has a number of great cideries too19:31
clarkbseattle cider, anthem cider, I think reverand nats closed due to the pandemic though19:32
clarkbI once tried to make cider and got vinegar19:37
clarkbI've still got it actually because I'm too afraid of digging out the pellicle19:38
fungi"bold rock" is the main cidery near where i grew up19:42
fungithough a few others sprang up there more recently19:43
clarkbfungi: just noting that our rechecked gerrit change's gerrit jobs succeeded but gitea did not due to this issue.19:58
clarkbI believe that to likely be a production issue but need to remember how this all works19:58
clarkboh wait no19:59
clarkbonly gerrit pushes to gitea19:59
clarkbso this is a test only problem I think19:59
clarkbthe way production works is that we tell gitea to create a project then add perms for gerrit to replicate to it over the network. Then we create the repo in gerrit and it pushes to gitea as it updates on the gerrit side20:00
clarkbso if we can update gerrit then we should be good. This is just a test only problem when we out of band push system-config into gitea to have some real content. Working on a fix now20:00
clarkbjeepyb testing also looks good. Anotehr thing is this may affect project renaming. we may want to punt on that now just because these fires continue and it may impact that process :/20:09
fungithat's a good point. if the fires are out by friday then we can go forward with it, otherwise we should postpone20:10
*** dviroel is now known as dviroel|afk20:22
*** arxcruz is now known as arxcruz|out20:28
*** timburke__ is now known as timburke20:55
*** dasm is now known as dasm|off21:36
opendevreviewLuciano Lo Giudice proposed openstack/project-config master: Add the cinder-three-par to Openstack charms  https://review.opendev.org/c/openstack/project-config/+/83778223:30

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