jamielennox | hey all, is there a dib element for setting hostname and/or /etc/hosts | 00:17 |
---|---|---|
jamielennox | ? | 00:17 |
jamielennox | suddenly getting a different failure with sudo because the hostname (ubuntu) is not resolvable - but it takes ~60 seconds to determine this | 00:18 |
*** openstackgerrit has joined #openstack-dib | 00:33 | |
openstackgerrit | Jamie Lennox proposed openstack/diskimage-builder master: Don't use du -x to calculate image size https://review.openstack.org/476732 | 00:33 |
jamielennox | ianw: ping re hostname setting? | 00:42 |
jamielennox | sorry, probably shouldn't single you out for questions, but you're generally the only one here in my tx | 00:43 |
jamielennox | tz | 00:43 |
ianw | jamielennox: hi, sorry, distracted . | 01:17 |
ianw | umm, .... glean? | 01:17 |
jamielennox | ianw: yea, sorry, should have just waited till you saw it | 01:18 |
ianw | cloud-init i guess? are you sure that it's the hostname issue causing the hang? i see that all the time, it might be a red herring | 01:18 |
jamielennox | hmm, so glean is something i've not poked at much, afaik we're not using it, but it might have been put in by others | 01:19 |
jamielennox | i also see the message all the time, however for whatever reason on my most recent image build it takes a minute to actually check it can't resolve it | 01:19 |
jamielennox | which blows up ansible | 01:19 |
ianw | hmm, are you using infra elements? | 01:20 |
jamielennox | no | 01:20 |
jamielennox | however in grepping i don't see glean anywhere in those images | 01:20 |
jamielennox | s/images/elements | 01:20 |
ianw | yeah, probably using cloud-init? you maybe don't want glean, it depends i guess | 01:20 |
jamielennox | ianw: not using either as i understand it | 01:21 |
ianw | hmm, ok, just dhcp to get an address? it doesn't set things? | 01:21 |
jamielennox | yea, afaik we just bake users, keys etc into the image and it just gets an ip on boot | 01:22 |
jamielennox | which i'm going to guess is just dhclient | 01:22 |
jamielennox | but i'm not sure that's actually sufficient | 01:22 |
jamielennox | oh, maybe: | 01:23 |
jamielennox | system-glean.slice loaded active active system-glean.slice | 01:23 |
ianw | so that would, iirc, grab a hostname from the config-drive | 01:25 |
jamielennox | hmm, ok i think i have a bigger problem just that sudo was the first thing to catch it | 01:32 |
jamielennox | all outbound networking is failing | 01:33 |
ianw | :) | 01:33 |
jamielennox | sorry for the interruption | 01:34 |
*** chhavi has joined #openstack-dib | 04:04 | |
*** chhavi has quit IRC | 04:38 | |
*** chhavi has joined #openstack-dib | 04:41 | |
*** andreas-f has joined #openstack-dib | 04:42 | |
*** chhavi has quit IRC | 04:44 | |
*** mtreinish has quit IRC | 04:44 | |
jamielennox | any idea what would cause: lsattr: Operation not supported While reading flags on /tmp/dib_build.IUDu73Ng/mnt/etc/resolv.conf | 04:50 |
jamielennox | in a finalize i'm doing ln -sf /run/resolvconf/resolv.conf /etc/resolv.conf | 04:51 |
jamielennox | which I'm not sure exists at the time | 04:51 |
*** mtreinish has joined #openstack-dib | 04:51 | |
jamielennox | excellent, resolv.conf is handled differently, and -infra has an rc.local hack | 05:20 |
*** andreas-f has quit IRC | 05:44 | |
*** andreas-f has joined #openstack-dib | 06:10 | |
jamielennox | is there a way to make nodepool builder and dib build in a directory other than /tmp | 06:31 |
*** yolanda_ has joined #openstack-dib | 07:01 | |
*** andreas-f has quit IRC | 07:23 | |
*** hashar has joined #openstack-dib | 08:13 | |
*** aparnav has joined #openstack-dib | 09:26 | |
*** appu103 has joined #openstack-dib | 09:47 | |
*** aparnav has quit IRC | 09:50 | |
*** hashar has quit IRC | 11:42 | |
*** hashar has joined #openstack-dib | 11:51 | |
*** appu103 has quit IRC | 11:59 | |
*** appu103 has joined #openstack-dib | 12:02 | |
*** appu103 has quit IRC | 12:06 | |
*** farosas_ has joined #openstack-dib | 12:13 | |
clarkb | jamielennox: yes dib honors TMPDIR iirc. Look at infras builder config we set it to be /opt/dib_tmp | 15:06 |
openstackgerrit | Ben Kero proposed openstack/diskimage-builder feature/v2: Revert "Fix #1627402: fix grub2 element for ubuntu xenial" https://review.openstack.org/480671 | 16:45 |
*** hashar has quit IRC | 17:02 | |
*** farosas_ has quit IRC | 21:05 | |
openstackgerrit | Ben Kero proposed openstack/diskimage-builder feature/v2: Revert "Fix #1627402: fix grub2 element for ubuntu xenial" https://review.openstack.org/480671 | 21:50 |
bkero | (rebase) | 21:50 |
jamielennox | ianw: so im' wondering if there is a good way to handle resolv.conf | 23:27 |
jamielennox | there's a few things i've noticed | 23:28 |
ianw | jamielennox: it definitely seems like something the dhcp client should handle? | 23:28 |
jamielennox | ianw: so dhclient is getting the right addresses, and passing it to resolvconf (ubuntu) | 23:29 |
jamielennox | however /etc/resolv.conf in my image is a real file that was copied off the builder | 23:29 |
jamielennox | if i symlink /etc/resolv.conf to /run/resolvconf/resolv.conf i get dns back | 23:30 |
jamielennox | but i can't see a way to do that correctly in an element | 23:30 |
jamielennox | first problem is: https://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/lib/img-functions#L108 | 23:30 |
jamielennox | lsattr is not supported on symlinks so that fails, also i *think* that it's not supported on aufs so it occassionally fails there as well | 23:31 |
ianw | hmmm ... lots of layers there :) | 23:32 |
jamielennox | yea | 23:33 |
ianw | i have no idea why we do this swizzle in create_base() ... will dig a bit | 23:35 |
jamielennox | it looks like -infra hacks it up: https://github.com/openstack-infra/project-config/blob/master/nodepool/elements/nodepool-base/finalise.d/89-unbound#L92 | 23:36 |
jamielennox | ianw: it makes a certain amount of sense | 23:36 |
ianw | it's been there since the original imports by lifeless | 23:36 |
jamielennox | when you're in the chroot and stuff you have to be able to apt install | 23:36 |
ianw | yes, ok, so we copy in the host system then uncopy it later | 23:37 |
jamielennox | yep, but the lsattr immutable thing is a weird choice | 23:37 |
jamielennox | the commit for that seems to be related to unbound | 23:38 |
ianw | that came later ... https://review.openstack.org/#/c/90504/ | 23:38 |
jamielennox | yep - oh, i see what you're saying | 23:39 |
jamielennox | so yea, create base makes a backup of resolv.conf | 23:39 |
jamielennox | then we install a new resolv.conf in the image | 23:39 |
jamielennox | s/image/elements | 23:39 |
jamielennox | then at finalize it restores the old one | 23:39 |
jamielennox | and clobbers what we installed | 23:40 |
ianw | hmm, so the "don't clobber" is failing because it's a symlink, or it's on aufs ... or both? | 23:43 |
jamielennox | i don't know, i'm not exactly sure how to break in there | 23:45 |
jamielennox | if lsattr returns 1 then i'm not sure how that statement falls out | 23:45 |
ianw | that would fall into the else | 23:46 |
jamielennox | but what i want there is a symlink | 23:46 |
ianw | should be traced with "-x"? | 23:46 |
jamielennox | 4897 2017-07-05 07:26:05,675 INFO nodepool.image.build.ubuntu-xenial: b'lsattr: Operation not supported While reading flags on /tmp/dib_build.cA5n6i4q/mnt/etc/resolv.conf' | 23:49 |
jamielennox | 1 2017-07-05 07:26:05,885 INFO nodepool.image.build.ubuntu-xenial: b'Unmount /tmp/dib_build.cA5n6i4q/mnt/sys' | 23:49 |
jamielennox | 2 2017-07-05 07:26:05,905 INFO nodepool.image.build.ubuntu-xenial: b'Unmount /tmp/dib_build.cA5n6i4q/mnt/proc' | 23:49 |
jamielennox | 3 2017-07-05 07:26:05,921 INFO nodepool.image.build.ubuntu-xenial: b'Unmount /tmp/dib_build.cA5n6i4q/mnt/dev/pts' | 23:49 |
jamielennox | 4 2017-07-05 07:26:05,937 INFO nodepool.image.build.ubuntu-xenial: b'Unmount /tmp/dib_build.cA5n6i4q/mnt/dev' | 23:49 |
ianw | oh, it hits the errexit | 23:49 |
ianw | if [ -L $TMP_MOUNT_PATH/etc/resolv.conf.ORIG ] | 23:50 |
ianw | i think we handle this. i guess the main problem is that lsattr failure | 23:51 |
ianw | $ sudo lsattr /etc/resolv.conf | 23:51 |
ianw | lsattr: Operation not supported While reading flags on /etc/resolv.conf | 23:51 |
ianw | though it is not a aufs issue, that's local | 23:51 |
ianw | the plot thickens | 23:51 |
*** owalsh has quit IRC | 23:53 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!