SuccessConsole Output

[POL-stage_2-merge_v5.0-73E5RHZ6SPBMD26R64ORLN7ANLYYW3O6T75DDHLNYIXG7F7NM5ZA] Running shell script
+ devops-stages/stage-test.sh
GLOB sdist-make: /opt/jenkins/workspace/POL-stage_2-merge_v5.0-73E5RHZ6SPBMD26R64ORLN7ANLYYW3O6T75DDHLNYIXG7F7NM5ZA/setup.py
py3 create: /home/jenkins/.tox/py3
py3 installdeps: -r/opt/jenkins/workspace/POL-stage_2-merge_v5.0-73E5RHZ6SPBMD26R64ORLN7ANLYYW3O6T75DDHLNYIXG7F7NM5ZA/test-requirements.txt
py3 inst: /home/jenkins/.tox/dist/osm_policy_module-5.0.5+g28d5e04.dirty.zip
py3 installed: aiokafka==0.4.3,flake8==2.6.2,jsonschema==2.6.0,kafka-python==1.4.3,mccabe==0.5.3,mock==2.0.0,osm-common==5.0.2.post3+g05ede8f,osm-policy-module==5.0.5+g28d5e04.dirty,pbr==5.1.2,peewee==3.1.7,pkg-resources==0.0.0,pycodestyle==2.0.0,pycrypto==2.6.1,pyflakes==1.2.3,pymongo==3.7.2,PyYAML==3.13,six==1.11.0
py3 runtests: PYTHONHASHSEED='3503804287'
py3 runtests: commands[0] | python3 -m unittest discover -v
test_send_instantiated_msg (osm_policy_module.tests.integration.test_kafka_messages.KafkaMessagesTest) ... Unable connect to "localhost:9092": Multiple exceptions: [Errno 111] Connect call failed ('::1', 9092), [Errno 111] Connect call failed ('127.0.0.1', 9092)
Unable connect to "localhost:9092": Multiple exceptions: [Errno 111] Connect call failed ('::1', 9092), [Errno 111] Connect call failed ('127.0.0.1', 9092)
skipped 'Kafka server not present.'
test_configure_scaling_groups (osm_policy_module.tests.integration.test_policy_agent.PolicyModuleAgentTest) ... Unclosed AIOKafkaProducer
producer: <aiokafka.producer.producer.AIOKafkaProducer object at 0x7f47c4ae7630>
Unclosed AIOKafkaProducer
producer: <aiokafka.producer.producer.AIOKafkaProducer object at 0x7f47c4ae7630>
Processing vnfr: {'connection-point': [{'name': 'eth0', 'connection-point-id': None, 'id': None}], 'id': '0d9d06ad-3fc2-418c-9934-465e815fafe2', 'nsr-id-ref': '87776f33-b67c-417a-8119-cb08e4098951', '_admin': {'modified': 1535392482.0067868, 'projects_read': ['admin'], 'projects_write': ['admin'], 'created': 1535392482.0067868}, 'vim-account-id': 'be48ae31-1d46-4892-a4b4-d69abd55714b', 'ip-address': '192.168.160.2', 'vnfd-ref': 'cirros_vdu_scaling_vnf', 'created-time': 1535392482.0044956, '_id': '0d9d06ad-3fc2-418c-9934-465e815fafe2', 'vnfd-id': '63f44c41-45ee-456b-b10d-5f08fb1796e0', 'vdur': [{'status': 'ACTIVE', 'status-detailed': None, 'vim-id': '63a65636-9fc8-4022-b070-980823e6266a', 'name': 'cirros_ns-1-cirros_vnfd-VM-1', 'interfaces': [{'name': 'eth0', 'mac-address': 'fa:16:3e:71:fd:b8', 'ip-address': '192.168.160.2'}], 'ip-address': '192.168.160.2', 'vdu-id-ref': 'cirros_vnfd-VM'}], 'member-vnf-index-ref': '1'}
Processing vnfr: {'connection-point': [{'name': 'eth0', 'connection-point-id': None, 'id': None}], 'id': '0d9d06ad-3fc2-418c-9934-465e815fafe2', 'nsr-id-ref': '87776f33-b67c-417a-8119-cb08e4098951', '_admin': {'modified': 1535392482.0067868, 'projects_read': ['admin'], 'projects_write': ['admin'], 'created': 1535392482.0067868}, 'vim-account-id': 'be48ae31-1d46-4892-a4b4-d69abd55714b', 'ip-address': '192.168.160.2', 'vnfd-ref': 'cirros_vdu_scaling_vnf', 'created-time': 1535392482.0044956, '_id': '0d9d06ad-3fc2-418c-9934-465e815fafe2', 'vnfd-id': '63f44c41-45ee-456b-b10d-5f08fb1796e0', 'vdur': [{'status': 'ACTIVE', 'status-detailed': None, 'vim-id': '63a65636-9fc8-4022-b070-980823e6266a', 'name': 'cirros_ns-1-cirros_vnfd-VM-1', 'interfaces': [{'name': 'eth0', 'mac-address': 'fa:16:3e:71:fd:b8', 'ip-address': '192.168.160.2'}], 'ip-address': '192.168.160.2', 'vdu-id-ref': 'cirros_vnfd-VM'}], 'member-vnf-index-ref': '1'}
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...
Created scaling group record in DB : nsr_id=test_nsr_id, vnf_member_index=1, name=scale_cirros_vnfd-VM
Created scaling group record in DB : nsr_id=test_nsr_id, vnf_member_index=1, name=scale_cirros_vnfd-VM
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
Creating alarm for vdur {'status': 'ACTIVE', 'status-detailed': None, 'vim-id': '63a65636-9fc8-4022-b070-980823e6266a', 'name': 'cirros_ns-1-cirros_vnfd-VM-1', 'interfaces': [{'name': 'eth0', 'mac-address': 'fa:16:3e:71:fd:b8', 'ip-address': '192.168.160.2'}], 'ip-address': '192.168.160.2', 'vdu-id-ref': 'cirros_vnfd-VM'} 
Creating alarm for vdur {'status': 'ACTIVE', 'status-detailed': None, 'vim-id': '63a65636-9fc8-4022-b070-980823e6266a', 'name': 'cirros_ns-1-cirros_vnfd-VM-1', 'interfaces': [{'name': 'eth0', 'mac-address': 'fa:16:3e:71:fd:b8', 'ip-address': '192.168.160.2'}], 'ip-address': '192.168.160.2', 'vdu-id-ref': 'cirros_vnfd-VM'} 
Processing vnfr: {'connection-point': [{'name': 'eth0', 'connection-point-id': None, 'id': None}], 'id': '3336eb44-77df-4c4f-9881-d2828d259864', 'nsr-id-ref': '87776f33-b67c-417a-8119-cb08e4098951', '_admin': {'modified': 1535392482.0076294, 'projects_read': ['admin'], 'projects_write': ['admin'], 'created': 1535392482.0076294}, 'vim-account-id': 'be48ae31-1d46-4892-a4b4-d69abd55714b', 'ip-address': '192.168.160.10', 'vnfd-ref': 'cirros_vdu_scaling_vnf', 'created-time': 1535392482.0044956, '_id': '3336eb44-77df-4c4f-9881-d2828d259864', 'vnfd-id': '63f44c41-45ee-456b-b10d-5f08fb1796e0', 'vdur': [{'status': 'ACTIVE', 'status-detailed': None, 'vim-id': 'a154b8d3-2b10-421a-a51d-4b391d9bd366', 'name': 'cirros_ns-2-cirros_vnfd-VM-1', 'interfaces': [{'name': 'eth0', 'mac-address': 'fa:16:3e:1e:76:e8', 'ip-address': '192.168.160.10'}], 'ip-address': '192.168.160.10', 'vdu-id-ref': 'cirros_vnfd-VM'}], 'member-vnf-index-ref': '2'}
Processing vnfr: {'connection-point': [{'name': 'eth0', 'connection-point-id': None, 'id': None}], 'id': '3336eb44-77df-4c4f-9881-d2828d259864', 'nsr-id-ref': '87776f33-b67c-417a-8119-cb08e4098951', '_admin': {'modified': 1535392482.0076294, 'projects_read': ['admin'], 'projects_write': ['admin'], 'created': 1535392482.0076294}, 'vim-account-id': 'be48ae31-1d46-4892-a4b4-d69abd55714b', 'ip-address': '192.168.160.10', 'vnfd-ref': 'cirros_vdu_scaling_vnf', 'created-time': 1535392482.0044956, '_id': '3336eb44-77df-4c4f-9881-d2828d259864', 'vnfd-id': '63f44c41-45ee-456b-b10d-5f08fb1796e0', 'vdur': [{'status': 'ACTIVE', 'status-detailed': None, 'vim-id': 'a154b8d3-2b10-421a-a51d-4b391d9bd366', 'name': 'cirros_ns-2-cirros_vnfd-VM-1', 'interfaces': [{'name': 'eth0', 'mac-address': 'fa:16:3e:1e:76:e8', 'ip-address': '192.168.160.10'}], 'ip-address': '192.168.160.10', 'vdu-id-ref': 'cirros_vnfd-VM'}], 'member-vnf-index-ref': '2'}
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...
Created scaling group record in DB : nsr_id=test_nsr_id, vnf_member_index=2, name=scale_cirros_vnfd-VM
Created scaling group record in DB : nsr_id=test_nsr_id, vnf_member_index=2, name=scale_cirros_vnfd-VM
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
Creating alarm for vdur {'status': 'ACTIVE', 'status-detailed': None, 'vim-id': 'a154b8d3-2b10-421a-a51d-4b391d9bd366', 'name': 'cirros_ns-2-cirros_vnfd-VM-1', 'interfaces': [{'name': 'eth0', 'mac-address': 'fa:16:3e:1e:76:e8', 'ip-address': '192.168.160.10'}], 'ip-address': '192.168.160.10', 'vdu-id-ref': 'cirros_vnfd-VM'} 
Creating alarm for vdur {'status': 'ACTIVE', 'status-detailed': None, 'vim-id': 'a154b8d3-2b10-421a-a51d-4b391d9bd366', 'name': 'cirros_ns-2-cirros_vnfd-VM-1', 'interfaces': [{'name': 'eth0', 'mac-address': 'fa:16:3e:1e:76:e8', 'ip-address': '192.168.160.10'}], 'ip-address': '192.168.160.10', 'vdu-id-ref': 'cirros_vnfd-VM'} 
/home/jenkins/.tox/py3/lib/python3.5/site-packages/aiokafka/producer/producer.py:225: ResourceWarning: Unclosed AIOKafkaProducer <aiokafka.producer.producer.AIOKafkaProducer object at 0x7f47c4ae7630>
  **kwargs)
