summaryrefslogtreecommitdiff
path: root/trove
diff options
context:
space:
mode:
authorAmrith Kumar <amrith@tesora.com>2016-10-12 11:37:50 -0400
committerAmrith Kumar <amrith@tesora.com>2016-10-16 08:21:46 -0400
commiteb51bbe6af6e4041ed13ef9f59fc2e0aa3688c0b (patch)
tree3634bbeceef7a6f624093c6926eb9eff4d0f7cdc /trove
parent473d360b906dba80f0f914e88b461221c1bfd5f3 (diff)
downloadtrove-eb51bbe6af6e4041ed13ef9f59fc2e0aa3688c0b.tar.gz
Issue deprecation warning for the use of heat templates in Trove
This change generates a deprecation warning regarding the use of heat templates in Trove. All configuration options which will be removed in the commit a release from now will issue deprecation warnings. Change-Id: Ieb0e5747946ee6dca63375f97eb1f4cdcc2df9ad
Diffstat (limited to 'trove')
-rw-r--r--trove/common/cfg.py22
-rwxr-xr-xtrove/taskmanager/models.py4
2 files changed, 22 insertions, 4 deletions
diff --git a/trove/common/cfg.py b/trove/common/cfg.py
index f7727208..908d0a59 100644
--- a/trove/common/cfg.py
+++ b/trove/common/cfg.py
@@ -29,6 +29,11 @@ from trove.version import version_info as version
LOG = logging.getLogger(__name__)
UNKNOWN_SERVICE_ID = 'unknown-service-id-error'
+HEAT_REMOVAL_DEPRECATION_WARNING = _('Support for heat templates in Trove is '
+ 'scheduled for removal. You will no '
+ 'longer be able to provide a heat '
+ 'template to Trove for the provisioning '
+ 'of resources.')
path_opts = [
cfg.StrOpt('pybasedir',
@@ -71,10 +76,16 @@ common_opts = [
help='Service type to use when searching catalog.'),
cfg.StrOpt('cinder_endpoint_type', default='publicURL',
help='Service endpoint type to use when searching catalog.'),
- cfg.URIOpt('heat_url', help='URL without the tenant segment.'),
+ cfg.URIOpt('heat_url', deprecated_for_removal=True,
+ deprecated_reason=HEAT_REMOVAL_DEPRECATION_WARNING,
+ help='URL without the tenant segment.'),
cfg.StrOpt('heat_service_type', default='orchestration',
+ deprecated_for_removal=True,
+ deprecated_reason=HEAT_REMOVAL_DEPRECATION_WARNING,
help='Service type to use when searching catalog.'),
cfg.StrOpt('heat_endpoint_type', default='publicURL',
+ deprecated_for_removal=True,
+ deprecated_reason=HEAT_REMOVAL_DEPRECATION_WARNING,
help='Service endpoint type to use when searching catalog.'),
cfg.URIOpt('swift_url', help='URL ending in ``AUTH_``.'),
cfg.StrOpt('swift_service_type', default='object-store',
@@ -198,7 +209,8 @@ common_opts = [
cfg.BoolOpt('use_nova_server_volume', default=False,
help='Whether to provision a Cinder volume for the '
'Nova instance.'),
- cfg.BoolOpt('use_heat', default=False,
+ cfg.BoolOpt('use_heat', default=False, deprecated_for_removal=True,
+ deprecated_reason=HEAT_REMOVAL_DEPRECATION_WARNING,
help='Use Heat for provisioning.'),
cfg.StrOpt('device_path', default='/dev/vdb',
help='Device path for volume if volume support is enabled.'),
@@ -215,7 +227,8 @@ common_opts = [
help='Maximum time (in seconds) to wait for a server delete.'),
cfg.IntOpt('volume_time_out', default=60,
help='Maximum time (in seconds) to wait for a volume attach.'),
- cfg.IntOpt('heat_time_out', default=60,
+ cfg.IntOpt('heat_time_out', default=60, deprecated_for_removal=True,
+ deprecated_reason=HEAT_REMOVAL_DEPRECATION_WARNING,
help='Maximum time (in seconds) to wait for a Heat request to '
'complete.'),
cfg.IntOpt('reboot_time_out', default=60 * 2,
@@ -308,7 +321,8 @@ common_opts = [
cfg.StrOpt('remote_cinder_client',
default='trove.common.remote.cinder_client',
help='Client to send Cinder calls to.'),
- cfg.StrOpt('remote_heat_client',
+ cfg.StrOpt('remote_heat_client', deprecated_for_removal=True,
+ deprecated_reason=HEAT_REMOVAL_DEPRECATION_WARNING,
default='trove.common.remote.heat_client',
help='Client to send Heat calls to.'),
cfg.StrOpt('remote_swift_client',
diff --git a/trove/taskmanager/models.py b/trove/taskmanager/models.py
index b170c43d..ed62b90f 100755
--- a/trove/taskmanager/models.py
+++ b/trove/taskmanager/models.py
@@ -398,6 +398,10 @@ class FreshInstanceTasks(FreshInstance, NotifyMixin, ConfigurationMixin):
files = self.get_injected_files(datastore_manager)
cinder_volume_type = volume_type or CONF.cinder_volume_type
if use_heat:
+ msg = _("Support for heat templates in Trove is scheduled for "
+ "removal. You will no longer be able to provide a heat "
+ "template to Trove for the provisioning of resources.")
+ LOG.warning(msg)
volume_info = self._create_server_volume_heat(
flavor,
image_id,