2024-10-19 09:06:16,054 - INFO - Domain Default found not creating
2024-10-19 09:06:16,251 - INFO - Project ctest-TestBasicPolicy-91446029 not found, creating it
2024-10-19 09:06:16,765 - INFO - Created Project:ctest-TestBasicPolicy-91446029, ID : 6ff9eb32-d108-4eb1-bec0-1be6349c63b4
2024-10-19 09:06:18,388 - INFO - ================================================================================
2024-10-19 09:06:18,388 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-19 09:06:18,388 - 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-10-19 09:06:18,647 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.12': '0'}} with
2024-10-19 09:06:18,647 - INFO - Initial checks done. Running the testcase now
2024-10-19 09:06:18,648 - INFO -
2024-10-19 09:06:19,286 - DEBUG - Response for create_network : {'network': {'id': 'e782e152-7e0c-42b2-ba7d-cf75b7452a74', 'name': 'ctest-vn-74278288', 'tenant_id': '6ff9eb32d1084eb1bec01be6349c63b4', 'project_id': '6ff9eb32d1084eb1bec01be6349c63b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91446029', 'ctest-vn-74278288'], 'port_security_enabled': True, 'description': ''}}
2024-10-19 09:06:19,527 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed02fc22-9795-4a99-b033-cb7f386d386a', 'name': '', 'tenant_id': '6ff9eb32d1084eb1bec01be6349c63b4', 'network_id': 'e782e152-7e0c-42b2-ba7d-cf75b7452a74', 'ip_version': 4, 'cidr': '220.188.202.128/26', 'allocation_pools': [{'start': '220.188.202.130', 'end': '220.188.202.190'}], 'gateway_ip': '220.188.202.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.188.202.130', 'tags': [], 'project_id': '6ff9eb32d1084eb1bec01be6349c63b4'}}
2024-10-19 09:06:19,549 - INFO - Created VN ctest-vn-74278288
2024-10-19 09:06:19,607 - DEBUG - VN ctest-vn-74278288 UUID is e782e152-7e0c-42b2-ba7d-cf75b7452a74
2024-10-19 09:06:19,942 - DEBUG - Response for create_network : {'network': {'id': '84a28208-2f02-493d-8fe1-68fdbe52716e', 'name': 'ctest-vn-26936667', 'tenant_id': '6ff9eb32d1084eb1bec01be6349c63b4', 'project_id': '6ff9eb32d1084eb1bec01be6349c63b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91446029', 'ctest-vn-26936667'], 'port_security_enabled': True, 'description': ''}}
2024-10-19 09:06:20,156 - DEBUG - Response for create_subnet : {'subnet': {'id': '07138db7-802b-4fd9-b8b3-1731fb4e6b7b', 'name': '', 'tenant_id': '6ff9eb32d1084eb1bec01be6349c63b4', 'network_id': '84a28208-2f02-493d-8fe1-68fdbe52716e', 'ip_version': 4, 'cidr': '84.101.52.64/26', 'allocation_pools': [{'start': '84.101.52.66', 'end': '84.101.52.126'}], 'gateway_ip': '84.101.52.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.101.52.66', 'tags': [], 'project_id': '6ff9eb32d1084eb1bec01be6349c63b4'}}
2024-10-19 09:06:20,182 - INFO - Created VN ctest-vn-26936667
2024-10-19 09:06:20,243 - DEBUG - VN ctest-vn-26936667 UUID is 84a28208-2f02-493d-8fe1-68fdbe52716e
2024-10-19 09:06:20,378 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-74278288, 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-91446029:ctest-vn-26936667, 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-10-19 09:06:20,710 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e782e152-7e0c-42b2-ba7d-cf75b7452a74', 'name': 'ctest-vn-74278288', 'tenant_id': '6ff9eb32d1084eb1bec01be6349c63b4', 'project_id': '6ff9eb32d1084eb1bec01be6349c63b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ed02fc22-9795-4a99-b033-cb7f386d386a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91446029', 'ctest-vn-74278288'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91446029', 'ctest-policy-allow-all-06796046']], 'subnet_ipam': [{'subnet_cidr': '220.188.202.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-19 09:06:20,950 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '84a28208-2f02-493d-8fe1-68fdbe52716e', 'name': 'ctest-vn-26936667', 'tenant_id': '6ff9eb32d1084eb1bec01be6349c63b4', 'project_id': '6ff9eb32d1084eb1bec01be6349c63b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['07138db7-802b-4fd9-b8b3-1731fb4e6b7b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91446029', 'ctest-vn-26936667'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91446029', 'ctest-policy-allow-all-06796046']], 'subnet_ipam': [{'subnet_cidr': '84.101.52.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-19 09:06:21,127 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-10-19 09:06:21,433 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-10-19 09:06:21,471 - DEBUG - Requesting: http://10.0.0.30:8082/domain/78117453-d03f-4b02-a766-7e72cd3df68e
2024-10-19 09:06:21,487 - DEBUG - Requesting: http://10.0.0.30:8082/project/6ff9eb32-d108-4eb1-bec0-1be6349c63b4
2024-10-19 09:06:21,576 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e782e152-7e0c-42b2-ba7d-cf75b7452a74
2024-10-19 09:06:21,593 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e782e152-7e0c-42b2-ba7d-cf75b7452a74
2024-10-19 09:06:21,612 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e2a200d8-a0a0-481a-9d88-47253e81c0c9
2024-10-19 09:06:21,623 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e2a200d8-a0a0-481a-9d88-47253e81c0c9
2024-10-19 09:06:21,633 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/e1d58314-989b-495c-aaf2-d4fd697a5ce6
2024-10-19 09:06:21,641 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-19 09:06:21,641 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e782e152-7e0c-42b2-ba7d-cf75b7452a74
2024-10-19 09:06:21,654 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e2a200d8-a0a0-481a-9d88-47253e81c0c9
2024-10-19 09:06:21,673 - INFO - Verified VN network id 8 for VN e782e152-7e0c-42b2-ba7d-cf75b7452a74
2024-10-19 09:06:21,673 - INFO - Verifications in API Server for VN ctest-vn-74278288 passed
2024-10-19 09:06:21,673 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e782e152-7e0c-42b2-ba7d-cf75b7452a74
2024-10-19 09:06:21,691 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e2a200d8-a0a0-481a-9d88-47253e81c0c9
2024-10-19 09:06:21,701 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e2a200d8-a0a0-481a-9d88-47253e81c0c9
2024-10-19 09:06:21,711 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/e1d58314-989b-495c-aaf2-d4fd697a5ce6
2024-10-19 09:06:21,726 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-74278288', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91446029', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16682143714152039090', 'uuid-lslong': '13438124967636314740'}, 'enable': 'true', 'created': '2024-10-19T09:06:19', 'last-modified': '2024-10-19T09:06:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.044891'}
2024-10-19 09:06:21,733 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-19 09:06:21,733 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74278288 passed
2024-10-19 09:06:21,734 - DEBUG - ====Verifying policy data for ctest-vn-74278288 in API_Server ======
2024-10-19 09:06:21,734 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-10-19 09:06:21,741 - DEBUG - Requesting: http://10.0.0.30:8082/domain/78117453-d03f-4b02-a766-7e72cd3df68e
2024-10-19 09:06:21,755 - DEBUG - Requesting: http://10.0.0.30:8082/project/6ff9eb32-d108-4eb1-bec0-1be6349c63b4
2024-10-19 09:06:21,843 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e782e152-7e0c-42b2-ba7d-cf75b7452a74
2024-10-19 09:06:21,858 - DEBUG - ==>Verifying data for policy with id: abf0cf98-36c2-4a40-a93c-ff434eaeba0f, fqn: ['default-domain', 'ctest-TestBasicPolicy-91446029', 'ctest-policy-allow-all-06796046']
2024-10-19 09:06:21,858 - INFO - VN ctest-vn-74278288 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-19 09:06:21,858 - DEBUG - Verifying the vn in opserver
2024-10-19 09:06:21,858 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-74278288 virtual network link through opserver 10.0.0.30
2024-10-19 09:06:21,858 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-10-19 09:06:22,152 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-10-19 09:06:22,218 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-74278288', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-74278288?flat'}
2024-10-19 09:06:22,218 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-74278288 is found in opserver
2024-10-19 09:06:22,230 - DEBUG - Do not have enough data to verify VN in agent
2024-10-19 09:06:22,235 - DEBUG - VRF ids for VN ctest-vn-74278288: {}
2024-10-19 09:06:22,235 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-10-19 09:06:22,241 - DEBUG - Requesting: http://10.0.0.30:8082/domain/78117453-d03f-4b02-a766-7e72cd3df68e
2024-10-19 09:06:22,254 - DEBUG - Requesting: http://10.0.0.30:8082/project/6ff9eb32-d108-4eb1-bec0-1be6349c63b4
2024-10-19 09:06:22,334 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/84a28208-2f02-493d-8fe1-68fdbe52716e
2024-10-19 09:06:22,350 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/84a28208-2f02-493d-8fe1-68fdbe52716e
2024-10-19 09:06:22,363 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/c4068519-1315-4f38-ae1f-203cb3c355c1
2024-10-19 09:06:22,372 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/c4068519-1315-4f38-ae1f-203cb3c355c1
2024-10-19 09:06:22,380 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/7667c71c-56a5-4b36-867b-9b3ebb630ecc
2024-10-19 09:06:22,387 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-19 09:06:22,387 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/84a28208-2f02-493d-8fe1-68fdbe52716e
2024-10-19 09:06:22,404 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/c4068519-1315-4f38-ae1f-203cb3c355c1
2024-10-19 09:06:22,425 - INFO - Verified VN network id 9 for VN 84a28208-2f02-493d-8fe1-68fdbe52716e
2024-10-19 09:06:22,425 - INFO - Verifications in API Server for VN ctest-vn-26936667 passed
2024-10-19 09:06:22,425 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/84a28208-2f02-493d-8fe1-68fdbe52716e
2024-10-19 09:06:22,440 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/c4068519-1315-4f38-ae1f-203cb3c355c1
2024-10-19 09:06:22,450 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/c4068519-1315-4f38-ae1f-203cb3c355c1
2024-10-19 09:06:22,460 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/7667c71c-56a5-4b36-867b-9b3ebb630ecc
2024-10-19 09:06:22,475 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-26936667', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91446029', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9557344330893642045', 'uuid-lslong': '10367683256212681070'}, 'enable': 'true', 'created': '2024-10-19T09:06:19', 'last-modified': '2024-10-19T09:06:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.546555'}
2024-10-19 09:06:22,481 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-19 09:06:22,481 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26936667 passed
2024-10-19 09:06:22,481 - DEBUG - ====Verifying policy data for ctest-vn-26936667 in API_Server ======
2024-10-19 09:06:22,482 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-10-19 09:06:22,488 - DEBUG - Requesting: http://10.0.0.30:8082/domain/78117453-d03f-4b02-a766-7e72cd3df68e
2024-10-19 09:06:22,505 - DEBUG - Requesting: http://10.0.0.30:8082/project/6ff9eb32-d108-4eb1-bec0-1be6349c63b4
2024-10-19 09:06:22,596 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/84a28208-2f02-493d-8fe1-68fdbe52716e
2024-10-19 09:06:22,613 - DEBUG - ==>Verifying data for policy with id: abf0cf98-36c2-4a40-a93c-ff434eaeba0f, fqn: ['default-domain', 'ctest-TestBasicPolicy-91446029', 'ctest-policy-allow-all-06796046']
2024-10-19 09:06:22,613 - INFO - VN ctest-vn-26936667 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-19 09:06:22,614 - DEBUG - Verifying the vn in opserver
2024-10-19 09:06:22,614 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-26936667 virtual network link through opserver 10.0.0.30
2024-10-19 09:06:22,614 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-10-19 09:06:22,628 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-26936667', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-26936667?flat'}
2024-10-19 09:06:22,628 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-26936667 is found in opserver
2024-10-19 09:06:22,642 - DEBUG - Do not have enough data to verify VN in agent
2024-10-19 09:06:22,647 - DEBUG - VRF ids for VN ctest-vn-26936667: {}
2024-10-19 09:06:22,712 - DEBUG - Services list from nova: [