SuccessConsole Output

[POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A] Running shell script
+ devops-stages/stage-test.sh
GLOB sdist-make: /opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/setup.py
py3 create: /home/jenkins/.tox/py3
py3 installdeps: -r/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/test-requirements.txt
py3 inst: /home/jenkins/.tox/dist/osm_policy_module-4.0.1.post13+gd8e91c5.dirty.zip
py3 installed: aiokafka==0.4.2,flake8==2.6.2,jsonschema==2.6.0,kafka==1.3.5,kafka-python==1.4.3,mccabe==0.5.3,mock==2.0.0,osm-common==4.0.1.post11+gb3f024d,osm-policy-module==4.0.1.post13+gd8e91c5.dirty,pbr==4.3.0,peewee==3.1.7,pkg-resources==0.0.0,pycodestyle==2.0.0,pyflakes==1.2.3,pymongo==3.7.2,PyYAML==3.13,six==1.11.0
py3 runtests: PYTHONHASHSEED='3300384756'
py3 runtests: commands[0] | python3 -m unittest discover -v
test_send_instantiated_msg (osm_policy_module.tests.integration.test_kafka_messages.KafkaMessagesTest) ... Bootstrapping cluster metadata from [('localhost', 9092, <AddressFamily.AF_UNSPEC: 0>)]
Bootstrapping cluster metadata from [('localhost', 9092, <AddressFamily.AF_UNSPEC: 0>)]
<BrokerConnection node_id=bootstrap host=localhost:9092 <connecting> [IPv6 ('::1', 9092, 0, 0)]>: connecting to localhost:9092 [('::1', 9092, 0, 0) IPv6]
<BrokerConnection node_id=bootstrap host=localhost:9092 <connecting> [IPv6 ('::1', 9092, 0, 0)]>: connecting to localhost:9092 [('::1', 9092, 0, 0) IPv6]
Connect attempt to <BrokerConnection node_id=bootstrap host=localhost:9092 <connecting> [IPv6 ('::1', 9092, 0, 0)]> returned error 111. Disconnecting.
Connect attempt to <BrokerConnection node_id=bootstrap host=localhost:9092 <connecting> [IPv6 ('::1', 9092, 0, 0)]> returned error 111. Disconnecting.
<BrokerConnection node_id=bootstrap host=localhost:9092 <connecting> [IPv6 ('::1', 9092, 0, 0)]>: Closing connection. KafkaConnectionError: 111 ECONNREFUSED
<BrokerConnection node_id=bootstrap host=localhost:9092 <connecting> [IPv6 ('::1', 9092, 0, 0)]>: Closing connection. KafkaConnectionError: 111 ECONNREFUSED
<BrokerConnection node_id=bootstrap host=localhost:9092 <connecting> [IPv4 ('127.0.0.1', 9092)]>: connecting to localhost:9092 [('127.0.0.1', 9092) IPv4]
<BrokerConnection node_id=bootstrap host=localhost:9092 <connecting> [IPv4 ('127.0.0.1', 9092)]>: connecting to localhost:9092 [('127.0.0.1', 9092) IPv4]
Connect attempt to <BrokerConnection node_id=bootstrap host=localhost:9092 <connecting> [IPv4 ('127.0.0.1', 9092)]> returned error 111. Disconnecting.
Connect attempt to <BrokerConnection node_id=bootstrap host=localhost:9092 <connecting> [IPv4 ('127.0.0.1', 9092)]> returned error 111. Disconnecting.
<BrokerConnection node_id=bootstrap host=localhost:9092 <connecting> [IPv4 ('127.0.0.1', 9092)]>: Closing connection. KafkaConnectionError: 111 ECONNREFUSED
<BrokerConnection node_id=bootstrap host=localhost:9092 <connecting> [IPv4 ('127.0.0.1', 9092)]>: Closing connection. KafkaConnectionError: 111 ECONNREFUSED
Unable to bootstrap from [('localhost', 9092, <AddressFamily.AF_UNSPEC: 0>)]
Unable to bootstrap from [('localhost', 9092, <AddressFamily.AF_UNSPEC: 0>)]
Kafka producer closed
Kafka producer closed
skipped 'Kafka server not present.'
test_configure_scaling_groups (osm_policy_module.tests.integration.test_policy_agent.PolicyModuleAgentTest) ... Found 2 vnfrs
Found 2 vnfrs
Looking for vnfd 63f44c41-45ee-456b-b10d-5f08fb1796e0
Looking for vnfd 63f44c41-45ee-456b-b10d-5f08fb1796e0
Creating scaling group record in DB...
Creating scaling group record in DB...
--- Logging error ---
Traceback (most recent call last):
  File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 5534, in get
    return clone.execute()[0]
  File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 3396, in __getitem__
    return self.row_cache[item]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/core/agent.py", line 152, in _configure_scaling_groups
    ScalingGroup.name == scaling_group['name']
  File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 5539, in get
    (clone.model, sql, params))
