Using LOG.warning replace LOG.warn


*Python 3 deprecated the logger.warn method, see:
*https://docs.python.org/3/library/logging.html#logging.warning
*so we prefer to use warning to avoid DeprecationWarning.

Change-Id: I07ee9c97c3548c965aaf83d34b37b23e9baba584
diff --git a/functional/test_autoscaling.py b/functional/test_autoscaling.py
index df8c54b..e702a28 100644
--- a/functional/test_autoscaling.py
+++ b/functional/test_autoscaling.py
@@ -631,16 +631,16 @@
         md = self.client.resources.metadata(stack_identifier, 'custom_lb')
         actual_md = len(md['IPs'].split(','))
         if actual_md != expected:
-            LOG.warn('check_instance_count exp:%d, meta:%s' % (expected,
-                                                               md['IPs']))
+            LOG.warning('check_instance_count exp:%d, meta:%s' % (expected,
+                                                                  md['IPs']))
             return False
 
         stack = self.client.stacks.get(stack_identifier)
         inst_list = self._stack_output(stack, 'InstanceList')
         actual = len(inst_list.split(','))
         if actual != expected:
-            LOG.warn('check_instance_count exp:%d, act:%s' % (expected,
-                                                              inst_list))
+            LOG.warning('check_instance_count exp:%d, act:%s' % (expected,
+                                                                 inst_list))
         return actual == expected
 
     def test_scaling_meta_update(self):
diff --git a/functional/test_aws_stack.py b/functional/test_aws_stack.py
index ba4883f..65f2ae8 100644
--- a/functional/test_aws_stack.py
+++ b/functional/test_aws_stack.py
@@ -95,7 +95,7 @@
         if key_header not in oc.head_account():
             swift_key = hashlib.sha224(
                 str(random.getrandbits(256))).hexdigest()[:32]
-            LOG.warn('setting swift key to %s' % swift_key)
+            LOG.warning('setting swift key to %s' % swift_key)
             oc.post_account({key_header: swift_key})
         key = oc.head_account()[key_header]
         path = '/v1/AUTH_%s/%s/%s' % (self.project_id,
diff --git a/scenario/test_ceilometer_alarm.py b/scenario/test_ceilometer_alarm.py
index e0523aa..aa29861 100644
--- a/scenario/test_ceilometer_alarm.py
+++ b/scenario/test_ceilometer_alarm.py
@@ -30,8 +30,8 @@
         stack = self.client.stacks.get(stack_identifier)
         actual = self._stack_output(stack, 'asg_size')
         if actual != expected:
-            LOG.warn('check_instance_count exp:%d, act:%s' % (expected,
-                                                              actual))
+            LOG.warning('check_instance_count exp:%d, act:%s' % (expected,
+                                                                 actual))
         return actual == expected
 
     def test_alarm(self):