2026-03-06 18:03:23,699 - INFO - Domain Default found not creating
2026-03-06 18:03:23,863 - INFO - Project ctest-TestBasicPolicy-86986379 not found, creating it
2026-03-06 18:03:24,313 - INFO - Created Project:ctest-TestBasicPolicy-86986379, ID : a61eaf3c-c850-4ce5-a015-0eb671972db5
2026-03-06 18:03:25,807 - INFO - ================================================================================
2026-03-06 18:03:25,807 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-06 18:03:25,807 - 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-03-06 18:03:26,075 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-03-06 18:03:26,075 - INFO - Initial checks done. Running the testcase now
2026-03-06 18:03:26,075 - INFO -
2026-03-06 18:03:26,639 - DEBUG - Response for create_network : {'network': {'id': 'b965bcac-f888-4b8d-b295-80e2005255f1', 'name': 'ctest-vn-01828122', 'tenant_id': 'a61eaf3cc8504ce5a0150eb671972db5', 'project_id': 'a61eaf3cc8504ce5a0150eb671972db5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86986379', 'ctest-vn-01828122'], 'port_security_enabled': True, 'description': ''}}
2026-03-06 18:03:26,824 - DEBUG - Response for create_subnet : {'subnet': {'id': '76490c60-d845-460f-88f7-bcbb2c7514ab', 'name': '', 'tenant_id': 'a61eaf3cc8504ce5a0150eb671972db5', 'network_id': 'b965bcac-f888-4b8d-b295-80e2005255f1', 'ip_version': 4, 'cidr': '213.194.97.128/26', 'allocation_pools': [{'start': '213.194.97.130', 'end': '213.194.97.190'}], 'gateway_ip': '213.194.97.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.194.97.130', 'tags': [], 'project_id': 'a61eaf3cc8504ce5a0150eb671972db5'}}
2026-03-06 18:03:26,842 - INFO - Created VN ctest-vn-01828122
2026-03-06 18:03:26,897 - DEBUG - VN ctest-vn-01828122 UUID is b965bcac-f888-4b8d-b295-80e2005255f1
2026-03-06 18:03:27,181 - DEBUG - Response for create_network : {'network': {'id': '4eb10b4d-473d-416f-9d50-fadf63ad64f8', 'name': 'ctest-vn-54371015', 'tenant_id': 'a61eaf3cc8504ce5a0150eb671972db5', 'project_id': 'a61eaf3cc8504ce5a0150eb671972db5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86986379', 'ctest-vn-54371015'], 'port_security_enabled': True, 'description': ''}}
2026-03-06 18:03:27,401 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc7f90d3-4152-402f-944b-e0c64ae551f8', 'name': '', 'tenant_id': 'a61eaf3cc8504ce5a0150eb671972db5', 'network_id': '4eb10b4d-473d-416f-9d50-fadf63ad64f8', 'ip_version': 4, 'cidr': '108.128.157.0/26', 'allocation_pools': [{'start': '108.128.157.2', 'end': '108.128.157.62'}], 'gateway_ip': '108.128.157.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.128.157.2', 'tags': [], 'project_id': 'a61eaf3cc8504ce5a0150eb671972db5'}}
2026-03-06 18:03:27,417 - INFO - Created VN ctest-vn-54371015
2026-03-06 18:03:27,469 - DEBUG - VN ctest-vn-54371015 UUID is 4eb10b4d-473d-416f-9d50-fadf63ad64f8
2026-03-06 18:03:27,581 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-86986379:ctest-vn-01828122, 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-86986379:ctest-vn-54371015, 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-03-06 18:03:27,865 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b965bcac-f888-4b8d-b295-80e2005255f1', 'name': 'ctest-vn-01828122', 'tenant_id': 'a61eaf3cc8504ce5a0150eb671972db5', 'project_id': 'a61eaf3cc8504ce5a0150eb671972db5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76490c60-d845-460f-88f7-bcbb2c7514ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86986379', 'ctest-vn-01828122'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86986379', 'ctest-policy-allow-all-49482480']], 'subnet_ipam': [{'subnet_cidr': '213.194.97.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-06 18:03:28,098 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4eb10b4d-473d-416f-9d50-fadf63ad64f8', 'name': 'ctest-vn-54371015', 'tenant_id': 'a61eaf3cc8504ce5a0150eb671972db5', 'project_id': 'a61eaf3cc8504ce5a0150eb671972db5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cc7f90d3-4152-402f-944b-e0c64ae551f8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86986379', 'ctest-vn-54371015'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86986379', 'ctest-policy-allow-all-49482480']], 'subnet_ipam': [{'subnet_cidr': '108.128.157.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-06 18:03:28,265 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-06 18:03:28,563 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-06 18:03:28,599 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a39951c1-0db6-4056-9521-5aa285c4687d
2026-03-06 18:03:28,611 - DEBUG - Requesting: http://10.0.0.38:8082/project/a61eaf3c-c850-4ce5-a015-0eb671972db5
2026-03-06 18:03:28,679 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b965bcac-f888-4b8d-b295-80e2005255f1
2026-03-06 18:03:28,689 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b965bcac-f888-4b8d-b295-80e2005255f1
2026-03-06 18:03:28,698 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b6206a8-79c3-4c69-b59a-a5012593ed9c
2026-03-06 18:03:28,705 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b6206a8-79c3-4c69-b59a-a5012593ed9c
2026-03-06 18:03:28,712 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7e0859a6-3dd0-4817-81b6-124f8266e0a1
2026-03-06 18:03:28,719 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-06 18:03:28,719 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b965bcac-f888-4b8d-b295-80e2005255f1
2026-03-06 18:03:28,728 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b6206a8-79c3-4c69-b59a-a5012593ed9c
2026-03-06 18:03:28,743 - INFO - Verified VN network id 11 for VN b965bcac-f888-4b8d-b295-80e2005255f1
2026-03-06 18:03:28,743 - INFO - Verifications in API Server for VN ctest-vn-01828122 passed
2026-03-06 18:03:28,743 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b965bcac-f888-4b8d-b295-80e2005255f1
2026-03-06 18:03:28,754 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b6206a8-79c3-4c69-b59a-a5012593ed9c
2026-03-06 18:03:28,761 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b6206a8-79c3-4c69-b59a-a5012593ed9c
2026-03-06 18:03:28,769 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7e0859a6-3dd0-4817-81b6-124f8266e0a1
2026-03-06 18:03:28,784 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86986379:ctest-vn-01828122', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86986379', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13359291320754523021', 'uuid-lslong': '12868333218437420529'}, 'enable': 'true', 'created': '2026-03-06T18:03:26', 'last-modified': '2026-03-06T18:03:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.935803'}
2026-03-06 18:03:28,791 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-06 18:03:28,791 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01828122 passed
2026-03-06 18:03:28,791 - DEBUG - ====Verifying policy data for ctest-vn-01828122 in API_Server ======
2026-03-06 18:03:28,791 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-06 18:03:28,796 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a39951c1-0db6-4056-9521-5aa285c4687d
2026-03-06 18:03:28,807 - DEBUG - Requesting: http://10.0.0.38:8082/project/a61eaf3c-c850-4ce5-a015-0eb671972db5
2026-03-06 18:03:28,883 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b965bcac-f888-4b8d-b295-80e2005255f1
2026-03-06 18:03:28,891 - DEBUG - ==>Verifying data for policy with id: 6e16d805-aa2a-4912-af97-d2fd14091309, fqn: ['default-domain', 'ctest-TestBasicPolicy-86986379', 'ctest-policy-allow-all-49482480']
2026-03-06 18:03:28,891 - INFO - VN ctest-vn-01828122 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-06 18:03:28,891 - DEBUG - Verifying the vn in opserver
2026-03-06 18:03:28,892 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86986379:ctest-vn-01828122 virtual network link through opserver 10.0.0.38
2026-03-06 18:03:28,892 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-06 18:03:29,183 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-06 18:03:29,246 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86986379:ctest-vn-01828122', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86986379:ctest-vn-01828122?flat'}
2026-03-06 18:03:29,246 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86986379:ctest-vn-01828122 is found in opserver
2026-03-06 18:03:29,258 - DEBUG - Do not have enough data to verify VN in agent
2026-03-06 18:03:29,263 - DEBUG - VRF ids for VN ctest-vn-01828122: {}
2026-03-06 18:03:29,263 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-06 18:03:29,269 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a39951c1-0db6-4056-9521-5aa285c4687d
2026-03-06 18:03:29,281 - DEBUG - Requesting: http://10.0.0.38:8082/project/a61eaf3c-c850-4ce5-a015-0eb671972db5
2026-03-06 18:03:29,372 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4eb10b4d-473d-416f-9d50-fadf63ad64f8
2026-03-06 18:03:29,388 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4eb10b4d-473d-416f-9d50-fadf63ad64f8
2026-03-06 18:03:29,397 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ba5dbb09-f4d5-48bc-a823-6b94a8c19d33
2026-03-06 18:03:29,404 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ba5dbb09-f4d5-48bc-a823-6b94a8c19d33
2026-03-06 18:03:29,411 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/60e88aba-682b-4124-805d-ba06a579dfb3
2026-03-06 18:03:29,418 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-06 18:03:29,418 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4eb10b4d-473d-416f-9d50-fadf63ad64f8
2026-03-06 18:03:29,428 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ba5dbb09-f4d5-48bc-a823-6b94a8c19d33
2026-03-06 18:03:29,442 - INFO - Verified VN network id 12 for VN 4eb10b4d-473d-416f-9d50-fadf63ad64f8
2026-03-06 18:03:29,442 - INFO - Verifications in API Server for VN ctest-vn-54371015 passed
2026-03-06 18:03:29,443 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4eb10b4d-473d-416f-9d50-fadf63ad64f8
2026-03-06 18:03:29,451 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ba5dbb09-f4d5-48bc-a823-6b94a8c19d33
2026-03-06 18:03:29,458 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ba5dbb09-f4d5-48bc-a823-6b94a8c19d33
2026-03-06 18:03:29,465 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/60e88aba-682b-4124-805d-ba06a579dfb3
2026-03-06 18:03:29,476 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86986379:ctest-vn-54371015', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86986379', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5670325832371749231', 'uuid-lslong': '11335836099448497400'}, 'enable': 'true', 'created': '2026-03-06T18:03:27', 'last-modified': '2026-03-06T18:03:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.399336'}
2026-03-06 18:03:29,483 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-06 18:03:29,483 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54371015 passed
2026-03-06 18:03:29,483 - DEBUG - ====Verifying policy data for ctest-vn-54371015 in API_Server ======
2026-03-06 18:03:29,483 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-06 18:03:29,489 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a39951c1-0db6-4056-9521-5aa285c4687d
2026-03-06 18:03:29,499 - DEBUG - Requesting: http://10.0.0.38:8082/project/a61eaf3c-c850-4ce5-a015-0eb671972db5
2026-03-06 18:03:29,565 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4eb10b4d-473d-416f-9d50-fadf63ad64f8
2026-03-06 18:03:29,576 - DEBUG - ==>Verifying data for policy with id: 6e16d805-aa2a-4912-af97-d2fd14091309, fqn: ['default-domain', 'ctest-TestBasicPolicy-86986379', 'ctest-policy-allow-all-49482480']
2026-03-06 18:03:29,576 - INFO - VN ctest-vn-54371015 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-06 18:03:29,576 - DEBUG - Verifying the vn in opserver
2026-03-06 18:03:29,576 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86986379:ctest-vn-54371015 virtual network link through opserver 10.0.0.38
2026-03-06 18:03:29,576 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-06 18:03:29,586 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86986379:ctest-vn-54371015', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86986379:ctest-vn-54371015?flat'}
2026-03-06 18:03:29,586 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86986379:ctest-vn-54371015 is found in opserver
2026-03-06 18:03:29,595 - DEBUG - Do not have enough data to verify VN in agent
2026-03-06 18:03:29,599 - DEBUG - VRF ids for VN ctest-vn-54371015: {}
2026-03-06 18:03:29,653 - DEBUG - Services list from nova: [