Deprecate OS::Glance::Image

Since this resource type depends wholly on the deprecated Glance v1 API, we
should deprecate it as well. The Glance v2 API does not offer any
equivalent functionality.

Change-Id: Iab2bb291d1640f13b6f91957d795bdf4234fb0e5
Partially-Implements: blueprint migrate-to-glance-v2
This commit is contained in:
Zane Bitter 2017-01-11 15:29:28 -05:00
parent 28f74bc05a
commit 16a463751d
2 changed files with 8 additions and 1 deletions

View File

@ -26,7 +26,13 @@ class GlanceImage(resource.Resource):
services.
"""
support_status = support.SupportStatus(version='2014.2')
support_status = support.SupportStatus(
status=support.DEPRECATED,
version='8.0.0',
message=_('Creating a Glance Image based on an existing URL location '
'requires the Glance v1 API, which is deprecated.'),
previous_status=support.SupportStatus(version='2014.2')
)
PROPERTIES = (
NAME, IMAGE_ID, IS_PUBLIC, MIN_DISK, MIN_RAM, PROTECTED,

View File

@ -48,6 +48,7 @@ class ResourceTypeTest(common.HeatTestCase):
'OS::Neutron::LoadBalancer',
'OS::Neutron::Pool',
'OS::Neutron::PoolMember',
'OS::Glance::Image',
'OS::Aodh::CombinationAlarm']),
set(resources))