Ask Your Question
0

How to build trove images ?

asked 2015-11-04 09:56:04 -0500

kyomster gravatar image

Hello,

I can't figure out how to build trove images. What I did is clone the repos:

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

Then, tried to create the image:

export REDSTACK_SCRIPTS=~/Documents/openstack/image-builder/trove-integration/scripts
export PATH_TRIPLEO_ELEMENTS=~/Documents/openstack/image-builder/tripleo-image-elements
export ELEMENTS_PATH=$REDSTACK_SCRIPTS/files/elements:$PATH_TRIPLEO_ELEMENTS/elements

disk-image-create -a amd64 -o ubuntu-mysql ubuntu vm heat-cfntools cloud-init-datasources ubuntu-guest ubuntu-mysql

But I always get HOST_USERNAME not set. Did I missed something ?

Thanks for your help.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2015-11-04 20:04:33 -0500

You must Configure following environmental variables with local values

export HOST_USERNAME
export HOST_SCP_USERNAME
export GUEST_USERNAME    
export NETWORK_GATEWAY   
export REDSTACK_SCRIPTS    
export PATH_TROVE    
export ESCAPED_PATH_TROVE   
export SSH_DIR   
export GUEST_LOGDIR   
export ESCAPED_GUEST_LOGDIR   
export ELEMENTS_PATH=$REDSTACK_SCRIPTS/files/elements:$PATH_TRIPLEO_ELEMENTS/elements   
export DIB_CLOUD_INIT_DATASOURCES="ConfigDrive"
export DATASTORE_PKG_LOCATION=""

HOST_USERNAME is the username which you used to make images.and make sure this user have .ssh/id_rsa.pub and .ssh/authorized_keys . so you can't use the superuser(root) HOST_SCP_USERNAME is the same as HOST_USERNAME

and you may find something helpful in http://docs.openstack.org/developer/trove/dev/building_guest_images.html

PS:This solution can help you to build images ,but i'm not sure it can be useb by trove.i have done it ,the producted image can't create trove instance.But anything else is OK.

edit flag offensive delete link more
0

answered 2015-12-22 09:57:57 -0500

Lili Zhang gravatar image

Hope this method can help you get a Trove image that works well. It works on my OpenStack environment.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-11-04 09:56:04 -0500

Seen: 633 times

Last updated: Dec 22 '15