Trove guest DiskImage-Builder

asked 2017-08-04 07:39:55 -0500

luli74 gravatar image

I tried to create an ubuntu mysql guest image for trove with DIB but i didn't manage to get it to work.

Steps:

git clone https://git.openstack.org/openstack/diskimage-builder
git clone https://github.com/openstack/trove-integration.git
git clone https://github.com/openstack/tripleo-image-elements
cd diskimage-builder
 ./setup.py build
sudo ./setup.py install


export HOST_USERNAME=root
export HOST_SCP_USERNAME=root
export GUEST_USERNAME=ubuntu
export NETWORK_GATEWAY=172.21.200.49
export REDSTACK_SCRIPTS=/opt/stack/trove-integration/scripts
export PATH_TROVE=/opt/stack/trove
export ESCAPED_PATH_TROVE='\/opt\/stack\/trove'
export SSH_DIR=/root/.ssh
export GUEST_LOGDIR=/var/log/trove/
export ESCAPED_GUEST_LOGDIR='\/var\/log\/trove\/'
export DIB_CLOUD_INIT_DATASOURCES='ConfigDrive'
export RELEASE="trusty"
export CONTROLLER_IP=172.21.200.49
export ELEMENTS_PATH=/opt/stack/trove-integration/scripts/files/elements:/opt/stack/tripleo-image-elements/elements

disk-image-create -a amd64 -o /home/ubuntu/images/ubuntu_mysql/ubuntu_mysql -x ubuntu vm cloud-init-datasources ubuntu-guest ubuntu-mysql

I have this error :

dib-run-parts Fri Aug  4 12:33:12 UTC 2017 Running /tmp/in_target.d/pre-install.d/01-trim-pkgs
+ export DEBIAN_FRONTEND=noninteractive
+ DEBIAN_FRONTEND=noninteractive
+ apt-get -y purge acpid apport apport-symptoms apt-transport-https apt-xapian-index aptitude at bash-completion bc bind9-host bsdmainutils busybox-static byobu command-not-found command-not-found-data curl dbus dmidecode dosfstools ed fonts-ubuntu-font-family-console friendly-recovery ftp fuse geoip-database groff-base hdparm info install-info iptables iputils-tracepath irqbalance landscape-client landscape-common language-selector-common laptop-detect libaccountsservice0 libbind9-90 libclass-accessor-perl libcwidget3 libdns100 libept1.4.12 libevent-2.0-5 libgc1c2 libgeoip1 libio-string-perl libisc95 liblwres90 libnfnetlink0 libparse-debianchangelog-perl libparted0debian1 libpcap0.8 libpci3 libpipeline1 libpolkit-gobject-1-0 libsasl2-modules libsigc++-2.0-0c2a libsub-name-perl libusb-1.0-0 libxapian22 lshw lsof ltrace man-db mlocate mtr-tiny nano ntfs-3g parted patch plymouth-theme-ubuntu-text popularity-contest powermgmt-base ppp pppoeconf python-debian python-gdbm python-pam python-twisted-bin python-xapian python-zope.interface screen shared-mime-info strace tasksel tcpdump telnet time tmux ubuntu-standard ufw update-manager-core update-notifier-common usbutils uuid-runtime w3m
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'apt-xapian-index' is not installed, so not removed
Package 'libcwidget3' is not installed, so not removed
Package 'libsigc++-2.0-0c2a' is not installed, so not removed
Package 'libxapian22' is not installed, so not removed
Package 'w3m' is not installed, so not removed
E: Unable to locate package libbind9-90
E: Unable to locate package libdns100
E: Unable to locate package libept1.4.12
E: Couldn't find any package by glob 'libept1.4.12'
E: Couldn't find any package by regex 'libept1.4.12'
E: Unable to locate package libisc95
E: Unable to locate package liblwres90
E: Unable to locate package libparted0debian1
E: Unable to locate package python-debian
2017-08-04 12:33:13.449 DEBUG diskimage_builder.block_device.blockdevice [-] Creating BlockDevice object __init__ /usr/local/lib/python2.7/dist-packages/diskimage_builder/block_device/blockdevice.py:210
2017-08-04 12:33:13.449 DEBUG diskimage_builder.block_device.blockdevice [-] Params [{'root-fs-type': 'ext4', 'image-dir': '/tmp/dib_image.o03F883p', 'root-label': None, 'build-dir': '/tmp/dib_build.mKPHNyHZ', 'config': '/tmp/dib_build.mKPHNyHZ/block-device/config.yaml', 'mount-base': '/tmp/dib_build.mKPHNyHZ/mnt'}] __init__ /usr/local/lib/python2.7/dist-packages/diskimage_builder/block_device/blockdevice.py:213
2017-08-04 12:33:13.450 INFO diskimage_builder.block_device.blockdevice [-] State already cleaned - no way to do anything here
Unmount /tmp/dib_build.mKPHNyHZ/mnt/var/cache/apt/archives
Unmount /tmp/dib_build.mKPHNyHZ/mnt/tmp/in_target.d
Unmount /tmp/dib_build.mKPHNyHZ ...
(more)
edit retag flag offensive close merge delete