Friday, 2017-03-17

openstackgerritIan Wienand proposed openstack/diskimage-builder master: Run dib-run-parts out of /tmp  https://review.openstack.org/44676901:23
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Don't provide dib-run-parts  https://review.openstack.org/44628501:23
ianwgreghaynes: ^ i will respond in the thread, but i think those two combined are the solution here01:23
ianwi do wish i'd thought of this pre-v2, but that's life01:24
greghaynesianw: the comment about why not use the normal run-parts is interesting01:48
greghaynesNo idea if that's in the rh distros now...01:48
*** jamielennox is now known as jamielennox|away01:56
*** jamielennox|away is now known as jamielennox02:01
ianwgreghaynes: yeah, maybe not03:11
*** zhugaoxiao has quit IRC03:29
*** zhugaoxiao has joined #openstack-dib03:30
*** owalsh_ has joined #openstack-dib04:20
*** owalsh has quit IRC04:23
openstackgerritIan Wienand proposed openstack/diskimage-builder master: Run dib-run-parts out of /tmp  https://review.openstack.org/44676906:19
*** yolanda has joined #openstack-dib06:45
openstackgerritAndreas Florath proposed openstack/diskimage-builder master: Refactor: block-device filesystem creation, mount and fstab  https://review.openstack.org/44458607:25
*** pmannidi has quit IRC08:04
*** hashar has joined #openstack-dib08:17
*** jesusaur has quit IRC09:13
*** jesusaur has joined #openstack-dib09:15
openstackgerrityolanda.robla proposed openstack/diskimage-builder master: WIP: Add lvm management to diskimage-builder  https://review.openstack.org/44440310:26
*** zhugaoxiao has quit IRC12:13
*** zhugaoxiao has joined #openstack-dib12:14
*** mat128 has quit IRC13:14
*** zhugaoxiao has quit IRC13:36
*** zhugaoxiao has joined #openstack-dib13:37
openstackgerrityolanda.robla proposed openstack/diskimage-builder master: WIP: Add lvm management to diskimage-builder  https://review.openstack.org/44440313:44
yolandahi, ianw , greghaynes ... in order for lvm to work in dib, it needed a dracut regeneration. I have an element that does it on tripleo: http://git.openstack.org/cgit/openstack/tripleo-image-elements/tree/elements/overcloud-dracut13:59
yolandahowever i think that this will be needed on dib. What do you think about it? shall i just include literally as it is now, or can you figure a better way to regenerate dracut?13:59
*** brault_ is now known as brault|away14:09
*** brault|away is now known as brault14:16
greghaynesyolanda: yea, we have a dracut-ramdisk element already, not sure how similar it is14:45
greghaynesit shouldnt be named with 'overcloud' though14:45
yolandaah greghaynes , but it's not the same, i already looked at it14:47
yolandayour dracut-ramdisk is to generate initrd images14:47
greghaynesyea14:47
yolandain my case, i need to regenerate dracut on the whole disk iamge14:47
openstackgerrityolanda.robla proposed openstack/diskimage-builder master: WIP: Add lvm management to diskimage-builder  https://review.openstack.org/44440314:47
greghaynesif its sufficiently different probably ok to make a new one14:47
yolandayes, the scope is different14:50
yolandaso i'll propose something around these lines, overcloud not calling it "overcloud" :)14:51
greghaynesok14:51
yolandain my case, i added lvm and crypt modules by default, because i needed it for handling the volumes and encryption. Do you think it makes sense to carry the same? will you add some other modules? it can be parameterized, but the defaults where "lvm crypt"14:53
greghaynesits probably useful to make there bee some env var or way to configure what modules14:53
yolandayes, there is an env var to parameterize it. The most conflicting thing, is that , for example, to enable lvm you need to install lvm2 package. Same for crypt14:54
yolandaso the module enablement is tied to the packages installed14:54
greghayneshrm14:54
yolandasee that overcloud element, it has lvm and crypt on the package-installs.yaml, because it adds lvm and crypt modules14:55
greghaynesI think that will just have to go in code14:56
greghaynesif lvm in $env_var package-install -m lvm lvm214:56
yolandaso not in the element?14:57
greghaynesin dracut, yes14:57
greghaynesbut itll have to be in a install.d script, not package installs14:57
yolandaso you mean, adding some associations between modules and packages? what about if people want to add their own ones?14:57
greghaynesyolanda: yes, people will have to install the dependencies on their own14:58
greghaynesyoull just need to support in dracut whatever it sets by default14:58
greghaynesalternatively14:59
greghaynesyou could make dracut and then dracut-lvm which adds lvm to the env var and has the dependency in package-installs.yaml14:59
yolandabut if we need to combine several? dracut-lvm, dracut-crypt, and go appending modules in the dracut env var?14:59
greghaynesyep, DIB_DRACUT_MODULES="$DIB_DRACUT_MODULES lvm" in dracut-lvm/environment.d/whatever15:00
yolandamakes sense15:01
yolandai think i prefer that approach, looks cleaner and some downstream consumer could create their own modules15:03
greghaynesSGTM15:03
yolandacool, i'll send that15:05
yolandagreghaynes, more things... do you know about rpm-distro element and autorelabel? seems it didn't run autorelabel for me, falling into the other condition here http://git.openstack.org/cgit/openstack/diskimage-builder/tree/diskimage_builder/elements/rpm-distro/finalise.d/90-selinux-fixfiles-restore15:17
yolandaand i had to run autorelabel on my own because there were failures15:18
greghaynesI dont really know anything about those, no15:18
yolandaok i'll check with ianw or pabelanger then15:19
yolandagreghaynes, i have the fear that is only applying the setfiles on the root volume/partition, and in my case, i have different mounts for var, var/log, tmp... that will cause that selinux errors15:28
openstackgerrityolanda.robla proposed openstack/diskimage-builder master: Fix setfiles command  https://review.openstack.org/44703315:30
*** IRC-Source_47177 has joined #openstack-dib15:57
*** IRC-Source_47177 has quit IRC16:02
openstackgerrityolanda.robla proposed openstack/diskimage-builder master: WIP: Add dracut-regenerate elements  https://review.openstack.org/44704716:04
openstackgerrityolanda.robla proposed openstack/diskimage-builder master: WIP: Add lvm management to diskimage-builder  https://review.openstack.org/44440316:06
openstackgerrityolanda.robla proposed openstack/diskimage-builder master: Add dracut-regenerate elements  https://review.openstack.org/44704717:09
openstackgerrityolanda.robla proposed openstack/diskimage-builder master: WIP: Add lvm management to diskimage-builder  https://review.openstack.org/44440317:20
openstackgerrityolanda.robla proposed openstack/diskimage-builder master: Always execute autorelabel  https://review.openstack.org/44707617:23
*** hashar has quit IRC17:46
openstackgerritAndreas Florath proposed openstack/diskimage-builder master: Use stevedore for module config of block device  https://review.openstack.org/44709018:16
openstackgerritAndreas Florath proposed openstack/diskimage-builder master: Use stevedore for module config of block device  https://review.openstack.org/44709018:59
openstackgerrityolanda.robla proposed openstack/diskimage-builder master: Always execute autorelabel  https://review.openstack.org/44707619:46
*** andreas-f has joined #openstack-dib19:57
openstackgerritCorey O'Brien proposed openstack/diskimage-builder master: Don't unmount missing paths If the path is missing, unmount_dir fails and skips the EXTRA_DETACH and EXTRA_UNMOUNT steps  https://review.openstack.org/44662120:16
openstackgerritAndreas Florath proposed openstack/diskimage-builder master: Use stevedore for module config of block device  https://review.openstack.org/44709020:25
*** yolanda has quit IRC20:26
*** yolanda has joined #openstack-dib20:26

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