Red Hat Bugzilla – Bug 1611672
Add blockstorage version for Openstack for OpenShift 3.7
Last modified: 2018-09-24 01:18:25 EDT
Description of problem: OCP only supports Cinder v2 and for OSP environments where Cinder v3 is enabled as well, you need to configure the cloudprovider.conf file to only try to use v2. See https://github.com/openshift/openshift-ansible/pull/6611 and https://github.com/openshift/openshift-docs/issues/5730 for more information. The PR is cherry picking the fix for 3.7 but it looks like there is no bugzilla attached, so that's why I'm creating this. Version-Release number of the following components: openshift-ansible-3.7.57-1.git.33.cf01e48.el7.noarch ansible-2.4.2.0-2.el7.noarch ansible 2.4.2.0 config file = /home/cloud-user/ansible.cfg configured module search path = [u'/home/cloud-user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.5 (default, May 31 2018, 09:41:32) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] How reproducible: $ cinder version-list Client supported API versions: Minimum version 3.0 Maximum version 3.40 Server supported API versions: +------+------------+----------------------+-------------+---------+ | Id | Status | Updated | Min Version | Version | +------+------------+----------------------+-------------+---------+ | v2.0 | DEPRECATED | 2017-02-25T12:00:00Z | | | | v3.0 | CURRENT | 2017-09-19T20:18:14Z | 3.0 | 3.50 | +------+------------+----------------------+-------------+---------+ Install OCP using a cinder volume as registry storage. Steps to Reproduce: 1. 2. 3. Actual results: BS API version autodetection failed. Expected results: Evertying works Additional info:
This is already merged.
Verify this bug with openshift-ansible-3.7.63-1.git.0.6ae9a27.el7.noarch.rpm. Add the following options to enable ocp with openstack cloudprovider openshift_cloudprovider_kind=openstack openshift_cloudprovider_openstack_auth_url=https://x.x.x.com:13000/v2.0/ openshift_cloudprovider_openstack_username=xxx openshift_cloudprovider_openstack_password=xxx openshift_cloudprovider_openstack_tenant_id=xxx openshift_cloudprovider_openstack_region=xxx openshift_cloudprovider_openstack_blockstorage_version=v2 After installation, check cloudprovider config [root@host-172-16-122-69 ~]# cat /etc/origin/cloudprovider/openstack.conf [Global] auth-url = https://x.x.x.com:13000/v2.0/ username = xxx password = xxx tenant-id = xxx region = xxx [BlockStorage] bs-version=v2
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:2656