2025-10-13 16:26:11,147 - INFO - Domain Default found not creating
2025-10-13 16:26:11,298 - INFO - Project ctest-TestBasicPolicy-20506429 not found, creating it
2025-10-13 16:26:11,756 - INFO - Created Project:ctest-TestBasicPolicy-20506429, ID : e34b1c21-1b44-4031-a994-9f64c33bd303
2025-10-13 16:26:13,327 - INFO - ================================================================================
2025-10-13 16:26:13,328 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-13 16:26:13,328 - 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-13 16:26:13,581 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with
2025-10-13 16:26:13,581 - INFO - Initial checks done. Running the testcase now
2025-10-13 16:26:13,581 - INFO -
2025-10-13 16:26:14,197 - DEBUG - Response for create_network : {'network': {'id': 'adf468db-01a3-4df0-8374-e5179c891928', 'name': 'ctest-vn-09956518', 'tenant_id': 'e34b1c211b444031a9949f64c33bd303', 'project_id': 'e34b1c211b444031a9949f64c33bd303', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20506429', 'ctest-vn-09956518'], 'port_security_enabled': True, 'description': ''}}
2025-10-13 16:26:14,394 - DEBUG - Response for create_subnet : {'subnet': {'id': '2ad4a485-0bd0-49cb-9907-3acdb7b15b3e', 'name': '', 'tenant_id': 'e34b1c211b444031a9949f64c33bd303', 'network_id': 'adf468db-01a3-4df0-8374-e5179c891928', 'ip_version': 4, 'cidr': '20.67.162.64/26', 'allocation_pools': [{'start': '20.67.162.66', 'end': '20.67.162.126'}], 'gateway_ip': '20.67.162.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.67.162.66', 'tags': [], 'project_id': 'e34b1c211b444031a9949f64c33bd303'}}
2025-10-13 16:26:14,419 - INFO - Created VN ctest-vn-09956518
2025-10-13 16:26:14,476 - DEBUG - VN ctest-vn-09956518 UUID is adf468db-01a3-4df0-8374-e5179c891928
2025-10-13 16:26:14,764 - DEBUG - Response for create_network : {'network': {'id': 'ec7fdc8a-dd9a-4931-a6aa-7358646521df', 'name': 'ctest-vn-46032107', 'tenant_id': 'e34b1c211b444031a9949f64c33bd303', 'project_id': 'e34b1c211b444031a9949f64c33bd303', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20506429', 'ctest-vn-46032107'], 'port_security_enabled': True, 'description': ''}}
2025-10-13 16:26:14,919 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd3425e76-de07-4518-9db8-9f8efe5353ee', 'name': '', 'tenant_id': 'e34b1c211b444031a9949f64c33bd303', 'network_id': 'ec7fdc8a-dd9a-4931-a6aa-7358646521df', 'ip_version': 4, 'cidr': '64.82.223.64/26', 'allocation_pools': [{'start': '64.82.223.66', 'end': '64.82.223.126'}], 'gateway_ip': '64.82.223.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.82.223.66', 'tags': [], 'project_id': 'e34b1c211b444031a9949f64c33bd303'}}
2025-10-13 16:26:14,938 - INFO - Created VN ctest-vn-46032107
2025-10-13 16:26:14,991 - DEBUG - VN ctest-vn-46032107 UUID is ec7fdc8a-dd9a-4931-a6aa-7358646521df
2025-10-13 16:26:15,103 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20506429:ctest-vn-09956518, 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-20506429:ctest-vn-46032107, 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-13 16:26:15,398 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'adf468db-01a3-4df0-8374-e5179c891928', 'name': 'ctest-vn-09956518', 'tenant_id': 'e34b1c211b444031a9949f64c33bd303', 'project_id': 'e34b1c211b444031a9949f64c33bd303', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2ad4a485-0bd0-49cb-9907-3acdb7b15b3e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20506429', 'ctest-vn-09956518'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20506429', 'ctest-policy-allow-all-99567846']], 'subnet_ipam': [{'subnet_cidr': '20.67.162.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-13 16:26:15,640 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec7fdc8a-dd9a-4931-a6aa-7358646521df', 'name': 'ctest-vn-46032107', 'tenant_id': 'e34b1c211b444031a9949f64c33bd303', 'project_id': 'e34b1c211b444031a9949f64c33bd303', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d3425e76-de07-4518-9db8-9f8efe5353ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20506429', 'ctest-vn-46032107'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20506429', 'ctest-policy-allow-all-99567846']], 'subnet_ipam': [{'subnet_cidr': '64.82.223.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-13 16:26:15,812 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-13 16:26:16,152 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-13 16:26:16,183 - DEBUG - Requesting: http://10.0.0.249:8082/domain/dcc2391e-d394-4237-bb38-223d9b890e53
2025-10-13 16:26:16,196 - DEBUG - Requesting: http://10.0.0.249:8082/project/e34b1c21-1b44-4031-a994-9f64c33bd303
2025-10-13 16:26:16,268 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/adf468db-01a3-4df0-8374-e5179c891928
2025-10-13 16:26:16,279 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/adf468db-01a3-4df0-8374-e5179c891928
2025-10-13 16:26:16,288 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bdf5f54c-47b1-466b-be59-a429c06cdf11
2025-10-13 16:26:16,295 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bdf5f54c-47b1-466b-be59-a429c06cdf11
2025-10-13 16:26:16,301 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/3986634f-475b-484c-a826-c225e73fec56
2025-10-13 16:26:16,306 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-13 16:26:16,306 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/adf468db-01a3-4df0-8374-e5179c891928
2025-10-13 16:26:16,314 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bdf5f54c-47b1-466b-be59-a429c06cdf11
2025-10-13 16:26:16,329 - INFO - Verified VN network id 11 for VN adf468db-01a3-4df0-8374-e5179c891928
2025-10-13 16:26:16,329 - INFO - Verifications in API Server for VN ctest-vn-09956518 passed
2025-10-13 16:26:16,329 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/adf468db-01a3-4df0-8374-e5179c891928
2025-10-13 16:26:16,338 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bdf5f54c-47b1-466b-be59-a429c06cdf11
2025-10-13 16:26:16,345 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bdf5f54c-47b1-466b-be59-a429c06cdf11
2025-10-13 16:26:16,352 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/3986634f-475b-484c-a826-c225e73fec56
2025-10-13 16:26:16,363 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20506429:ctest-vn-09956518', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20506429', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12534758952713539056', 'uuid-lslong': '9472447805840234792'}, 'enable': 'true', 'created': '2025-10-13T16:26:14', 'last-modified': '2025-10-13T16:26:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.989185'}
2025-10-13 16:26:16,369 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-13 16:26:16,369 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09956518 passed
2025-10-13 16:26:16,369 - DEBUG - ====Verifying policy data for ctest-vn-09956518 in API_Server ======
2025-10-13 16:26:16,369 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-13 16:26:16,376 - DEBUG - Requesting: http://10.0.0.249:8082/domain/dcc2391e-d394-4237-bb38-223d9b890e53
2025-10-13 16:26:16,388 - DEBUG - Requesting: http://10.0.0.249:8082/project/e34b1c21-1b44-4031-a994-9f64c33bd303
2025-10-13 16:26:16,465 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/adf468db-01a3-4df0-8374-e5179c891928
2025-10-13 16:26:16,477 - DEBUG - ==>Verifying data for policy with id: 179829f8-5213-47c3-88bf-81a005dd7c02, fqn: ['default-domain', 'ctest-TestBasicPolicy-20506429', 'ctest-policy-allow-all-99567846']
2025-10-13 16:26:16,477 - INFO - VN ctest-vn-09956518 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-13 16:26:16,477 - DEBUG - Verifying the vn in opserver
2025-10-13 16:26:16,478 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20506429:ctest-vn-09956518 virtual network link through opserver 10.0.0.249
2025-10-13 16:26:16,478 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-13 16:26:16,813 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-13 16:26:16,873 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20506429:ctest-vn-09956518', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20506429:ctest-vn-09956518?flat'}
2025-10-13 16:26:16,873 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20506429:ctest-vn-09956518 is found in opserver
2025-10-13 16:26:16,883 - DEBUG - Do not have enough data to verify VN in agent
2025-10-13 16:26:16,887 - DEBUG - VRF ids for VN ctest-vn-09956518: {}
2025-10-13 16:26:16,887 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-13 16:26:16,892 - DEBUG - Requesting: http://10.0.0.249:8082/domain/dcc2391e-d394-4237-bb38-223d9b890e53
2025-10-13 16:26:16,904 - DEBUG - Requesting: http://10.0.0.249:8082/project/e34b1c21-1b44-4031-a994-9f64c33bd303
2025-10-13 16:26:16,980 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ec7fdc8a-dd9a-4931-a6aa-7358646521df
2025-10-13 16:26:16,991 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ec7fdc8a-dd9a-4931-a6aa-7358646521df
2025-10-13 16:26:17,002 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9cf2f0c4-9ed1-423a-a8af-f28e3bcff1dd
2025-10-13 16:26:17,011 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9cf2f0c4-9ed1-423a-a8af-f28e3bcff1dd
2025-10-13 16:26:17,019 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/a9fc73f0-11e9-4d3b-af5a-ddc3d3d49654
2025-10-13 16:26:17,028 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-13 16:26:17,028 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ec7fdc8a-dd9a-4931-a6aa-7358646521df
2025-10-13 16:26:17,041 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9cf2f0c4-9ed1-423a-a8af-f28e3bcff1dd
2025-10-13 16:26:17,059 - INFO - Verified VN network id 12 for VN ec7fdc8a-dd9a-4931-a6aa-7358646521df
2025-10-13 16:26:17,059 - INFO - Verifications in API Server for VN ctest-vn-46032107 passed
2025-10-13 16:26:17,059 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ec7fdc8a-dd9a-4931-a6aa-7358646521df
2025-10-13 16:26:17,070 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9cf2f0c4-9ed1-423a-a8af-f28e3bcff1dd
2025-10-13 16:26:17,079 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9cf2f0c4-9ed1-423a-a8af-f28e3bcff1dd
2025-10-13 16:26:17,087 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/a9fc73f0-11e9-4d3b-af5a-ddc3d3d49654
2025-10-13 16:26:17,099 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20506429:ctest-vn-46032107', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20506429', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17041582003974719793', 'uuid-lslong': '12009538179815514591'}, 'enable': 'true', 'created': '2025-10-13T16:26:14', 'last-modified': '2025-10-13T16:26:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.482029'}
2025-10-13 16:26:17,105 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-13 16:26:17,105 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46032107 passed
2025-10-13 16:26:17,105 - DEBUG - ====Verifying policy data for ctest-vn-46032107 in API_Server ======
2025-10-13 16:26:17,105 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-13 16:26:17,111 - DEBUG - Requesting: http://10.0.0.249:8082/domain/dcc2391e-d394-4237-bb38-223d9b890e53
2025-10-13 16:26:17,122 - DEBUG - Requesting: http://10.0.0.249:8082/project/e34b1c21-1b44-4031-a994-9f64c33bd303
2025-10-13 16:26:17,196 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ec7fdc8a-dd9a-4931-a6aa-7358646521df
2025-10-13 16:26:17,209 - DEBUG - ==>Verifying data for policy with id: 179829f8-5213-47c3-88bf-81a005dd7c02, fqn: ['default-domain', 'ctest-TestBasicPolicy-20506429', 'ctest-policy-allow-all-99567846']
2025-10-13 16:26:17,209 - INFO - VN ctest-vn-46032107 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-13 16:26:17,210 - DEBUG - Verifying the vn in opserver
2025-10-13 16:26:17,210 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20506429:ctest-vn-46032107 virtual network link through opserver 10.0.0.249
2025-10-13 16:26:17,210 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-13 16:26:17,222 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20506429:ctest-vn-46032107', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20506429:ctest-vn-46032107?flat'}
2025-10-13 16:26:17,222 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20506429:ctest-vn-46032107 is found in opserver
2025-10-13 16:26:17,234 - DEBUG - Do not have enough data to verify VN in agent
2025-10-13 16:26:17,239 - DEBUG - VRF ids for VN ctest-vn-46032107: {}
2025-10-13 16:26:17,306 - DEBUG - Services list from nova: [