summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Radez <dradez@redhat.com>2019-03-28 10:26:02 -0400
committerDan Radez <dradez@redhat.com>2019-03-28 16:35:29 -0400
commitc0f74becfe5300bf6c18c2a152dd600d963daa84 (patch)
tree7a9c16f38a5fe1fa71fa1a1ff41d397e228cb532
parent4104dd286bcee6abff92f3779b19a9ca3daffd95 (diff)
adding debtcollector messages deprecating the APIHEADmaster
Notes
Notes (review): Code-Review+2: Jakub Libosvar <libosvar@redhat.com> Workflow+1: Jakub Libosvar <libosvar@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 01 Apr 2019 15:40:08 +0000 Reviewed-on: https://review.openstack.org/648416 Project: openstack/networking-ansible Branch: refs/heads/master
-rw-r--r--doc/source/install/next-steps.rst5
-rw-r--r--networking_ansible/api.py4
-rw-r--r--releasenotes/notes/deprecate-api-e751b215c261099d.yaml5
-rw-r--r--requirements.txt1
4 files changed, 14 insertions, 1 deletions
diff --git a/doc/source/install/next-steps.rst b/doc/source/install/next-steps.rst
index 5098bf6..c85cbf1 100644
--- a/doc/source/install/next-steps.rst
+++ b/doc/source/install/next-steps.rst
@@ -9,4 +9,7 @@ OpenStack environment now includes the networking-ansible ML2 Driver.
9To add additional services, see https://docs.openstack.org/. 9To add additional services, see https://docs.openstack.org/.
10 10
11If you plan to use Networking-Ansible as a Python API the module can now be 11If you plan to use Networking-Ansible as a Python API the module can now be
12imported and instatiated. See :ref:`api`. 12imported and instantiated. Please note the API has been deprecated and will
13be removed in the next release. Please use
14https://github.com/ansible-network/network-runner instead of the
15Networking-Ansible API. See :ref:`api` for usage.
diff --git a/networking_ansible/api.py b/networking_ansible/api.py
index 7eabcff..5cf7118 100644
--- a/networking_ansible/api.py
+++ b/networking_ansible/api.py
@@ -15,12 +15,16 @@
15 15
16import ansible_runner 16import ansible_runner
17import logging 17import logging
18import warnings
18 19
20from debtcollector import removals
19from networking_ansible import exceptions 21from networking_ansible import exceptions
20 22
21LOG = logging.getLogger(__name__) 23LOG = logging.getLogger(__name__)
24warnings.simplefilter('always')
22 25
23 26
27@removals.removed_class("NetworkingAnsible")
24class NetworkingAnsible(object): 28class NetworkingAnsible(object):
25 """Object to invoke ansible_runner to call Ansible Networking 29 """Object to invoke ansible_runner to call Ansible Networking
26 30
diff --git a/releasenotes/notes/deprecate-api-e751b215c261099d.yaml b/releasenotes/notes/deprecate-api-e751b215c261099d.yaml
new file mode 100644
index 0000000..14410c4
--- /dev/null
+++ b/releasenotes/notes/deprecate-api-e751b215c261099d.yaml
@@ -0,0 +1,5 @@
1---
2deprecations:
3 - |
4 api.NetworkingAnsible is deprecated. Network-Runner should be used instead of
5 the networking-ansible API.
diff --git a/requirements.txt b/requirements.txt
index 1b62c73..8bd8c53 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -3,6 +3,7 @@
3# process, which may cause wedges in the gate later. 3# process, which may cause wedges in the gate later.
4 4
5ansible-runner>=1.0.5 # Apache-2.0 5ansible-runner>=1.0.5 # Apache-2.0
6debtcollector>=1.21.0
6neutron>=13.0.0.0b1 # Apache-2.0 7neutron>=13.0.0.0b1 # Apache-2.0
7neutron-lib>=1.18.0 # Apache-2.0 8neutron-lib>=1.18.0 # Apache-2.0
8pbr>=2.0 # Apache-2.0 9pbr>=2.0 # Apache-2.0