osm_policy_module.core.database.ScalingGroupDoesNotExist: <class 'osm_policy_module.core.database.ScalingGroup'> instance matching query does not exist:
SQL: SELECT "t1"."id", "t1"."nsr_id", "t1"."vnf_member_index", "t1"."name", "t1"."content" FROM "scalinggroup" AS "t1" WHERE ((("t1"."nsr_id" = ?) AND ("t1"."vnf_member_index" = ?)) AND ("t1"."name" = ?)) LIMIT 1 OFFSET 0
Params: ['test_nsr_id', 1, 'scale_cirros_vnfd-VM']

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.5/logging/__init__.py", line 980, in emit
    msg = self.format(record)
  File "/usr/lib/python3.5/logging/__init__.py", line 830, in format
    return fmt.format(record)
  File "/usr/lib/python3.5/logging/__init__.py", line 567, in format
    record.message = record.getMessage()
  File "/usr/lib/python3.5/logging/__init__.py", line 330, in getMessage
    msg = msg % self.args
TypeError: %d format: a number is required, not str
Call stack:
  File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.5/unittest/__main__.py", line 18, in <module>
    main(module=None)
  File "/usr/lib/python3.5/unittest/main.py", line 94, in __init__
    self.runTests()
  File "/usr/lib/python3.5/unittest/main.py", line 255, in runTests
    self.result = testRunner.run(self.test)
  File "/usr/lib/python3.5/unittest/runner.py", line 176, in run
    test(result)
  File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/lib/python3.5/unittest/case.py", line 648, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/case.py", line 600, in run
    testMethod()
  File "/usr/lib/python3.5/unittest/mock.py", line 1157, in patched
    return func(*args, **keywargs)
  File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/tests/integration/test_policy_agent.py", line 442, in test_configure_scaling_groups
    agent._configure_scaling_groups("test_nsr_id")
  File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/core/agent.py", line 168, in _configure_scaling_groups
    scaling_group_record.content)
Message: 'Created scaling group record in DB : nsr_id=%s, vnf_member_index=%d, name=%s, content=%s'
Arguments: ('test_nsr_id', '1', 'scale_cirros_vnfd-VM', '{"min-instance-count": 1, "vdu": [{"vdu-id-ref": "cirros_vnfd-VM", "count": 1}], "scaling-policy": [{"scaling-type": "automatic", "cooldown-time": 60, "scaling-criteria": [{"scale-out-relational-operation": "GT", "scale-in-threshold": 20, "scale-in-relational-operation": "LT", "vnf-monitoring-param-ref": "cirros_vnf_memory_util", "scale-out-threshold": 80, "name": "group1_memory_util_above_threshold"}], "name": "auto_memory_util_above_threshold", "threshold-time": 10}], "name": "scale_cirros_vnfd-VM", "max-instance-count": 10}')
--- Logging error ---
Traceback (most recent call last):
  File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 5534, in get
    return clone.execute()[0]
  File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 3396, in __getitem__
    return self.row_cache[item]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/core/agent.py", line 152, in _configure_scaling_groups
    ScalingGroup.name == scaling_group['name']
  File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 5539, in get
    (clone.model, sql, params))
