Lay out a clouds.yaml file before upgrading

Upgrades use the clouds.yaml instead of environment variables
to test APIs. Swift doesn't have openstack_openrc in meta, and
no role that applies to localhost in the whole functional test
path has it. So we have to include openstack_openrc role.

Change-Id: I5196ab338659c65a6a3b7ac03095bbfb1e26c0a8
This commit is contained in:
Jean-Philippe Evrard 2018-02-15 16:32:34 +00:00
parent 37eb776041
commit 7ab62ddbea
2 changed files with 4 additions and 1 deletions

View File

@ -49,4 +49,4 @@
- name: os_previous_swift
src: https://git.openstack.org/openstack/openstack-ansible-os_swift
scm: git
version: stable/pike
version: stable/queens

View File

@ -27,6 +27,9 @@
- "python-glanceclient"
- "openstacksdk"
tasks:
- name: Generate clouds.yaml for API testing
include_role:
name: "openstack_openrc"
- name: Install openstack sdk
pip:
name: "{{ upgrade_test_packages }}"