Tuesday, 2019-12-03

*** ivve has quit IRC00:16
openstackgerritColleen Murphy proposed openstack/diskimage-builder master: Fix login.defs config for tumbleweed  https://review.opendev.org/69698900:21
openstackgerritColleen Murphy proposed openstack/diskimage-builder master: Allow zypper repos to be overrideable  https://review.opendev.org/69699000:31
*** yolanda has quit IRC01:25
*** jangutter has joined #openstack-dib03:59
*** jangutter has quit IRC04:03
*** jangutter has joined #openstack-dib04:46
*** jangutter has quit IRC04:51
*** jangutter has joined #openstack-dib06:47
*** jangutter has quit IRC06:52
*** brault has joined #openstack-dib07:05
*** yolanda has joined #openstack-dib07:22
openstackgerritMichele Baldessari proposed openstack/diskimage-builder master: Make sure DIB_DEBUG_TRACE has a default value  https://review.opendev.org/69700807:26
*** jangutter has joined #openstack-dib08:04
*** ivve has joined #openstack-dib08:51
*** dasp has quit IRC09:42
*** dasp has joined #openstack-dib09:43
*** dasp has quit IRC13:12
*** dasp has joined #openstack-dib13:12
openstackgerritHarald JensÃ¥s proposed openstack/diskimage-builder master: Install ndisc6 package in element script  https://review.opendev.org/69653213:59
*** ivve has quit IRC16:15
openstackgerritCarlos Goncalves proposed openstack/diskimage-builder master: Fix regex for mirror URL substitution  https://review.opendev.org/69714718:13
*** ivve has joined #openstack-dib19:28
openstackgerritCarlos Goncalves proposed openstack/diskimage-builder master: Install rng-tools in Red Hat family distro images  https://review.opendev.org/69718320:44
openstackgerritMerged openstack/diskimage-builder master: Make sure DIB_DEBUG_TRACE has a default value  https://review.opendev.org/69700821:37
openstackgerritMerged openstack/diskimage-builder master: Fix login.defs config for tumbleweed  https://review.opendev.org/69698921:56
openstackgerritMerged openstack/diskimage-builder master: Break retry loop on success in dhcp-all-interfaces  https://review.opendev.org/69687321:56
openstackgerritMerged openstack/diskimage-builder master: Fix regex for mirror URL substitution  https://review.opendev.org/69714721:56
openstackgerritMerged openstack/diskimage-builder master: Install ndisc6 package in element script  https://review.opendev.org/69653222:41
johnsomianw I have a DIB element bug I have a question for you about if you are round and have a minute.23:13
ianwjohnsom: sure23:13
johnsomThis lovely file in the svc-map element: https://opendev.org/openstack/diskimage-builder/src/branch/master/diskimage_builder/elements/svc-map/extra-data.d/10-merge-svc-map-files23:13
johnsom1. runs the rando-python23:13
johnsom2. Uses yaml, but doesn't require it installed.23:14
johnsomSince this is extra-data.d it's outside the chroot.23:14
johnsomThere is a package-install there, but it's phase is pre-install which is probably correct, but doesn't help this extra-data.d script.23:15
johnsomI think I just need to switch this over to dib-python and make it install PyYaml somehow, but outside the chroot I'm  not sure the best practice there.23:16
johnsomThis is the failed job log for reference: https://storage.bhs1.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_8cd/695291/12/check/octavia-v2-act-stdby-dsvm-scenario-two-node/8cdbc7d/controller/logs/dib-build/amphora-x64-haproxy.qcow2_log.txt.gz23:17
ianwjohnsom: ok ... it looks particularly unloved.  from a grep it's only referenced from ironic-agent, which is also deprecated -- is it really necessary to fix as a first thought?23:17
johnsomianw https://github.com/openstack/octavia/blob/master/elements/amphora-agent/svc-map23:18
ianwhrm, ok so octavia calls it too23:18
johnsomSadly RHEL named it different23:18
ianwok, so firstly in terms of yaml, that should be in requirements?23:19
ianwhttps://opendev.org/openstack/diskimage-builder/src/branch/master/requirements.txt#L923:19
johnsomHmm, yes... Good point.23:20
ianwi don't know if we have a solution to the random python thing23:22
johnsomdib-python is only valid inside the chroot?23:22
ianwdib-run-parts will just run diskimage_builder/elements/svc-map/extra-data.d/10-merge-svc-map-files23:22
ianwyeah, dib-python is installed into /usr/local/bin in the chroot, but not outside it23:23
johnsomAh, so it won't really invoke that bang path then?23:23
ianwi think the problem  is it *does*.  dib-run-parts just sees it as an executable file and runs it23:23
ianwwe have DIB_PYTHON_EXEC, which we use to run scripts that dib library functions are calling23:24
ianwbut dib-run-parts doesn't have any logic to say "oh, that looks like a python file, i should run that with DIB_PYTHON_EXEC"23:25
ianwi'm not sure how to tackle that exactly ...23:26
ianwit might be time to bite the bullet and go python3 only23:26
johnsomYeah, sadly DIB is branchless so that could get interesting.23:27
ianwthat would mean dropping trusty and centos7 as build hosts23:27
ianwyeah, i mean we could freeze a python2 branch (and take important backports) but ... it's not like we have a ton of people who will maintain that23:29
johnsomRight.23:29
johnsomWe can probably get "creative" and figure out another way....23:29
johnsomHow would you feel if I updated dib-run-parts to look at the first line of the file and check for python, then run it with the right version based on DIB_PYTHON_EXEC or such?23:38
ianwjohnsom: it feels terrible, but i'm not having any better ideas.  we did bring dib-run-parts inside dib (it used to come from a generic util) so such changes at least are isolated23:40
ianwit does use "/usr/bin/env python"; so if we somehow had a link to the right python, and just ran all scripts with that prepended to PATH maybe?23:42
johnsomYeah, it's not ideal for me either. The only other option would be to install our own wrapper interpreter early and change the script to use it in the bang path23:42
ianwi wonder, if disk-image-create made a temp directory and symlinked "python" to DIB_PTYHON_EXEC, and then exported PATH=/tmp/dir:${PATH} *maybe* that would work, for everything using "env python"?23:43
ianw(also, assuming all scripts at 2+3 safe)23:43
johnsomIt should actually.23:44
johnsomenv should walk that path down, so yeah, that would work23:44
johnsomA bit of "magic" but would get us through this whole python->python3->python headache23:45
*** ivve has quit IRC23:47
ianw++23:47
johnsomDo you want to push something up?23:47
* johnsom thinks "famous silly question"23:49
ianwjohnsom: umm, i'm just looking at some other stuff right now, but could do later if it's not urgent.  otherwise i'm happy to review :)23:50
johnsomOk, I will try to take a pass at it, but feel free to review/revise23:51

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