Created
February 8, 2013 01:10
-
-
Save vipulsabhaya/4735753 to your computer and use it in GitHub Desktop.
dib error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu@ubuntu:~/reddwarf-integration/scripts$ ./redstack build-image mysql | |
******************************************************************************* | |
Building an image for use with development and integration tests. | |
******************************************************************************* | |
******************************************************************************* | |
Actually building the image, this can take up to 15 minutes | |
******************************************************************************* | |
/home/ubuntu/.ssh already exists | |
Keyfile already exists in authorized_keys - skipping | |
XXX -a 'amd64' -o '/home/ubuntu/images/precise_mysql_image/precise_mysql_image' -x -- 'vm' 'reddwarf-guest' 'reddwarf-mysql' | |
+ true | |
+ case "$1" in | |
+ shift | |
+ break | |
+ '[' '' == 1 -a /home/ubuntu/reddwarf-integration/scripts/ '!=' '' ']' | |
+ for arg in '"$@"' | |
+ IMAGE_ELEMENT=' vm' | |
+ for arg in '"$@"' | |
+ IMAGE_ELEMENT=' vm reddwarf-guest' | |
+ for arg in '"$@"' | |
+ IMAGE_ELEMENT=' vm reddwarf-guest reddwarf-mysql' | |
+ source /opt/stack/diskimage-builder/bin/../lib/img-defaults | |
++ ARCH=amd64 | |
++ RELEASE=precise | |
++ BASE_IMAGE_FILE=precise-server-cloudimg-amd64-root.tar.gz | |
++ CLOUD_IMAGES=http://cloud-images.ubuntu.com/ | |
++ FS_TYPE=ext4 | |
++ IMAGE_TYPE=qcow2 | |
++ IMAGE_NAME=/home/ubuntu/images/precise_mysql_image/precise_mysql_image | |
++ export IMAGE_SIZE=2 | |
++ IMAGE_SIZE=2 | |
++ IMG_PATH=/home/ubuntu/reddwarf-integration/scripts//.cache/image-create | |
+++ dirname /opt/stack/diskimage-builder/bin/disk-image-create | |
++ export ELEMENTS_DIR=/opt/stack/diskimage-builder/bin/../elements | |
++ ELEMENTS_DIR=/opt/stack/diskimage-builder/bin/../elements | |
+ source /opt/stack/diskimage-builder/bin/../lib/common-functions | |
+ source /opt/stack/diskimage-builder/bin/../lib/img-functions | |
++ /opt/stack/diskimage-builder/bin/element-info --expand-dependencies vm reddwarf-guest reddwarf-mysql | |
+ IMAGE_ELEMENT='reddwarf-mysql vm reddwarf-guest' | |
+ echo 'Building elements: reddwarf-mysql vm reddwarf-guest' | |
Building elements: reddwarf-mysql vm reddwarf-guest | |
+ echo 'If prompted for sudo, install sudoers.d/img-build-sudoers into /etc/sudoers.d and restart the build.' | |
If prompted for sudo, install sudoers.d/img-build-sudoers into /etc/sudoers.d and restart the build. | |
+ mkdir -p /home/ubuntu/reddwarf-integration/scripts//.cache/image-create | |
+ ensure_nbd | |
++ which qemu-nbd | |
+ NBD=/usr/bin/qemu-nbd | |
+ '[' -z /usr/bin/qemu-nbd ']' | |
+ lsmod | |
+ grep '^nbd ' | |
nbd 17715 0 | |
+ mk_build_dir | |
++ mktemp -t -d image.XXXXXXXX | |
+ export TMP_BUILD_DIR=/tmp/image.fObwIZQf | |
+ TMP_BUILD_DIR=/tmp/image.fObwIZQf | |
+ '[' 0 -eq 0 ']' | |
+ trap cleanup EXIT | |
+ echo Building in /tmp/image.fObwIZQf | |
Building in /tmp/image.fObwIZQf | |
+ export TMP_IMAGE_PATH=/tmp/image.fObwIZQf/image | |
+ TMP_IMAGE_PATH=/tmp/image.fObwIZQf/image | |
+ export TMP_HOOKS_PATH=/tmp/image.fObwIZQf/hooks | |
+ TMP_HOOKS_PATH=/tmp/image.fObwIZQf/hooks | |
+ ensure_base_available | |
+ '[' '!' -f /home/ubuntu/reddwarf-integration/scripts//.cache/image-create/precise-server-cloudimg-amd64-root.tar.gz ']' | |
+ eval_run_d block-device-size IMAGE_SIZE= | |
++ run_d block-device-size | |
++ check_element | |
++ '[' -d /tmp/image.fObwIZQf/hooks ']' | |
++ generate_hooks | |
++ mkdir -p /tmp/image.fObwIZQf/hooks | |
++ for _ELEMENT in '$IMAGE_ELEMENT' | |
++ '[' -d /opt/stack/diskimage-builder/bin/../elements/reddwarf-mysql ']' | |
++ cp -t /tmp/image.fObwIZQf/hooks -a /opt/stack/diskimage-builder/bin/../elements/reddwarf-mysql/README.md /opt/stack/diskimage-builder/bin/../elements/reddwarf-mysql/install.d | |
++ for _ELEMENT in '$IMAGE_ELEMENT' | |
++ '[' -d /opt/stack/diskimage-builder/bin/../elements/vm ']' | |
++ cp -t /tmp/image.fObwIZQf/hooks -a /opt/stack/diskimage-builder/bin/../elements/vm/README.md /opt/stack/diskimage-builder/bin/../elements/vm/block-device.d /opt/stack/diskimage-builder/bin/../elements/vm/install.d | |
++ for _ELEMENT in '$IMAGE_ELEMENT' | |
++ '[' -d /opt/stack/diskimage-builder/bin/../elements/reddwarf-guest ']' | |
++ cp -t /tmp/image.fObwIZQf/hooks -a /opt/stack/diskimage-builder/bin/../elements/reddwarf-guest/extra-data.d /opt/stack/diskimage-builder/bin/../elements/reddwarf-guest/first-boot.d /opt/stack/diskimage-builder/bin/../elements/reddwarf-guest/install.d /opt/stack/diskimage-builder/bin/../elements/reddwarf-guest/pre-install.d | |
++ check_break before-block-device-size bash | |
++ egrep -e '(,|^)before-block-device-size(,|$)' -q | |
++ echo '' | |
++ '[' -d /tmp/image.fObwIZQf/hooks/block-device-size.d ']' | |
++ check_break after-block-device-size bash | |
++ echo '' | |
++ egrep -e '(,|^)after-block-device-size(,|$)' -q | |
+ local TEMP= | |
+ echo '' | |
++ echo '' | |
++ grep -s IMAGE_SIZE= | |
+ '[' ']' | |
+ qemu-img create -f qcow2 -o preallocation=metadata /tmp/image.fObwIZQf/image 2G | |
Formatting '/tmp/image.fObwIZQf/image', fmt=qcow2 size=2147483648 encryption=off cluster_size=65536 preallocation='metadata' | |
+ NBD_DEV=/dev/nbd0 | |
++ qemu-nbd --help | |
++ grep cache | |
+ [[ -n, --nocache disable host cache == *writeback* ]] | |
+ echo 'Warning: qemu-nbd without --cache=writeback is /slow/.' | |
Warning: qemu-nbd without --cache=writeback is /slow/. | |
+ CACHE= | |
+ sudo qemu-nbd -c /dev/nbd0 /tmp/image.fObwIZQf/image | |
+ export 'EXTRA_UNMOUNT=sudo qemu-nbd -d /dev/nbd0' | |
+ EXTRA_UNMOUNT='sudo qemu-nbd -d /dev/nbd0' | |
+ export IMAGE_BLOCK_DEVICE=/dev/nbd0 | |
+ IMAGE_BLOCK_DEVICE=/dev/nbd0 | |
+ eval_run_d block-device IMAGE_BLOCK_DEVICE= | |
++ run_d block-device | |
++ check_element | |
++ '[' -d /tmp/image.fObwIZQf/hooks ']' | |
++ check_break before-block-device bash | |
++ egrep -e '(,|^)before-block-device(,|$)' -q | |
++ echo '' | |
++ '[' -d /tmp/image.fObwIZQf/hooks/block-device.d ']' | |
++ run-parts /tmp/image.fObwIZQf/hooks/block-device.d | |
Checking that no-one is using this disk right now ... | |
BLKRRPART: Invalid argument | |
OK | |
Disk /dev/nbd0: cannot get geometry | |
sfdisk: ERROR: sector 0 does not have an msdos signature | |
/dev/nbd0: unrecognized partition table type | |
No partitions found | |
BLKRRPART: Invalid argument | |
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1) | |
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1 | |
(See fdisk(8).) | |
++ check_break after-block-device bash | |
++ echo '' | |
++ egrep -e '(,|^)after-block-device(,|$)' -q | |
+ local 'TEMP= | |
Disk /dev/nbd0: 261 cylinders, 255 heads, 63 sectors/track | |
Old situation: | |
New situation: | |
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 | |
Device Boot Start End #cyls #blocks Id System | |
/dev/nbd0p1 * 1 260 260 2088450 83 Linux | |
/dev/nbd0p2 0 - 0 0 0 Empty | |
/dev/nbd0p3 0 - 0 0 0 Empty | |
/dev/nbd0p4 0 - 0 0 0 Empty | |
Successfully wrote the new partition table | |
Re-reading the partition table ... | |
IMAGE_BLOCK_DEVICE=/dev/nbd0p1' | |
+ echo ' | |
Disk /dev/nbd0: 261 cylinders, 255 heads, 63 sectors/track | |
Old situation: | |
New situation: | |
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 | |
Device Boot Start End #cyls #blocks Id System | |
/dev/nbd0p1 * 1 260 260 2088450 83 Linux | |
/dev/nbd0p2 0 - 0 0 0 Empty | |
/dev/nbd0p3 0 - 0 0 0 Empty | |
/dev/nbd0p4 0 - 0 0 0 Empty | |
Successfully wrote the new partition table | |
Re-reading the partition table ... | |
IMAGE_BLOCK_DEVICE=/dev/nbd0p1' | |
Disk /dev/nbd0: 261 cylinders, 255 heads, 63 sectors/track | |
Old situation: | |
New situation: | |
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 | |
Device Boot Start End #cyls #blocks Id System | |
/dev/nbd0p1 * 1 260 260 2088450 83 Linux | |
/dev/nbd0p2 0 - 0 0 0 Empty | |
/dev/nbd0p3 0 - 0 0 0 Empty | |
/dev/nbd0p4 0 - 0 0 0 Empty | |
Successfully wrote the new partition table | |
Re-reading the partition table ... | |
IMAGE_BLOCK_DEVICE=/dev/nbd0p1 | |
++ echo ' | |
Disk /dev/nbd0: 261 cylinders, 255 heads, 63 sectors/track | |
Old situation: | |
New situation: | |
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 | |
Device Boot Start End #cyls #blocks Id System | |
/dev/nbd0p1 * 1 260 260 2088450 83 Linux | |
/dev/nbd0p2 0 - 0 0 0 Empty | |
/dev/nbd0p3 0 - 0 0 0 Empty | |
/dev/nbd0p4 0 - 0 0 0 Empty | |
Successfully wrote the new partition table | |
Re-reading the partition table ... | |
IMAGE_BLOCK_DEVICE=/dev/nbd0p1' | |
++ grep -s IMAGE_BLOCK_DEVICE= | |
+ '[' IMAGE_BLOCK_DEVICE=/dev/nbd0p1 ']' | |
++ echo ' | |
Disk /dev/nbd0: 261 cylinders, 255 heads, 63 sectors/track | |
Old situation: | |
New situation: | |
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 | |
Device Boot Start End #cyls #blocks Id System | |
/dev/nbd0p1 * 1 260 260 2088450 83 Linux | |
/dev/nbd0p2 0 - 0 0 0 Empty | |
/dev/nbd0p3 0 - 0 0 0 Empty | |
/dev/nbd0p4 0 - 0 0 0 Empty | |
Successfully wrote the new partition table | |
Re-reading the partition table ... | |
IMAGE_BLOCK_DEVICE=/dev/nbd0p1' | |
++ grep IMAGE_BLOCK_DEVICE= | |
+ TEMP=IMAGE_BLOCK_DEVICE=/dev/nbd0p1 | |
+ eval IMAGE_BLOCK_DEVICE=/dev/nbd0p1 | |
++ IMAGE_BLOCK_DEVICE=/dev/nbd0p1 | |
+ sudo mkfs -F -t ext4 -L cloudimg-rootfs /dev/nbd0p1 | |
mke2fs 1.42 (29-Nov-2011) | |
mkfs.ext2: No such file or directory while trying to determine filesystem size | |
+ cleanup | |
+ unmount_image | |
+ sudo umount -f /tmp/image.fObwIZQf/mnt/sys | |
umount2: No such file or directory | |
umount: /tmp/image.fObwIZQf/mnt/sys: not found | |
+ true | |
+ sudo umount -f /tmp/image.fObwIZQf/mnt/proc | |
umount2: No such file or directory | |
umount: /tmp/image.fObwIZQf/mnt/proc: not found | |
+ true | |
+ sudo umount -f /tmp/image.fObwIZQf/mnt/dev | |
umount2: No such file or directory | |
umount: /tmp/image.fObwIZQf/mnt/dev: not found | |
+ true | |
+ sudo umount -f /tmp/image.fObwIZQf/mnt/tmp/in_target.d | |
umount2: No such file or directory | |
umount: /tmp/image.fObwIZQf/mnt/tmp/in_target.d: not found | |
+ true | |
+ sleep 5 | |
+ sudo umount -f /tmp/image.fObwIZQf/mnt | |
umount2: No such file or directory | |
umount: /tmp/image.fObwIZQf/mnt: not found | |
+ true | |
+ sync | |
+ '[' -n 'sudo qemu-nbd -d /dev/nbd0' ']' | |
+ sudo qemu-nbd -d /dev/nbd0 | |
/dev/nbd0 disconnected | |
+ rm -rf /tmp/image.fObwIZQf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment