tripleo-quickstart-extras/roles/overcloud-prep-containers
Ronelle Landy dfe4d96289 Add the option to run the container-check script
This review adds the functionality to install the
container-check package and run the script
to update the containers and include the latest rpms.
The containers should be updated when there is a change
to be built and tested or when the latest rpms are required.

By default, containers will not be updated. Feature sets or
environment files will be used to enable the container update.

Change-Id: I7fc3a83c95a76fe5005eeb084ad044fee9084bdb
2017-12-30 23:25:39 +00:00
..
defaults Add the option to run the container-check script 2017-12-30 23:25:39 +00:00
meta fix issue w/ containerized_overcloud missing variable 2016-12-21 18:52:50 -05:00
tasks Add the option to run the container-check script 2017-12-30 23:25:39 +00:00
templates Add the option to run the container-check script 2017-12-30 23:25:39 +00:00
README.md Add the option to run the container-check script 2017-12-30 23:25:39 +00:00

overcloud-prep-containers

This role that prepares an environment for a containerized compute is under active development along with active development of the containerized computer feature itself.

This role walks through the developer setup for a tripleo deployment with a containerized compute. The developer documentation can be found here: https://etherpad.openstack.org/p/tripleo-containers-work

The instructions below use the master branch from delorean that has been vetted by CI, and then updates any tripleo rpm to the latest version available from delorean. It should be the same content as what currently runs in tripleo-ci

This also git checks out https://git.openstack.org/openstack/tripleo-heat-templates with refspec: refs/changes/59/330659/43 , this can be updated in config/general_config/containers_minimal.yml

Requirements

https://github.com/openstack/tripleo-quickstart/blob/master/README.rst

overcloud-prep-containers variables

  • working_dir: /home/stack
  • containerized_overcloud: false
  • overcloud_prep_containers_script: overcloud-prep-containers.sh.j2
  • overcloud_prep_containers_log: overcloud_prep_containers.log
  • undercloud_network_cidr: 192.168.24.0/24
  • prepare_service_env_args: -e {{ overcloud_templates_path }}/environments/docker.yaml
  • delete_docker_cache: -- whether to stop Docker, wipe all the Docker data, and restart
  • update_containers: -- whether to run container-check to update containers
  • container_process_count: <8> -- number of concurrent processes to run when updating containers

overcloud-prep-config variables

tripleo-quickstart variables

  • see config/general_config/containers_minimal.yml

Dependencies

These dependencies are accounted for in the unmerged tripleo-quickstart review https://review.openstack.org/#/c/393348/

How to Execute:

Review https://github.com/openstack/tripleo-quickstart/blob/master/README.rst::

mkdir quickstart_containers
export WORKSPACE=$PWD/quickstart_containers
cd $WORKSPACE
git clone https://github.com/openstack/tripleo-quickstart.git
git clone https://github.com/openstack/tripleo-quickstart-extras.git

# Update quickstart to use the right review
pushd tripleo-quickstart
git remote add gerrit https://review.openstack.org/openstack/tripleo-quickstart
git fetch --all
git review -d I676b429cab920516a151b124fca2e26dd5c5e87b
popd

# Update quickstart-extras to use the right review
pushd tripleo-quickstart-extras
git remote add gerrit https://review.openstack.org/openstack/tripleo-quickstart-extras
git fetch --all
git-review -d Id91cfae8aff8652222a4e9adab0635be6c0f8f64
git-review -x Ie1ca08de17ff0fddd9c9cbd124ae65735ea4b6bc
popd

mkdir /var/tmp/containers
export WD=/var/tmp/containers
export VIRTHOST=<virthost>

pushd tripleo-quickstart
sed -i "s|git+https://git.openstack.org/openstack|file://$WORKSPACE|g" quickstart-extras-requirements.txt

./quickstart.sh --no-clone --working-dir $WD --teardown all --requirements quickstart-extras-requirements.txt --playbook quickstart-extras.yml --config $PWD/config/general_config/containers_minimal.yml --tags all  --release master-tripleo-ci $VIRTHOST

How to Execute with Additional gerrit reviews

This will install a local delorean instance and build the reviews into the undercloud/overcloud Example change https://review.openstack.org/#/c/396460/

STEPS::

export GERRIT_HOST=review.openstack.org
export GERRIT_BRANCH=master
export GERRIT_CHANGE_ID=396460
export GERRIT_PATCHSET_REVISION=3ea99ef27f60157699c13acb64f88d2cd03d237b

# Note.. FOR RHEL VIRTHOST's
* ensure mock is installed on the virthost *, for rhel it comes from epel.. then remove the epel repo

# Build the yum repo in  /home/stack of the $VIRTHOST
./quickstart.sh \
--no-clone \
--working-dir $WD \
--teardown all \
--requirements quickstart-extras-requirements.txt \
--playbook dlrn-gate.yml \
--config $PWD/config/general_config/containers_minimal.yml \
--extra-vars compressed_gating_repo="/home/stack/gating_repo.tar.gz" \
--tags all  \
--release master-tripleo-ci \
$VIRTHOST

# Consume the local delorean repo in addition to the normal deployment
./quickstart.sh \
--no-clone \
--working-dir $WD \
--teardown none \
--retain-inventory \
--requirements quickstart-extras-requirements.txt \
--playbook quickstart-extras.yml \
--config $PWD/config/general_config/containers_minimal.yml \
--extra-vars compressed_gating_repo="/home/stack/gating_repo.tar.gz" \
--skip-tags provision \
--tags all  \
--release master-tripleo-ci \
$VIRTHOST