2025-08-28 17:23:16,023 - INFO - Domain Default found not creating
2025-08-28 17:23:16,177 - INFO - Project ctest-TestBasicPolicy-84963894 not found, creating it
2025-08-28 17:23:16,634 - INFO - Created Project:ctest-TestBasicPolicy-84963894, ID : 0a8bb95f-d260-45f1-860d-af7fbc46ae2a
2025-08-28 17:23:18,306 - INFO - ================================================================================
2025-08-28 17:23:18,306 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-28 17:23:18,306 - 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
2025-08-28 17:23:18,562 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with
2025-08-28 17:23:18,562 - INFO - Initial checks done. Running the testcase now
2025-08-28 17:23:18,562 - INFO -
2025-08-28 17:23:19,142 - DEBUG - Response for create_network : {'network': {'id': '954b15a9-d294-4415-b0f9-229a7a8caa5a', 'name': 'ctest-vn-57325101', 'tenant_id': '0a8bb95fd26045f1860daf7fbc46ae2a', 'project_id': '0a8bb95fd26045f1860daf7fbc46ae2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84963894', 'ctest-vn-57325101'], 'port_security_enabled': True, 'description': ''}}
2025-08-28 17:23:19,371 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c59d05d-e7c6-4628-8cb0-06f4f6f50b8b', 'name': '', 'tenant_id': '0a8bb95fd26045f1860daf7fbc46ae2a', 'network_id': '954b15a9-d294-4415-b0f9-229a7a8caa5a', 'ip_version': 4, 'cidr': '196.168.114.0/26', 'allocation_pools': [{'start': '196.168.114.2', 'end': '196.168.114.62'}], 'gateway_ip': '196.168.114.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.168.114.2', 'tags': [], 'project_id': '0a8bb95fd26045f1860daf7fbc46ae2a'}}
2025-08-28 17:23:19,393 - INFO - Created VN ctest-vn-57325101
2025-08-28 17:23:19,447 - DEBUG - VN ctest-vn-57325101 UUID is 954b15a9-d294-4415-b0f9-229a7a8caa5a
2025-08-28 17:23:19,750 - DEBUG - Response for create_network : {'network': {'id': 'b39435f1-b63f-44e6-b202-718bc89c794a', 'name': 'ctest-vn-24485972', 'tenant_id': '0a8bb95fd26045f1860daf7fbc46ae2a', 'project_id': '0a8bb95fd26045f1860daf7fbc46ae2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84963894', 'ctest-vn-24485972'], 'port_security_enabled': True, 'description': ''}}
2025-08-28 17:23:19,967 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a1d0d57-d8b3-4a1e-9a7f-5c0d452d09a4', 'name': '', 'tenant_id': '0a8bb95fd26045f1860daf7fbc46ae2a', 'network_id': 'b39435f1-b63f-44e6-b202-718bc89c794a', 'ip_version': 4, 'cidr': '104.187.14.64/26', 'allocation_pools': [{'start': '104.187.14.66', 'end': '104.187.14.126'}], 'gateway_ip': '104.187.14.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.187.14.66', 'tags': [], 'project_id': '0a8bb95fd26045f1860daf7fbc46ae2a'}}
2025-08-28 17:23:19,986 - INFO - Created VN ctest-vn-24485972
2025-08-28 17:23:20,039 - DEBUG - VN ctest-vn-24485972 UUID is b39435f1-b63f-44e6-b202-718bc89c794a
2025-08-28 17:23:20,161 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-57325101, 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-84963894:ctest-vn-24485972, 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]
2025-08-28 17:23:20,467 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '954b15a9-d294-4415-b0f9-229a7a8caa5a', 'name': 'ctest-vn-57325101', 'tenant_id': '0a8bb95fd26045f1860daf7fbc46ae2a', 'project_id': '0a8bb95fd26045f1860daf7fbc46ae2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c59d05d-e7c6-4628-8cb0-06f4f6f50b8b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84963894', 'ctest-vn-57325101'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84963894', 'ctest-policy-allow-all-57637213']], 'subnet_ipam': [{'subnet_cidr': '196.168.114.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-28 17:23:20,704 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b39435f1-b63f-44e6-b202-718bc89c794a', 'name': 'ctest-vn-24485972', 'tenant_id': '0a8bb95fd26045f1860daf7fbc46ae2a', 'project_id': '0a8bb95fd26045f1860daf7fbc46ae2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0a1d0d57-d8b3-4a1e-9a7f-5c0d452d09a4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84963894', 'ctest-vn-24485972'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84963894', 'ctest-policy-allow-all-57637213']], 'subnet_ipam': [{'subnet_cidr': '104.187.14.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-28 17:23:20,875 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-28 17:23:21,217 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-28 17:23:21,246 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f2419a5c-7a7b-4479-9b5d-63bc94f58869
2025-08-28 17:23:21,259 - DEBUG - Requesting: http://10.0.0.254:8082/project/0a8bb95f-d260-45f1-860d-af7fbc46ae2a
2025-08-28 17:23:21,331 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/954b15a9-d294-4415-b0f9-229a7a8caa5a
2025-08-28 17:23:21,343 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/954b15a9-d294-4415-b0f9-229a7a8caa5a
2025-08-28 17:23:21,353 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5b4111a6-08f5-4ea8-a05f-eaffdbca4d84
2025-08-28 17:23:21,360 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5b4111a6-08f5-4ea8-a05f-eaffdbca4d84
2025-08-28 17:23:21,367 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6826bb32-9706-4f78-8d61-968deec4d44a
2025-08-28 17:23:21,374 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-28 17:23:21,374 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/954b15a9-d294-4415-b0f9-229a7a8caa5a
2025-08-28 17:23:21,385 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5b4111a6-08f5-4ea8-a05f-eaffdbca4d84
2025-08-28 17:23:21,401 - INFO - Verified VN network id 10 for VN 954b15a9-d294-4415-b0f9-229a7a8caa5a
2025-08-28 17:23:21,401 - INFO - Verifications in API Server for VN ctest-vn-57325101 passed
2025-08-28 17:23:21,402 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/954b15a9-d294-4415-b0f9-229a7a8caa5a
2025-08-28 17:23:21,411 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5b4111a6-08f5-4ea8-a05f-eaffdbca4d84
2025-08-28 17:23:21,418 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5b4111a6-08f5-4ea8-a05f-eaffdbca4d84
2025-08-28 17:23:21,425 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6826bb32-9706-4f78-8d61-968deec4d44a
2025-08-28 17:23:21,438 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-57325101', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84963894', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10757715954031150101', 'uuid-lslong': '12752261866752617050'}, 'enable': 'true', 'created': '2025-08-28T17:23:19', 'last-modified': '2025-08-28T17:23:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.996153'}
2025-08-28 17:23:21,445 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-28 17:23:21,445 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57325101 passed
2025-08-28 17:23:21,445 - DEBUG - ====Verifying policy data for ctest-vn-57325101 in API_Server ======
2025-08-28 17:23:21,445 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-28 17:23:21,452 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f2419a5c-7a7b-4479-9b5d-63bc94f58869
2025-08-28 17:23:21,463 - DEBUG - Requesting: http://10.0.0.254:8082/project/0a8bb95f-d260-45f1-860d-af7fbc46ae2a
2025-08-28 17:23:21,531 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/954b15a9-d294-4415-b0f9-229a7a8caa5a
2025-08-28 17:23:21,543 - DEBUG - ==>Verifying data for policy with id: 456a49a3-cbd3-41f6-9657-fa27a5cae870, fqn: ['default-domain', 'ctest-TestBasicPolicy-84963894', 'ctest-policy-allow-all-57637213']
2025-08-28 17:23:21,543 - INFO - VN ctest-vn-57325101 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-28 17:23:21,544 - DEBUG - Verifying the vn in opserver
2025-08-28 17:23:21,544 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-57325101 virtual network link through opserver 10.0.0.254
2025-08-28 17:23:21,544 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-28 17:23:21,879 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-28 17:23:21,935 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-57325101', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-57325101?flat'}
2025-08-28 17:23:21,935 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-57325101 is found in opserver
2025-08-28 17:23:21,946 - DEBUG - Do not have enough data to verify VN in agent
2025-08-28 17:23:21,951 - DEBUG - VRF ids for VN ctest-vn-57325101: {}
2025-08-28 17:23:21,951 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-28 17:23:21,957 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f2419a5c-7a7b-4479-9b5d-63bc94f58869
2025-08-28 17:23:21,968 - DEBUG - Requesting: http://10.0.0.254:8082/project/0a8bb95f-d260-45f1-860d-af7fbc46ae2a
2025-08-28 17:23:22,039 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b39435f1-b63f-44e6-b202-718bc89c794a
2025-08-28 17:23:22,052 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b39435f1-b63f-44e6-b202-718bc89c794a
2025-08-28 17:23:22,063 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b098e7b7-a459-48d8-8686-8d7c28c84dc5
2025-08-28 17:23:22,071 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b098e7b7-a459-48d8-8686-8d7c28c84dc5
2025-08-28 17:23:22,079 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3c15439a-0a59-4a65-b794-276dd39045bc
2025-08-28 17:23:22,087 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-28 17:23:22,087 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b39435f1-b63f-44e6-b202-718bc89c794a
2025-08-28 17:23:22,098 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b098e7b7-a459-48d8-8686-8d7c28c84dc5
2025-08-28 17:23:22,116 - INFO - Verified VN network id 11 for VN b39435f1-b63f-44e6-b202-718bc89c794a
2025-08-28 17:23:22,117 - INFO - Verifications in API Server for VN ctest-vn-24485972 passed
2025-08-28 17:23:22,117 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b39435f1-b63f-44e6-b202-718bc89c794a
2025-08-28 17:23:22,129 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b098e7b7-a459-48d8-8686-8d7c28c84dc5
2025-08-28 17:23:22,138 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b098e7b7-a459-48d8-8686-8d7c28c84dc5
2025-08-28 17:23:22,146 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3c15439a-0a59-4a65-b794-276dd39045bc
2025-08-28 17:23:22,161 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-24485972', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84963894', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12940026941603267814', 'uuid-lslong': '12826939533884684618'}, 'enable': 'true', 'created': '2025-08-28T17:23:19', 'last-modified': '2025-08-28T17:23:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.479556'}
2025-08-28 17:23:22,167 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-28 17:23:22,167 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24485972 passed
2025-08-28 17:23:22,167 - DEBUG - ====Verifying policy data for ctest-vn-24485972 in API_Server ======
2025-08-28 17:23:22,167 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-28 17:23:22,175 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f2419a5c-7a7b-4479-9b5d-63bc94f58869
2025-08-28 17:23:22,189 - DEBUG - Requesting: http://10.0.0.254:8082/project/0a8bb95f-d260-45f1-860d-af7fbc46ae2a
2025-08-28 17:23:22,266 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b39435f1-b63f-44e6-b202-718bc89c794a
2025-08-28 17:23:22,275 - DEBUG - ==>Verifying data for policy with id: 456a49a3-cbd3-41f6-9657-fa27a5cae870, fqn: ['default-domain', 'ctest-TestBasicPolicy-84963894', 'ctest-policy-allow-all-57637213']
2025-08-28 17:23:22,275 - INFO - VN ctest-vn-24485972 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-28 17:23:22,276 - DEBUG - Verifying the vn in opserver
2025-08-28 17:23:22,276 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-24485972 virtual network link through opserver 10.0.0.254
2025-08-28 17:23:22,276 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-28 17:23:22,285 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-24485972', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-24485972?flat'}
2025-08-28 17:23:22,285 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84963894:ctest-vn-24485972 is found in opserver
2025-08-28 17:23:22,297 - DEBUG - Do not have enough data to verify VN in agent
2025-08-28 17:23:22,303 - DEBUG - VRF ids for VN ctest-vn-24485972: {}
2025-08-28 17:23:22,365 - DEBUG - Services list from nova: [