Monday, 2018-04-30

ianwvizo: it could be a lot of things ... we have a unit test for gentoo that builds and boots it, so it does minimally work00:18
vizoianw: you do? is it possible to download it and compare aginst mine?00:19
vizolike I sai I am using qemu00:19
ianwvizo: it's a little bit complicated because it sets up an openstack environment using devstack and then uploads the image into it. it uses qemu/kvm however00:21
ianwprometheanfire is our gentoo expert and is out for a while on a break00:21
vizook00:22
vizosudo DIB_DEV_USER_PASSWORD=P@ssword22 DIB_DEV_USER_USERNAME=vlnadmin DIB_DEV_USER_PWDLESS_SUDO=yes DIB_DEV_USER_AUTHORIZED_KEYS=/dev/null disk-image-create -a  amd64 -t qcow2 --image-size 6 gentoo devuser -o vln.qcow200:24
vizothats the command I was using00:25
vizonothing special00:25
vizotho if if you try to put in a overlay you get a bindst erroe in the use file00:25
vizobut I was trying just a basic VM00:26
prometheanfirewat00:31
prometheanfirethat should work I think00:32
ianwvizo: try adding the "vm" element to that, i don't think you've installed a bootloader00:32
prometheanfireianw: was gonna sugget that00:32
prometheanfire:D00:32
vizoianw: sorry I missed typ I did00:32
vizothe bootlader comes up00:32
vizothen just a black screen00:32
ianwright, i did think that dependencies would require that00:33
ianwwell, it sounds like the initrd can't mount the root partition?00:33
prometheanfirevizo: hit alt or 'super' / windows key to cycle ttys?00:33
vizoprometheanfire: just tried it00:35
vizoctl alt del reboots it tho00:35
vizousing this command qemu-system-x86_64 -cpu host -enable-kvm -drive format=qcow2,file=vln.qcow2,if=virtio -m 2048 -net nic,model=virtio -net user,hostfwd=tcp::2222-:22 -vga cirrus -vnc :500:36
prometheanfireI'm guessing the tty isn't in the command line or something00:38
vizooh00:39
vizowait00:39
vizoctl alt 3 broght a prompt00:39
prometheanfiregood sign I guess00:40
ianwinteresting, i guess we don't look at console output at all for any testing00:47
ianwsounds like something a grub config option might sort out00:47
prometheanfireya, that's my guess01:22
prometheanfireiirc, earlier we (gentoo infra) had a grub config option in one of our post-config scripts, I'll take a look if a bug exists01:23
prometheanfireotherwise, I'm busy :P01:23
prometheanfireit was luck that I was on at all tonight01:23
prometheanfirewill probbaly get off soon too01:23
vizook it seems to work with serial consoles01:30
vizoprometheanfire: thanks01:33
prometheanfiresure01:36
prometheanfirenn01:36
prometheanfire:D01:36
*** eshas has joined #openstack-dib03:59
*** eshas has quit IRC04:28
*** esha1 has joined #openstack-dib04:38
esha1ianw:  I have uploaded thelog file @clarkb https://bugs.launchpad.net/diskimage-builder/+bug/176654004:39
openstackLaunchpad bug 1766540 in diskimage-builder "failed to write (No space left on device) error in image creation via DIB " [Undecided,New]04:39
esha1--check-break=after-error option doesnt seem to work04:39
esha1--no-tmpfs doesnt work04:39
ianwesha1: it seems like you've forgotten an "-" on the -check-break=?04:41
esha1--check-break=after-error04:41
esha1thisis what I used04:41
ianwesha1: that's not what the logs are saying that bug ...04:43
esha1sudo DIB_NO_TMPFS=1 ./disk-image-create -a ppc64el -o ubuntu-vm4 -t raw -x check_break=after-error --no-tmpfs vm ubuntu --logfile diblogvm4.txt04:43
esha1should I try with sudo DIB_NO_TMPFS=1 ./disk-image-create -a ppc64el -o ubuntu-vm4 -t raw -x -check_break=after-error --no-tmpfs vm ubuntu --logfile diblogvm4.txt?04:43
esha1or sudo DIB_NO_TMPFS=1 ./disk-image-create -a ppc64el -o ubuntu-vm4 -t raw -x --check_break=after-error --no-tmpfs vm ubuntu --logfile diblogvm4.txt04:43
esha1let me try those quickly04:44
esha1I had tried..forgot to paste on defect04:44
esha1please check now04:44
ianwyou want "check_break" exported, like DIB_NO_TMPFS04:45
ianwi agree it's confusing04:45
ianwin fact it's just "break"04:46
ianwit's just break="after-error" , after DIB_NO_TMPFS04:46
esha1ok, so DIB_BREAK=after-error and --break?04:46
esha1whatabout element?04:47
ianwno, it's just "break=after-error"04:47
ianwit is mentioned in the developing docs04:47
ianwhttps://docs.openstack.org/diskimage-builder/latest/developer/developing_elements.html#debugging-elements04:48
esha1ok, let me check04:48
esha1sudo DIB_NO_TMPFS=1 break=after-error ./disk-image-create -a ppc64el -o ubuntu-vm10 -t raw -x --no-tmpfs vm ubuntu --logfile diblogvm10.txt04:50
esha1will try this04:50
esha1where can I paste the output?04:55
esha1it ran into same error, I did df -h after it stopped at breakpoint04:56
esha12018-04-30 04:53:58.923 | ++ /home/neo/dib/diskimage-builder/diskimage_builder/lib/img-functions:run_in_target:59 :   sudo -E chroot /tmp/dib_build.dO6EaFFR/mnt env -u TMPDIR -u VIRTUAL_ENV 'PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' sh -c bash04:57
esha1df -h04:57
esha12018-04-30 04:54:24.968 | Filesystem              Size  Used Avail Use% Mounted on04:57
esha12018-04-30 04:54:24.968 | /dev/mapper/pvmvg-home  5.8G  797M  4.7G  15% /var/cache/apt/archives04:57
esha12018-04-30 04:54:24.968 | udev                    1.2G     0  1.2G   0% /dev04:57
esha12018-04-30 04:54:24.969 | /dev/mapper/pvmvg-tmp   945M  875M  5.4M 100% /tmp/in_target.d04:57
ianwesha1: what is /dev/mapper/pvmvg-tmp ?05:04
esha1Idont know05:04
esha1seems to be from dib05:05
esha1Install works fine till05:06
esha12018-04-30 04:53:58.884 | > The following additional packages will be installed:05:06
esha12018-04-30 04:53:58.884 | >   binutils cpp cpp-5 crda gcc gcc-5 iw libasan2 libatomic1 libcc1-005:06
esha12018-04-30 04:53:58.884 | >   libgcc-5-dev libgomp1 libisl15 libitm1 libmpc3 libnl-3-200 libnl-genl-3-20005:06
esha12018-04-30 04:53:58.884 | >   libubsan0 linux-firmware linux-image-4.4.0-122-generic05:06
esha12018-04-30 04:53:58.884 | >   linux-image-extra-4.4.0-122-generic make wireless-regdb05:06
esha12018-04-30 04:53:58.884 | > Suggested packages:05:06
esha12018-04-30 04:53:58.884 | >   binutils-doc cpp-doc gcc-5-locales gcc-multilib manpages-dev autoconf05:06
esha12018-04-30 04:53:58.884 | >   automake libtool flex bison gdb gcc-doc gcc-5-doc libgcc1-dbg libgomp1-dbg05:06
esha12018-04-30 04:53:58.884 | >   libitm1-dbg libatomic1-dbg libasan2-dbg liblsan0-dbg libtsan0-dbg05:06
esha12018-04-30 04:53:58.884 | >   libubsan0-dbg libcilkrts5-dbg libmpx0-dbg libquadmath0-dbg fdutils05:06
esha12018-04-30 04:53:58.884 | >   linux-doc-4.4.0 | linux-source-4.4.0 linux-tools05:06
esha12018-04-30 04:53:58.884 | >   linux-headers-4.4.0-122-generic make-doc05:06
esha12018-04-30 04:53:58.884 | > Recommended packages:05:07
esha12018-04-30 04:53:58.884 | >   fakeroot libc6-dev | libc-dev libc6-dev grub-ieee127505:07
esha12018-04-30 04:53:58.884 | > The following NEW packages will be installed:05:07
esha12018-04-30 04:53:58.885 | >   binutils cpp cpp-5 crda dkms gcc gcc-5 iw libasan2 libatomic1 libcc1-005:07
esha12018-04-30 04:53:58.885 | >   libgcc-5-dev libgomp1 libisl15 libitm1 libmpc3 libnl-3-200 libnl-genl-3-20005:07
esha12018-04-30 04:53:58.885 | >   libubsan0 linux-firmware linux-image-4.4.0-122-generic05:07
esha12018-04-30 04:53:58.885 | >   linux-image-extra-4.4.0-122-generic linux-image-generic make wireless-regdb05:07
esha12018-04-30 04:53:58.885 | > 0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded.05:07
esha12018-04-30 04:53:58.885 | > Need to get 0 B/124 MB of archives.05:07
esha12018-04-30 04:53:58.885 | > After this operation, 547 MB of additional disk space will be used.05:07
esha12018-04-30 04:53:58.885 | > Selecting previously unselected package libmpc3:ppc64el.05:07
esha1this needs 547MB space05:07
esha1shouldI pre-install them?05:07
ianwesha1: please don't do huge pastes in here, it is never helpful05:07
esha1ok, sure, wont now05:07
esha1openstack has a textpad right?05:07
ianwpaste.openstack.org05:08
ianwwhat does df -h /tmp show as the size of your /tmp ?05:08
esha1http://paste.openstack.org/show/720107/05:09
esha1let me chk05:09
esha12018-04-30 05:09:46.476 | Filesystem             Size  Used Avail Use% Mounted on05:09
esha12018-04-30 05:09:46.477 | /dev/mapper/pvmvg-tmp  945M  875M  5.4M 100% /tmp/in_target.d05:09
ianwfrom outside the chroot?05:10
ianwi feel like you've got /tmp mounted somewhere small.  you might try running with TMP_DIR=/path-to-somewhere-with-lots-of-space05:11
esha1no this is not outside chroot i think, its just the same screen after break05:19
esha1hmm..ok, let me exit this, chk, df -h and try topoint TMP_DIR05:19
esha1this is what df -h look like05:20
esha12018-04-30 05:19:39.876 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/img-functions:trap_cleanup:38 :   exit 105:20
esha1(env) neo@p8-gd-115-neo:~/dib/env/bin$ df -h05:20
esha1Filesystem              Size  Used Avail Use% Mounted on05:20
esha1udev                    1.2G     0  1.2G   0% /dev05:20
esha1tmpfs                   246M   42M  205M  17% /run05:20
esha1tmpfs                   1.2G     0  1.2G   0% /dev/shm05:20
esha1tmpfs                   5.0M     0  5.0M   0% /run/lock05:20
esha1tmpfs                   1.2G     0  1.2G   0% /sys/fs/cgroup05:20
esha1tmpfs                   246M     0  246M   0% /run/user/100005:20
esha1......(env) neo@p8-gd-115-neo:~/dib/env/bin$ df -h05:20
esha1Filesystem              Size  Used Avail Use% Mounted on05:20
esha1udev                    1.2G     0  1.2G   0% /dev05:20
esha1tmpfs                   246M   42M  205M  17% /run05:20
esha1tmpfs                   1.2G     0  1.2G   0% /dev/shm05:21
esha1tmpfs                   5.0M     0  5.0M   0% /run/lock05:21
esha1tmpfs                   1.2G     0  1.2G   0% /sys/fs/cgroup05:21
esha1tmpfs                   246M     0  246M   0% /run/user/100005:21
esha1sorry05:22
esha1env) neo@p8-gd-115-neo:~/dib/env/bin$ df -h05:22
esha1Filesystem              Size  Used Avail Use% Mounted on05:22
esha1udev                    1.2G     0  1.2G   0% /dev05:22
esha1tmpfs                   246M   42M  205M  17% /run05:22
esha1dev/mapper/pvmvg-root  8.4G  2.5G  5.5G  31% /05:22
esha1tmpfs                   1.2G     0  1.2G   0% /dev/shm05:22
esha1tmpfs                   5.0M     0  5.0M   0% /run/lock05:22
esha1tmpfs                   1.2G     0  1.2G   0% /sys/fs/cgroup05:22
esha1dev/md0                465M   69M  368M  16% /boot05:22
esha1dev/mapper/pvmvg-var   9.3G  2.0G  6.9G  22% /var05:22
esha1dev/mapper/pvmvg-tmp   945M  1.3M  879M   1% /tmp05:22
esha1dev/mapper/pvmvg-home  5.8G  797M  4.7G  15% /home05:22
esha1tmpfs                   246M     0  246M   0% /run/user/100005:22
esha1Filesystem             Size  Used Avail Use% Mounted on05:22
esha1 dev/mapper/pvmvg-tmp  945M  1.3M  879M   1% /tmp05:22
esha1so /dev/mapper/pvmvg-tmp needs tobe pointed to somewhere bigger .. but the biggest is takenup by pvmvg-root05:24
esha1pvmvg-var and pvmvghome05:25
esha1so --no-tmpfs cant be used?05:33
esha1Imean it doesnt seem to work05:34
esha1this is allthe memory I have on this system05:34
ianwthe tmpfs thing isn't relevant, we write to /tmp which looks like it's < 1gb05:34
ianwjust make a directory /var/tmp and run with TMP_DIR=/var/tmp05:35
esha1ok,but size of directory should be around1.5 GB?05:35
ianwit will need a bit, it looks like /var is your biggest partition05:36
esha1yes, /var is biggest05:39
esha1but /var/tmp exists and has some system files05:39
ianwjust make /var/tmp/dib to keep it separate then05:40
esha1so should I reuse or create a /var/temp and point TMP_DIR05:40
esha1ok05:40
esha1sudo DIB_TMP_DIR=/var/tmp/dib DIB_NO_TMPFS=1 ./disk-image-create -a ppc64el -o ubuntu-vm4 -t raw -x --check-break=after-error --no-tmpfs vm ubuntu --logfile diblogvm4.txt05:45
esha1going to try this05:45
ianwno it's just "TMP_DIR"05:45
esha1ianw: TMP_DIR doesnt work05:53
esha1 sudo TMPDIR=/var/tmp/dib DIB_NO_TMPFS=1 break=after-error ./disk-image-create -a ppc64el -o ubuntu-vm4 -t raw -x --no-tmpfs vm ubuntu --logfile diblogvm4.txt05:53
esha1this worked05:53
esha1its TMPDIR..thanks for allinfo.. finally image got created05:53
esha1I thinkI canremove DIB_NO_TMPFS cause it alwaystakes TMP05:54
esha1?05:54
ianwprobably, but it won't hurt05:54
*** pavel_V has joined #openstack-dib06:51
esha1ok06:56
esha1For ubuntu xenial, DIB picks up latest v18.2 of cloudinit ,but doesnt assign the ip to the vm thus vm is unpingable and no networking. Can I provide the earlier cloud-init or my own cloud init.rpm/deb to DIB06:57
esha1?06:57
ianwesha1: i'm not aware of any way we provide to override cloud-init07:19
esha1so it will always download the latest?07:20
esha1what is simple-init?07:20
ianwesha1: it installs the "glean" process, which gets config from dhcp/config-drive07:23
*** hashar has joined #openstack-dib08:05
*** pmannidi has quit IRC08:52
esha1oh.. is cloudinit v18.2 working for anyone for Ubuntu?08:58
*** yolanda_ is now known as yolanda09:39
*** hashar is now known as hasharAway10:16
*** hasharAway is now known as hashar11:58
*** dhill_ has quit IRC13:01
*** vmlinuz has joined #openstack-dib13:21
*** dhill_ has joined #openstack-dib13:21
*** rajinir has joined #openstack-dib14:28
*** pavel_V has quit IRC14:53
*** vmlinuz has quit IRC15:11
*** hashar is now known as hasharAway15:23
*** vmlinuz has joined #openstack-dib15:28
*** vmlinuz has joined #openstack-dib15:28
*** esha1 has quit IRC16:15
*** esha1 has joined #openstack-dib16:18
*** hasharAway is now known as hashar17:01
*** hashar is now known as hasharAway17:01
*** hasharAway is now known as hashar18:44
*** esha1 has quit IRC18:50
*** eshas has joined #openstack-dib19:46
*** eshas has quit IRC20:55
*** hashar has quit IRC21:07
*** vmlinuz has quit IRC21:40
*** dhill_ has quit IRC21:52
*** dhill_ has joined #openstack-dib21:53
*** rajinir has quit IRC23:08
*** pmannidi has joined #openstack-dib23:15

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