Jump to: navigation, search

Difference between revisions of "Trove-Integration"

(Created page with "== Adding TripleO-Image-Elements to Trove-Integration/redstack images == When you run ./redstack kick-start mysql it creates an image under '''~/images/ubuntu-mysql''' from ''...")
 
(Adding TripleO-Image-Elements to Trove-Integration/redstack images)
Line 1: Line 1:
 +
== Trove-Integration/redstack setup ==
 +
Requirements on ubuntu 14.04 before running ./redstack install
 +
* sudo apt-get install python-pip
 +
* sudo apt-get install python-dev
 +
* sudo apt-get install mysql-server (set mysql server root password to e1a2c042c828d3566d0a which is the same password as in devstack/localrc)
 +
* Now run ./redstack install
 +
* If redstack install was successful you can now run ./redstack kick-start mysql to add the ubuntu-mysql image
 +
 +
== Enable Neutron support on Trove-Integration/redstack ==
 +
* Set ENABLE_NEUTRON=true in redstack.rc which will set the neutron enabled services and disable the nova network
 +
* When enabling neutron on redstack the devstack/localrc will now contain the following: 
 +
  '''ENABLED_SERVICES+=,neutron,q-svc,q-agt,q-dhcp,q-l3,q-meta'''
 +
  '''disable_service n-net''''''
 +
 
== Adding TripleO-Image-Elements to Trove-Integration/redstack images ==
 
== Adding TripleO-Image-Elements to Trove-Integration/redstack images ==
 
When you run ./redstack kick-start mysql it creates an image under '''~/images/ubuntu-mysql''' from '''Trove-Integration/scripts/elements/ubuntu-mysql'''. If you want to add an element to ubuntu-mysql such as os-apply-config (https://github.com/openstack/tripleo-image-elements/tree/master/elements/os-apply-config) you need to add the variable '''EXTRA_ELEMENTS''' to the '''trove-integration/scripts/redstack.rc''' file. By default redstack kick-start should be able to find os-apply-config because it clones all of the tripleo-image-elements. The Elements path redstack kick-start uses is '''ELEMENTS_PATH=$REDSTACK_SCRIPTS/files/elements:$PATH_TRIPLEO_ELEMENTS/elements'''
 
When you run ./redstack kick-start mysql it creates an image under '''~/images/ubuntu-mysql''' from '''Trove-Integration/scripts/elements/ubuntu-mysql'''. If you want to add an element to ubuntu-mysql such as os-apply-config (https://github.com/openstack/tripleo-image-elements/tree/master/elements/os-apply-config) you need to add the variable '''EXTRA_ELEMENTS''' to the '''trove-integration/scripts/redstack.rc''' file. By default redstack kick-start should be able to find os-apply-config because it clones all of the tripleo-image-elements. The Elements path redstack kick-start uses is '''ELEMENTS_PATH=$REDSTACK_SCRIPTS/files/elements:$PATH_TRIPLEO_ELEMENTS/elements'''

Revision as of 03:08, 18 December 2014

Trove-Integration/redstack setup

Requirements on ubuntu 14.04 before running ./redstack install

  • sudo apt-get install python-pip
  • sudo apt-get install python-dev
  • sudo apt-get install mysql-server (set mysql server root password to e1a2c042c828d3566d0a which is the same password as in devstack/localrc)
  • Now run ./redstack install
  • If redstack install was successful you can now run ./redstack kick-start mysql to add the ubuntu-mysql image

Enable Neutron support on Trove-Integration/redstack

  • Set ENABLE_NEUTRON=true in redstack.rc which will set the neutron enabled services and disable the nova network
  • When enabling neutron on redstack the devstack/localrc will now contain the following:
 ENABLED_SERVICES+=,neutron,q-svc,q-agt,q-dhcp,q-l3,q-meta
 disable_service n-net'

Adding TripleO-Image-Elements to Trove-Integration/redstack images

When you run ./redstack kick-start mysql it creates an image under ~/images/ubuntu-mysql from Trove-Integration/scripts/elements/ubuntu-mysql. If you want to add an element to ubuntu-mysql such as os-apply-config (https://github.com/openstack/tripleo-image-elements/tree/master/elements/os-apply-config) you need to add the variable EXTRA_ELEMENTS to the trove-integration/scripts/redstack.rc file. By default redstack kick-start should be able to find os-apply-config because it clones all of the tripleo-image-elements. The Elements path redstack kick-start uses is ELEMENTS_PATH=$REDSTACK_SCRIPTS/files/elements:$PATH_TRIPLEO_ELEMENTS/elements

  • Ex: EXTRA_ELEMENTS="os-apply-config" # adding single element
  • Ex: EXTRA_ELEMENTS="os-apply-config os-refresh-config" # adding multiple elements is space delimited


Now when running ./redstack kick-start mysql it will add the os-apply-config element to the ubuntu-mysql image.

  • Now you can add the folder os-apply-config to the Trove-Integration/scripts/elements/ubuntu-mysql image to add custom configuration files etc.
  • Adding the file (foo.conf) and folders (os-apply-config/etc/init) to the element ubuntu-mysql (ubuntu-mysql/os-apply-config/etc/init/foo.conf) will add the file foo.conf to /etc/init when doing a trove create with the new image ./redstack kick-start mysql built.


Rebuilding image

Once an image is created you will need to do nova image-delete and delete the ~/images/ubuntu-mysql file in order to have ./redstack kick-start mysql build the image again. If you do not, the existing image ubuntu-mysql will be used again.