Monday, 2018-04-16

openstackgerritIan Wienand proposed openstack/diskimage-builder master: Remove installed packages before pip install  https://review.openstack.org/56147900:04
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Remove installed packages before pip install  https://review.openstack.org/56147901:41
*** Sukhdev has joined #openstack-dib02:34
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Remove installed packages before pip install  https://review.openstack.org/56147903:26
*** Sukhdev has quit IRC03:33
*** pbourke_ has quit IRC04:05
*** pbourke_ has joined #openstack-dib04:06
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Remove installed packages before pip install  https://review.openstack.org/56147904:24
*** eshas has joined #openstack-dib04:52
*** eshas has quit IRC05:38
*** eshas has joined #openstack-dib05:39
*** andreas_s has joined #openstack-dib06:41
*** hashar has joined #openstack-dib06:50
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Remove installed packages before pip install  https://review.openstack.org/56147907:00
olivierb-hello everybody, are aome/all images produced by CI tests in DIB checked for properly booting/running ? I am more specifically wanted to see some LVM based ones07:07
*** brault has quit IRC07:07
ianwoliverb-: a large subset, but not with lvm07:39
ianwthese are the "nodepool" tests in the CI results.  we use devstack to bring up an openstack environment, then nodepool to build, upload & boot images07:39
ianwwe do everything that openstack uses (ubuntu's, centos, fedora, suse's, gentoo)07:40
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Remove installed packages before pip install  https://review.openstack.org/56147907:44
olivierb-ianw thx for this, my current experience with LVM is somewhat controversial right now due to some very weird behaviour therefore my question07:46
ianwoliverb-: yeah, it has honestly only been lightly used, i would not be surprised if you find things we don't handle07:47
*** eshas has quit IRC07:48
*** pavel_V has joined #openstack-dib08:02
*** brault has joined #openstack-dib08:36
*** eshas has joined #openstack-dib08:37
*** brault_ has joined #openstack-dib09:00
*** brault has quit IRC09:02
*** eshas has quit IRC09:54
*** eshas has joined #openstack-dib09:54
pbourke_ianw: hi Ian, I seem to be getting the following after updating dib this morning:10:03
pbourke_"Cannot uninstall 'virtualenv'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall."10:03
pbourke_ianw: anything to do with Ia84c38dc3c40a6080e144b563e10abca7dac2881 by any chance?10:04
pbourke_command im using: disk-image-create  --ramdisk-element=dracut-ramdisk --logfile out -t tgz -o deploy.ramdisk ironic-agent centos710:04
*** pbourke_ is now known as pbourke10:05
ianwpbourke: likely https://review.openstack.org/561479 will fix it10:08
pbourkeianw: thanks will check it out10:09
*** esha1 has joined #openstack-dib11:35
*** eshas has quit IRC11:35
*** esha1 has quit IRC12:08
*** vmlinuz has joined #openstack-dib12:42
*** vmlinuz has joined #openstack-dib12:42
*** eshas has joined #openstack-dib12:42
*** mjturek has joined #openstack-dib12:54
openstackgerritBharat Kunwar proposed openstack/diskimage-builder master: Fix yaml dependency issue with dracut-regenerate for python3  https://review.openstack.org/55849713:30
*** eshas has quit IRC14:03
*** eshas has joined #openstack-dib14:38
openstackgerritBharat Kunwar proposed openstack/diskimage-builder master: Fix yaml dependency issue with dracut-regenerate for python3  https://review.openstack.org/55849714:49
*** rajinir has joined #openstack-dib14:59
*** vmlinuz has quit IRC15:10
*** vmlinuz has joined #openstack-dib15:10
*** vmlinuz has joined #openstack-dib15:10
*** hashar is now known as hasharAway15:16
*** andreas_s has quit IRC15:42
*** andreas_s has joined #openstack-dib15:43
eshashi, The ubuntu cloud image .img can be directly downloaded and converted to RAW by qemu command and then booted15:49
eshaswhy do we need DIB then?15:49
prometheanfireeshas: troll?15:50
*** mgagne_ is now known as mgagne15:50
eshashuh?15:50
prometheanfireeshas: dib doesn't do just simple images, it is a build system15:51
prometheanfiredoesn't do just ubuntu either15:51
clarkbright, the idea is it allows you to customize existing images in a reproduceable and fast manner that doesn't require virt capabilities. It also allows you to build new images from scratch without an existing image15:52
eshasyes, but for rhel and ubuntu as cloud images are available, and they have OS ready, then if I download them in a ppc64le env and qemu create to RAW and chroot and boot them15:52
prometheanfireeshas: and they don't provide things like glean, pip, caching openstack repos, etc15:53
eshasthen am good to go right..unless I need cloud init and other customization15:53
eshasclarkb: how does it build new images from scratch?15:54
prometheanfireeshas: https://docs.openstack.org/diskimage-builder/latest/15:55
eshas<prometheanfire>: ok, probably need to see how to do customization using DIB for cloud-init , epel, ssh,networking etc then it might be useful15:55
eshashmm..I know its working but thought it uses cloud images always15:56
eshasfor ubuntu and RHEL15:56
prometheanfirenope15:56
eshasas iso not possible15:56
eshasto pass to it15:56
*** andreas_s has quit IRC15:57
*** andreas_s has joined #openstack-dib16:02
clarkbeshas: for ubuntu and debian it runs debootstrap directly and builds the image from nothing16:04
eshaswhat is meant by nothing? it takes the cloud img on disk-image-create16:05
eshasdownloads it as per release16:05
prometheanfirenope16:06
prometheanfirehttps://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/elements/debian-minimal/root.d/75-debian-minimal-baseinstall16:06
prometheanfirehttps://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/elements/debootstrap/root.d/08-debootstrap#L3316:07
prometheanfirenot a cloud image16:07
prometheanfireplease read the docs/code16:07
clarkbeshas: prometheanfire it depends on what element you choose. One option is to start from an existing image. Another is to build it from nothing16:08
clarkbeshas: starting from an existing image is simple because someone else has done a lot of the work for you. But the control of being able to build exactly what you want can be useful in some cases16:08
eshasyes, for that kind of complete control how do i start?16:09
clarkbeshas: use the -minimal elements16:09
eshascause currently we use iso and then install OS and customise cloud init etc16:09
prometheanfireI linked the docs earlier16:09
eshasok ok16:10
eshasI am running into ssh / login issue with ubuntu via DIB16:10
eshas:(16:10
prometheanfirelook at the devuser element for debug users16:11
eshasso was thinking if mounting and chroot will help16:11
eshasI did create ubuntu 18.04 raw via DIB, didnt use devuser though16:11
eshaswas trying ssh keys but didnt work16:11
eshaswill try again with devuser defined16:12
eshasAnother thing I was trying was to run DIB in a non KVM environment but openstack based16:12
eshasI installed debootstrap separately as DIB reported it missing16:12
eshasbut still more issues seen16:13
eshasneed to use DIB in this ppc64le non-kvm openstack env16:13
clarkbeshas: yes the docs should tell you what the system reqs are for building those images16:13
clarkbyou will need debootstrap and apt and so on16:13
openstackgerritFélix Bouliane proposed openstack/diskimage-builder master: Allow to pin ubuntu version rather than current  https://review.openstack.org/55916716:16
*** andreas_s has quit IRC16:20
*** andreas_s has joined #openstack-dib16:25
*** eshas has quit IRC16:33
*** andreas_s has quit IRC16:39
*** andreas_s has joined #openstack-dib16:44
*** eshas has joined #openstack-dib16:48
eshasclarkb: which docs?16:49
clarkbeshas: https://docs.openstack.org/diskimage-builder/latest/user_guide/installation.html has the generic requirements but points to specific elements docs for their system requirements. In this case ubuntu-minimal should say16:50
eshasok, got it, thanks, will check ubuntu and rhel7 i guess16:50
eshasas I need for both rhel7.5 and ubuntu18.0416:51
clarkbeshas: well specifically ubuntu-minimal not ubuntu if you want to build from nothing16:51
eshasoh, but the images can be used as they are ppc64le compliant I thought, just need to make DIB work in the env16:51
clarkbits up to you16:52
eshashowever shall try step wise then minimal first then full16:52
eshasthanks for the tip16:52
eshasfor rhel there is no such minimal right16:52
clarkbeshas: not for rhel but there is for centos16:52
eshashmm.. no I need only rhel sles and ubuntu16:53
eshassles cant be done by DIB16:53
eshasso the other two16:53
clarkbsles likely can be done by dib you may have to implement the element for it though16:53
eshasbut sles cloud image for ppc64le doesnt exist16:54
eshasatleast I could nt find it16:54
clarkbright you don't have to start from an existing cloud image typically16:56
*** andreas_s has quit IRC16:58
eshashmm16:58
eshasnot iso and not cloud image then ?16:59
clarkbcorrect like with ubuntu-minimal you run the distro bootstrap in a chroot and then copy that to an image17:03
*** calebb has quit IRC17:04
*** calebb has joined #openstack-dib17:15
*** eshas has quit IRC17:28
*** esha1 has joined #openstack-dib17:28
openstackgerritFélix Bouliane proposed openstack/diskimage-builder master: Allow to pin ubuntu version rather than current  https://review.openstack.org/55916717:32
*** openstackgerrit has quit IRC19:05
*** dhill__ has joined #openstack-dib19:22
*** dhill_ has quit IRC19:24
*** dhill__ has quit IRC19:25
*** dhill_ has joined #openstack-dib19:25
*** esha2 has joined #openstack-dib19:54
*** esha1 has quit IRC19:58
*** hasharAway has quit IRC20:01
*** esha2 has quit IRC20:24
*** mtreinish has quit IRC20:51
*** mtreinish has joined #openstack-dib20:57
ianwclarkb: i know things are busy, wouldn't mind your eye over https://review.openstack.org/#/c/561479/ to use pip1021:11
clarkbianw: I think that will likely break many jobs for us. Unless we fix tox-siblings first. https://review.openstack.org/#/c/561659/21:12
clarkbmordred hasn't been able to weigh in on ^yet though21:12
clarkbI'll review the dib change since I Guess it won't take effect until we release dib21:12
ianwclarkb: right, just the presence of pip10?21:13
clarkbianw: ya those jobs work beacuse we are using pip9 in them until our images update successfully with pip1021:13
clarkb( think pip10 is why our ubuntu images aren't updating/)21:14
ianwhmm, this doesn't touch the ubuntu path, let me see what's going on there21:14
ianwhmm, why has xenial stopped http://nb01.openstack.org/ubuntu-xenial-0000001395.log21:19
clarkbfungi was the one debugging why tox-siblings works at all for us now and I think the determined state was we were using pip 9.x presumably due to older images21:20
ianwclarkb: it's certainly true we don't seem to have built xenial in a few days, but it's not explicitly paused21:21
ianwi think maybe it just can't get into build due to the other failing builds infront of it?21:21
clarkbwe did pause it on rax maybe that is global even if applied to a specific provider?21:21
ianwoh these must be in emergency are they?21:22
ianwoh no i just can't read; indeed pause: true next to xenial21:24
clarkbianw: ok commented on the dib change for pip10 support21:28
clarkbianw: I think the setuptools and rhel items should likely be addressed21:28
ianwclarkb: yeah on tumbleweed, happy to do that but it wasn't there before, and this change i thought had enough stuffed into it21:30
clarkbya I didn't -1 for tumbleweed but for the others21:30
clarkbwe can sort out tumbleweed later21:30
clarkbianw: and I guess that leaves us with figuring out rax + xenial to open these floodgates21:31
ianwok ,will fix that up; thanks.  the case statement was a late addition after it all started getting too complex, so yeah i dropped rhel accidentally, good catch21:31
ianwyeah, ok i'll get back to that21:32
ianwi spent almost a whole day trying to get something working on that friday with no luck21:33
clarkb:/21:33
clarkbI'd offer to help but worried I've got so much of the pip specific stuff pages in at the moment to not be super useful21:33
clarkbalso bandersnatch upgrade so that we stop running out of disk on the mirror hopefully21:34
clarkbianw: re pinning on https://review.openstack.org/#/c/561691/ just use latest released version I guess?21:35
ianwclarkb: looks like it's in 2.2.0 right?21:37
clarkbyup21:38
ianwup to you, i'd pin it because not 100% confident we monitor it closely enough to find problems that might pop us as they release21:39
clarkb++ I pinned21:39
*** vmlinuz has quit IRC21:45
*** openstackgerrit has joined #openstack-dib21:52
openstackgerritNir Magnezi proposed openstack/diskimage-builder master: WIP: Do not use pip 10 or higher  https://review.openstack.org/56174021:52
*** andreas_s has joined #openstack-dib22:59
*** andreas_s has quit IRC23:04
openstackgerritMichael Johnson proposed openstack/diskimage-builder master: WIP: Do not use pip 10 or higher  https://review.openstack.org/56174023:09
clarkbjohnsom: instead of ^ can we work to get https://review.openstack.org/#/c/561479/ working?23:27
clarkbjohnsom: or at least do similar for ubuntu/debian as necessary?23:27
clarkbI don't know that dib should be pinning pip10 for openstack specific reasons in its generic pip and virtualenv elements23:27
johnsomclarkb Yeah, I have been poking at Ubuntu today. It's messy.  ^^^ that, in my opinion is a short term fix while we get this other stuff figured out.23:30
clarkbjohnsom: also a link to failing dib build logs would likely be helpful23:31
clarkbthat chagne ahs a change id but from there i'm not sure what I'm supposed to look for23:31
johnsomAt least with ubuntu cloud-init requires python3-yaml so you are basically forcing things....23:32
clarkbjohnsom: ya so one workaround is the one in the chagne I linked. Basically trick pip into thinking the old behavior is safe23:33
johnsomclarkb Ah, sure. I was just fixing someone else's patch as I know they are signed off for the night.  Give me a second and I will update the commit message23:33
clarkbjohnsom: another is to use virtualenvs exclusively (I've pushed a bunch of patches up to devstack, grenade, and ironic to explore that line of thought for those tools)23:33
clarkbanother would be to stop relying on system packages that have python deps23:33
clarkb(use glean instead of cloud-init for example)23:34
*** rajinir has quit IRC23:34
johnsomclarkb Personally I like the venv path23:35
openstackgerritMichael Johnson proposed openstack/diskimage-builder master: WIP: Do not use pip 10 or higher  https://review.openstack.org/56174023:36
clarkbin that particular case since its constrained to the amphora image wouldn't it be fairly straight forward to run that install in a virtualenv?23:37
clarkbseems like just writing that change and moving forward would be the easiest thing23:38
johnsomYeah, fair point. Isn't going to solve the DIB issue though. It's the package-install/svc-map element that is broken, not our stuff.23:40
clarkbdib isn't broken I don't think23:41
clarkbat least not for that specific thing23:41
clarkbjohnsom: the thing that is failing is the amphora agent install beacuse it depends on pyyaml and pip10 won't let you remove the pyyaml from cloud-init right?23:42
clarkbis something else broken too?23:42
johnsomclarkb No, we don't ask for pyyaml23:42
johnsomIt's here: svc-map/package-installs.yaml:PyYAML:23:42
johnsomThe svc-map element in DIB23:42
johnsomWe use svc-map for redhat's alternate name....23:43
clarkbCollecting PyYAML===3.12 (from -c /opt/upper-constraints.txt (line 153))23:43
clarkbthat happens in dib-run-parts Running /tmp/in_target.d/install.d/75-amphora-agent-install23:44
johnsomclarkb https://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/elements/svc-map/package-installs.yaml23:44
johnsomYeah, that element depends on svc-map23:44
clarkbright but its not failing in preinstall.d23:44
clarkbits failing in install.d23:45
johnsomhttps://github.com/openstack/octavia/blob/master/elements/amphora-agent/element-deps23:45
johnsomFeel free to grep octavia, we don't have it anywhere23:45
clarkbthe reason pyyaml may be in the image when amphora agent installs could be that element dep but I believe it would be there anyway for cloud init23:45
clarkbthe problem is amphora agent has a dep on pyyaml which can't be updated to the version in constraints23:45
johnsomSorry, no, we do not have a requirement on pyyaml23:46
clarkbjohnsom: its likely transitive23:47
johnsomYes, the image from ubuntu includes python3-yaml, if you include svc-map as a dep on your element, DIB fails out with pip 10 raising a conflict on PyYaml.23:47
johnsomLet me comment that out and try a build23:47
clarkbjohnsom: I understand that what I'm trying to point out is its only failing because your software is also trying to install a nweer version of pyyaml23:47
clarkband pip10 doesn't like that for reasons23:47
clarkbthe fix here isn't to break dib23:47
clarkbits to stop installing pip packages globally23:48
clarkbunfortunately that decision was made for us by PyPa and pip and not something we really had any hand in making (in fact told them it would break us months ago, provided a workaround and were told to go away)23:49
clarkbjohnsom: oslo config is why you dep on pyyaml23:51
clarkb(I just ran an install locally and if you leave of constraints it tells you what the dep comes from)23:51
clarkb*leave off23:51
johnsomAh, another place. ok23:52
clarkband that is where it is failing in your job23:52
clarkbpyyaml in svc map is system package23:52
clarkbthat works fine23:52
clarkbwhat breaks is when you mix distutils installed system pacakges with globally installed pip packages23:52
clarkbwe can't control what system packges system packages dep on and we can't control that they use distutils and we can't control that pip10 fails when they conflict. But what we can do is stop installing pip packages globally23:53
johnsomYeah. Ok, somehow this got confused a bit.  So, yeah, a venv for the amp would be easy enough and a good thing anyway.23:54
openstackgerritMichael Johnson proposed openstack/diskimage-builder master: WIP: Do not use pip 10 or higher  https://review.openstack.org/56174023:57
johnsomTake the bad example case off that23:57
clarkbI don't think its a bad example case23:58
clarkbpip10 is causing that failure23:58
clarkbI just disagree on the method being chosen to fix it :)23:58

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!