Skip to content
Snippets Groups Projects
Commit c2f8691f authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Bump up Ansible supported versions to 7.x/8.x"

parents 6e404d1f 80f6db34
No related branches found
No related tags found
No related merge requests found
...@@ -3,4 +3,4 @@ ...@@ -3,4 +3,4 @@
pip_upper_constraints_file: "https://releases.openstack.org/constraints/upper/{{ openstack_release }}" pip_upper_constraints_file: "https://releases.openstack.org/constraints/upper/{{ openstack_release }}"
# Upper constraints file for installation of openstacksdk. # Upper constraints file for installation of openstacksdk.
openstacksdk_upper_constraints_file: "https://releases.openstack.org/constraints/upper/yoga" openstacksdk_upper_constraints_file: "https://releases.openstack.org/constraints/upper/{{ openstack_release }}"
\ No newline at end of file
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
subnets: subnets:
- name: "{{ kolla_ironic_provisioning_network }}" - name: "{{ kolla_ironic_provisioning_network }}"
cidr: "{{ provision_wl_net_name | net_cidr }}" cidr: "{{ provision_wl_net_name | net_cidr }}"
gateway_ip: "{{ provision_wl_net_name | net_neutron_gateway or provision_wl_net_name | net_gateway }}" gateway_ip: "{{ provision_wl_net_name | net_neutron_gateway or provision_wl_net_name | net_gateway | default(omit, True) }}"
allocation_pool_start: "{{ provision_wl_net_name | net_neutron_allocation_pool_start }}" allocation_pool_start: "{{ provision_wl_net_name | net_neutron_allocation_pool_start }}"
allocation_pool_end: "{{ provision_wl_net_name | net_neutron_allocation_pool_end }}" allocation_pool_end: "{{ provision_wl_net_name | net_neutron_allocation_pool_end }}"
cleaning_net: cleaning_net:
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
subnets: subnets:
- name: "{{ kolla_ironic_cleaning_network }}" - name: "{{ kolla_ironic_cleaning_network }}"
cidr: "{{ cleaning_net_name | net_cidr }}" cidr: "{{ cleaning_net_name | net_cidr }}"
gateway_ip: "{{ cleaning_net_name | net_neutron_gateway or cleaning_net_name | net_gateway }}" gateway_ip: "{{ cleaning_net_name | net_neutron_gateway or cleaning_net_name | net_gateway | default(omit, True) }}"
allocation_pool_start: "{{ cleaning_net_name | net_neutron_allocation_pool_start }}" allocation_pool_start: "{{ cleaning_net_name | net_neutron_allocation_pool_start }}"
allocation_pool_end: "{{ cleaning_net_name | net_neutron_allocation_pool_end }}" allocation_pool_end: "{{ cleaning_net_name | net_neutron_allocation_pool_end }}"
network_registrations: "{{ [provision_net] + ([] if cleaning_net_name == provision_wl_net_name else [cleaning_net]) }}" network_registrations: "{{ [provision_net] + ([] if cleaning_net_name == provision_wl_net_name else [cleaning_net]) }}"
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
- block: - block:
- name: Gather facts about Ironic Python Agent (IPA) kernel image - name: Gather facts about Ironic Python Agent (IPA) kernel image
os_image_info: openstack.cloud.image_info:
auth_type: "{{ ipa_images_openstack_auth_type }}" auth_type: "{{ ipa_images_openstack_auth_type }}"
auth: "{{ ipa_images_openstack_auth }}" auth: "{{ ipa_images_openstack_auth }}"
cacert: "{{ ipa_images_openstack_cacert | default(omit, true) }}" cacert: "{{ ipa_images_openstack_cacert | default(omit, true) }}"
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
register: ipa_images_kernel register: ipa_images_kernel
- name: Gather facts about Ironic Python Agent (IPA) ramdisk image - name: Gather facts about Ironic Python Agent (IPA) ramdisk image
os_image_info: openstack.cloud.image_info:
auth_type: "{{ ipa_images_openstack_auth_type }}" auth_type: "{{ ipa_images_openstack_auth_type }}"
auth: "{{ ipa_images_openstack_auth }}" auth: "{{ ipa_images_openstack_auth }}"
cacert: "{{ ipa_images_openstack_cacert | default(omit, true) }}" cacert: "{{ ipa_images_openstack_cacert | default(omit, true) }}"
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
environment: "{{ ipa_images_openstack_auth_env }}" environment: "{{ ipa_images_openstack_auth_env }}"
- name: Ensure Ironic Python Agent (IPA) images are registered with Glance - name: Ensure Ironic Python Agent (IPA) images are registered with Glance
os_image: openstack.cloud.image:
auth_type: "{{ ipa_images_openstack_auth_type }}" auth_type: "{{ ipa_images_openstack_auth_type }}"
auth: "{{ ipa_images_openstack_auth }}" auth: "{{ ipa_images_openstack_auth }}"
cacert: "{{ ipa_images_openstack_cacert | default(omit, true) }}" cacert: "{{ ipa_images_openstack_cacert | default(omit, true) }}"
......
--- ---
- name: Retrieve deployment image uuids - name: Retrieve deployment image uuids
os_image_info: openstack.cloud.image_info:
auth_type: "{{ ipa_images_openstack_auth_type }}" auth_type: "{{ ipa_images_openstack_auth_type }}"
auth: "{{ ipa_images_openstack_auth }}" auth: "{{ ipa_images_openstack_auth }}"
cacert: "{{ ipa_images_openstack_cacert | default(omit, true) }}" cacert: "{{ ipa_images_openstack_cacert | default(omit, true) }}"
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
- name: Set fact containing kernel uuid - name: Set fact containing kernel uuid
set_fact: set_fact:
ipa_images_kernel_uuid: "{{ ipa_images_glance.results[0].openstack_images[0].id }}" ipa_images_kernel_uuid: "{{ ipa_images_glance.results[0].images[0].id }}"
- name: Set fact containing ramdisk uuid - name: Set fact containing ramdisk uuid
set_fact: set_fact:
ipa_images_ramdisk_uuid: "{{ ipa_images_glance.results[1].openstack_images[0].id }}" ipa_images_ramdisk_uuid: "{{ ipa_images_glance.results[1].images[0].id }}"
- name: Get a list of ironic nodes - name: Get a list of ironic nodes
command: | command: |
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
import copy import copy
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
from ansible.module_utils.openstack import * from ansible_collections.openstack.cloud.plugins.module_utils.openstack import *
# Store a list of import errors to report to the user. # Store a list of import errors to report to the user.
IMPORT_ERRORS = [] IMPORT_ERRORS = []
......
...@@ -24,8 +24,8 @@ kolla_ansible_venv_extra_requirements: [] ...@@ -24,8 +24,8 @@ kolla_ansible_venv_extra_requirements: []
# Pip requirement specifier for the ansible package. NOTE: This limits the # Pip requirement specifier for the ansible package. NOTE: This limits the
# version of ansible used by kolla-ansible to avoid new releases from breaking # version of ansible used by kolla-ansible to avoid new releases from breaking
# tested code. Changes to this limit should be tested. # tested code. Changes to this limit should be tested.
kolla_ansible_venv_ansible: 'ansible>=6,<8.0' kolla_ansible_venv_ansible: 'ansible>=7,<9.0'
kolla_ansible_venv_ansible_core: 'ansible-core>=2.13,<=2.14.2' kolla_ansible_venv_ansible_core: 'ansible-core>=2.14,<2.16'
# Path to a requirements.yml file for Ansible collections. # Path to a requirements.yml file for Ansible collections.
kolla_ansible_requirements_yml: "{{ kolla_ansible_venv }}/share/kolla-ansible/requirements.yml" kolla_ansible_requirements_yml: "{{ kolla_ansible_venv }}/share/kolla-ansible/requirements.yml"
......
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
# process, which may cause wedges in the gate later. # process, which may cause wedges in the gate later.
ansible-lint>=3.0.0,<6.0.0,!=4.3.0 # MIT ansible-lint>=3.0.0,<6.0.0,!=4.3.0 # MIT
ansible-compat<4 # MIT ansible-compat # MIT
docker # Apache-2.0 docker # Apache-2.0
molecule<4.1.0 # MIT molecule # MIT
molecule-docker # MIT molecule-plugins[docker] # MIT
pytest-metadata # MPL pytest-metadata # MPL
pytest-molecule # MIT pytest-molecule # MIT
pytest-testinfra pytest-testinfra
......
---
upgrade:
- |
Updates the maximum supported version of Ansible from 7.x (ansible-core
2.14) to 8.x (ansible-core 2.15). The minimum supported version is updated
from 6.x to 7.x. This is true for both Kayobe and Kolla Ansible.
pbr>=2.0 # Apache-2.0 pbr>=2.0 # Apache-2.0
Jinja2>3 # BSD Jinja2>3 # BSD
ansible>=6,<8.0 # GPLv3 ansible>=7,<9.0 # GPLv3
cliff>=3.1.0 # Apache cliff>=3.1.0 # Apache
netaddr!=0.7.16,>=0.7.13 # BSD netaddr!=0.7.16,>=0.7.13 # BSD
PyYAML>=3.10.0 # MIT PyYAML>=3.10.0 # MIT
......
...@@ -5,12 +5,14 @@ collections: ...@@ -5,12 +5,14 @@ collections:
version: master version: master
- name: dellemc.os10 - name: dellemc.os10
version: 1.1.1 version: 1.1.1
- name: openstack.cloud
version: '<3'
roles: roles:
- src: ahuffman.resolv - src: ahuffman.resolv
version: 1.3.1 version: 1.3.1
- src: stackhpc.systemd_networkd - src: stackhpc.systemd_networkd
version: v1.0.1 version: v1.0.5
- src: giovtorres.tuned - src: giovtorres.tuned
version: 1.1.0 version: 1.1.0
- src: jriguera.configdrive - src: jriguera.configdrive
...@@ -27,7 +29,7 @@ roles: ...@@ -27,7 +29,7 @@ roles:
- src: singleplatform-eng.users - src: singleplatform-eng.users
version: v1.2.5 version: v1.2.5
- src: stackhpc.dell-powerconnect-switch - src: stackhpc.dell-powerconnect-switch
version: v1.1.0 version: v1.2.1
- src: stackhpc.drac - src: stackhpc.drac
version: 1.1.6 version: 1.1.6
- src: stackhpc.drac-facts - src: stackhpc.drac-facts
...@@ -41,7 +43,7 @@ roles: ...@@ -41,7 +43,7 @@ roles:
- src: stackhpc.luks - src: stackhpc.luks
version: 0.4.2 version: 0.4.2
- src: stackhpc.mellanox-switch - src: stackhpc.mellanox-switch
version: v1.0.0 version: v1.0.1
- src: stackhpc.os-images - src: stackhpc.os-images
version: v1.16.0 version: v1.16.0
- src: stackhpc.os-ironic-state - src: stackhpc.os-ironic-state
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment