Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ansible/roles/prometheus/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ prometheus_node_exporter_targets_extra: []
# For a list of default endpoints see
# prometheus_blackbox_exporter_endpoints_default.
# For a list of modules see the alertmanager config.
prometheus_blackbox_exporter_endpoints: "{{ prometheus_blackbox_exporter_endpoints_default | selectattr('enabled', 'true') | map(attribute='endpoints') | flatten | union(prometheus_blackbox_exporter_endpoints_custom) | unique | select | list }}"
prometheus_blackbox_exporter_endpoints: "{{ prometheus_blackbox_exporter_endpoints_default | selectattr('enabled', 'true') | map(attribute='endpoints') | flatten | union(prometheus_blackbox_exporter_endpoints_custom) | unique | select | list | sort }}"

prometheus_blackbox_exporter_endpoints_default:
# OpenStack endpoints
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Password hashing
bcrypt>=4.3.0,<5 # Apache-2.0
bcrypt>=4.3.0 # Apache-2.0

# password generation
cryptography>=2.1 # BSD/Apache-2.0
Expand Down
1 change: 0 additions & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ coverage!=4.4,>=4.0 # Apache-2.0
docker>=2.4.2 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0
testtools<2.8.3 # Apache-2.0 - temporarily pin to satisfy stestr
9 changes: 9 additions & 0 deletions tests/run-openbao.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@
cmd: "{{ 'python3.12' if ansible_facts.os_family == 'RedHat' else 'python3' }} -m venv {{ kolla_ansible_venv_path }}"
creates: "{{ kolla_ansible_venv_path }}"

# TODO(bbezak): Drop this workaround once kolla-ansible supports bcrypt 5.
- name: Pin bcrypt to <5 in upper-constraints in CI
lineinfile:
path: "{{ upper_constraints_file }}"
regexp: '^bcrypt==='
line: 'bcrypt===4.3.0'
state: present
when: zuul.branch == 'master'

- name: Ensure the latest tested pip
pip:
name: "pip==23.*"
Expand Down
26 changes: 26 additions & 0 deletions tests/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
ansible_collection_kolla_src_dir: "{{ ansible_env.PWD }}/src/{{ zuul.project.canonical_hostname }}/openstack/ansible-collection-kolla"
kolla_ansible_src_dir: "{{ ansible_env.PWD }}/src/{{ zuul.project.canonical_hostname }}/openstack/kolla-ansible"
kolla_ansible_local_src_dir: "{{ zuul.executor.work_root }}/src/{{ zuul.project.canonical_hostname }}/openstack/kolla-ansible"
tempest_src_dir: "{{ ansible_env.PWD }}/src/{{ zuul.project.canonical_hostname }}/openstack/tempest"
infra_dockerhub_mirror: "http://{{ zuul_site_mirror_fqdn }}:8082/"
need_build_image: "{{ kolla_build_images | default(false) }}"
build_image_tag: "change_{{ zuul.change | default('none') }}"
Expand Down Expand Up @@ -253,6 +254,15 @@
state: directory
become: true

# TODO(bbezak): Drop this workaround once kolla-ansible supports bcrypt 5.
- name: Pin bcrypt to <5 in upper-constraints in CI
lineinfile:
path: "{{ upper_constraints_file }}"
regexp: '^bcrypt==='
line: 'bcrypt===4.3.0'
state: present
when: zuul.branch == 'master'

- name: Create Kolla Ansible venv
command:
cmd: "{{ 'python3.12' if ansible_facts.os_family == 'RedHat' else 'python3' }} -m venv {{ kolla_ansible_venv_path }}"
Expand Down Expand Up @@ -416,6 +426,10 @@

- import_role:
name: kolla-ansible-tempest
vars:
kolla_ansible_tempest_packages:
- python-tempestconf
- "{{ tempest_src_dir if (zuul.branch == 'master' and not is_upgrade) else 'tempest' }}"
when: openstack_core_tested

- name: Run test-zun.sh script
Expand Down Expand Up @@ -610,6 +624,15 @@
git log --pretty=oneline -1
chdir: "{{ ansible_env.HOME }}/src/opendev.org/openstack/requirements/"

# TODO(bbezak): Drop this workaround once kolla-ansible supports bcrypt 5.
- name: Pin bcrypt to <5 in upper-constraints in CI
lineinfile:
path: "{{ upper_constraints_file }}"
regexp: '^bcrypt==='
line: 'bcrypt===4.3.0'
state: present
when: zuul.branch == 'master'

- name: Generate configuration files
template:
src: "{{ kolla_ansible_local_src_dir }}/{{ item.src }}"
Expand Down Expand Up @@ -706,6 +729,9 @@
name: kolla-ansible-tempest
vars:
post_upgrade: true
kolla_ansible_tempest_packages:
- python-tempestconf
- "{{ tempest_src_dir if (zuul.branch == 'master' and not is_upgrade) else 'tempest' }}"
when: openstack_core_tested

- name: Run test-prometheus-opensearch.sh script (post-upgrade)
Expand Down
1 change: 1 addition & 0 deletions zuul.d/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- openstack/ansible-collection-kolla
- openstack/kolla
- openstack/kolla-ansible
- openstack/tempest
- openstack/requirements
files:
- ^ansible/site.yml
Expand Down