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:
parent
676846b6a2
commit
06291ec0e6
|
@ -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"
|
||||
|
|
|
@ -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.
|
|
@ -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
|
||||
|
|
|
@ -61,6 +61,7 @@ endpoint_type = internal
|
|||
|
||||
[nova]
|
||||
endpoint_type = internal
|
||||
aggregate_freepool_name = {{ blazar_nova_aggregate_name }}
|
||||
|
||||
[placement]
|
||||
endpoint_type = internal
|
||||
|
|
Loading…
Reference in New Issue