Skip to content

Commit 6cf2912

Browse files
committed
[bifrost] Force Bifrost to use the correct git branch
Bifrost decides on the branches to use by itself. Early in the cycle, they are often not set correctly and may break our CI. This patch ensures we force Bifrost to use the expected branches, making us independent of Bifrost getting fixed. Change-Id: I33dbca927062284fd7a06ab6db732dd5e2219c40 (cherry picked from commit 0e3b29c)
1 parent c8b8c91 commit 6cf2912

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docker/bifrost/bifrost-base/Dockerfile.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ RUN echo " " && \
4242
{%- endif %}
4343
bash -c './scripts/env-setup.sh && \
4444
ansible-playbook -vvvv -i /bifrost/playbooks/inventory/target /bifrost/playbooks/install.yaml \
45+
-e git_branch={{ openstack_branch_slashed }} \
46+
-e ipa_upstream_release={{ openstack_branch }} \
4547
-e @/tmp/build_arg.yml && \
4648
{%- if base_package_type == 'deb' %}
4749
apt-get clean && rm -rf /var/lib/apt/lists/*'

kolla/image/build.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,8 @@ def __init__(self, conf):
663663
self.debian_arch = 'amd64'
664664
self.images = list()
665665
self.openstack_release = conf.openstack_release
666+
self.openstack_branch = conf.openstack_branch
667+
self.openstack_branch_slashed = conf.openstack_branch_slashed
666668
self.docker_healthchecks = conf.docker_healthchecks
667669
rpm_setup_config = ([repo_file for repo_file in
668670
conf.rpm_setup_config if repo_file is not None])
@@ -897,6 +899,9 @@ def create_dockerfiles(self):
897899
'install_type': self.install_type,
898900
'namespace': self.namespace,
899901
'openstack_release': self.openstack_release,
902+
'openstack_branch': self.openstack_branch,
903+
'openstack_branch_slashed':
904+
self.openstack_branch_slashed,
900905
'tag': self.tag,
901906
'maintainer': self.maintainer,
902907
'kolla_version': kolla_version,

0 commit comments

Comments
 (0)