2024-09-18 00:41:56,392 - INFO - Domain Default found not creating
2024-09-18 00:41:56,561 - INFO - Project ctest-TestBasicPolicy-48500937 not found, creating it
2024-09-18 00:41:57,047 - INFO - Created Project:ctest-TestBasicPolicy-48500937, ID : 8a1b2a44-e2f2-4dd6-81c8-431278f463df
2024-09-18 00:41:58,525 - INFO - ================================================================================
2024-09-18 00:41:58,525 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-18 00:41:58,525 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2024-09-18 00:41:58,787 - DEBUG - Nothing to compare xmpp stats {'10.0.0.71': {'10.20.0.5': '0'}} with
2024-09-18 00:41:58,788 - INFO - Initial checks done. Running the testcase now
2024-09-18 00:41:58,788 - INFO -
2024-09-18 00:41:59,357 - DEBUG - Response for create_network : {'network': {'id': '7b133c81-7e81-4b79-9c87-6e7a25394a4b', 'name': 'ctest-vn-86755885', 'tenant_id': '8a1b2a44e2f24dd681c8431278f463df', 'project_id': '8a1b2a44e2f24dd681c8431278f463df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48500937', 'ctest-vn-86755885'], 'port_security_enabled': True, 'description': ''}}
2024-09-18 00:41:59,533 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc1c1be9-0d6b-41b5-94ce-efe521fde202', 'name': '', 'tenant_id': '8a1b2a44e2f24dd681c8431278f463df', 'network_id': '7b133c81-7e81-4b79-9c87-6e7a25394a4b', 'ip_version': 4, 'cidr': '18.2.161.128/26', 'allocation_pools': [{'start': '18.2.161.130', 'end': '18.2.161.190'}], 'gateway_ip': '18.2.161.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.2.161.130', 'tags': [], 'project_id': '8a1b2a44e2f24dd681c8431278f463df'}}
2024-09-18 00:41:59,554 - INFO - Created VN ctest-vn-86755885
2024-09-18 00:41:59,613 - DEBUG - VN ctest-vn-86755885 UUID is 7b133c81-7e81-4b79-9c87-6e7a25394a4b
2024-09-18 00:41:59,929 - DEBUG - Response for create_network : {'network': {'id': '22288269-b9f1-472d-981b-b447a1e8b56e', 'name': 'ctest-vn-39647081', 'tenant_id': '8a1b2a44e2f24dd681c8431278f463df', 'project_id': '8a1b2a44e2f24dd681c8431278f463df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48500937', 'ctest-vn-39647081'], 'port_security_enabled': True, 'description': ''}}
2024-09-18 00:42:00,101 - DEBUG - Response for create_subnet : {'subnet': {'id': '52c68ba5-3199-49c4-bcb6-48074ddf04dd', 'name': '', 'tenant_id': '8a1b2a44e2f24dd681c8431278f463df', 'network_id': '22288269-b9f1-472d-981b-b447a1e8b56e', 'ip_version': 4, 'cidr': '49.168.151.0/26', 'allocation_pools': [{'start': '49.168.151.2', 'end': '49.168.151.62'}], 'gateway_ip': '49.168.151.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.168.151.2', 'tags': [], 'project_id': '8a1b2a44e2f24dd681c8431278f463df'}}
2024-09-18 00:42:00,121 - INFO - Created VN ctest-vn-39647081
2024-09-18 00:42:00,177 - DEBUG - VN ctest-vn-39647081 UUID is 22288269-b9f1-472d-981b-b447a1e8b56e
2024-09-18 00:42:00,294 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48500937:ctest-vn-86755885, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48500937:ctest-vn-39647081, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2024-09-18 00:42:00,604 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7b133c81-7e81-4b79-9c87-6e7a25394a4b', 'name': 'ctest-vn-86755885', 'tenant_id': '8a1b2a44e2f24dd681c8431278f463df', 'project_id': '8a1b2a44e2f24dd681c8431278f463df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dc1c1be9-0d6b-41b5-94ce-efe521fde202'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48500937', 'ctest-vn-86755885'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48500937', 'ctest-policy-allow-all-59934034']], 'subnet_ipam': [{'subnet_cidr': '18.2.161.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-18 00:42:00,857 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '22288269-b9f1-472d-981b-b447a1e8b56e', 'name': 'ctest-vn-39647081', 'tenant_id': '8a1b2a44e2f24dd681c8431278f463df', 'project_id': '8a1b2a44e2f24dd681c8431278f463df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['52c68ba5-3199-49c4-bcb6-48074ddf04dd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48500937', 'ctest-vn-39647081'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48500937', 'ctest-policy-allow-all-59934034']], 'subnet_ipam': [{'subnet_cidr': '49.168.151.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-18 00:42:01,029 - DEBUG - Requesting: http://10.0.0.71:8082/domains
2024-09-18 00:42:01,329 - DEBUG - Requesting: http://10.0.0.71:8082/domains
2024-09-18 00:42:01,363 - DEBUG - Requesting: http://10.0.0.71:8082/domain/c428d941-dcfc-4e32-ac73-aed81d0a36db
2024-09-18 00:42:01,379 - DEBUG - Requesting: http://10.0.0.71:8082/project/8a1b2a44-e2f2-4dd6-81c8-431278f463df
2024-09-18 00:42:01,461 - DEBUG - Requesting: http://10.0.0.71:8082/virtual-network/7b133c81-7e81-4b79-9c87-6e7a25394a4b
2024-09-18 00:42:01,477 - DEBUG - Requesting: http://10.0.0.71:8082/virtual-network/7b133c81-7e81-4b79-9c87-6e7a25394a4b
2024-09-18 00:42:01,491 - DEBUG - Requesting: http://10.0.0.71:8082/routing-instance/c6d5f038-6bee-4576-87a6-356bac009b47
2024-09-18 00:42:01,500 - DEBUG - Requesting: http://10.0.0.71:8082/routing-instance/c6d5f038-6bee-4576-87a6-356bac009b47
2024-09-18 00:42:01,509 - DEBUG - Requesting: http://10.0.0.71:8082/route-target/f5147d0c-24d1-4fab-bc7b-24e152dbc280
2024-09-18 00:42:01,517 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-18 00:42:01,517 - DEBUG - Requesting: http://10.0.0.71:8082/virtual-network/7b133c81-7e81-4b79-9c87-6e7a25394a4b
2024-09-18 00:42:01,531 - DEBUG - Requesting: http://10.0.0.71:8082/routing-instance/c6d5f038-6bee-4576-87a6-356bac009b47
2024-09-18 00:42:01,553 - INFO - Verified VN network id 8 for VN 7b133c81-7e81-4b79-9c87-6e7a25394a4b
2024-09-18 00:42:01,554 - INFO - Verifications in API Server for VN ctest-vn-86755885 passed
2024-09-18 00:42:01,554 - DEBUG - Requesting: http://10.0.0.71:8082/virtual-network/7b133c81-7e81-4b79-9c87-6e7a25394a4b
2024-09-18 00:42:01,569 - DEBUG - Requesting: http://10.0.0.71:8082/routing-instance/c6d5f038-6bee-4576-87a6-356bac009b47
2024-09-18 00:42:01,578 - DEBUG - Requesting: http://10.0.0.71:8082/routing-instance/c6d5f038-6bee-4576-87a6-356bac009b47
2024-09-18 00:42:01,588 - DEBUG - Requesting: http://10.0.0.71:8082/route-target/f5147d0c-24d1-4fab-bc7b-24e152dbc280
2024-09-18 00:42:01,603 - DEBUG - Control-node 10.0.0.71 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48500937:ctest-vn-86755885', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48500937', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8868498618093489017', 'uuid-lslong': '11279105262662273611'}, 'enable': 'true', 'created': '2024-09-18T00:41:59', 'last-modified': '2024-09-18T00:42:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.019591'}
2024-09-18 00:42:01,612 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-18 00:42:01,612 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86755885 passed
2024-09-18 00:42:01,612 - DEBUG - ====Verifying policy data for ctest-vn-86755885 in API_Server ======
2024-09-18 00:42:01,612 - DEBUG - Requesting: http://10.0.0.71:8082/domains
2024-09-18 00:42:01,619 - DEBUG - Requesting: http://10.0.0.71:8082/domain/c428d941-dcfc-4e32-ac73-aed81d0a36db
2024-09-18 00:42:01,633 - DEBUG - Requesting: http://10.0.0.71:8082/project/8a1b2a44-e2f2-4dd6-81c8-431278f463df
2024-09-18 00:42:01,715 - DEBUG - Requesting: http://10.0.0.71:8082/virtual-network/7b133c81-7e81-4b79-9c87-6e7a25394a4b
2024-09-18 00:42:01,732 - DEBUG - ==>Verifying data for policy with id: 0a1617f9-a5d3-40f7-a162-21c6ff9100bb, fqn: ['default-domain', 'ctest-TestBasicPolicy-48500937', 'ctest-policy-allow-all-59934034']
2024-09-18 00:42:01,732 - INFO - VN ctest-vn-86755885 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-18 00:42:01,732 - DEBUG - Verifying the vn in opserver
2024-09-18 00:42:01,732 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48500937:ctest-vn-86755885 virtual network link through opserver 10.0.0.71
2024-09-18 00:42:01,732 - DEBUG - Requesting: http://10.0.0.71:8081/analytics/uves/virtual-networks
2024-09-18 00:42:02,038 - DEBUG - Requesting: http://10.0.0.71:8081/analytics/uves/virtual-networks
2024-09-18 00:42:02,106 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48500937:ctest-vn-86755885', 'href': 'http://10.0.0.71:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48500937:ctest-vn-86755885?flat'}
2024-09-18 00:42:02,106 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48500937:ctest-vn-86755885 is found in opserver
2024-09-18 00:42:02,118 - DEBUG - Do not have enough data to verify VN in agent
2024-09-18 00:42:02,123 - DEBUG - VRF ids for VN ctest-vn-86755885: {}
2024-09-18 00:42:02,123 - DEBUG - Requesting: http://10.0.0.71:8082/domains
2024-09-18 00:42:02,130 - DEBUG - Requesting: http://10.0.0.71:8082/domain/c428d941-dcfc-4e32-ac73-aed81d0a36db
2024-09-18 00:42:02,143 - DEBUG - Requesting: http://10.0.0.71:8082/project/8a1b2a44-e2f2-4dd6-81c8-431278f463df
2024-09-18 00:42:02,233 - DEBUG - Requesting: http://10.0.0.71:8082/virtual-network/22288269-b9f1-472d-981b-b447a1e8b56e
2024-09-18 00:42:02,250 - DEBUG - Requesting: http://10.0.0.71:8082/virtual-network/22288269-b9f1-472d-981b-b447a1e8b56e
2024-09-18 00:42:02,263 - DEBUG - Requesting: http://10.0.0.71:8082/routing-instance/b5398754-8816-449f-87a7-7270bef80a21
2024-09-18 00:42:02,272 - DEBUG - Requesting: http://10.0.0.71:8082/routing-instance/b5398754-8816-449f-87a7-7270bef80a21
2024-09-18 00:42:02,282 - DEBUG - Requesting: http://10.0.0.71:8082/route-target/78ed9b17-e610-4749-890c-0fd5d8420498
2024-09-18 00:42:02,291 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-18 00:42:02,291 - DEBUG - Requesting: http://10.0.0.71:8082/virtual-network/22288269-b9f1-472d-981b-b447a1e8b56e
2024-09-18 00:42:02,309 - DEBUG - Requesting: http://10.0.0.71:8082/routing-instance/b5398754-8816-449f-87a7-7270bef80a21
2024-09-18 00:42:02,333 - INFO - Verified VN network id 9 for VN 22288269-b9f1-472d-981b-b447a1e8b56e
2024-09-18 00:42:02,333 - INFO - Verifications in API Server for VN ctest-vn-39647081 passed
2024-09-18 00:42:02,334 - DEBUG - Requesting: http://10.0.0.71:8082/virtual-network/22288269-b9f1-472d-981b-b447a1e8b56e
2024-09-18 00:42:02,348 - DEBUG - Requesting: http://10.0.0.71:8082/routing-instance/b5398754-8816-449f-87a7-7270bef80a21
2024-09-18 00:42:02,358 - DEBUG - Requesting: http://10.0.0.71:8082/routing-instance/b5398754-8816-449f-87a7-7270bef80a21
2024-09-18 00:42:02,367 - DEBUG - Requesting: http://10.0.0.71:8082/route-target/78ed9b17-e610-4749-890c-0fd5d8420498
2024-09-18 00:42:02,381 - DEBUG - Control-node 10.0.0.71 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48500937:ctest-vn-39647081', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48500937', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2461360586960750381', 'uuid-lslong': '10960552337888294254'}, 'enable': 'true', 'created': '2024-09-18T00:41:59', 'last-modified': '2024-09-18T00:42:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.544195'}
2024-09-18 00:42:02,388 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-18 00:42:02,388 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39647081 passed
2024-09-18 00:42:02,388 - DEBUG - ====Verifying policy data for ctest-vn-39647081 in API_Server ======
2024-09-18 00:42:02,388 - DEBUG - Requesting: http://10.0.0.71:8082/domains
2024-09-18 00:42:02,395 - DEBUG - Requesting: http://10.0.0.71:8082/domain/c428d941-dcfc-4e32-ac73-aed81d0a36db
2024-09-18 00:42:02,409 - DEBUG - Requesting: http://10.0.0.71:8082/project/8a1b2a44-e2f2-4dd6-81c8-431278f463df
2024-09-18 00:42:02,490 - DEBUG - Requesting: http://10.0.0.71:8082/virtual-network/22288269-b9f1-472d-981b-b447a1e8b56e
2024-09-18 00:42:02,504 - DEBUG - ==>Verifying data for policy with id: 0a1617f9-a5d3-40f7-a162-21c6ff9100bb, fqn: ['default-domain', 'ctest-TestBasicPolicy-48500937', 'ctest-policy-allow-all-59934034']
2024-09-18 00:42:02,504 - INFO - VN ctest-vn-39647081 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-18 00:42:02,504 - DEBUG - Verifying the vn in opserver
2024-09-18 00:42:02,504 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48500937:ctest-vn-39647081 virtual network link through opserver 10.0.0.71
2024-09-18 00:42:02,504 - DEBUG - Requesting: http://10.0.0.71:8081/analytics/uves/virtual-networks
2024-09-18 00:42:02,515 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48500937:ctest-vn-39647081', 'href': 'http://10.0.0.71:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48500937:ctest-vn-39647081?flat'}
2024-09-18 00:42:02,515 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48500937:ctest-vn-39647081 is found in opserver
2024-09-18 00:42:02,526 - DEBUG - Do not have enough data to verify VN in agent
2024-09-18 00:42:02,532 - DEBUG - VRF ids for VN ctest-vn-39647081: {}
2024-09-18 00:42:02,590 - DEBUG - Services list from nova: [