Skip to content

Instantly share code, notes, and snippets.

View weshayutin's full-sized avatar

Wesley Hayutin weshayutin

View GitHub Profile
@weshayutin
weshayutin / tempest_issues
Created October 4, 2013 12:27
Tempest Issues
# A shared resource to document issues w/ tempest
@weshayutin
weshayutin / tempest refactor
Created August 20, 2015 11:07
tempest refactor
This file has been truncated, but you can view the full file.
cd khaleelsi
git show
commit 24e8a9a53216c854588094da9ce31f57923c9637
Author: Mathieu Bultel <mbultel@redhat.com>
Date: Thu Aug 6 19:50:52 2015 +0200
cd khaleesi-setttings
git show
commit 5d7e42983183fa14922be84be772ade6cec2224f
Author: Mathieu Bultel <mbultel@redhat.com>
This file has been truncated, but you can view the full file.
whayutin•git/RDO-CI/khaleesi ᐅ ksgen --config-dir=../UPSTREAM_KHALEESI_SETTINGS/khaleesi-settings/settings generate \  review/mathieu_bultel/upgrade-package ⚡ ⌚ 17:19:07
> --provisioner=manual \
> --product=rdo \
> --product-version=kilo \
> --product-version-build=last_known_good \
> --product-version-repo=delorean_mgt \
> --distro=centos-7.0 \
> --installer=rdo_manager \
> --installer-deploy=templates \
> --installer-env=virthost \
https://review.openstack.org/#/c/348530/1/scripts/tripleo.sh
on virthost:
ssh root@127.0.0.2 ls || ssh-copy-id root@127.0.0.2
git clone git://git.openstack.org/openstack-infra/tripleo-ci
sudo useradd stack
sudo passwd stack # specify a password
echo "stack ALL=(root) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/stack
sudo chmod 0440 /etc/sudoers.d/stack
http://zzamboni.org/new/blog/moving-files-between-git-repositories-preserving-history/
http://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/
10186 git clone https://github.com/openstack/tripleo-quickstart.git /tmp/tmp-repo
10187* history | grep filter-branch
10190* git remote remove origin
10191* git filter-branch --subdirectory roles/tripleo/overcloud -- --all
10192* git filter-branch --subdirectory-filter roles/tripleo/overcloud -- --all
10194 git remote add tmp-repo file:///tmp/tmp-repo
10195 git pull tmp-repo master

Developing a new Composable Service with Tripleo-Quicstart

In order to develop a new composable service for Tripleo, you need to:

  • Develop the new Heat templates
  • Ensure any required software is packaged
  • Develop appropriate Puppet modules for installing/configuring the packages
  • Deploy an undercloud using your new Heat templates
  • Deploy an overcloud with your new Puppet modules and any
whayutin•RDO-CI/ANSIBLE_ROLES/tripleo-quickstart ᐅ  master ⚡ ⌚ 14:37:04
whayutin•RDO-CI/ANSIBLE_ROLES/tripleo-quickstart ᐅ  master ⚡ ⌚ 14:37:05
whayutin•RDO-CI/ANSIBLE_ROLES/tripleo-quickstart ᐅ export WD=(`mktemp -d -p /var/tmp/`)  master ⚡ ⌚ 14:37:05
whayutin•RDO-CI/ANSIBLE_ROLES/tripleo-quickstart ᐅ cat my_config.yml  master ⚡ ⌚ 14:37:08
undercloud_memory: 8192
control_memory: 6000
compute_memory: 2048
# Testing Change:
# https://review.openstack.org/#/c/345636/
# assuming you are in the tripleo-quickstart directory
#openstack
export GERRIT_HOST=review.openstack.org
export GERRIT_BRANCH=master
export GERRIT_CHANGE_ID=345636
export GERRIT_PATCHSET_REVISION=7b84be616e81b2faee6e2950c061d8631dec942c
Setting Up a Docker Registry in Fedora
Follow these instructions to install and start up a Docker registry on a Fedora system. At the moment, this procedure creates a version 1 Docker registry from the docker-registry RPM package. Although this procedure was tested on Fedora, the same basic procedures should work for the following Linux distributions:
Fedora 22 or later
Red Hat Enterprise Linux 7.1 or later
CentOS 7.1 or later
The docker-registry package is not included in the Atomic project Fedora, RHEL, and CentOS distributions. So you must use the registry container, described later for setting up a Docker registry in Ubuntu, to get that feature on an Atomic Linux system.
NOTEnote01.jpg
During the following procedure, you are going to use image tags to identify the registry where you intend an image to be stored. For a more in-depth look at tags, refer to Chapter 6, “Tagging Images.” To get docker-registry to work, you may need to edit the usr/lib/system/docker-registry.service and remove --debug.
(undercloud) [stack@undercloud ~]$ openstack catalog show heat
+-----------+-----------------------------------------------------------------------------+
| Field | Value |
+-----------+-----------------------------------------------------------------------------+
| endpoints | regionOne |
| | publicURL: https://192.168.24.2:13004/v1/c75168f792154ee2a4b34cf76414ab20 |
| | internalURL: http://192.168.24.3:8004/v1/c75168f792154ee2a4b34cf76414ab20 |
| | adminURL: http://192.168.24.3:8004/v1/c75168f792154ee2a4b34cf76414ab20 |
| | |
| name | heat |