Monday, 2018-07-16

*** e0ne has joined #openstack-loci04:59
*** e0ne has quit IRC04:59
*** ispp has joined #openstack-loci07:12
*** ispp has quit IRC07:20
*** ispp has joined #openstack-loci07:21
*** ispp has quit IRC07:46
*** ispp has joined #openstack-loci08:18
*** e0ne has joined #openstack-loci08:55
*** e0ne has quit IRC09:05
*** e0ne has joined #openstack-loci09:13
*** pbourke has quit IRC09:31
*** pbourke has joined #openstack-loci09:32
*** ispp has quit IRC10:20
*** ispp has joined #openstack-loci10:22
*** ispp has quit IRC10:25
*** e0ne has quit IRC10:28
*** e0ne has joined #openstack-loci10:34
*** hrw has joined #openstack-loci10:58
hrwhi10:58
hrwdid someone tried to build loci on non-x86 system?10:59
*** e0ne has quit IRC11:02
*** ispp has joined #openstack-loci11:15
*** e0ne has joined #openstack-loci11:15
*** gema has joined #openstack-loci11:20
gemaSamYaple: ping11:20
gemaSamYaple: we are going to start adding support for Arm64 to LOCI if you don't mind :D11:20
gemaSamYaple: hrw raised a bug: https://bugs.launchpad.net/openstack-loci/+bug/178190511:20
openstackLaunchpad bug 1781905 in LOCI "Does not work on !x86 architectures" [Undecided,New]11:20
hrwSamYaple: o/11:21
gemaSamYaple: anyway, the background for this work is that we want to enable openstack-helm11:21
gemaand be ready for when/if kolla decides to move to them11:21
*** ispp has quit IRC11:33
*** ispp has joined #openstack-loci11:35
hrwnow have to find out why pip is called in parallel when 'requirements' image is built12:01
hrwas on non-x86 we need to build some modules and numpy takes huge amount of time12:02
hrwin meantime some other are attempted to install and fail as there is no numpy (yet)12:02
*** ispp has quit IRC12:13
hrwha! CASS_DRIVER_BUILD_CONCURRENCY=812:15
*** openstackgerrit has joined #openstack-loci12:19
openstackgerritMarcin Juszkiewicz proposed openstack/loci master: bindep: we need libjpeg to build Pillow  https://review.openstack.org/58293512:19
openstackgerritMarcin Juszkiewicz proposed openstack/loci master: pip_install: disable '--only-binary' for !x86-64 architectures  https://review.openstack.org/58293612:22
openstackgerritMarcin Juszkiewicz proposed openstack/loci master: requirements.sh: parallel build only on x86-64 please  https://review.openstack.org/58293712:22
hrwSamYaple: if parallel is disabled then probably --no-deps can be removed as well12:24
hrwbut I prefer to do small steps12:24
*** ispp has joined #openstack-loci12:32
*** ispp has quit IRC13:15
*** ispp has joined #openstack-loci13:21
*** e0ne has quit IRC13:25
*** ispp has quit IRC13:28
*** ispp has joined #openstack-loci13:30
*** e0ne has joined #openstack-loci13:32
*** openstackgerrit has quit IRC14:04
*** ispp has quit IRC14:36
*** ispp has joined #openstack-loci14:40
*** ispp has quit IRC15:56
*** e0ne has quit IRC16:21
hrwSuccessfully tagged requirements:master-ubuntu16:34
hrwon arm6416:34
hrwhad to kill parallel thing16:34
hrwhm. wrong16:35
*** e0ne has joined #openstack-loci18:14
SamYaplehrw: gema hello!18:43
SamYaplelet me catch up18:43
SamYaplehrw: we dont pull from pypi... what does pypi only having x86 binaries matter?18:46
SamYaplethe parallel thing for cassandra I was told to do that by someone who works on the project, but its a "requirement" :)18:47
SamYaplegema: hrw: based on your comments, im not sure you fully understand how the build works for LOCI18:49
SamYaplethe changes you are talking about are not appropriate (nor issues currently), but im happy to answer design questions18:50
SamYapleperhaps we are missing something that arm needs... but i did cross compile at one time with no major issues (i think i needed to pull in the linaro repos for packages though)18:50
*** e0ne has quit IRC19:05
gemaSamYaple: thanks for your reply19:17
gemaSamYaple: we probably don't understand much yet, but the idea is to have the LOCI images buildable for Arm6419:18
gemaSamYaple: any comments you have or advice welcome, I will show up in tomorrow's weekly meeting19:18
gemaand we can probably talk in a more synchronised way19:19
gemaSamYaple: regarding your questions about the changes, I will let hrw take them, he is our official builder :D19:19
SamYaplecool. yes. im not being difficult, i think you may just be approaching it wrong19:21
SamYaplewe definetely want teh same end goals and *will* get there19:21
gemaSamYaple: sure, just be ruthless, no problems with that \o/19:21
gemaSamYaple: just put us in the right path19:21
gema:D19:21
SamYapleso the basic idea is all *building*, anything requiring dev libs, etc etc --- that all happens in the requirements image19:21
SamYapleregardless of achitecture19:21
gemaSamYaple: so that is probably the one we need to make sure builds properly19:22
SamYapleonly thing coming from pypi are 'whl' format wheels, which are architecture independant19:22
SamYaplecorrect19:22
gemaack19:22
SamYapleif requirements builds, the architecture is probably good19:22
gemaSamYaple: and you don't have things like libvirt on any image?19:22
SamYaplegema: that is correct, i dont see what it would be needed19:23
SamYaplethat said, https://github.com/openstack/loci/blob/master/bindep.txt thats the list of packages19:24
SamYaple(and bindep has architecture support)19:24
SamYapleso add/remove/rename as needed, specific for arm19:24
gemaack, that seems simple enough19:25
gemahrw: ^ for tomorrow x)19:25
*** e0ne has joined #openstack-loci19:25
*** e0ne has quit IRC19:26
hrwSamYaple: I have problems building loci/requirements:master-ubuntu image20:11
hrwSamYaple: and this image fetches from pypi20:12
SamYapleright, what issues are you having?20:15
hrwSamYaple: https://review.openstack.org/582935 adds libjpeg-dev(el) to build Pillow20:16
SamYapleand, while it does fetch from pypi, it doesnt fetch *binaries* from pypi, just native whl or source20:16
hrwSamYaple: https://review.openstack.org/582936 allows me to pass cryptography20:16
hrwSamYaple: scikit-term needs numpy and fails as it gets installed before numpy gets built (it takes quite a long time)20:17
SamYapleyes, but pip_install.sh is not meant to build anything, ever. thats what the requirements image is for20:17
SamYapleand since cryptography is in upper-constraints.txt, it should be in the requirements wheels archive for pip_install.sh (so no build tools needed for install)20:18
hrwSamYaple: and this is during build of requirements image20:18
SamYaplewhat do you mean?20:19
hrw docker build . --build-arg PROJECT=requirements   --tag requirements:master-ubuntu 2>&1 |tee build-clean.log20:19
hrwwill share a log once it finish20:20
SamYaplecool. that will be much more helpful20:20
SamYaplealso, we are in no way tied to the current "logging" output from anything20:20
SamYaplewe know how to read it, so we just sort of deal with it, but its admittedly not great20:20
hrwlogs often suxx but better to have than not to20:21
SamYapleya thats what we said too :)20:21
hrw  ImportError: Numerical Python (NumPy) is not installed.20:33
hrw  ImportError: Numerical Python (NumPy) is not installed.20:33
hrw  scikit-learn requires NumPy >= 1.8.2.20:33
hrwthat's one20:34
hrwat same time:20:34
hrw  Running setup.py bdist_wheel for grpcio: still running...20:34
hrw  Running setup.py bdist_wheel for lxml: still running...20:34
hrw  Running setup.py bdist_wheel for PyNaCl: still running...20:34
hrw  Running setup.py bdist_wheel for numpy: still running...20:34
SamYapleany chance to get the full log?20:34
hrwsure, once it end20:35
SamYaplecool20:35
SamYapleat the expense of a *lot* of time, you can change `-P20` to `-P1` to single thread it. https://github.com/openstack/loci/blob/master/scripts/requirements.sh#L4720:36
SamYaplehelps with the logs, but forces an hour long build20:36
hrwthanks!20:37
hrwwill run such for a night20:37
hrwSamYaple: http://people.linaro.org/~marcin.juszkiewicz/loci/build-clean.log20:43
hrwshit. wrong one20:44
hrwhttp://people.linaro.org/~marcin.juszkiewicz/loci/build-origin-master.log is correct20:44
hrwstarted -P1 one20:44
SamYaplepyzmq issue is "zmq.h: No such file or directory"20:46
SamYapleyoure welcome to explictly exclude broken libs if you dont have the deps for it20:47
hrwor add bindep20:47
hrwpyzmq should be buildable20:48
hrwSamYaple: btw - what time is at your place?20:50
SamYapleits not late, 170020:53
hrwUS West like20:53
hrw22:53 here. time to go to sleep soon20:54
hrwUS East I mean ;d20:54
SamYaplehaha yes, im US East, but i work US West hours remotely for a company20:58
SamYapleso hrw, i see the numpy issue20:58
SamYapleits not actually due to the parallism20:58
SamYapleand the issue can be fixed :)20:58
SamYaplethe issue is that numpy is not available in the build env, which is seperate issue from *building* numpy, which we do in the requirements image20:59
hrwSamYaple: cool ;)20:59
hrwSamYaple: it is always better when someone knows what is going on and why20:59
SamYaplethe version of numpy needed for building is unrelated, and the way it gets installed doesnt need version control (system packages in the base images of the x86 systems provide numpy, im guessing your base image doesnt)21:00
SamYapleeither way, fixable. and easily :D21:00
SamYaplehrw: what the requirements image does is build *all* of upper-constraint, specific versions. It will compile those that do not have whls. There is also additional packages that can be added with build-args for packages not in upper-constraint21:02
SamYapleonce they are built, the image essentially deletes everything but the built-wheels and becomes a tarball21:02
SamYaplethat tarball we extract in the, for example, keystone image has all the wheels from upper-constraints already built. so we never install dev libs or build-tools in the keystone image21:03
SamYaplewe dont actually install any of the wheels we build in the requirements image, we just build them21:04
hrwcool21:05
hrwthanks for simplifing description how it works ;)21:05
hrwSamYaple: if I could just do 'apt install python-numpy' etc I would be happy man ;D21:06
SamYaplehttps://review.openstack.org/#/c/506824/21:08
SamYapleim just saying21:08
SamYapleits not a hard change for binary, i just dont have anyone who uses binary to drive it21:08
SamYapleand by drive, i really just mean test i guess21:09
hrwSamYaple: my final target will be Debian but as ubuntu is your default I want to get it working first21:10
SamYaplei use debian pretty heavily too. its just broken a few times recently21:11
SamYaplebut its up-to-snuff21:11
hrwcool21:13

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