changed 5 years ago
Linked with GitHub

wes's notes on centos-8 container builds

patch is based off of marios's work
https://review.opendev.org/#/c/702993/

STATUS

kolla status https://etherpad.openstack.org/p/kolla-centos8

2020-02-06 21:12:00 | ============= SUMMARY ===============
2020-02-06 21:12:00 | Expected 126
2020-02-06 21:12:00 | Built 126
2020-02-06 21:12:00 | =====================================
2020-02-06 21:12:00 |
2020-02-06 21:12:00 |
2020-02-06 21:12:00 | Return code: [ 0 ]
2020-02-06 21:12:00 |
2020-02-06 21:12:00 |
2020-02-06 21:12:00 | SUCCESS: Congratulations! All containers have been built :)

Required patches to land

next steps

Note the use the following temp yum repos

https://github.com/openstack/kolla/blob/d00fa3a6dda3914e66ed414ef758bf2aeda2906c/docker/base/influxdb.repo
https://github.com/openstack/kolla/blob/d00fa3a6dda3914e66ed414ef758bf2aeda2906c/docker/base/ceph_master.repo

note: CHACRA_URL=https://2.chacra.ceph.com/r/ceph/master/e6630e6a2918f029e17d7b5af8b92ac3a713273f/centos/8/flavors/default/

setup

start off as root user

useradd zuul 
passwd zuul
# add keys if needed
# add to /etc/sudoers

# centos-8 ansible requires epel-8
# https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
# has to be a better way
yum install git ansible gcc buildah podman
su - zuul
git clone https://opendev.org/openstack/tripleo-ci.git

cd /home/zuul/tripleo-ci/playbooks/tripleo-buildcontainers
cp -Rv /home/zuul/tripleo-ci/roles /home/zuul/tripleo-ci/playbooks/tripleo-buildcontainers/

# get bindep in there
git clone https://opendev.org/x/ansible-role-bindep.git /home/zuul/tripleo-ci/playbooks/tripleo-buildcontainers/roles/bindep


mkdir -p /home/zuul/src/opendev.org/openstack
cd /home/zuul/src/opendev.org/openstack
git clone https://opendev.org/openstack/ansible-role-container-registry.git
git clone https://opendev.org/openstack/tripleo-repos.git
git clone https://opendev.org/openstack/kolla.git
git clone https://opendev.org/openstack/tripleo-common.git
git clone https://opendev.org/openstack/python-tripleoclient.git
git clone https://opendev.org/openstack/requirements.git

cd /home/zuul/tripleo-ci/playbooks/tripleo-buildcontainers
# get a zuul-variables file

wget http://logs.rdoproject.org/openstack-periodic-master/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-rhel-8-master-containers-build-push/63de792/logs/zuul-variables.yaml.txt.gz

gzip -d zuul-variables.yaml.txt.gz
mv zuul-variables.yaml.txt zuul-variables.yaml

sudo yum install iptables
sudo iptables -N openstack-INPUT
sudo iptables -L # check your chains

hosts file

#127.0.0.1 ansible_connection=local
192.168.122.10
# END autogenerated hosts

[all]
192.168.122.10

For centos-7 this requires running
ansible from a python27 virtualenv
Due to: https://opendev.org/openstack/tripleo-ci/src/branch/master/roles/build-containers/tasks/pre.yaml#L44-L48

Execution

pre

ansible-playbook -i hosts pre.yaml -vv -e @zuul-variables.yaml -e override_repos=tripleo-ci-testing -e ansible_user=zuul

NOTE: the centos-8 kolla patch
kolla_centos8_patch:

none at this time

RUN cleanup to get valid results

podman rmi --all

run

ansible-playbook -i hosts run.yaml -vv -e @zuul-variables.yaml -e override_repos=tripleo-ci-testing -e buildcontainers_version_hash=abcdef -e use_buildah=True -e push_registry=trunk.registry.rdoproject.org -e kolla_base=centos -e kolla_base_image=centos -e kolla_base_tag=8  -e ansible_user=zuul

notes

rhel
10.0.79.81

ansible-playbook -i hosts run.yaml -vv -e @zuul-variables.yaml -e override_repos=tripleo-ci-testing -e buildcontainers_version_hash=abcdef -e use_buildah=True -e push_registry=trunk.registry.rdoproject.org -e kolla_base=openstack-base -e kolla_base_image=openstack-base -e kolla_base_tag=8  -e ansible_user=zuul -e base_ubi_image=registry-proxy.engineering.redhat.com/rh-osbs/ubi8:8.2-ondeck -e openstack_base_docker_url=https://pkgs.devel.redhat.com/cgit/containers/openstack-base/
Select a repo