Friday, 2018-10-12

prometheanfireianw: not here https://gist.github.com/prometheanfire/a5d677906993f7c46e0bd812bebc725300:18
ianwprometheanfire: hrm, you crossing file-system boundaries, though?00:20
ianware you disabling building with tmpfs?00:21
prometheanfirenot for this00:22
prometheanfirenot building with tmpfs00:22
prometheanfire       The bind mount call attaches only (part of) a single filesystem, not possible submounts.  The entire file hierarchy including submounts is attached a second place by using:00:24
prometheanfire              mount --rbind olddir newdir00:24
prometheanfireso I don't think I can get around it with symlinks as it'd try and target something within the chroot I think00:24
ianwif we recursively mounted the hooks in run_in_target_d, would that work?00:34
prometheanfireya, should, is that acceptable to you?00:35
prometheanfiretesting changing 'sudo mount --bind ${TMP_HOOKS_PATH} $TMP_MOUNT_PATH/tmp/in_target.d' from function run_d_in_target in diskimage_builder/lib/img-functions to --rbind00:38
ianwhrm, the other thing is that the hooks dir is mounted in R/O, which is not what we want for a cache00:39
prometheanfireya, I don't know if rbind will keep the stuff ro or not00:40
prometheanfiresince it is a separate fs00:40
ianwa pre-finalise.d phase, that runs outside the chroot, but has access to the final image, would solve this anyway, right?  you could bind the cache in there, and then remove it at the end of cleanup.d?00:42
ianwpre-finalise.d is probabaly == something running at 99 level in block-device.d; but i could see the argument for adding it as a new phase00:43
prometheanfireya, that'd work too00:43
ianwthere is certainly precedent that we have pre-install.d (outside) install.d (inside)00:45
prometheanfireif block-device.d has access it could go there, but that's poluting it possibly00:45
ianwyeah, i feel that it can get tricky enough there when you start with lvm etc etc00:48
prometheanfiregoing to need a 99 in install.d tooyep00:49
prometheanfiregoing to need a 99 in install.d too (if doing rbind)00:49
prometheanfirebecause all that is rbound needs to be unmounted00:49
prometheanfire2018-10-12 00:48:13.713 | umount: /tmp/dib_build.VjFipiAq: target is busy.00:49
ianwhaving explored the options pretty thoroughly, i'm feeling like a pre-finalise.d that runs outside the chroot is going to be the best option00:49
prometheanfireyep00:49
ianwgetting into recursive binds is just asking for trouble i think00:50
prometheanfireagreed00:50
prometheanfirehmm, --make-rslave can help, but ya, better in a new phase00:51
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Minor documentation updates  https://review.openstack.org/60963600:52
prometheanfireumount can be recursive too00:52
prometheanfireso, what's the next step, I'm not sure how to add a phase00:54
ianwlet's see if it slots in ...00:59
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Add a pre-finalise.d phase  https://review.openstack.org/60986301:06
prometheanfirenice01:08
prometheanfiretesting01:17
prometheanfireianw: looks like the bind mount isn't hapening so it doesn't see the stage dirs01:34
prometheanfireianw: https://gist.githubusercontent.com/prometheanfire/811ad40c64a46bb9a65c23721b7e4ac6/raw/c09e59eee0983361a5b16d78bbfa16021bdd5fd0/gistfile1.txt01:35
prometheanfireize vs ise, because 'merica01:49
*** zigo has quit IRC02:29
prometheanfireianw: it works :D05:25
*** olivierb has joined #openstack-dib05:31
*** jesusaur has quit IRC05:41
*** jesusaur has joined #openstack-dib06:11
ianwi think it was written by lifeless, who is .nz I believe where it would be finaliSe07:08
*** jesusaur has quit IRC07:08
*** jesusaur has joined #openstack-dib07:13
*** zigo has joined #openstack-dib08:35
*** davido has joined #openstack-dib09:36
davidoHi. I'm trying to establish if and when "diskimage-builder" should ever be init-capped.09:37
davidoLooking at https://docs.openstack.org/diskimage-builder/latest/index.html09:37
davidothe first heading uses "Diskimage-builder" but the first paragraph starts with "diskimage-builder"09:37
davidoI'm editing training material for OpenStack and would like to get it right09:38
*** davido has quit IRC16:06
*** davido has joined #openstack-dib16:06
*** mjturek has joined #openstack-dib17:39
*** olivierb has quit IRC18:21
*** dhill_ has quit IRC19:37
*** dhill_ has joined #openstack-dib19:41

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