or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
OSP Internal RHEL8 Container builds
tags:
RHEL8 Containers Internal
tags:
Design
centos-8 notes: folco hackmd.io ––- weshay hackmd.io
Configure certs on RHEL-8 box
Install rhos-release rpm
Setup repos with rhos-release
Taking latest from download-node-02.eng.bos.redhat.com/rcm-guest/puddles/OpenStack/17.0-RHEL-8 for the -p:
git clone python-tripleoclient, kolla, tripleo-common and checkout rhos-17.0-trunk-patches
Patch & install tripleo-common and kolla
dnf and pip install requirements
pull ubi image & build rhel:8
Prepare kolla-build.conf
RDO
Clone the downstream containers to /usr/local/share/kolla/docker
Eg. I was trying to build nova* only. We always need dependencies.
Prepare containers.yaml.j2 file for build
Again, I was trying to build nova only for now.
'patch' tripleo_kolla_template_overrides.j2
Manual for now… vim find/replace. Looks like http://paste.openstack.org/raw/791587/ (diff from original). Adding in the package removals mainly for openstack_dependencies and the name prefixes… nova_api_packages becomes openstack_nova_api_packages. Part of our 'naming' problem. TBD.
Build
Fails for nova dependencies like:
But nova-base nova-api build fine so process wise looks ok:
[ Notes rlandy - 04/01]
Managed to build containers:
Hacks used:
/usr/local/share/kolla/docker/
. Copy files fron kolla/docker/<> to ^^--list-images
- w/o that you get:docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
No idea why –list-images changes that outcome/usr/share/tripleo-common/container-images/tripleo_kolla_template_overrides.j2
needs to be edited to change the right variables for the containers used. For example: to remove python3-cloudkittyclient etc., you need
set openstack_dependencies_packages_remove
. Note: if we name the containers w/o openstack-, we will save some edits here/usr/local/share/tripleo-common/container-images/overcloud_containers.yaml.j2
Contaners to be built need to match an entry in ^^. Edited the file to add:
Again, if we refine the naming to rhel-binary and remove openstack-, we will save some edits here
Next steps:
Try to build containers
Working with Dockerfiles from Release Eng, manage to build:
TODO: write a script to copy the Rel Eng Dockerfiles to correct locations in kolla.
afaict, kolla expects the dir structure - unless there is a way to override that?
Links
Design decisions to automate changes required for OSP container builds with Kolla
Now that we have managed to go through the process of building containers manually, we have a list of tasks/changes that are required to automate the process in a Zuul job. The points below lay out the changes required, where they need to be made and what options we have to get the needed outcome.
pkgs.devel…/containers
scripts/get-projects.py
returns the list of containers and we can use that in Copy to kolla/dockersed
line, so we could carry it in the CI.code.engineering
[ASK RELDEL] If they use these files and if we can make the changes directly in the repos.
git fetch https://code.engineering.redhat.com/gerrit/kolla refs/changes/38/190338/2 && git checkout FETCH_HEAD
registry
/openstack/tripleo-ci/ roles/build-containers
Reviews
notes 04/03/2020 combining dockerfiles w/ rlandy
this resulted in missing grafana repo
next attempt
If we follow the above steps, we do not need to make any
source change to docker jinja files.
script for local clone and copy
Following https://hackmd.io/cv1483MkQlS8UsnteNyXqg directions for local build
https://gitlab.cee.redhat.com/snippets/1949
https://gitlab.cee.redhat.com/snippets/1948
Local job run
Containers built: