Bug 1542838 - Disable glance v1 api leads to problems with heat
Summary: Disable glance v1 api leads to problems with heat
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-glance
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Cyril Roelandt
QA Contact: Mike Abrams
Kim Nylander
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-07 06:52 UTC by Ganesh Kadam
Modified: 2021-12-10 15:42 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-27 15:49:32 UTC
Target Upstream Version:
Embargoed:
tshefi: automate_bug-


Attachments (Terms of Use)
glance_v2 o/p (19.14 KB, text/plain)
2018-02-09 08:46 UTC, Ganesh Kadam
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-11337 0 None None None 2021-12-10 15:42:50 UTC

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 :)


Note You need to log in before you can comment on or make changes to this bug.