ok
test_handle_alarm_notification (osm_policy_module.tests.unit.core.test_policy_agent.PolicyAgentTest) ... Received alarm notification for alarm test_alarm_uuid,             metric test_metric_name,             operation test_operation,             threshold test_threshold_value,             vdu_name test_vdu_name,             vnf_member_index test_vnf_member_index,             ns_id test_nsr_id 
Received alarm notification for alarm test_alarm_uuid,             metric test_metric_name,             operation test_operation,             threshold test_threshold_value,             vdu_name test_vdu_name,             vnf_member_index test_vnf_member_index,             ns_id test_nsr_id 
Sending scaling action message for ns: test_nsr_id
Sending scaling action message for ns: test_nsr_id
Received alarm notification for alarm test_alarm_uuid,             metric test_metric_name,             operation test_operation,             threshold test_threshold_value,             vdu_name test_vdu_name,             vnf_member_index test_vnf_member_index,             ns_id test_nsr_id 
Received alarm notification for alarm test_alarm_uuid,             metric test_metric_name,             operation test_operation,             threshold test_threshold_value,             vdu_name test_vdu_name,             vnf_member_index test_vnf_member_index,             ns_id test_nsr_id 
Time between last scale and now is less than cooldown time. Skipping.
Time between last scale and now is less than cooldown time. Skipping.
/usr/lib/python3.5/asyncio/base_events.py:429: ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False>
  warnings.warn("unclosed event loop %r" % self, ResourceWarning)
