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

Bug 1542838

Summary: Disable glance v1 api leads to problems with heat
Product: Red Hat OpenStack Reporter: Ganesh Kadam <gkadam>
Component: openstack-glanceAssignee: Cyril Roelandt <cyril>
Status: CLOSED WONTFIX QA Contact: Mike Abrams <mabrams>
Severity: unspecified Docs Contact: Kim Nylander <knylande>
Priority: unspecified    
Version: 10.0 (Newton)CC: cyril, eglynn, fpercoco, gkadam, ojanas, srevivo, tshefi
Target Milestone: ---Flags: tshefi: automate_bug-
Target Release: ---   
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-02-27 15:49:32 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:
Attachments:
Description Flags
glance_v2 o/p none

Description Ganesh Kadam 2018-02-07 06:52:17 UTC
Description of problem:

Cu wants to disable the glance v1 api. But, after enabling the glance v2 api, heat is throwing an error as below:
~~~
2018-02-05 10:41:21.606 10903 DEBUG heat.engine.stack [req-b74925a1-0332-4573-8b78-f4e388bf3e99 452953354c9248749b8ba119e051c844 8724ebc2beb64ca2a5049069508905fb - - -]
 Property error: resources.repo_server.properties.image: HTTPMultipleChoices (HTTP 300) Requested version of OpenStack Images API is not available. validate /usr/lib/py
thon2.7/site-packages/heat/engine/stack.py:838
~~~


Version-Release number of selected component (if applicable):

- [gkadam@foobar sosreport-cvs3the03.infra.dev.es.iaas.igrupobbva.02024440-20180205104555]$ grep -ri glance installed-rpms 
python-glanceclient-2.5.0-2.el7ost.noarch                   Thu Nov 16 17:52:02 2017


-[gkadam@foobar sosreport-cvs3the03.infra.dev.es.iaas.igrupobbva.02024440-20180205104555]$ grep -ri heat installed-rpms 
openstack-heat-api-7.0.5-2.el7ost.noarch                    Thu Nov 16 17:52:09 2017


Steps to Reproduce:

- set enable_v1_api and enable_v1_registry to `False`
- set enable_v2_api to `True`
- RHOSP 10


Actual results:

- OpenStack heat throws errors

Expected results:

- OpenStack heat should not throw errors

Additional info:

- glance api v1 is disabled by default and not supported from RHSOP 11 onwards.
~~~
https://bugzilla.redhat.com/show_bug.cgi
~~~

- Is it required that v1 should be enabled for RHOSP 10?

Comment 1 Cyril Roelandt 2018-02-07 14:03:43 UTC
First, let's see whether Glance API v2 works. Can you run simple Glance commands (list image, create a dummy image, etc.) using "--os-image-api-version 2" on the CLI?

Comment 2 Ganesh Kadam 2018-02-09 08:46:35 UTC
Created attachment 1393574 [details]
glance_v2 o/p

Comment 3 Ganesh Kadam 2018-02-09 08:47:44 UTC
Hi Cyril,

(In reply to Cyril Roelandt from comment #1)
> First, let's see whether Glance API v2 works. Can you run simple Glance
> commands (list image, create a dummy image, etc.) using
> "--os-image-api-version 2" on the CLI?


I have attached the o/p of the glance command from Cu's environment.


Regards,
Ganesh Kadam

Comment 4 Cyril Roelandt 2018-02-19 16:43:34 UTC
Yeah, so Glance v2 seems to be working on your environment.

Heat does not play well with Glance v2 on OSP10, as Thomas Hervé from Heat told me. This should work in OSP11.

Do you really need this in OSP10?

Comment 6 Cyril Roelandt 2018-02-27 15:49:32 UTC
Thanks for your feedback, I'll close the bug :)