Deprecating launch app and ansible support. 77/63277/1
authorspisarski <s.pisarski@cablelabs.com>
Mon, 8 Oct 2018 14:24:57 +0000 (08:24 -0600)
committerspisarski <s.pisarski@cablelabs.com>
Mon, 8 Oct 2018 14:24:57 +0000 (08:24 -0600)
Change-Id: Iba28a784a4e78e1009d2038a30ccea8a1bfaa25f
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
examples/launch.py
snaps/openstack/create_instance.py
snaps/openstack/utils/launch_utils.py
snaps/provisioning/ansible_utils.py

index 04bc5d6..cfd7f65 100644 (file)
@@ -32,6 +32,10 @@ logger = logging.getLogger('snaps_launcher')
 
 ARG_NOT_SET = "argument not set"
 
+from warnings import warn
+warn('This script will be removed in a subsequent release',
+     DeprecationWarning)
+
 
 def main(arguments):
     """
index e2a6991..b158a25 100644 (file)
@@ -475,6 +475,10 @@ class OpenStackVmInstance(OpenStackComputeObject):
         :param fip_name: the name of the floating IP to use for applying the
                          playbook (default - will take the first)
         """
+        from warnings import warn
+        warn('This method will be removed in a subsequent release',
+             DeprecationWarning)
+
         ansible_utils.apply_playbook(
             pb_file_loc, [self.get_floating_ip(fip_name=fip_name).ip],
             self.get_image_user(),
index bb7600c..ddaad12 100644 (file)
@@ -53,6 +53,10 @@ from snaps.openstack.utils import deploy_utils, neutron_utils, keystone_utils
 from snaps.openstack.utils.nova_utils import RebootType
 from snaps.provisioning import ansible_utils
 
+from warnings import warn
+warn('This utility will be removed in a subsequent release',
+     DeprecationWarning)
+
 logger = logging.getLogger('lanuch_utils')
 DEFAULT_CREDS_KEY = 'admin'
 
index b4c86f2..019a8e7 100644 (file)
@@ -29,6 +29,10 @@ except:
 
 __author__ = 'spisarski'
 
+from warnings import warn
+warn('This utility will be removed in a subsequent release',
+     DeprecationWarning)
+
 logger = logging.getLogger('ansible_utils')