Create required freepool aggregate

For normal functioning of Blazar reservation it expects a nova agregate exist
to be used for host reservation.

Thus, to make deployment more convenient for deployer we add fuctionality
of creating such aggregate.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/904786
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/878794
Change-Id: I7f56b8c8f2394d5fae1476441c8e2e2a5f07467c
This commit is contained in:
Dmitriy Rabotyagov 2024-01-05 22:30:24 +01:00 committed by Dmitriy Rabotyagov
parent 676846b6a2
commit 06291ec0e6
4 changed files with 24 additions and 0 deletions

View File

@ -39,9 +39,13 @@ blazar_pip_install_args: "{{ pip_install_options | default('') }}"
blazar_venv_tag: "{{ venv_tag | default('untagged') }}"
blazar_bin: "/openstack/venvs/blazar-{{ blazar_venv_tag }}/bin"
# Blazar configuration
blazar_etc_dir: /etc/blazar
blazar_config_option: "--config-file {{ blazar_etc_dir }}/blazar.conf"
blazar_nova_aggregate_name: freepool
## Common PIP requirements
blazar_pip_packages:
- "git+{{ blazar_git_repo }}@{{ blazar_git_install_branch }}#egg=blazar"

View File

@ -0,0 +1,8 @@
---
features:
- |
Added new variable ``blazar_nova_aggregate_name`` that allows to control
Nova aggregate name for Blazar.
When is not False (default value 'freepool'), aggregate in topic will
be created during deployment.

View File

@ -196,3 +196,14 @@
- _blazar_is_first_play_host
tags:
- always
- name: Create required Nova aggregates
include_role:
name: openstack.osa.openstack_resources
vars:
openstack_resources_compute:
aggregates:
- name: "{{ blazar_nova_aggregate_name }}"
exclusive: "no"
when:
- blazar_nova_aggregate_name

View File

@ -61,6 +61,7 @@ endpoint_type = internal
[nova]
endpoint_type = internal
aggregate_freepool_name = {{ blazar_nova_aggregate_name }}
[placement]
endpoint_type = internal