Thursday, 2017-01-12

*** jamielennox is now known as jamielennox|away00:50
*** jamielennox|away is now known as jamielennox01:21
*** sudipto has joined #openstack-dib04:29
*** sudipto_ has joined #openstack-dib04:29
*** sudipto has quit IRC05:14
*** sudipto_ has quit IRC05:14
*** sudipto has joined #openstack-dib05:58
*** sudipto_ has joined #openstack-dib05:58
*** sudipto has quit IRC07:36
*** sudipto_ has quit IRC07:36
*** strigazi_AFK is now known as strigazi08:28
*** sudipto_ has joined #openstack-dib08:31
*** sudipto has joined #openstack-dib08:31
*** hashar has joined #openstack-dib08:36
*** pmannidi has quit IRC08:49
*** prometheanfire has quit IRC09:42
*** prometheanfire has joined #openstack-dib09:43
*** owalsh-afk has joined #openstack-dib09:47
*** owalsh-afk is now known as owalsh09:49
*** prometheanfire has quit IRC09:50
*** prometheanfire has joined #openstack-dib09:51
*** owalsh is now known as owalsh-brb10:24
*** owalsh-brb is now known as owalsh10:37
*** sudipto has quit IRC11:22
*** sudipto_ has quit IRC11:22
*** owalsh is now known as owalsh-lunch12:25
*** tommylikehu has quit IRC12:39
*** tommylikehu has joined #openstack-dib12:40
*** yolanda has quit IRC13:18
*** yolanda has joined #openstack-dib13:18
*** sudipto_ has joined #openstack-dib13:37
*** sudipto has joined #openstack-dib13:37
*** owalsh-lunch is now known as owalsh13:46
*** aparnav has joined #openstack-dib14:18
openstackgerritBob Fournier proposed openstack/diskimage-builder: Handle failure of carrier check in dhcp-all-interfaces.sh  https://review.openstack.org/41952715:38
openstackgerritMerged openstack/diskimage-builder: Run dhcp-interface@.service after network.target  https://review.openstack.org/41666415:47
*** sudipto has quit IRC16:05
*** sudipto_ has quit IRC16:05
*** sudipto_ has joined #openstack-dib16:05
*** sudipto has joined #openstack-dib16:05
*** aparnav has quit IRC16:08
*** aparnav has joined #openstack-dib16:38
*** aparna has joined #openstack-dib16:40
*** aparnav has quit IRC16:43
*** aparna has quit IRC16:49
*** hashar has quit IRC16:51
openstackgerritPaul Belanger proposed openstack/diskimage-builder: Bump fedora-minimal release to 25  https://review.openstack.org/41955916:56
*** sudswas__ has joined #openstack-dib17:07
*** sudipto_ has quit IRC17:07
*** sudipto has quit IRC17:08
*** sudipto has joined #openstack-dib17:08
*** pabelanger has quit IRC17:41
*** pabelanger has joined #openstack-dib17:41
*** owalsh has quit IRC17:51
*** openstackgerrit has quit IRC18:33
pabelangerianw: mind reviewing: https://review.openstack.org/#/c/414634/ removes some hardcoded settings from ubuntu-minimal.19:03
pabelangerianw: so we can use AFS mirrors for nodepool dsvm job: https://review.openstack.org/#/c/414273/19:03
*** sudipto has quit IRC19:05
*** sudswas__ has quit IRC19:05
*** pabelanger has quit IRC19:39
*** pabelanger has joined #openstack-dib20:01
*** openstackgerrit has joined #openstack-dib21:18
openstackgerritAndreas Florath proposed openstack/diskimage-builder: Easy diskimage-builder development environment setup  https://review.openstack.org/41965521:18
openstackgerritPaul Belanger proposed openstack/diskimage-builder: Add spec for debootstrap-minimal element  https://review.openstack.org/41967922:41
pabelangerianw: re: 413868, this is what I want http://paste.openstack.org/show/594782/22:52
pabelangerbut know no other way of doing it22:52
pabelangerif there is a better way, I am happy to try that22:52
ianwpabelanger: why not just write BAR (no $!)22:53
pabelangerianw: because I didn't think of that22:54
pabelangerianw: what syntax do you want to see for ${!DIB_*} ?22:54
ianwno that bit's fine22:54
ianwit's $!BAR that doesn't seem to do anything22:54
ianw(and the other vars following)22:55
ianwor i mean the other vars22:55
ianw${!DIB_*} just means "all vars starting with DIB_ right?22:55
openstackgerritPaul Belanger proposed openstack/diskimage-builder: Start with an empty environment for chroot  https://review.openstack.org/41386822:56
pabelangerianw: yes22:56
ianwright, names matching prefix22:56
pabelanger${!DIB_@} is valid too22:56
ianwwhile ${!DIB_VAR} is indirect expansion22:56
ianwbut $!DIB_VAR is actually "$!""DIB_VAR"22:57
ianweven though the man page says the { is optional, at least for that case it's not22:57
pabelangerianw: not sure I follow on ${!DIB_VAR}22:57
ianw${!DIB_VAR} means "use the value of DIB_VAR as the name of the variable"22:58
pabelangerOh, yes.22:58
pabelangerI read it as _VAR was some bash magic string22:58
ianwyeah.  the manual seems to suggest $!DIB_VAR would be the same thing22:59
ianwbut reality seems to not agree22:59
pabelangerianw: let me look up the xtrace trick you mentioned23:00
*** owalsh has joined #openstack-dib23:00
ianwpabelanger: see -> function kill_chroot_processes () {23:01
ianwjust silences the spam from the loop over all the vars23:01
openstackgerritPaul Belanger proposed openstack/diskimage-builder: Start with an empty environment for chroot  https://review.openstack.org/41386823:02
pabelangerk, lets see what tests say23:03
ianwcool, yeah it's easy to spot in the logs23:04
ianwgetting that balance between useful and spammy has been an ongoing challenge23:05
ianwi think the logs are way better than they used to be in terms of signal:noise23:05
pabelangerianw: okay, on to fstrim. So, the issue is, I cannot run diskimage-builder inside docker today, because fstrim fails.23:05
pabelangereverything I google says, fstrim won't work in docker23:05
pabelangerso, that was the reason for the flag23:06
ianwright, but if you're trying to make a .qcow2, we want the output trimmed?23:06
ianwotherwise making an image under docker means you just get an unnecessarily large output image?23:06
openstackgerritMerged openstack/diskimage-builder: Fix Gentoo builds on Ubuntu 16.04 Xenial hosts  https://review.openstack.org/41339523:07
ianwand also, the only way you can get it right under docker is to use that flag, which presumably you don't release until it fails, which isn't a great interface23:07
ianwis this because you're not really root under docker?23:08
pabelangerianw: not sure about trimmed actually, I haven't compared the sizes.  But I guess that is the question, how do you trim a mount, inside a container23:11
pabelangerianw: no, this was a privileged container (root docker user)23:11
pabelangerand using sudo inside container23:12
ianwso, i'm not sure why it wouldn't make sense to trim a loopback type device even from within a docker container23:14
pabelangergive me a second, getting error23:15
ianwfstrim: /: FITRIM ioctl failed: Operation not supported23:15
pabelangerya, that looks right23:15
ianwbut that should be running inside the chroot23:15
ianwwhich should be within a mounted loopback image at that point?23:16
pabelangerhttp://serverfault.com/questions/820169/should-i-be-running-fstrim-in-a-container23:16
pabelangerwas that I found23:16
pabelangergive me a sec23:17
ianwright ... it makes no sense to run fstrim inside a container, where say your / isn't a block device, but really some random directory on a block device23:17
ianwbut -- inception23:17
ianwwe're in a container, but then chrooted into a mounted block device23:18
ianwso "/" should, in theory, be a device that could be trimmed23:18
pabelanger$ sudo docker run --privileged=true -t -i nodepool-builder /bin/bash23:19
pabelangerroot@8ab8d0952caa:/# disk-image-create --no-tmpfs -n -o ubuntu-minimal ubuntu-minimal23:19
pabelangeris the command I am currently running23:19
pabelangerI wonder if I also need to add --cap-add23:20
pabelangerwill try that next23:20
ianwyes, that or apparmor type permissions would get in the way probably23:20
ianwit would be good to see the mounts just before fstrim23:21
pabelangerdoh, forgot -t23:23
pabelangerOh, actually23:23
pabelangerit failed23:23
pabelangerokay, let me try add-cap23:23
ianwyeah, maybe SYS_ADMIN needs to be added?23:27
ianwyeah, i think  --cap-add=SYS_ADMIN23:28
pabelangersame failure23:29
pabelanger--cap-add=ALL23:29
pabelangerlet me get some debug23:29
ianwhmm, operation not supported i guess, rather than perms denied23:30
openstackgerritAndreas Florath proposed openstack/diskimage-builder: Docker matrix build  https://review.openstack.org/41434723:45
pabelanger/dev/loop2 on /tmp/dib_build.3K700JIq/mnt type ext4 (rw,relatime,data=ordered)23:48
pabelangerthat is the loop device that fstrim fails on23:48
ianwdoes it work outside docker?23:49
pabelangeryes23:49
ianwcan you strace the fstrim inside docker?23:50
*** pmannidi has joined #openstack-dib23:50
pabelangerlet me manually do it23:51
*** owalsh has quit IRC23:51
ianwwas that above from "mount" inside docker, or outside it?23:52
pabelangerianw: say again23:52
ianw"/tmp/dib_build.3K700JIq/mnt" ... that's docker's "/tmp" right?23:54
pabelangeryes23:54
ianwwhat does "mount" outside docker show?23:54
pabelanger1 sec23:55
pabelangerhttp://paste.openstack.org/show/594789/23:57
pabelangerianw: ^23:57
ianwso it has no idea about the mounts inside the container?23:59

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