2025-10-20 11:45:44,709 - INFO - Domain Default found not creating
2025-10-20 11:45:44,865 - INFO - Project ctest-TestBasicPolicy-22395956 not found, creating it
2025-10-20 11:45:45,320 - INFO - Created Project:ctest-TestBasicPolicy-22395956, ID : 36f5a310-5521-44d9-8592-9e858a4ad9e3
2025-10-20 11:45:46,688 - INFO - ================================================================================
2025-10-20 11:45:46,688 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-20 11:45:46,688 - 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-10-20 11:45:46,946 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.129': '0'}} with
2025-10-20 11:45:46,946 - INFO - Initial checks done. Running the testcase now
2025-10-20 11:45:46,946 - INFO -
2025-10-20 11:45:47,468 - DEBUG - Response for create_network : {'network': {'id': '66db574d-d448-47ba-a5c0-537ed80b7c8b', 'name': 'ctest-vn-45148699', 'tenant_id': '36f5a310552144d985929e858a4ad9e3', 'project_id': '36f5a310552144d985929e858a4ad9e3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22395956', 'ctest-vn-45148699'], 'port_security_enabled': True, 'description': ''}}
2025-10-20 11:45:47,636 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b3e5e9e2-1395-4cdf-88e3-df45157922e9', 'name': '', 'tenant_id': '36f5a310552144d985929e858a4ad9e3', 'network_id': '66db574d-d448-47ba-a5c0-537ed80b7c8b', 'ip_version': 4, 'cidr': '119.126.182.64/26', 'allocation_pools': [{'start': '119.126.182.66', 'end': '119.126.182.126'}], 'gateway_ip': '119.126.182.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.126.182.66', 'tags': [], 'project_id': '36f5a310552144d985929e858a4ad9e3'}}
2025-10-20 11:45:47,653 - INFO - Created VN ctest-vn-45148699
2025-10-20 11:45:47,703 - DEBUG - VN ctest-vn-45148699 UUID is 66db574d-d448-47ba-a5c0-537ed80b7c8b
2025-10-20 11:45:48,009 - DEBUG - Response for create_network : {'network': {'id': '6d22b31a-c11a-4fe6-8964-8d4bd0e3eb42', 'name': 'ctest-vn-32217860', 'tenant_id': '36f5a310552144d985929e858a4ad9e3', 'project_id': '36f5a310552144d985929e858a4ad9e3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22395956', 'ctest-vn-32217860'], 'port_security_enabled': True, 'description': ''}}
2025-10-20 11:45:48,167 - DEBUG - Response for create_subnet : {'subnet': {'id': '1fe750ea-7042-485e-b284-4e8e998bb7b8', 'name': '', 'tenant_id': '36f5a310552144d985929e858a4ad9e3', 'network_id': '6d22b31a-c11a-4fe6-8964-8d4bd0e3eb42', 'ip_version': 4, 'cidr': '8.15.135.192/26', 'allocation_pools': [{'start': '8.15.135.194', 'end': '8.15.135.254'}], 'gateway_ip': '8.15.135.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.15.135.194', 'tags': [], 'project_id': '36f5a310552144d985929e858a4ad9e3'}}
2025-10-20 11:45:48,186 - INFO - Created VN ctest-vn-32217860
2025-10-20 11:45:48,239 - DEBUG - VN ctest-vn-32217860 UUID is 6d22b31a-c11a-4fe6-8964-8d4bd0e3eb42
2025-10-20 11:45:48,395 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22395956:ctest-vn-45148699, 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-22395956:ctest-vn-32217860, 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-10-20 11:45:48,679 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '66db574d-d448-47ba-a5c0-537ed80b7c8b', 'name': 'ctest-vn-45148699', 'tenant_id': '36f5a310552144d985929e858a4ad9e3', 'project_id': '36f5a310552144d985929e858a4ad9e3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b3e5e9e2-1395-4cdf-88e3-df45157922e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22395956', 'ctest-vn-45148699'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22395956', 'ctest-policy-allow-all-31157899']], 'subnet_ipam': [{'subnet_cidr': '119.126.182.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-20 11:45:48,900 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6d22b31a-c11a-4fe6-8964-8d4bd0e3eb42', 'name': 'ctest-vn-32217860', 'tenant_id': '36f5a310552144d985929e858a4ad9e3', 'project_id': '36f5a310552144d985929e858a4ad9e3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1fe750ea-7042-485e-b284-4e8e998bb7b8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22395956', 'ctest-vn-32217860'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22395956', 'ctest-policy-allow-all-31157899']], 'subnet_ipam': [{'subnet_cidr': '8.15.135.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-20 11:45:49,051 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-20 11:45:49,343 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-20 11:45:49,375 - DEBUG - Requesting: http://10.0.0.130:8082/domain/7313a29c-ac52-4f2a-9f14-07d35c9860f1
2025-10-20 11:45:49,387 - DEBUG - Requesting: http://10.0.0.130:8082/project/36f5a310-5521-44d9-8592-9e858a4ad9e3
2025-10-20 11:45:49,459 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/66db574d-d448-47ba-a5c0-537ed80b7c8b
2025-10-20 11:45:49,469 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/66db574d-d448-47ba-a5c0-537ed80b7c8b
2025-10-20 11:45:49,478 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a4f9ebe5-0d07-4403-9293-ed11be3a817f
2025-10-20 11:45:49,484 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a4f9ebe5-0d07-4403-9293-ed11be3a817f
2025-10-20 11:45:49,491 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/52135681-9fc1-40cb-923c-15dcb61621ae
2025-10-20 11:45:49,497 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-20 11:45:49,497 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/66db574d-d448-47ba-a5c0-537ed80b7c8b
2025-10-20 11:45:49,506 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a4f9ebe5-0d07-4403-9293-ed11be3a817f
2025-10-20 11:45:49,520 - INFO - Verified VN network id 11 for VN 66db574d-d448-47ba-a5c0-537ed80b7c8b
2025-10-20 11:45:49,520 - INFO - Verifications in API Server for VN ctest-vn-45148699 passed
2025-10-20 11:45:49,520 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/66db574d-d448-47ba-a5c0-537ed80b7c8b
2025-10-20 11:45:49,528 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a4f9ebe5-0d07-4403-9293-ed11be3a817f
2025-10-20 11:45:49,534 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/a4f9ebe5-0d07-4403-9293-ed11be3a817f
2025-10-20 11:45:49,540 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/52135681-9fc1-40cb-923c-15dcb61621ae
2025-10-20 11:45:49,550 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22395956:ctest-vn-45148699', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22395956', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7411613603553888186', 'uuid-lslong': '11943638016042171531'}, 'enable': 'true', 'created': '2025-10-20T11:45:47', 'last-modified': '2025-10-20T11:45:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.889560'}
2025-10-20 11:45:49,557 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-20 11:45:49,557 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45148699 passed
2025-10-20 11:45:49,557 - DEBUG - ====Verifying policy data for ctest-vn-45148699 in API_Server ======
2025-10-20 11:45:49,557 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-20 11:45:49,563 - DEBUG - Requesting: http://10.0.0.130:8082/domain/7313a29c-ac52-4f2a-9f14-07d35c9860f1
2025-10-20 11:45:49,575 - DEBUG - Requesting: http://10.0.0.130:8082/project/36f5a310-5521-44d9-8592-9e858a4ad9e3
2025-10-20 11:45:49,644 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/66db574d-d448-47ba-a5c0-537ed80b7c8b
2025-10-20 11:45:49,652 - DEBUG - ==>Verifying data for policy with id: 572a56a0-c7e7-436d-81c4-39eac8be6ad9, fqn: ['default-domain', 'ctest-TestBasicPolicy-22395956', 'ctest-policy-allow-all-31157899']
2025-10-20 11:45:49,652 - INFO - VN ctest-vn-45148699 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-20 11:45:49,652 - DEBUG - Verifying the vn in opserver
2025-10-20 11:45:49,652 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22395956:ctest-vn-45148699 virtual network link through opserver 10.0.0.130
2025-10-20 11:45:49,652 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-10-20 11:45:49,959 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-10-20 11:45:50,014 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22395956:ctest-vn-45148699', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22395956:ctest-vn-45148699?flat'}
2025-10-20 11:45:50,014 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22395956:ctest-vn-45148699 is found in opserver
2025-10-20 11:45:50,023 - DEBUG - Do not have enough data to verify VN in agent
2025-10-20 11:45:50,027 - DEBUG - VRF ids for VN ctest-vn-45148699: {}
2025-10-20 11:45:50,027 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-20 11:45:50,032 - DEBUG - Requesting: http://10.0.0.130:8082/domain/7313a29c-ac52-4f2a-9f14-07d35c9860f1
2025-10-20 11:45:50,042 - DEBUG - Requesting: http://10.0.0.130:8082/project/36f5a310-5521-44d9-8592-9e858a4ad9e3
2025-10-20 11:45:50,109 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6d22b31a-c11a-4fe6-8964-8d4bd0e3eb42
2025-10-20 11:45:50,121 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6d22b31a-c11a-4fe6-8964-8d4bd0e3eb42
2025-10-20 11:45:50,131 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8019a737-4c95-4ed3-a417-50fb03282807
2025-10-20 11:45:50,139 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8019a737-4c95-4ed3-a417-50fb03282807
2025-10-20 11:45:50,147 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/30d19222-026c-450f-a6bf-4055569ef12c
2025-10-20 11:45:50,155 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-20 11:45:50,155 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6d22b31a-c11a-4fe6-8964-8d4bd0e3eb42
2025-10-20 11:45:50,164 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8019a737-4c95-4ed3-a417-50fb03282807
2025-10-20 11:45:50,179 - INFO - Verified VN network id 12 for VN 6d22b31a-c11a-4fe6-8964-8d4bd0e3eb42
2025-10-20 11:45:50,179 - INFO - Verifications in API Server for VN ctest-vn-32217860 passed
2025-10-20 11:45:50,179 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6d22b31a-c11a-4fe6-8964-8d4bd0e3eb42
2025-10-20 11:45:50,189 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8019a737-4c95-4ed3-a417-50fb03282807
2025-10-20 11:45:50,197 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8019a737-4c95-4ed3-a417-50fb03282807
2025-10-20 11:45:50,204 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/30d19222-026c-450f-a6bf-4055569ef12c
2025-10-20 11:45:50,216 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22395956:ctest-vn-32217860', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22395956', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7864044826832556006', 'uuid-lslong': '9900193237633854274'}, 'enable': 'true', 'created': '2025-10-20T11:45:47', 'last-modified': '2025-10-20T11:45:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.345582'}
2025-10-20 11:45:50,223 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-20 11:45:50,223 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32217860 passed
2025-10-20 11:45:50,223 - DEBUG - ====Verifying policy data for ctest-vn-32217860 in API_Server ======
2025-10-20 11:45:50,223 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-20 11:45:50,229 - DEBUG - Requesting: http://10.0.0.130:8082/domain/7313a29c-ac52-4f2a-9f14-07d35c9860f1
2025-10-20 11:45:50,240 - DEBUG - Requesting: http://10.0.0.130:8082/project/36f5a310-5521-44d9-8592-9e858a4ad9e3
2025-10-20 11:45:50,311 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6d22b31a-c11a-4fe6-8964-8d4bd0e3eb42
2025-10-20 11:45:50,321 - DEBUG - ==>Verifying data for policy with id: 572a56a0-c7e7-436d-81c4-39eac8be6ad9, fqn: ['default-domain', 'ctest-TestBasicPolicy-22395956', 'ctest-policy-allow-all-31157899']
2025-10-20 11:45:50,321 - INFO - VN ctest-vn-32217860 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-20 11:45:50,322 - DEBUG - Verifying the vn in opserver
2025-10-20 11:45:50,322 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22395956:ctest-vn-32217860 virtual network link through opserver 10.0.0.130
2025-10-20 11:45:50,322 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-10-20 11:45:50,332 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22395956:ctest-vn-32217860', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22395956:ctest-vn-32217860?flat'}
2025-10-20 11:45:50,332 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22395956:ctest-vn-32217860 is found in opserver
2025-10-20 11:45:50,342 - DEBUG - Do not have enough data to verify VN in agent
2025-10-20 11:45:50,347 - DEBUG - VRF ids for VN ctest-vn-32217860: {}
2025-10-20 11:45:50,409 - DEBUG - Services list from nova: [