ianw | vizo: it could be a lot of things ... we have a unit test for gentoo that builds and boots it, so it does minimally work | 00:18 |
---|---|---|
vizo | ianw: you do? is it possible to download it and compare aginst mine? | 00:19 |
vizo | like I sai I am using qemu | 00:19 |
ianw | vizo: 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 however | 00:21 |
ianw | prometheanfire is our gentoo expert and is out for a while on a break | 00:21 |
vizo | ok | 00:22 |
vizo | sudo 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.qcow2 | 00:24 |
vizo | thats the command I was using | 00:25 |
vizo | nothing special | 00:25 |
vizo | tho if if you try to put in a overlay you get a bindst erroe in the use file | 00:25 |
vizo | but I was trying just a basic VM | 00:26 |
prometheanfire | wat | 00:31 |
prometheanfire | that should work I think | 00:32 |
ianw | vizo: try adding the "vm" element to that, i don't think you've installed a bootloader | 00:32 |
prometheanfire | ianw: was gonna sugget that | 00:32 |
prometheanfire | :D | 00:32 |
vizo | ianw: sorry I missed typ I did | 00:32 |
vizo | the bootlader comes up | 00:32 |
vizo | then just a black screen | 00:32 |
ianw | right, i did think that dependencies would require that | 00:33 |
ianw | well, it sounds like the initrd can't mount the root partition? | 00:33 |
prometheanfire | vizo: hit alt or 'super' / windows key to cycle ttys? | 00:33 |
vizo | prometheanfire: just tried it | 00:35 |
vizo | ctl alt del reboots it tho | 00:35 |
vizo | using 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 :5 | 00:36 |
prometheanfire | I'm guessing the tty isn't in the command line or something | 00:38 |
vizo | oh | 00:39 |
vizo | wait | 00:39 |
vizo | ctl alt 3 broght a prompt | 00:39 |
prometheanfire | good sign I guess | 00:40 |
ianw | interesting, i guess we don't look at console output at all for any testing | 00:47 |
ianw | sounds like something a grub config option might sort out | 00:47 |
prometheanfire | ya, that's my guess | 01:22 |
prometheanfire | iirc, earlier we (gentoo infra) had a grub config option in one of our post-config scripts, I'll take a look if a bug exists | 01:23 |
prometheanfire | otherwise, I'm busy :P | 01:23 |
prometheanfire | it was luck that I was on at all tonight | 01:23 |
prometheanfire | will probbaly get off soon too | 01:23 |
vizo | ok it seems to work with serial consoles | 01:30 |
vizo | prometheanfire: thanks | 01:33 |
prometheanfire | sure | 01:36 |
prometheanfire | nn | 01:36 |
prometheanfire | :D | 01:36 |
*** eshas has joined #openstack-dib | 03:59 | |
*** eshas has quit IRC | 04:28 | |
*** esha1 has joined #openstack-dib | 04:38 | |
esha1 | ianw: I have uploaded thelog file @clarkb https://bugs.launchpad.net/diskimage-builder/+bug/1766540 | 04:39 |
openstack | Launchpad 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 work | 04:39 |
esha1 | --no-tmpfs doesnt work | 04:39 |
ianw | esha1: it seems like you've forgotten an "-" on the -check-break=? | 04:41 |
esha1 | --check-break=after-error | 04:41 |
esha1 | thisis what I used | 04:41 |
ianw | esha1: that's not what the logs are saying that bug ... | 04:43 |
esha1 | 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 |
esha1 | should 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 |
esha1 | or 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 |
esha1 | let me try those quickly | 04:44 |
esha1 | I had tried..forgot to paste on defect | 04:44 |
esha1 | please check now | 04:44 |
ianw | you want "check_break" exported, like DIB_NO_TMPFS | 04:45 |
ianw | i agree it's confusing | 04:45 |
ianw | in fact it's just "break" | 04:46 |
ianw | it's just break="after-error" , after DIB_NO_TMPFS | 04:46 |
esha1 | ok, so DIB_BREAK=after-error and --break? | 04:46 |
esha1 | whatabout element? | 04:47 |
ianw | no, it's just "break=after-error" | 04:47 |
ianw | it is mentioned in the developing docs | 04:47 |
ianw | https://docs.openstack.org/diskimage-builder/latest/developer/developing_elements.html#debugging-elements | 04:48 |
esha1 | ok, let me check | 04:48 |
esha1 | sudo DIB_NO_TMPFS=1 break=after-error ./disk-image-create -a ppc64el -o ubuntu-vm10 -t raw -x --no-tmpfs vm ubuntu --logfile diblogvm10.txt | 04:50 |
esha1 | will try this | 04:50 |
esha1 | where can I paste the output? | 04:55 |
esha1 | it ran into same error, I did df -h after it stopped at breakpoint | 04:56 |
esha1 | 2018-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 bash | 04:57 |
esha1 | df -h | 04:57 |
esha1 | 2018-04-30 04:54:24.968 | Filesystem Size Used Avail Use% Mounted on | 04:57 |
esha1 | 2018-04-30 04:54:24.968 | /dev/mapper/pvmvg-home 5.8G 797M 4.7G 15% /var/cache/apt/archives | 04:57 |
esha1 | 2018-04-30 04:54:24.968 | udev 1.2G 0 1.2G 0% /dev | 04:57 |
esha1 | 2018-04-30 04:54:24.969 | /dev/mapper/pvmvg-tmp 945M 875M 5.4M 100% /tmp/in_target.d | 04:57 |
ianw | esha1: what is /dev/mapper/pvmvg-tmp ? | 05:04 |
esha1 | Idont know | 05:04 |
esha1 | seems to be from dib | 05:05 |
esha1 | Install works fine till | 05:06 |
esha1 | 2018-04-30 04:53:58.884 | > The following additional packages will be installed: | 05:06 |
esha1 | 2018-04-30 04:53:58.884 | > binutils cpp cpp-5 crda gcc gcc-5 iw libasan2 libatomic1 libcc1-0 | 05:06 |
esha1 | 2018-04-30 04:53:58.884 | > libgcc-5-dev libgomp1 libisl15 libitm1 libmpc3 libnl-3-200 libnl-genl-3-200 | 05:06 |
esha1 | 2018-04-30 04:53:58.884 | > libubsan0 linux-firmware linux-image-4.4.0-122-generic | 05:06 |
esha1 | 2018-04-30 04:53:58.884 | > linux-image-extra-4.4.0-122-generic make wireless-regdb | 05:06 |
esha1 | 2018-04-30 04:53:58.884 | > Suggested packages: | 05:06 |
esha1 | 2018-04-30 04:53:58.884 | > binutils-doc cpp-doc gcc-5-locales gcc-multilib manpages-dev autoconf | 05:06 |
esha1 | 2018-04-30 04:53:58.884 | > automake libtool flex bison gdb gcc-doc gcc-5-doc libgcc1-dbg libgomp1-dbg | 05:06 |
esha1 | 2018-04-30 04:53:58.884 | > libitm1-dbg libatomic1-dbg libasan2-dbg liblsan0-dbg libtsan0-dbg | 05:06 |
esha1 | 2018-04-30 04:53:58.884 | > libubsan0-dbg libcilkrts5-dbg libmpx0-dbg libquadmath0-dbg fdutils | 05:06 |
esha1 | 2018-04-30 04:53:58.884 | > linux-doc-4.4.0 | linux-source-4.4.0 linux-tools | 05:06 |
esha1 | 2018-04-30 04:53:58.884 | > linux-headers-4.4.0-122-generic make-doc | 05:06 |
esha1 | 2018-04-30 04:53:58.884 | > Recommended packages: | 05:07 |
esha1 | 2018-04-30 04:53:58.884 | > fakeroot libc6-dev | libc-dev libc6-dev grub-ieee1275 | 05:07 |
esha1 | 2018-04-30 04:53:58.884 | > The following NEW packages will be installed: | 05:07 |
esha1 | 2018-04-30 04:53:58.885 | > binutils cpp cpp-5 crda dkms gcc gcc-5 iw libasan2 libatomic1 libcc1-0 | 05:07 |
esha1 | 2018-04-30 04:53:58.885 | > libgcc-5-dev libgomp1 libisl15 libitm1 libmpc3 libnl-3-200 libnl-genl-3-200 | 05:07 |
esha1 | 2018-04-30 04:53:58.885 | > libubsan0 linux-firmware linux-image-4.4.0-122-generic | 05:07 |
esha1 | 2018-04-30 04:53:58.885 | > linux-image-extra-4.4.0-122-generic linux-image-generic make wireless-regdb | 05:07 |
esha1 | 2018-04-30 04:53:58.885 | > 0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded. | 05:07 |
esha1 | 2018-04-30 04:53:58.885 | > Need to get 0 B/124 MB of archives. | 05:07 |
esha1 | 2018-04-30 04:53:58.885 | > After this operation, 547 MB of additional disk space will be used. | 05:07 |
esha1 | 2018-04-30 04:53:58.885 | > Selecting previously unselected package libmpc3:ppc64el. | 05:07 |
esha1 | this needs 547MB space | 05:07 |
esha1 | shouldI pre-install them? | 05:07 |
ianw | esha1: please don't do huge pastes in here, it is never helpful | 05:07 |
esha1 | ok, sure, wont now | 05:07 |
esha1 | openstack has a textpad right? | 05:07 |
ianw | paste.openstack.org | 05:08 |
ianw | what does df -h /tmp show as the size of your /tmp ? | 05:08 |
esha1 | http://paste.openstack.org/show/720107/ | 05:09 |
esha1 | let me chk | 05:09 |
esha1 | 2018-04-30 05:09:46.476 | Filesystem Size Used Avail Use% Mounted on | 05:09 |
esha1 | 2018-04-30 05:09:46.477 | /dev/mapper/pvmvg-tmp 945M 875M 5.4M 100% /tmp/in_target.d | 05:09 |
ianw | from outside the chroot? | 05:10 |
ianw | i feel like you've got /tmp mounted somewhere small. you might try running with TMP_DIR=/path-to-somewhere-with-lots-of-space | 05:11 |
esha1 | no this is not outside chroot i think, its just the same screen after break | 05:19 |
esha1 | hmm..ok, let me exit this, chk, df -h and try topoint TMP_DIR | 05:19 |
esha1 | this is what df -h look like | 05:20 |
esha1 | 2018-04-30 05:19:39.876 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/img-functions:trap_cleanup:38 : exit 1 | 05:20 |
esha1 | (env) neo@p8-gd-115-neo:~/dib/env/bin$ df -h | 05:20 |
esha1 | Filesystem Size Used Avail Use% Mounted on | 05:20 |
esha1 | udev 1.2G 0 1.2G 0% /dev | 05:20 |
esha1 | tmpfs 246M 42M 205M 17% /run | 05:20 |
esha1 | tmpfs 1.2G 0 1.2G 0% /dev/shm | 05:20 |
esha1 | tmpfs 5.0M 0 5.0M 0% /run/lock | 05:20 |
esha1 | tmpfs 1.2G 0 1.2G 0% /sys/fs/cgroup | 05:20 |
esha1 | tmpfs 246M 0 246M 0% /run/user/1000 | 05:20 |
esha1 | ......(env) neo@p8-gd-115-neo:~/dib/env/bin$ df -h | 05:20 |
esha1 | Filesystem Size Used Avail Use% Mounted on | 05:20 |
esha1 | udev 1.2G 0 1.2G 0% /dev | 05:20 |
esha1 | tmpfs 246M 42M 205M 17% /run | 05:20 |
esha1 | tmpfs 1.2G 0 1.2G 0% /dev/shm | 05:21 |
esha1 | tmpfs 5.0M 0 5.0M 0% /run/lock | 05:21 |
esha1 | tmpfs 1.2G 0 1.2G 0% /sys/fs/cgroup | 05:21 |
esha1 | tmpfs 246M 0 246M 0% /run/user/1000 | 05:21 |
esha1 | sorry | 05:22 |
esha1 | env) neo@p8-gd-115-neo:~/dib/env/bin$ df -h | 05:22 |
esha1 | Filesystem Size Used Avail Use% Mounted on | 05:22 |
esha1 | udev 1.2G 0 1.2G 0% /dev | 05:22 |
esha1 | tmpfs 246M 42M 205M 17% /run | 05:22 |
esha1 | dev/mapper/pvmvg-root 8.4G 2.5G 5.5G 31% / | 05:22 |
esha1 | tmpfs 1.2G 0 1.2G 0% /dev/shm | 05:22 |
esha1 | tmpfs 5.0M 0 5.0M 0% /run/lock | 05:22 |
esha1 | tmpfs 1.2G 0 1.2G 0% /sys/fs/cgroup | 05:22 |
esha1 | dev/md0 465M 69M 368M 16% /boot | 05:22 |
esha1 | dev/mapper/pvmvg-var 9.3G 2.0G 6.9G 22% /var | 05:22 |
esha1 | dev/mapper/pvmvg-tmp 945M 1.3M 879M 1% /tmp | 05:22 |
esha1 | dev/mapper/pvmvg-home 5.8G 797M 4.7G 15% /home | 05:22 |
esha1 | tmpfs 246M 0 246M 0% /run/user/1000 | 05:22 |
esha1 | Filesystem Size Used Avail Use% Mounted on | 05:22 |
esha1 | dev/mapper/pvmvg-tmp 945M 1.3M 879M 1% /tmp | 05:22 |
esha1 | so /dev/mapper/pvmvg-tmp needs tobe pointed to somewhere bigger .. but the biggest is takenup by pvmvg-root | 05:24 |
esha1 | pvmvg-var and pvmvghome | 05:25 |
esha1 | so --no-tmpfs cant be used? | 05:33 |
esha1 | Imean it doesnt seem to work | 05:34 |
esha1 | this is allthe memory I have on this system | 05:34 |
ianw | the tmpfs thing isn't relevant, we write to /tmp which looks like it's < 1gb | 05:34 |
ianw | just make a directory /var/tmp and run with TMP_DIR=/var/tmp | 05:35 |
esha1 | ok,but size of directory should be around1.5 GB? | 05:35 |
ianw | it will need a bit, it looks like /var is your biggest partition | 05:36 |
esha1 | yes, /var is biggest | 05:39 |
esha1 | but /var/tmp exists and has some system files | 05:39 |
ianw | just make /var/tmp/dib to keep it separate then | 05:40 |
esha1 | so should I reuse or create a /var/temp and point TMP_DIR | 05:40 |
esha1 | ok | 05:40 |
esha1 | sudo 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.txt | 05:45 |
esha1 | going to try this | 05:45 |
ianw | no it's just "TMP_DIR" | 05:45 |
esha1 | ianw: TMP_DIR doesnt work | 05: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.txt | 05:53 |
esha1 | this worked | 05:53 |
esha1 | its TMPDIR..thanks for allinfo.. finally image got created | 05:53 |
esha1 | I thinkI canremove DIB_NO_TMPFS cause it alwaystakes TMP | 05:54 |
esha1 | ? | 05:54 |
ianw | probably, but it won't hurt | 05:54 |
*** pavel_V has joined #openstack-dib | 06:51 | |
esha1 | ok | 06:56 |
esha1 | For 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 DIB | 06:57 |
esha1 | ? | 06:57 |
ianw | esha1: i'm not aware of any way we provide to override cloud-init | 07:19 |
esha1 | so it will always download the latest? | 07:20 |
esha1 | what is simple-init? | 07:20 |
ianw | esha1: it installs the "glean" process, which gets config from dhcp/config-drive | 07:23 |
*** hashar has joined #openstack-dib | 08:05 | |
*** pmannidi has quit IRC | 08:52 | |
esha1 | oh.. is cloudinit v18.2 working for anyone for Ubuntu? | 08:58 |
*** yolanda_ is now known as yolanda | 09:39 | |
*** hashar is now known as hasharAway | 10:16 | |
*** hasharAway is now known as hashar | 11:58 | |
*** dhill_ has quit IRC | 13:01 | |
*** vmlinuz has joined #openstack-dib | 13:21 | |
*** dhill_ has joined #openstack-dib | 13:21 | |
*** rajinir has joined #openstack-dib | 14:28 | |
*** pavel_V has quit IRC | 14:53 | |
*** vmlinuz has quit IRC | 15:11 | |
*** hashar is now known as hasharAway | 15:23 | |
*** vmlinuz has joined #openstack-dib | 15:28 | |
*** vmlinuz has joined #openstack-dib | 15:28 | |
*** esha1 has quit IRC | 16:15 | |
*** esha1 has joined #openstack-dib | 16:18 | |
*** hasharAway is now known as hashar | 17:01 | |
*** hashar is now known as hasharAway | 17:01 | |
*** hasharAway is now known as hashar | 18:44 | |
*** esha1 has quit IRC | 18:50 | |
*** eshas has joined #openstack-dib | 19:46 | |
*** eshas has quit IRC | 20:55 | |
*** hashar has quit IRC | 21:07 | |
*** vmlinuz has quit IRC | 21:40 | |
*** dhill_ has quit IRC | 21:52 | |
*** dhill_ has joined #openstack-dib | 21:53 | |
*** rajinir has quit IRC | 23:08 | |
*** pmannidi has joined #openstack-dib | 23:15 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!