ddfd6b6202
Kayobe uses a number of virtual environments on the remote hosts for python dependencies such as shade, python-openstackclient, docker, etc. By default these are stored in /opt/kayobe/venvs/. Typically we do not provide version restrictions when installing these packages, so over the course of time they may become stale and incompatible. This change installs the latest version of packages allowed by OpenStack upper constraints. It also adds a new variable, 'pip_upper_constraints_file', to set the upper constraints file. The existing variable 'kolla_upper_constraints_file' now defaults to the value of 'pip_upper_constraints_file'. Change-Id: I8d2956f95bbc44b5a9e88e7569372048a62f12f5 Story: 2005923 Task: 34193
45 lines
1.5 KiB
YAML
45 lines
1.5 KiB
YAML
---
|
|
# Build and install an Ironic Python Agent (IPA) image for the overcloud's
|
|
# ironic and ironic-inspector services.
|
|
#
|
|
# The images will be stored in {{ image_cache_path }}/{{ ipa_image_name }}.
|
|
|
|
- name: Check whether Ironic is enabled
|
|
hosts: controllers
|
|
tags:
|
|
- ipa-build
|
|
tasks:
|
|
- name: Create controllers group with ironic enabled
|
|
group_by:
|
|
key: "controllers_for_ipa_build_{{ kolla_enable_ironic | bool }}"
|
|
|
|
- name: Ensure Ironic Python Agent images are built and installed
|
|
hosts: controllers_for_ipa_build_True[0]
|
|
gather_facts: False
|
|
tags:
|
|
- ipa-build
|
|
vars:
|
|
ipa_image_name: "ipa"
|
|
ipa_image_force_rebuild: false
|
|
tasks:
|
|
- block:
|
|
- name: Ensure Ironic Python Agent images are built
|
|
include_role:
|
|
name: stackhpc.os-images
|
|
vars:
|
|
os_images_venv: "{{ virtualenv_path }}/ipa-build-dib"
|
|
os_images_package_state: latest
|
|
os_images_upper_constraints_file: "{{ pip_upper_constraints_file }}"
|
|
os_images_cache: "{{ image_cache_path }}"
|
|
os_images_common: ""
|
|
os_images_list:
|
|
- name: "{{ ipa_image_name }}"
|
|
elements: "{{ ipa_build_dib_elements }}"
|
|
env: "{{ ipa_build_dib_env }}"
|
|
# Avoid needing to install qemu-img for qcow2 image.
|
|
type: raw
|
|
os_images_git_elements: "{{ ipa_build_dib_git_elements }}"
|
|
os_images_upload: False
|
|
os_images_force_rebuild: "{{ ipa_image_force_rebuild }}"
|
|
when: ipa_build_images | bool
|