2025-10-23 21:40:01,706 - INFO - Domain Default found not creating
2025-10-23 21:40:01,891 - INFO - Project ctest-TestBasicPolicy-17261070 not found, creating it
2025-10-23 21:40:02,380 - INFO - Created Project:ctest-TestBasicPolicy-17261070, ID : eb4db6e8-597c-480b-9a93-66c4339b3102
2025-10-23 21:40:04,003 - INFO - ================================================================================
2025-10-23 21:40:04,004 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-23 21:40:04,004 - 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-23 21:40:04,262 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with
2025-10-23 21:40:04,263 - INFO - Initial checks done. Running the testcase now
2025-10-23 21:40:04,263 - INFO -
2025-10-23 21:40:04,896 - DEBUG - Response for create_network : {'network': {'id': '30b3381a-7f2c-486f-921a-9cea6b09cd71', 'name': 'ctest-vn-21777865', 'tenant_id': 'eb4db6e8597c480b9a9366c4339b3102', 'project_id': 'eb4db6e8597c480b9a9366c4339b3102', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17261070', 'ctest-vn-21777865'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 21:40:05,067 - DEBUG - Response for create_subnet : {'subnet': {'id': '51324dbe-a7ac-4320-83b7-26c53da0d288', 'name': '', 'tenant_id': 'eb4db6e8597c480b9a9366c4339b3102', 'network_id': '30b3381a-7f2c-486f-921a-9cea6b09cd71', 'ip_version': 4, 'cidr': '162.165.184.192/26', 'allocation_pools': [{'start': '162.165.184.194', 'end': '162.165.184.254'}], 'gateway_ip': '162.165.184.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.165.184.194', 'tags': [], 'project_id': 'eb4db6e8597c480b9a9366c4339b3102'}}
2025-10-23 21:40:05,086 - INFO - Created VN ctest-vn-21777865
2025-10-23 21:40:05,140 - DEBUG - VN ctest-vn-21777865 UUID is 30b3381a-7f2c-486f-921a-9cea6b09cd71
2025-10-23 21:40:05,438 - DEBUG - Response for create_network : {'network': {'id': '7bc91be2-b1f1-44cc-99c2-fccf344d1263', 'name': 'ctest-vn-62959689', 'tenant_id': 'eb4db6e8597c480b9a9366c4339b3102', 'project_id': 'eb4db6e8597c480b9a9366c4339b3102', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17261070', 'ctest-vn-62959689'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 21:40:05,617 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9258f72-4977-4a83-9182-afc000ccbcd3', 'name': '', 'tenant_id': 'eb4db6e8597c480b9a9366c4339b3102', 'network_id': '7bc91be2-b1f1-44cc-99c2-fccf344d1263', 'ip_version': 4, 'cidr': '223.210.89.192/26', 'allocation_pools': [{'start': '223.210.89.194', 'end': '223.210.89.254'}], 'gateway_ip': '223.210.89.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.210.89.194', 'tags': [], 'project_id': 'eb4db6e8597c480b9a9366c4339b3102'}}
2025-10-23 21:40:05,644 - INFO - Created VN ctest-vn-62959689
2025-10-23 21:40:05,700 - DEBUG - VN ctest-vn-62959689 UUID is 7bc91be2-b1f1-44cc-99c2-fccf344d1263
2025-10-23 21:40:05,821 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17261070:ctest-vn-21777865, 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-17261070:ctest-vn-62959689, 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-23 21:40:06,125 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '30b3381a-7f2c-486f-921a-9cea6b09cd71', 'name': 'ctest-vn-21777865', 'tenant_id': 'eb4db6e8597c480b9a9366c4339b3102', 'project_id': 'eb4db6e8597c480b9a9366c4339b3102', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51324dbe-a7ac-4320-83b7-26c53da0d288'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17261070', 'ctest-vn-21777865'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17261070', 'ctest-policy-allow-all-27236574']], 'subnet_ipam': [{'subnet_cidr': '162.165.184.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 21:40:06,373 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7bc91be2-b1f1-44cc-99c2-fccf344d1263', 'name': 'ctest-vn-62959689', 'tenant_id': 'eb4db6e8597c480b9a9366c4339b3102', 'project_id': 'eb4db6e8597c480b9a9366c4339b3102', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a9258f72-4977-4a83-9182-afc000ccbcd3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17261070', 'ctest-vn-62959689'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17261070', 'ctest-policy-allow-all-27236574']], 'subnet_ipam': [{'subnet_cidr': '223.210.89.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 21:40:06,552 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-23 21:40:07,233 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-23 21:40:07,273 - DEBUG - Requesting: http://10.0.0.141:8082/domain/87fdf487-488e-4b69-b864-3dd930774b7a
2025-10-23 21:40:07,286 - DEBUG - Requesting: http://10.0.0.141:8082/project/eb4db6e8-597c-480b-9a93-66c4339b3102
2025-10-23 21:40:07,364 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/30b3381a-7f2c-486f-921a-9cea6b09cd71
2025-10-23 21:40:07,375 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/30b3381a-7f2c-486f-921a-9cea6b09cd71
2025-10-23 21:40:07,385 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fc11916b-8e95-473c-bb71-075234714ea3
2025-10-23 21:40:07,393 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fc11916b-8e95-473c-bb71-075234714ea3
2025-10-23 21:40:07,400 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/aa945774-759a-4e1b-8ce5-13761b334039
2025-10-23 21:40:07,406 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 21:40:07,406 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/30b3381a-7f2c-486f-921a-9cea6b09cd71
2025-10-23 21:40:07,415 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fc11916b-8e95-473c-bb71-075234714ea3
2025-10-23 21:40:07,429 - INFO - Verified VN network id 12 for VN 30b3381a-7f2c-486f-921a-9cea6b09cd71
2025-10-23 21:40:07,430 - INFO - Verifications in API Server for VN ctest-vn-21777865 passed
2025-10-23 21:40:07,430 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/30b3381a-7f2c-486f-921a-9cea6b09cd71
2025-10-23 21:40:07,440 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fc11916b-8e95-473c-bb71-075234714ea3
2025-10-23 21:40:07,448 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/fc11916b-8e95-473c-bb71-075234714ea3
2025-10-23 21:40:07,458 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/aa945774-759a-4e1b-8ce5-13761b334039
2025-10-23 21:40:07,472 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17261070:ctest-vn-21777865', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17261070', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3509210221105662063', 'uuid-lslong': '10527899609564040561'}, 'enable': 'true', 'created': '2025-10-23T21:40:04', 'last-modified': '2025-10-23T21:40:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.372945'}
2025-10-23 21:40:07,478 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 21:40:07,478 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21777865 passed
2025-10-23 21:40:07,479 - DEBUG - ====Verifying policy data for ctest-vn-21777865 in API_Server ======
2025-10-23 21:40:07,479 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-23 21:40:07,486 - DEBUG - Requesting: http://10.0.0.141:8082/domain/87fdf487-488e-4b69-b864-3dd930774b7a
2025-10-23 21:40:07,499 - DEBUG - Requesting: http://10.0.0.141:8082/project/eb4db6e8-597c-480b-9a93-66c4339b3102
2025-10-23 21:40:07,570 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/30b3381a-7f2c-486f-921a-9cea6b09cd71
2025-10-23 21:40:07,579 - DEBUG - ==>Verifying data for policy with id: 5aad5b88-4aa3-400e-8294-4d50692d332a, fqn: ['default-domain', 'ctest-TestBasicPolicy-17261070', 'ctest-policy-allow-all-27236574']
2025-10-23 21:40:07,579 - INFO - VN ctest-vn-21777865 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 21:40:07,580 - DEBUG - Verifying the vn in opserver
2025-10-23 21:40:07,580 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17261070:ctest-vn-21777865 virtual network link through opserver 10.0.0.141
2025-10-23 21:40:07,580 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-23 21:40:07,921 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-23 21:40:07,979 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17261070:ctest-vn-21777865', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17261070:ctest-vn-21777865?flat'}
2025-10-23 21:40:07,979 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17261070:ctest-vn-21777865 is found in opserver
2025-10-23 21:40:07,989 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 21:40:07,995 - DEBUG - VRF ids for VN ctest-vn-21777865: {}
2025-10-23 21:40:07,995 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-23 21:40:08,001 - DEBUG - Requesting: http://10.0.0.141:8082/domain/87fdf487-488e-4b69-b864-3dd930774b7a
2025-10-23 21:40:08,013 - DEBUG - Requesting: http://10.0.0.141:8082/project/eb4db6e8-597c-480b-9a93-66c4339b3102
2025-10-23 21:40:08,086 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/7bc91be2-b1f1-44cc-99c2-fccf344d1263
2025-10-23 21:40:08,097 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/7bc91be2-b1f1-44cc-99c2-fccf344d1263
2025-10-23 21:40:08,107 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/632887a7-8590-4e85-ad8f-137e96851669
2025-10-23 21:40:08,114 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/632887a7-8590-4e85-ad8f-137e96851669
2025-10-23 21:40:08,120 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/f264f44c-31c4-41f7-923a-7224c685f2f8
2025-10-23 21:40:08,127 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 21:40:08,127 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/7bc91be2-b1f1-44cc-99c2-fccf344d1263
2025-10-23 21:40:08,136 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/632887a7-8590-4e85-ad8f-137e96851669
2025-10-23 21:40:08,155 - INFO - Verified VN network id 13 for VN 7bc91be2-b1f1-44cc-99c2-fccf344d1263
2025-10-23 21:40:08,155 - INFO - Verifications in API Server for VN ctest-vn-62959689 passed
2025-10-23 21:40:08,155 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/7bc91be2-b1f1-44cc-99c2-fccf344d1263
2025-10-23 21:40:08,165 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/632887a7-8590-4e85-ad8f-137e96851669
2025-10-23 21:40:08,173 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/632887a7-8590-4e85-ad8f-137e96851669
2025-10-23 21:40:08,181 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/f264f44c-31c4-41f7-923a-7224c685f2f8
2025-10-23 21:40:08,194 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17261070:ctest-vn-62959689', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17261070', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8919691197445915852', 'uuid-lslong': '11079696000150737507'}, 'enable': 'true', 'created': '2025-10-23T21:40:05', 'last-modified': '2025-10-23T21:40:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.847724'}
2025-10-23 21:40:08,200 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 21:40:08,201 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62959689 passed
2025-10-23 21:40:08,201 - DEBUG - ====Verifying policy data for ctest-vn-62959689 in API_Server ======
2025-10-23 21:40:08,201 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-23 21:40:08,207 - DEBUG - Requesting: http://10.0.0.141:8082/domain/87fdf487-488e-4b69-b864-3dd930774b7a
2025-10-23 21:40:08,220 - DEBUG - Requesting: http://10.0.0.141:8082/project/eb4db6e8-597c-480b-9a93-66c4339b3102
2025-10-23 21:40:08,298 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/7bc91be2-b1f1-44cc-99c2-fccf344d1263
2025-10-23 21:40:08,308 - DEBUG - ==>Verifying data for policy with id: 5aad5b88-4aa3-400e-8294-4d50692d332a, fqn: ['default-domain', 'ctest-TestBasicPolicy-17261070', 'ctest-policy-allow-all-27236574']
2025-10-23 21:40:08,308 - INFO - VN ctest-vn-62959689 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 21:40:08,308 - DEBUG - Verifying the vn in opserver
2025-10-23 21:40:08,308 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17261070:ctest-vn-62959689 virtual network link through opserver 10.0.0.141
2025-10-23 21:40:08,308 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-23 21:40:08,318 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17261070:ctest-vn-62959689', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17261070:ctest-vn-62959689?flat'}
2025-10-23 21:40:08,318 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17261070:ctest-vn-62959689 is found in opserver
2025-10-23 21:40:08,328 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 21:40:08,333 - DEBUG - VRF ids for VN ctest-vn-62959689: {}
2025-10-23 21:40:08,396 - DEBUG - Services list from nova: [