Merge "Support ansible-collections-openstack 2 and later"

This commit is contained in:
Zuul 2023-03-08 20:23:38 +00:00 committed by Gerrit Code Review
commit 71cbb202b0
5 changed files with 3 additions and 34 deletions

View File

@ -1,4 +1,4 @@
collections:
- name: openstack.cloud
version: '>=1.3.0,<2.0.0'
version: '>=2.0.0'
source: https://galaxy.ansible.com

View File

@ -92,14 +92,6 @@
group: "{{ ansible_user_gid }}"
when: copy_from_local_path | bool
# FIXME(dtantsur): downgrade openstacksdk since ansible-collections-openstack
# before 2.0.0 cannot work with 0.99.0. Remove when we use >=2.0.0.
- name: downgrade openstacksdk in upper constraints
lineinfile:
path: "{{ upper_constraints_file }}"
regexp: "^openstacksdk="
line: "openstacksdk===0.61.0"
- import_tasks: prepare_libvirt.yml
- name: truncate explicit list of vm names

View File

@ -39,17 +39,11 @@
vars:
package: pymysql
- name: "Remove python-openstackclient from upper constraints"
lineinfile:
path: "{{ upper_constraints_file }}"
regexp: "^python\\-openstackclient"
state: absent
- name: "Install python-openstackclient"
include_role:
name: bifrost-pip-install
vars:
package: "python-openstackclient<6.1.0"
package: python-openstackclient
- name: "Install keystone"
include_role:

View File

@ -75,11 +75,3 @@
- copy_from_local_path | bool
- item.source_install | default(true) | bool
- item.enabled | default(true) | bool
# FIXME(dtantsur): downgrade openstacksdk since ansible-collections-openstack
# before 2.0.0 cannot work with 0.99.0. Remove when we use >=2.0.0.
- name: downgrade openstacksdk in upper constraints
lineinfile:
path: "{{ upper_constraints_file }}"
regexp: "^openstacksdk="
line: "openstacksdk===0.61.0"

View File

@ -35,19 +35,10 @@
voting: false
- bifrost-collections-src:
voting: false
# FIXME(dtantsur): downgrade ansible-collections-openstack
# and openstacksdk because the former has not been ported
# yet to openstacksdk >=0.99.0
required-projects: &bifrost_collections_required_projects
- name: openstack/ansible-collections-openstack
override-checkout: stable/1.0.0
- name: openstack/openstacksdk
override-checkout: stable/yoga
- openstack/ansible-collections-openstack
- bifrost-keystone-collections-src:
voting: false
# FIXME(dtantsur): downgrade ansible-collections-openstack
# and openstacksdk because the former has not been ported
# yet to openstacksdk >=0.99.0
required-projects: *bifrost_collections_required_projects
- kolla-ansible-ubuntu-bifrost:
voting: false