summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspisarski <s.pisarski@cablelabs.com>2018-10-08 08:24:57 -0600
committerspisarski <s.pisarski@cablelabs.com>2018-10-08 08:24:57 -0600
commit630875f0ac88239f0b9207312793f4d39a5e36bd (patch)
treea58fd03507f8da243611ae203f5e4010fe61b0f7
parentdee6094d2eee4e975770213fabd9736c220f42df (diff)
Deprecating launch app and ansible support.HEADmaster
Change-Id: Iba28a784a4e78e1009d2038a30ccea8a1bfaa25f Signed-off-by: spisarski <s.pisarski@cablelabs.com>
-rw-r--r--examples/launch.py4
-rw-r--r--snaps/openstack/create_instance.py4
-rw-r--r--snaps/openstack/utils/launch_utils.py4
-rw-r--r--snaps/provisioning/ansible_utils.py4
4 files changed, 16 insertions, 0 deletions
diff --git a/examples/launch.py b/examples/launch.py
index 04bc5d6..cfd7f65 100644
--- a/examples/launch.py
+++ b/examples/launch.py
@@ -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):
"""
diff --git a/snaps/openstack/create_instance.py b/snaps/openstack/create_instance.py
index e2a6991..b158a25 100644
--- a/snaps/openstack/create_instance.py
+++ b/snaps/openstack/create_instance.py
@@ -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(),
diff --git a/snaps/openstack/utils/launch_utils.py b/snaps/openstack/utils/launch_utils.py
index bb7600c..ddaad12 100644
--- a/snaps/openstack/utils/launch_utils.py
+++ b/snaps/openstack/utils/launch_utils.py
@@ -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'
diff --git a/snaps/provisioning/ansible_utils.py b/snaps/provisioning/ansible_utils.py
index b4c86f2..019a8e7 100644
--- a/snaps/provisioning/ansible_utils.py
+++ b/snaps/provisioning/ansible_utils.py
@@ -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')