ok
test_handle_instantiated_or_scaled (osm_policy_module.tests.unit.core.test_policy_agent.PolicyAgentTest) ... Configuring scaling groups for network service with nsr_id: test_nsr_id
Configuring scaling groups for network service with nsr_id: test_nsr_id
Checking for orphaned alarms to be deleted for network service with nsr_id: test_nsr_id
Checking for orphaned alarms to be deleted for network service with nsr_id: test_nsr_id
Network service is not in COMPLETED or PARTIALLY_COMPLETED state. Current state is FAILED. Skipping...
Network service is not in COMPLETED or PARTIALLY_COMPLETED state. Current state is FAILED. Skipping...
ok
test_get_mgmt_vdu_by_cp (osm_policy_module.tests.unit.utils.test_vnfd_utils.VnfdUtilsTest) ... ok
test_get_mgmt_vdu_by_id (osm_policy_module.tests.unit.utils.test_vnfd_utils.VnfdUtilsTest) ... ok

----------------------------------------------------------------------
Ran 6 tests in 0.076s

OK (skipped=1)
flake8 create: /home/jenkins/.tox/flake8
flake8 installdeps: flake8
flake8 inst: /home/jenkins/.tox/dist/osm_policy_module-5.0.5+g28d5e04.dirty.zip
flake8 installed: aiokafka==0.4.3,entrypoints==0.3,flake8==3.7.4,jsonschema==2.6.0,kafka-python==1.4.3,mccabe==0.6.1,osm-common==5.0.2.post3+g05ede8f,osm-policy-module==5.0.5+g28d5e04.dirty,peewee==3.1.7,pkg-resources==0.0.0,pycodestyle==2.5.0,pycrypto==2.6.1,pyflakes==2.1.0,pymongo==3.7.2,PyYAML==3.13,six==1.11.0
flake8 runtests: PYTHONHASHSEED='3503804287'
flake8 runtests: commands[0] | flake8 osm_policy_module
___________________________________ summary ____________________________________
  py3: commands succeeded
  flake8: commands succeeded
  congratulations :)