2025-11-20 01:58:24,436 - INFO - Domain Default found not creating
2025-11-20 01:58:24,681 - INFO - Project ctest-TestBasicPolicy-47372566 not found, creating it
2025-11-20 01:58:25,164 - INFO - Created Project:ctest-TestBasicPolicy-47372566, ID : 2a713c12-275d-4336-a699-70f76844d746
2025-11-20 01:58:26,621 - INFO - ================================================================================
2025-11-20 01:58:26,621 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-20 01:58:26,621 - 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-20 01:58:26,876 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.241': '0'}} with
2025-11-20 01:58:26,876 - INFO - Initial checks done. Running the testcase now
2025-11-20 01:58:26,877 - INFO -
2025-11-20 01:58:27,419 - DEBUG - Response for create_network : {'network': {'id': '996abb08-2ff4-4f77-b7ee-8f7c0057e679', 'name': 'ctest-vn-13783048', 'tenant_id': '2a713c12275d4336a69970f76844d746', 'project_id': '2a713c12275d4336a69970f76844d746', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47372566', 'ctest-vn-13783048'], 'port_security_enabled': True, 'description': ''}}
2025-11-20 01:58:27,596 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ecf88efe-750d-43aa-8bec-d6dc1d00da91', 'name': '', 'tenant_id': '2a713c12275d4336a69970f76844d746', 'network_id': '996abb08-2ff4-4f77-b7ee-8f7c0057e679', 'ip_version': 4, 'cidr': '125.225.174.0/26', 'allocation_pools': [{'start': '125.225.174.2', 'end': '125.225.174.62'}], 'gateway_ip': '125.225.174.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.225.174.2', 'tags': [], 'project_id': '2a713c12275d4336a69970f76844d746'}}
2025-11-20 01:58:27,612 - INFO - Created VN ctest-vn-13783048
2025-11-20 01:58:27,663 - DEBUG - VN ctest-vn-13783048 UUID is 996abb08-2ff4-4f77-b7ee-8f7c0057e679
2025-11-20 01:58:27,992 - DEBUG - Response for create_network : {'network': {'id': '9dcfa360-8f5d-4535-a8b5-5a43a93ac2bb', 'name': 'ctest-vn-25257901', 'tenant_id': '2a713c12275d4336a69970f76844d746', 'project_id': '2a713c12275d4336a69970f76844d746', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47372566', 'ctest-vn-25257901'], 'port_security_enabled': True, 'description': ''}}
2025-11-20 01:58:28,208 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ac12e0d3-156e-4330-bffc-1c29ec9c5755', 'name': '', 'tenant_id': '2a713c12275d4336a69970f76844d746', 'network_id': '9dcfa360-8f5d-4535-a8b5-5a43a93ac2bb', 'ip_version': 4, 'cidr': '115.154.169.64/26', 'allocation_pools': [{'start': '115.154.169.66', 'end': '115.154.169.126'}], 'gateway_ip': '115.154.169.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.154.169.66', 'tags': [], 'project_id': '2a713c12275d4336a69970f76844d746'}}
2025-11-20 01:58:28,224 - INFO - Created VN ctest-vn-25257901
2025-11-20 01:58:28,275 - DEBUG - VN ctest-vn-25257901 UUID is 9dcfa360-8f5d-4535-a8b5-5a43a93ac2bb
2025-11-20 01:58:28,427 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47372566:ctest-vn-13783048, 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-47372566:ctest-vn-25257901, 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-20 01:58:28,715 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '996abb08-2ff4-4f77-b7ee-8f7c0057e679', 'name': 'ctest-vn-13783048', 'tenant_id': '2a713c12275d4336a69970f76844d746', 'project_id': '2a713c12275d4336a69970f76844d746', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ecf88efe-750d-43aa-8bec-d6dc1d00da91'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47372566', 'ctest-vn-13783048'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47372566', 'ctest-policy-allow-all-59132049']], 'subnet_ipam': [{'subnet_cidr': '125.225.174.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-20 01:58:28,942 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9dcfa360-8f5d-4535-a8b5-5a43a93ac2bb', 'name': 'ctest-vn-25257901', 'tenant_id': '2a713c12275d4336a69970f76844d746', 'project_id': '2a713c12275d4336a69970f76844d746', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ac12e0d3-156e-4330-bffc-1c29ec9c5755'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47372566', 'ctest-vn-25257901'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47372566', 'ctest-policy-allow-all-59132049']], 'subnet_ipam': [{'subnet_cidr': '115.154.169.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-20 01:58:29,091 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-11-20 01:58:29,522 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-11-20 01:58:29,562 - DEBUG - Requesting: http://10.0.0.241:8082/domain/260535ae-786d-46be-8f23-05907ccb3d1d
2025-11-20 01:58:29,573 - DEBUG - Requesting: http://10.0.0.241:8082/project/2a713c12-275d-4336-a699-70f76844d746
2025-11-20 01:58:29,643 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/996abb08-2ff4-4f77-b7ee-8f7c0057e679
2025-11-20 01:58:29,656 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/996abb08-2ff4-4f77-b7ee-8f7c0057e679
2025-11-20 01:58:29,665 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/46674e05-1d69-48dd-bfa3-210aa9e27017
2025-11-20 01:58:29,672 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/46674e05-1d69-48dd-bfa3-210aa9e27017
2025-11-20 01:58:29,678 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/aa2cf486-69e5-445b-996f-1fb43c9d276b
2025-11-20 01:58:29,684 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-20 01:58:29,684 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/996abb08-2ff4-4f77-b7ee-8f7c0057e679
2025-11-20 01:58:29,693 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/46674e05-1d69-48dd-bfa3-210aa9e27017
2025-11-20 01:58:29,704 - INFO - Verified VN network id 11 for VN 996abb08-2ff4-4f77-b7ee-8f7c0057e679
2025-11-20 01:58:29,704 - INFO - Verifications in API Server for VN ctest-vn-13783048 passed
2025-11-20 01:58:29,704 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/996abb08-2ff4-4f77-b7ee-8f7c0057e679
2025-11-20 01:58:29,712 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/46674e05-1d69-48dd-bfa3-210aa9e27017
2025-11-20 01:58:29,718 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/46674e05-1d69-48dd-bfa3-210aa9e27017
2025-11-20 01:58:29,725 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/aa2cf486-69e5-445b-996f-1fb43c9d276b
2025-11-20 01:58:29,734 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47372566:ctest-vn-13783048', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47372566', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11054853879172976503', 'uuid-lslong': '13253688516142425721'}, 'enable': 'true', 'created': '2025-11-20T01:58:27', 'last-modified': '2025-11-20T01:58:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.042815'}
2025-11-20 01:58:29,740 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-20 01:58:29,740 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13783048 passed
2025-11-20 01:58:29,740 - DEBUG - ====Verifying policy data for ctest-vn-13783048 in API_Server ======
2025-11-20 01:58:29,740 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-11-20 01:58:29,744 - DEBUG - Requesting: http://10.0.0.241:8082/domain/260535ae-786d-46be-8f23-05907ccb3d1d
2025-11-20 01:58:29,753 - DEBUG - Requesting: http://10.0.0.241:8082/project/2a713c12-275d-4336-a699-70f76844d746
2025-11-20 01:58:29,819 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/996abb08-2ff4-4f77-b7ee-8f7c0057e679
2025-11-20 01:58:29,827 - DEBUG - ==>Verifying data for policy with id: 0f2b5c48-2bac-420e-a25c-7b2492603cee, fqn: ['default-domain', 'ctest-TestBasicPolicy-47372566', 'ctest-policy-allow-all-59132049']
2025-11-20 01:58:29,827 - INFO - VN ctest-vn-13783048 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-20 01:58:29,827 - DEBUG - Verifying the vn in opserver
2025-11-20 01:58:29,827 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47372566:ctest-vn-13783048 virtual network link through opserver 10.0.0.241
2025-11-20 01:58:29,827 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-11-20 01:58:30,188 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-11-20 01:58:30,269 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47372566:ctest-vn-13783048', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47372566:ctest-vn-13783048?flat'}
2025-11-20 01:58:30,269 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47372566:ctest-vn-13783048 is found in opserver
2025-11-20 01:58:30,278 - DEBUG - Do not have enough data to verify VN in agent
2025-11-20 01:58:30,282 - DEBUG - VRF ids for VN ctest-vn-13783048: {}
2025-11-20 01:58:30,282 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-11-20 01:58:30,288 - DEBUG - Requesting: http://10.0.0.241:8082/domain/260535ae-786d-46be-8f23-05907ccb3d1d
2025-11-20 01:58:30,299 - DEBUG - Requesting: http://10.0.0.241:8082/project/2a713c12-275d-4336-a699-70f76844d746
2025-11-20 01:58:30,365 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/9dcfa360-8f5d-4535-a8b5-5a43a93ac2bb
2025-11-20 01:58:30,374 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/9dcfa360-8f5d-4535-a8b5-5a43a93ac2bb
2025-11-20 01:58:30,382 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/35e8345a-1213-4312-860e-6c884a640a78
2025-11-20 01:58:30,387 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/35e8345a-1213-4312-860e-6c884a640a78
2025-11-20 01:58:30,392 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/0d6c3767-0c7a-4131-a732-4907038f8317
2025-11-20 01:58:30,397 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-20 01:58:30,397 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/9dcfa360-8f5d-4535-a8b5-5a43a93ac2bb
2025-11-20 01:58:30,404 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/35e8345a-1213-4312-860e-6c884a640a78
2025-11-20 01:58:30,414 - INFO - Verified VN network id 12 for VN 9dcfa360-8f5d-4535-a8b5-5a43a93ac2bb
2025-11-20 01:58:30,414 - INFO - Verifications in API Server for VN ctest-vn-25257901 passed
2025-11-20 01:58:30,414 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/9dcfa360-8f5d-4535-a8b5-5a43a93ac2bb
2025-11-20 01:58:30,421 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/35e8345a-1213-4312-860e-6c884a640a78
2025-11-20 01:58:30,426 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/35e8345a-1213-4312-860e-6c884a640a78
2025-11-20 01:58:30,432 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/0d6c3767-0c7a-4131-a732-4907038f8317
2025-11-20 01:58:30,440 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47372566:ctest-vn-25257901', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47372566', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11371487219251234101', 'uuid-lslong': '12156722015805031099'}, 'enable': 'true', 'created': '2025-11-20T01:58:27', 'last-modified': '2025-11-20T01:58:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.525327'}
2025-11-20 01:58:30,445 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-20 01:58:30,445 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25257901 passed
2025-11-20 01:58:30,446 - DEBUG - ====Verifying policy data for ctest-vn-25257901 in API_Server ======
2025-11-20 01:58:30,446 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-11-20 01:58:30,450 - DEBUG - Requesting: http://10.0.0.241:8082/domain/260535ae-786d-46be-8f23-05907ccb3d1d
2025-11-20 01:58:30,459 - DEBUG - Requesting: http://10.0.0.241:8082/project/2a713c12-275d-4336-a699-70f76844d746
2025-11-20 01:58:30,527 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/9dcfa360-8f5d-4535-a8b5-5a43a93ac2bb
2025-11-20 01:58:30,535 - DEBUG - ==>Verifying data for policy with id: 0f2b5c48-2bac-420e-a25c-7b2492603cee, fqn: ['default-domain', 'ctest-TestBasicPolicy-47372566', 'ctest-policy-allow-all-59132049']
2025-11-20 01:58:30,535 - INFO - VN ctest-vn-25257901 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-20 01:58:30,535 - DEBUG - Verifying the vn in opserver
2025-11-20 01:58:30,535 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47372566:ctest-vn-25257901 virtual network link through opserver 10.0.0.241
2025-11-20 01:58:30,535 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-11-20 01:58:30,543 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47372566:ctest-vn-25257901', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47372566:ctest-vn-25257901?flat'}
2025-11-20 01:58:30,543 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47372566:ctest-vn-25257901 is found in opserver
2025-11-20 01:58:30,551 - DEBUG - Do not have enough data to verify VN in agent
2025-11-20 01:58:30,555 - DEBUG - VRF ids for VN ctest-vn-25257901: {}
2025-11-20 01:58:30,608 - DEBUG - Services list from nova: [