Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1611672

Summary: Add blockstorage version for Openstack for OpenShift 3.7
Product: OpenShift Container Platform Reporter: Eduardo Minguez <eminguez>
Component: InstallerAssignee: Tomas Sedovic <tsedovic>
Status: CLOSED ERRATA QA Contact: Gaoyun Pei <gpei>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.7.1CC: aos-bugs, jokerman, mmccomas, scuppett
Target Milestone: ---   
Target Release: 3.7.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-24 05:18:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eduardo Minguez 2018-08-02 15:19:47 UTC
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:

Comment 1 Stephen Cuppett 2018-08-23 13:42:43 UTC
This is already merged.

Comment 3 Gaoyun Pei 2018-09-07 07:43:02 UTC
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

Comment 5 errata-xmlrpc 2018-09-24 05:18:20 UTC
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