2026-04-17 15:50:40,835 - INFO - Domain Default found not creating
2026-04-17 15:50:41,011 - INFO - Project ctest-TestBasicPolicy-47993478 not found, creating it
2026-04-17 15:50:41,491 - INFO - Created Project:ctest-TestBasicPolicy-47993478, ID : 96ff121e-47e8-48d5-a532-4dc06d6d510c
2026-04-17 15:50:43,080 - INFO - ================================================================================
2026-04-17 15:50:43,080 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-17 15:50:43,080 - 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
2026-04-17 15:50:43,351 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-04-17 15:50:43,352 - INFO - Initial checks done. Running the testcase now
2026-04-17 15:50:43,352 - INFO -
2026-04-17 15:50:43,928 - DEBUG - Response for create_network : {'network': {'id': '54195582-50da-4ee4-b821-a981277f4cf3', 'name': 'ctest-vn-40516258', 'tenant_id': '96ff121e47e848d5a5324dc06d6d510c', 'project_id': '96ff121e47e848d5a5324dc06d6d510c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47993478', 'ctest-vn-40516258'], 'port_security_enabled': True, 'description': ''}}
2026-04-17 15:50:44,122 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e38613ed-2e8c-4369-a31e-744eae730f5c', 'name': '', 'tenant_id': '96ff121e47e848d5a5324dc06d6d510c', 'network_id': '54195582-50da-4ee4-b821-a981277f4cf3', 'ip_version': 4, 'cidr': '20.252.244.128/26', 'allocation_pools': [{'start': '20.252.244.130', 'end': '20.252.244.190'}], 'gateway_ip': '20.252.244.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.252.244.130', 'tags': [], 'project_id': '96ff121e47e848d5a5324dc06d6d510c'}}
2026-04-17 15:50:44,141 - INFO - Created VN ctest-vn-40516258
2026-04-17 15:50:44,194 - DEBUG - VN ctest-vn-40516258 UUID is 54195582-50da-4ee4-b821-a981277f4cf3
2026-04-17 15:50:44,496 - DEBUG - Response for create_network : {'network': {'id': '05312a24-92ea-4017-a7b1-5ac41d314327', 'name': 'ctest-vn-95121208', 'tenant_id': '96ff121e47e848d5a5324dc06d6d510c', 'project_id': '96ff121e47e848d5a5324dc06d6d510c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47993478', 'ctest-vn-95121208'], 'port_security_enabled': True, 'description': ''}}
2026-04-17 15:50:44,712 - DEBUG - Response for create_subnet : {'subnet': {'id': '2cd9a837-d560-4e87-ba4b-56ca5fbf8423', 'name': '', 'tenant_id': '96ff121e47e848d5a5324dc06d6d510c', 'network_id': '05312a24-92ea-4017-a7b1-5ac41d314327', 'ip_version': 4, 'cidr': '26.18.187.64/26', 'allocation_pools': [{'start': '26.18.187.66', 'end': '26.18.187.126'}], 'gateway_ip': '26.18.187.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.18.187.66', 'tags': [], 'project_id': '96ff121e47e848d5a5324dc06d6d510c'}}
2026-04-17 15:50:44,733 - INFO - Created VN ctest-vn-95121208
2026-04-17 15:50:44,786 - DEBUG - VN ctest-vn-95121208 UUID is 05312a24-92ea-4017-a7b1-5ac41d314327
2026-04-17 15:50:44,901 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47993478:ctest-vn-40516258, 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-47993478:ctest-vn-95121208, 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]
2026-04-17 15:50:45,195 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '54195582-50da-4ee4-b821-a981277f4cf3', 'name': 'ctest-vn-40516258', 'tenant_id': '96ff121e47e848d5a5324dc06d6d510c', 'project_id': '96ff121e47e848d5a5324dc06d6d510c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e38613ed-2e8c-4369-a31e-744eae730f5c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47993478', 'ctest-vn-40516258'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47993478', 'ctest-policy-allow-all-43929070']], 'subnet_ipam': [{'subnet_cidr': '20.252.244.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-17 15:50:45,424 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '05312a24-92ea-4017-a7b1-5ac41d314327', 'name': 'ctest-vn-95121208', 'tenant_id': '96ff121e47e848d5a5324dc06d6d510c', 'project_id': '96ff121e47e848d5a5324dc06d6d510c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2cd9a837-d560-4e87-ba4b-56ca5fbf8423'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47993478', 'ctest-vn-95121208'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47993478', 'ctest-policy-allow-all-43929070']], 'subnet_ipam': [{'subnet_cidr': '26.18.187.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-17 15:50:45,590 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-17 15:50:45,905 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-17 15:50:45,945 - DEBUG - Requesting: http://10.0.0.38:8082/domain/02d4c6c9-9ebb-4e98-95fe-2e40b7b8f5c5
2026-04-17 15:50:45,956 - DEBUG - Requesting: http://10.0.0.38:8082/project/96ff121e-47e8-48d5-a532-4dc06d6d510c
2026-04-17 15:50:46,029 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/54195582-50da-4ee4-b821-a981277f4cf3
2026-04-17 15:50:46,041 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/54195582-50da-4ee4-b821-a981277f4cf3
2026-04-17 15:50:46,052 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c1387cc-5611-448b-8821-148479de939c
2026-04-17 15:50:46,060 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c1387cc-5611-448b-8821-148479de939c
2026-04-17 15:50:46,068 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0be38a2f-391a-453e-91bb-cd83f4202e72
2026-04-17 15:50:46,074 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-17 15:50:46,074 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/54195582-50da-4ee4-b821-a981277f4cf3
2026-04-17 15:50:46,083 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c1387cc-5611-448b-8821-148479de939c
2026-04-17 15:50:46,099 - INFO - Verified VN network id 11 for VN 54195582-50da-4ee4-b821-a981277f4cf3
2026-04-17 15:50:46,099 - INFO - Verifications in API Server for VN ctest-vn-40516258 passed
2026-04-17 15:50:46,099 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/54195582-50da-4ee4-b821-a981277f4cf3
2026-04-17 15:50:46,108 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c1387cc-5611-448b-8821-148479de939c
2026-04-17 15:50:46,115 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c1387cc-5611-448b-8821-148479de939c
2026-04-17 15:50:46,123 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0be38a2f-391a-453e-91bb-cd83f4202e72
2026-04-17 15:50:46,136 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47993478:ctest-vn-40516258', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47993478', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6059968791794306788', 'uuid-lslong': '13268072349388721395'}, 'enable': 'true', 'created': '2026-04-17T15:50:43', 'last-modified': '2026-04-17T15:50:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.962848'}
2026-04-17 15:50:46,142 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-17 15:50:46,142 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40516258 passed
2026-04-17 15:50:46,142 - DEBUG - ====Verifying policy data for ctest-vn-40516258 in API_Server ======
2026-04-17 15:50:46,142 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-17 15:50:46,148 - DEBUG - Requesting: http://10.0.0.38:8082/domain/02d4c6c9-9ebb-4e98-95fe-2e40b7b8f5c5
2026-04-17 15:50:46,161 - DEBUG - Requesting: http://10.0.0.38:8082/project/96ff121e-47e8-48d5-a532-4dc06d6d510c
2026-04-17 15:50:46,239 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/54195582-50da-4ee4-b821-a981277f4cf3
2026-04-17 15:50:46,251 - DEBUG - ==>Verifying data for policy with id: a258e570-030e-4e16-adb6-b831e331b85f, fqn: ['default-domain', 'ctest-TestBasicPolicy-47993478', 'ctest-policy-allow-all-43929070']
2026-04-17 15:50:46,251 - INFO - VN ctest-vn-40516258 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-17 15:50:46,251 - DEBUG - Verifying the vn in opserver
2026-04-17 15:50:46,251 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47993478:ctest-vn-40516258 virtual network link through opserver 10.0.0.38
2026-04-17 15:50:46,251 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-17 15:50:46,568 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-17 15:50:46,632 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47993478:ctest-vn-40516258', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47993478:ctest-vn-40516258?flat'}
2026-04-17 15:50:46,633 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47993478:ctest-vn-40516258 is found in opserver
2026-04-17 15:50:46,645 - DEBUG - Do not have enough data to verify VN in agent
2026-04-17 15:50:46,651 - DEBUG - VRF ids for VN ctest-vn-40516258: {}
2026-04-17 15:50:46,651 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-17 15:50:46,657 - DEBUG - Requesting: http://10.0.0.38:8082/domain/02d4c6c9-9ebb-4e98-95fe-2e40b7b8f5c5
2026-04-17 15:50:46,668 - DEBUG - Requesting: http://10.0.0.38:8082/project/96ff121e-47e8-48d5-a532-4dc06d6d510c
2026-04-17 15:50:46,742 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/05312a24-92ea-4017-a7b1-5ac41d314327
2026-04-17 15:50:46,755 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/05312a24-92ea-4017-a7b1-5ac41d314327
2026-04-17 15:50:46,767 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d5166bf2-dc2f-45ea-8c1c-727ed0b1cd83
2026-04-17 15:50:46,776 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d5166bf2-dc2f-45ea-8c1c-727ed0b1cd83
2026-04-17 15:50:46,783 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/16f6f881-fba5-446e-a855-c9561de173fb
2026-04-17 15:50:46,791 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-17 15:50:46,791 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/05312a24-92ea-4017-a7b1-5ac41d314327
2026-04-17 15:50:46,799 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d5166bf2-dc2f-45ea-8c1c-727ed0b1cd83
2026-04-17 15:50:46,812 - INFO - Verified VN network id 12 for VN 05312a24-92ea-4017-a7b1-5ac41d314327
2026-04-17 15:50:46,812 - INFO - Verifications in API Server for VN ctest-vn-95121208 passed
2026-04-17 15:50:46,812 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/05312a24-92ea-4017-a7b1-5ac41d314327
2026-04-17 15:50:46,823 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d5166bf2-dc2f-45ea-8c1c-727ed0b1cd83
2026-04-17 15:50:46,831 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d5166bf2-dc2f-45ea-8c1c-727ed0b1cd83
2026-04-17 15:50:46,839 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/16f6f881-fba5-446e-a855-c9561de173fb
2026-04-17 15:50:46,852 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47993478:ctest-vn-95121208', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47993478', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '374126580620476439', 'uuid-lslong': '12083539073561608999'}, 'enable': 'true', 'created': '2026-04-17T15:50:44', 'last-modified': '2026-04-17T15:50:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.446596'}
2026-04-17 15:50:46,857 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-17 15:50:46,858 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95121208 passed
2026-04-17 15:50:46,858 - DEBUG - ====Verifying policy data for ctest-vn-95121208 in API_Server ======
2026-04-17 15:50:46,858 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-17 15:50:46,865 - DEBUG - Requesting: http://10.0.0.38:8082/domain/02d4c6c9-9ebb-4e98-95fe-2e40b7b8f5c5
2026-04-17 15:50:46,877 - DEBUG - Requesting: http://10.0.0.38:8082/project/96ff121e-47e8-48d5-a532-4dc06d6d510c
2026-04-17 15:50:46,948 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/05312a24-92ea-4017-a7b1-5ac41d314327
2026-04-17 15:50:46,958 - DEBUG - ==>Verifying data for policy with id: a258e570-030e-4e16-adb6-b831e331b85f, fqn: ['default-domain', 'ctest-TestBasicPolicy-47993478', 'ctest-policy-allow-all-43929070']
2026-04-17 15:50:46,959 - INFO - VN ctest-vn-95121208 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-17 15:50:46,959 - DEBUG - Verifying the vn in opserver
2026-04-17 15:50:46,959 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47993478:ctest-vn-95121208 virtual network link through opserver 10.0.0.38
2026-04-17 15:50:46,959 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-17 15:50:46,970 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47993478:ctest-vn-95121208', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47993478:ctest-vn-95121208?flat'}
2026-04-17 15:50:46,970 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47993478:ctest-vn-95121208 is found in opserver
2026-04-17 15:50:46,979 - DEBUG - Do not have enough data to verify VN in agent
2026-04-17 15:50:46,985 - DEBUG - VRF ids for VN ctest-vn-95121208: {}
2026-04-17 15:50:47,052 - DEBUG - Services list from nova: [