osm_policy_module.core.database.ScalingGroupDoesNotExist: <class 'osm_policy_module.core.database.ScalingGroup'> instance matching query does not exist:
SQL: SELECT "t1"."id", "t1"."nsr_id", "t1"."vnf_member_index", "t1"."name", "t1"."content" FROM "scalinggroup" AS "t1" WHERE ((("t1"."nsr_id" = ?) AND ("t1"."vnf_member_index" = ?)) AND ("t1"."name" = ?)) LIMIT 1 OFFSET 0
Params: ['test_nsr_id', 1, 'scale_cirros_vnfd-VM']

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.5/logging/__init__.py", line 980, in emit
    msg = self.format(record)
  File "/usr/lib/python3.5/logging/__init__.py", line 830, in format
    return fmt.format(record)
  File "/usr/lib/python3.5/logging/__init__.py", line 567, in format
    record.message = record.getMessage()
  File "/usr/lib/python3.5/logging/__init__.py", line 330, in getMessage
    msg = msg % self.args
TypeError: %d format: a number is required, not str
Call stack:
  File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.5/unittest/__main__.py", line 18, in <module>
    main(module=None)
  File "/usr/lib/python3.5/unittest/main.py", line 94, in __init__
    self.runTests()
  File "/usr/lib/python3.5/unittest/main.py", line 255, in runTests
    self.result = testRunner.run(self.test)
  File "/usr/lib/python3.5/unittest/runner.py", line 176, in run
    test(result)
  File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/lib/python3.5/unittest/case.py", line 648, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/case.py", line 600, in run
    testMethod()
  File "/usr/lib/python3.5/unittest/mock.py", line 1157, in patched
    return func(*args, **keywargs)
  File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/tests/integration/test_policy_agent.py", line 442, in test_configure_scaling_groups
    agent._configure_scaling_groups("test_nsr_id")
  File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/core/agent.py", line 168, in _configure_scaling_groups
    scaling_group_record.content)
Message: 'Created scaling group record in DB : nsr_id=%s, vnf_member_index=%d, name=%s, content=%s'
Arguments: ('test_nsr_id', '1', 'scale_cirros_vnfd-VM', '{"min-instance-count": 1, "vdu": [{"vdu-id-ref": "cirros_vnfd-VM", "count": 1}], "scaling-policy": [{"scaling-type": "automatic", "cooldown-time": 60, "scaling-criteria": [{"scale-out-relational-operation": "GT", "scale-in-threshold": 20, "scale-in-relational-operation": "LT", "vnf-monitoring-param-ref": "cirros_vnf_memory_util", "scale-out-threshold": 80, "name": "group1_memory_util_above_threshold"}], "name": "auto_memory_util_above_threshold", "threshold-time": 10}], "name": "scale_cirros_vnfd-VM", "max-instance-count": 10}')
Creating scaling policy record in DB...
Creating scaling policy record in DB...
Created scaling policy record in DB : name=auto_memory_util_above_threshold, scaling_group.name=scale_cirros_vnfd-VM
Created scaling policy record in DB : name=auto_memory_util_above_threshold, scaling_group.name=scale_cirros_vnfd-VM
Creating scaling criteria record in DB...
Creating scaling criteria record in DB...
Created scaling criteria record in DB : name=group1_memory_util_above_threshold, scaling_policy.name=auto_memory_util_above_threshold
Created scaling criteria record in DB : name=group1_memory_util_above_threshold, scaling_policy.name=auto_memory_util_above_threshold
Looking for vnfd 63f44c41-45ee-456b-b10d-5f08fb1796e0
Looking for vnfd 63f44c41-45ee-456b-b10d-5f08fb1796e0
Creating scaling group record in DB...
Creating scaling group record in DB...
--- Logging error ---
Traceback (most recent call last):
  File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 5534, in get
    return clone.execute()[0]
  File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 3396, in __getitem__
    return self.row_cache[item]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/core/agent.py", line 152, in _configure_scaling_groups
    ScalingGroup.name == scaling_group['name']
  File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 5539, in get
    (clone.model, sql, params))
