2025-11-05 20:07:02,841 - INFO - Domain Default found not creating
2025-11-05 20:07:03,156 - INFO - Project ctest-TestBasicPolicy-20426511 not found, creating it
2025-11-05 20:07:03,745 - INFO - Created Project:ctest-TestBasicPolicy-20426511, ID : d964ae31-101b-4574-89bf-36a9b01af1e9
2025-11-05 20:07:05,861 - INFO - ================================================================================
2025-11-05 20:07:05,861 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 20:07:05,861 - 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-11-05 20:07:06,177 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.192': '0'}} with
2025-11-05 20:07:06,177 - INFO - Initial checks done. Running the testcase now
2025-11-05 20:07:06,177 - INFO -
2025-11-05 20:07:06,957 - DEBUG - Response for create_network : {'network': {'id': '93edc923-d6ae-4f4b-b12e-5b10dc83b7b3', 'name': 'ctest-vn-87804657', 'tenant_id': 'd964ae31101b457489bf36a9b01af1e9', 'project_id': 'd964ae31101b457489bf36a9b01af1e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20426511', 'ctest-vn-87804657'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 20:07:07,138 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b2edcda4-4e43-41cd-b23f-8f2a8f00b3dc', 'name': '', 'tenant_id': 'd964ae31101b457489bf36a9b01af1e9', 'network_id': '93edc923-d6ae-4f4b-b12e-5b10dc83b7b3', 'ip_version': 4, 'cidr': '31.137.29.128/26', 'allocation_pools': [{'start': '31.137.29.130', 'end': '31.137.29.190'}], 'gateway_ip': '31.137.29.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.137.29.130', 'tags': [], 'project_id': 'd964ae31101b457489bf36a9b01af1e9'}}
2025-11-05 20:07:07,160 - INFO - Created VN ctest-vn-87804657
2025-11-05 20:07:07,215 - DEBUG - VN ctest-vn-87804657 UUID is 93edc923-d6ae-4f4b-b12e-5b10dc83b7b3
2025-11-05 20:07:07,583 - DEBUG - Response for create_network : {'network': {'id': 'ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7', 'name': 'ctest-vn-53693548', 'tenant_id': 'd964ae31101b457489bf36a9b01af1e9', 'project_id': 'd964ae31101b457489bf36a9b01af1e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20426511', 'ctest-vn-53693548'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 20:07:07,833 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b2a2282b-08ed-451f-9f4b-facc05dcb61c', 'name': '', 'tenant_id': 'd964ae31101b457489bf36a9b01af1e9', 'network_id': 'ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7', 'ip_version': 4, 'cidr': '209.96.77.128/26', 'allocation_pools': [{'start': '209.96.77.130', 'end': '209.96.77.190'}], 'gateway_ip': '209.96.77.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.96.77.130', 'tags': [], 'project_id': 'd964ae31101b457489bf36a9b01af1e9'}}
2025-11-05 20:07:07,855 - INFO - Created VN ctest-vn-53693548
2025-11-05 20:07:07,912 - DEBUG - VN ctest-vn-53693548 UUID is ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7
2025-11-05 20:07:08,071 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-87804657, 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-20426511:ctest-vn-53693548, 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-11-05 20:07:08,527 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '93edc923-d6ae-4f4b-b12e-5b10dc83b7b3', 'name': 'ctest-vn-87804657', 'tenant_id': 'd964ae31101b457489bf36a9b01af1e9', 'project_id': 'd964ae31101b457489bf36a9b01af1e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b2edcda4-4e43-41cd-b23f-8f2a8f00b3dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20426511', 'ctest-vn-87804657'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20426511', 'ctest-policy-allow-all-51187297']], 'subnet_ipam': [{'subnet_cidr': '31.137.29.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 20:07:08,816 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7', 'name': 'ctest-vn-53693548', 'tenant_id': 'd964ae31101b457489bf36a9b01af1e9', 'project_id': 'd964ae31101b457489bf36a9b01af1e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b2a2282b-08ed-451f-9f4b-facc05dcb61c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20426511', 'ctest-vn-53693548'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20426511', 'ctest-policy-allow-all-51187297']], 'subnet_ipam': [{'subnet_cidr': '209.96.77.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 20:07:08,972 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 20:07:09,314 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 20:07:09,352 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fb754f0e-a19c-4bb1-954f-b06c1c85aca4
2025-11-05 20:07:09,373 - DEBUG - Requesting: http://10.0.0.50:8082/project/d964ae31-101b-4574-89bf-36a9b01af1e9
2025-11-05 20:07:09,467 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/93edc923-d6ae-4f4b-b12e-5b10dc83b7b3
2025-11-05 20:07:09,492 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/93edc923-d6ae-4f4b-b12e-5b10dc83b7b3
2025-11-05 20:07:09,513 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7b1237f6-926e-4649-b90e-16ba0e54e653
2025-11-05 20:07:09,527 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7b1237f6-926e-4649-b90e-16ba0e54e653
2025-11-05 20:07:09,541 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/40c8ca86-2603-4049-8380-40a5f21b8351
2025-11-05 20:07:09,554 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 20:07:09,555 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/93edc923-d6ae-4f4b-b12e-5b10dc83b7b3
2025-11-05 20:07:09,572 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7b1237f6-926e-4649-b90e-16ba0e54e653
2025-11-05 20:07:09,602 - INFO - Verified VN network id 10 for VN 93edc923-d6ae-4f4b-b12e-5b10dc83b7b3
2025-11-05 20:07:09,603 - INFO - Verifications in API Server for VN ctest-vn-87804657 passed
2025-11-05 20:07:09,603 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/93edc923-d6ae-4f4b-b12e-5b10dc83b7b3
2025-11-05 20:07:09,627 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7b1237f6-926e-4649-b90e-16ba0e54e653
2025-11-05 20:07:09,647 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7b1237f6-926e-4649-b90e-16ba0e54e653
2025-11-05 20:07:09,665 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/40c8ca86-2603-4049-8380-40a5f21b8351
2025-11-05 20:07:09,687 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-87804657', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20426511', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10659397048818618187', 'uuid-lslong': '12767242121619158963'}, 'enable': 'true', 'created': '2025-11-05T20:07:06', 'last-modified': '2025-11-05T20:07:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.219586'}
2025-11-05 20:07:09,699 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 20:07:09,699 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87804657 passed
2025-11-05 20:07:09,700 - DEBUG - ====Verifying policy data for ctest-vn-87804657 in API_Server ======
2025-11-05 20:07:09,700 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 20:07:09,709 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fb754f0e-a19c-4bb1-954f-b06c1c85aca4
2025-11-05 20:07:09,725 - DEBUG - Requesting: http://10.0.0.50:8082/project/d964ae31-101b-4574-89bf-36a9b01af1e9
2025-11-05 20:07:09,806 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/93edc923-d6ae-4f4b-b12e-5b10dc83b7b3
2025-11-05 20:07:09,819 - DEBUG - ==>Verifying data for policy with id: 5b179b91-a9d6-49d0-a194-5d652e1e4cd1, fqn: ['default-domain', 'ctest-TestBasicPolicy-20426511', 'ctest-policy-allow-all-51187297']
2025-11-05 20:07:09,819 - INFO - VN ctest-vn-87804657 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 20:07:09,819 - DEBUG - Verifying the vn in opserver
2025-11-05 20:07:09,819 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-87804657 virtual network link through opserver 10.0.0.50
2025-11-05 20:07:09,819 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-05 20:07:10,125 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-05 20:07:10,254 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-87804657', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-87804657?flat'}
2025-11-05 20:07:10,254 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-87804657 is found in opserver
2025-11-05 20:07:10,280 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 20:07:10,292 - DEBUG - VRF ids for VN ctest-vn-87804657: {}
2025-11-05 20:07:10,292 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 20:07:10,303 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fb754f0e-a19c-4bb1-954f-b06c1c85aca4
2025-11-05 20:07:10,331 - DEBUG - Requesting: http://10.0.0.50:8082/project/d964ae31-101b-4574-89bf-36a9b01af1e9
2025-11-05 20:07:10,452 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7
2025-11-05 20:07:10,483 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7
2025-11-05 20:07:10,510 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6b2c5f3f-ce56-42cb-b5ac-6f4938353602
2025-11-05 20:07:10,525 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6b2c5f3f-ce56-42cb-b5ac-6f4938353602
2025-11-05 20:07:10,543 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e8f0ea57-80cd-45b5-9ede-208d783ab6f4
2025-11-05 20:07:10,562 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 20:07:10,562 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7
2025-11-05 20:07:10,590 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6b2c5f3f-ce56-42cb-b5ac-6f4938353602
2025-11-05 20:07:10,628 - INFO - Verified VN network id 11 for VN ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7
2025-11-05 20:07:10,629 - INFO - Verifications in API Server for VN ctest-vn-53693548 passed
2025-11-05 20:07:10,629 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7
2025-11-05 20:07:10,659 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6b2c5f3f-ce56-42cb-b5ac-6f4938353602
2025-11-05 20:07:10,678 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6b2c5f3f-ce56-42cb-b5ac-6f4938353602
2025-11-05 20:07:10,701 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e8f0ea57-80cd-45b5-9ede-208d783ab6f4
2025-11-05 20:07:10,731 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-53693548', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20426511', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18437415492977772051', 'uuid-lslong': '12571058721151475655'}, 'enable': 'true', 'created': '2025-11-05T20:07:07', 'last-modified': '2025-11-05T20:07:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.941766'}
2025-11-05 20:07:10,748 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 20:07:10,748 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53693548 passed
2025-11-05 20:07:10,749 - DEBUG - ====Verifying policy data for ctest-vn-53693548 in API_Server ======
2025-11-05 20:07:10,749 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 20:07:10,760 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fb754f0e-a19c-4bb1-954f-b06c1c85aca4
2025-11-05 20:07:10,782 - DEBUG - Requesting: http://10.0.0.50:8082/project/d964ae31-101b-4574-89bf-36a9b01af1e9
2025-11-05 20:07:10,899 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ffdedbb4-8b39-4613-ae75-5f4d74cf5fc7
2025-11-05 20:07:10,919 - DEBUG - ==>Verifying data for policy with id: 5b179b91-a9d6-49d0-a194-5d652e1e4cd1, fqn: ['default-domain', 'ctest-TestBasicPolicy-20426511', 'ctest-policy-allow-all-51187297']
2025-11-05 20:07:10,919 - INFO - VN ctest-vn-53693548 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 20:07:10,919 - DEBUG - Verifying the vn in opserver
2025-11-05 20:07:10,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-53693548 virtual network link through opserver 10.0.0.50
2025-11-05 20:07:10,919 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-05 20:07:10,936 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-53693548', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-53693548?flat'}
2025-11-05 20:07:10,936 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20426511:ctest-vn-53693548 is found in opserver
2025-11-05 20:07:10,956 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 20:07:10,969 - DEBUG - VRF ids for VN ctest-vn-53693548: {}
2025-11-05 20:07:11,088 - DEBUG - Services list from nova: [