osm_policy_module.core.database.ScalingGroupDoesNotExist: <class 'osm_policy_module.core.database.ScalingGroup'> instance matching query does not exist:
SQL: SELECT "t1"."id", "t1"."nsr_id", "t1"."vnf_member_index", "t1"."name", "t1"."content" FROM "scalinggroup" AS "t1" WHERE ((("t1"."nsr_id" = ?) AND ("t1"."vnf_member_index" = ?)) AND ("t1"."name" = ?)) LIMIT 1 OFFSET 0
Params: ['test_nsr_id', 2, 'scale_cirros_vnfd-VM']

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.5/logging/__init__.py", line 980, in emit
    msg = self.format(record)
  File "/usr/lib/python3.5/logging/__init__.py", line 830, in format
    return fmt.format(record)
  File "/usr/lib/python3.5/logging/__init__.py", line 567, in format
    record.message = record.getMessage()
  File "/usr/lib/python3.5/logging/__init__.py", line 330, in getMessage
    msg = msg % self.args
TypeError: %d format: a number is required, not str
Call stack:
  File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.5/unittest/__main__.py", line 18, in <module>
    main(module=None)
  File "/usr/lib/python3.5/unittest/main.py", line 94, in __init__
    self.runTests()
  File "/usr/lib/python3.5/unittest/main.py", line 255, in runTests
    self.result = testRunner.run(self.test)
  File "/usr/lib/python3.5/unittest/runner.py", line 176, in run
    test(result)
  File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/lib/python3.5/unittest/case.py", line 648, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/case.py", line 600, in run
    testMethod()
  File "/usr/lib/python3.5/unittest/mock.py", line 1157, in patched
    return func(*args, **keywargs)
  File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/tests/integration/test_policy_agent.py", line 442, in test_configure_scaling_groups
    agent._configure_scaling_groups("test_nsr_id")
  File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/core/agent.py", line 168, in _configure_scaling_groups
    scaling_group_record.content)
Message: 'Created scaling group record in DB : nsr_id=%s, vnf_member_index=%d, name=%s, content=%s'
Arguments: ('test_nsr_id', '2', 'scale_cirros_vnfd-VM', '{"min-instance-count": 1, "vdu": [{"vdu-id-ref": "cirros_vnfd-VM", "count": 1}], "scaling-policy": [{"scaling-type": "automatic", "cooldown-time": 60, "scaling-criteria": [{"scale-out-relational-operation": "GT", "scale-in-threshold": 20, "scale-in-relational-operation": "LT", "vnf-monitoring-param-ref": "cirros_vnf_memory_util", "scale-out-threshold": 80, "name": "group1_memory_util_above_threshold"}], "name": "auto_memory_util_above_threshold", "threshold-time": 10}], "name": "scale_cirros_vnfd-VM", "max-instance-count": 10}')
--- Logging error ---
Traceback (most recent call last):
  File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 5534, in get
    return clone.execute()[0]
  File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 3396, in __getitem__
    return self.row_cache[item]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/core/agent.py", line 152, in _configure_scaling_groups
    ScalingGroup.name == scaling_group['name']
  File "/home/jenkins/.tox/py3/lib/python3.5/site-packages/peewee.py", line 5539, in get
    (clone.model, sql, params))
osm_policy_module.core.database.ScalingGroupDoesNotExist: <class 'osm_policy_module.core.database.ScalingGroup'> instance matching query does not exist:
SQL: SELECT "t1"."id", "t1"."nsr_id", "t1"."vnf_member_index", "t1"."name", "t1"."content" FROM "scalinggroup" AS "t1" WHERE ((("t1"."nsr_id" = ?) AND ("t1"."vnf_member_index" = ?)) AND ("t1"."name" = ?)) LIMIT 1 OFFSET 0
Params: ['test_nsr_id', 2, 'scale_cirros_vnfd-VM']

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.5/logging/__init__.py", line 980, in emit
    msg = self.format(record)
  File "/usr/lib/python3.5/logging/__init__.py", line 830, in format
    return fmt.format(record)
  File "/usr/lib/python3.5/logging/__init__.py", line 567, in format
    record.message = record.getMessage()
  File "/usr/lib/python3.5/logging/__init__.py", line 330, in getMessage
    msg = msg % self.args
TypeError: %d format: a number is required, not str
Call stack:
  File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.5/unittest/__main__.py", line 18, in <module>
    main(module=None)
  File "/usr/lib/python3.5/unittest/main.py", line 94, in __init__
    self.runTests()
  File "/usr/lib/python3.5/unittest/main.py", line 255, in runTests
    self.result = testRunner.run(self.test)
  File "/usr/lib/python3.5/unittest/runner.py", line 176, in run
    test(result)
  File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
    test(result)
  File "/usr/lib/python3.5/unittest/case.py", line 648, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.5/unittest/case.py", line 600, in run
    testMethod()
  File "/usr/lib/python3.5/unittest/mock.py", line 1157, in patched
    return func(*args, **keywargs)
  File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/tests/integration/test_policy_agent.py", line 442, in test_configure_scaling_groups
    agent._configure_scaling_groups("test_nsr_id")
  File "/opt/jenkins/workspace/POL-stage_2-merge_netslice-5ZHHBBC7TAS3BV2R7H6EQWHPVFTOBSBR6VHDCUTWFAER75OTPR3A/osm_policy_module/core/agent.py", line 168, in _configure_scaling_groups
    scaling_group_record.content)
Message: 'Created scaling group record in DB : nsr_id=%s, vnf_member_index=%d, name=%s, content=%s'
Arguments: ('test_nsr_id', '2', 'scale_cirros_vnfd-VM', '{"min-instance-count": 1, "vdu": [{"vdu-id-ref": "cirros_vnfd-VM", "count": 1}], "scaling-policy": [{"scaling-type": "automatic", "cooldown-time": 60, "scaling-criteria": [{"scale-out-relational-operation": "GT", "scale-in-threshold": 20, "scale-in-relational-operation": "LT", "vnf-monitoring-param-ref": "cirros_vnf_memory_util", "scale-out-threshold": 80, "name": "group1_memory_util_above_threshold"}], "name": "auto_memory_util_above_threshold", "threshold-time": 10}], "name": "scale_cirros_vnfd-VM", "max-instance-count": 10}')
Creating scaling policy record in DB...
Creating scaling policy record in DB...
Created scaling policy record in DB : name=auto_memory_util_above_threshold, scaling_group.name=scale_cirros_vnfd-VM
Created scaling policy record in DB : name=auto_memory_util_above_threshold, scaling_group.name=scale_cirros_vnfd-VM
Creating scaling criteria record in DB...
Creating scaling criteria record in DB...
Created scaling criteria record in DB : name=group1_memory_util_above_threshold, scaling_policy.name=auto_memory_util_above_threshold
Created scaling criteria record in DB : name=group1_memory_util_above_threshold, scaling_policy.name=auto_memory_util_above_threshold
Kafka producer closed
Kafka producer closed
Kafka producer closed
Kafka producer closed
ok

----------------------------------------------------------------------
Ran 2 tests in 0.146s

OK (skipped=1)
flake8 create: /home/jenkins/.tox/flake8
flake8 installdeps: flake8
flake8 inst: /home/jenkins/.tox/dist/osm_policy_module-4.0.1.post13+gd8e91c5.dirty.zip
flake8 installed: aiokafka==0.4.2,flake8==3.5.0,jsonschema==2.6.0,kafka==1.3.5,kafka-python==1.4.3,mccabe==0.6.1,osm-common==4.0.1.post11+gb3f024d,osm-policy-module==4.0.1.post13+gd8e91c5.dirty,peewee==3.1.7,pkg-resources==0.0.0,pycodestyle==2.3.1,pyflakes==1.6.0,pymongo==3.7.2,PyYAML==3.13,six==1.11.0
flake8 runtests: PYTHONHASHSEED='3300384756'
flake8 runtests: commands[0] | flake8 osm_policy_module
___________________________________ summary ____________________________________
  py3: commands succeeded
  flake8: commands succeeded
  congratulations :)