2026-06-19 11:01:19,214 - INFO - Domain Default found not creating
2026-06-19 11:01:19,343 - INFO - Project ctest-TestBasicPolicy-43394183 not found, creating it
2026-06-19 11:01:19,828 - INFO - Created Project:ctest-TestBasicPolicy-43394183, ID : f270e4c9-387d-4188-9bc6-9897a3017cda
2026-06-19 11:01:21,239 - INFO - ================================================================================
2026-06-19 11:01:21,239 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-19 11:01:21,239 - 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-06-19 11:01:21,491 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-06-19 11:01:21,491 - INFO - Initial checks done. Running the testcase now
2026-06-19 11:01:21,491 - INFO -
2026-06-19 11:01:22,044 - DEBUG - Response for create_network : {'network': {'id': 'f5852f46-59e3-44a7-bdba-3f1bf2b49ad4', 'name': 'ctest-vn-65164507', 'tenant_id': 'f270e4c9387d41889bc69897a3017cda', 'project_id': 'f270e4c9387d41889bc69897a3017cda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43394183', 'ctest-vn-65164507'], 'port_security_enabled': True, 'description': ''}}
2026-06-19 11:01:22,205 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d4354be-1a72-4fa8-8ac8-60578e71635d', 'name': '', 'tenant_id': 'f270e4c9387d41889bc69897a3017cda', 'network_id': 'f5852f46-59e3-44a7-bdba-3f1bf2b49ad4', 'ip_version': 4, 'cidr': '111.148.80.64/26', 'allocation_pools': [{'start': '111.148.80.66', 'end': '111.148.80.126'}], 'gateway_ip': '111.148.80.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.148.80.66', 'tags': [], 'project_id': 'f270e4c9387d41889bc69897a3017cda'}}
2026-06-19 11:01:22,226 - INFO - Created VN ctest-vn-65164507
2026-06-19 11:01:22,279 - DEBUG - VN ctest-vn-65164507 UUID is f5852f46-59e3-44a7-bdba-3f1bf2b49ad4
2026-06-19 11:01:22,569 - DEBUG - Response for create_network : {'network': {'id': 'faeb0de7-b6fb-482f-bbca-bfd83e06a4ba', 'name': 'ctest-vn-98510823', 'tenant_id': 'f270e4c9387d41889bc69897a3017cda', 'project_id': 'f270e4c9387d41889bc69897a3017cda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43394183', 'ctest-vn-98510823'], 'port_security_enabled': True, 'description': ''}}
2026-06-19 11:01:22,716 - DEBUG - Response for create_subnet : {'subnet': {'id': '41c20561-5569-4836-9545-0287d01658ad', 'name': '', 'tenant_id': 'f270e4c9387d41889bc69897a3017cda', 'network_id': 'faeb0de7-b6fb-482f-bbca-bfd83e06a4ba', 'ip_version': 4, 'cidr': '59.73.17.128/26', 'allocation_pools': [{'start': '59.73.17.130', 'end': '59.73.17.190'}], 'gateway_ip': '59.73.17.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.73.17.130', 'tags': [], 'project_id': 'f270e4c9387d41889bc69897a3017cda'}}
2026-06-19 11:01:22,734 - INFO - Created VN ctest-vn-98510823
2026-06-19 11:01:22,787 - DEBUG - VN ctest-vn-98510823 UUID is faeb0de7-b6fb-482f-bbca-bfd83e06a4ba
2026-06-19 11:01:22,923 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43394183:ctest-vn-65164507, 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-43394183:ctest-vn-98510823, 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-06-19 11:01:23,203 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f5852f46-59e3-44a7-bdba-3f1bf2b49ad4', 'name': 'ctest-vn-65164507', 'tenant_id': 'f270e4c9387d41889bc69897a3017cda', 'project_id': 'f270e4c9387d41889bc69897a3017cda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3d4354be-1a72-4fa8-8ac8-60578e71635d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43394183', 'ctest-vn-65164507'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43394183', 'ctest-policy-allow-all-48372093']], 'subnet_ipam': [{'subnet_cidr': '111.148.80.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-19 11:01:23,438 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'faeb0de7-b6fb-482f-bbca-bfd83e06a4ba', 'name': 'ctest-vn-98510823', 'tenant_id': 'f270e4c9387d41889bc69897a3017cda', 'project_id': 'f270e4c9387d41889bc69897a3017cda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['41c20561-5569-4836-9545-0287d01658ad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43394183', 'ctest-vn-98510823'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43394183', 'ctest-policy-allow-all-48372093']], 'subnet_ipam': [{'subnet_cidr': '59.73.17.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-19 11:01:23,603 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-19 11:01:23,921 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-19 11:01:23,946 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0820a337-8254-4943-9a5e-4f57cebca439
2026-06-19 11:01:23,957 - DEBUG - Requesting: http://10.0.0.38:8082/project/f270e4c9-387d-4188-9bc6-9897a3017cda
2026-06-19 11:01:24,030 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f5852f46-59e3-44a7-bdba-3f1bf2b49ad4
2026-06-19 11:01:24,041 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f5852f46-59e3-44a7-bdba-3f1bf2b49ad4
2026-06-19 11:01:24,049 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0d4fccf1-0ac0-48f2-b2cb-ebce47a53e04
2026-06-19 11:01:24,055 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0d4fccf1-0ac0-48f2-b2cb-ebce47a53e04
2026-06-19 11:01:24,061 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/47628b64-3eb1-4a6a-9200-5b6d8e3f7bfe
2026-06-19 11:01:24,066 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-19 11:01:24,066 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f5852f46-59e3-44a7-bdba-3f1bf2b49ad4
2026-06-19 11:01:24,073 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0d4fccf1-0ac0-48f2-b2cb-ebce47a53e04
2026-06-19 11:01:24,084 - INFO - Verified VN network id 11 for VN f5852f46-59e3-44a7-bdba-3f1bf2b49ad4
2026-06-19 11:01:24,084 - INFO - Verifications in API Server for VN ctest-vn-65164507 passed
2026-06-19 11:01:24,084 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f5852f46-59e3-44a7-bdba-3f1bf2b49ad4
2026-06-19 11:01:24,091 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0d4fccf1-0ac0-48f2-b2cb-ebce47a53e04
2026-06-19 11:01:24,096 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0d4fccf1-0ac0-48f2-b2cb-ebce47a53e04
2026-06-19 11:01:24,102 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/47628b64-3eb1-4a6a-9200-5b6d8e3f7bfe
2026-06-19 11:01:24,110 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43394183:ctest-vn-65164507', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43394183', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17691598690397144231', 'uuid-lslong': '13671309008105151188'}, 'enable': 'true', 'created': '2026-06-19T11:01:22', 'last-modified': '2026-06-19T11:01:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.923249'}
2026-06-19 11:01:24,116 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-19 11:01:24,116 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65164507 passed
2026-06-19 11:01:24,116 - DEBUG - ====Verifying policy data for ctest-vn-65164507 in API_Server ======
2026-06-19 11:01:24,116 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-19 11:01:24,120 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0820a337-8254-4943-9a5e-4f57cebca439
2026-06-19 11:01:24,129 - DEBUG - Requesting: http://10.0.0.38:8082/project/f270e4c9-387d-4188-9bc6-9897a3017cda
2026-06-19 11:01:24,198 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f5852f46-59e3-44a7-bdba-3f1bf2b49ad4
2026-06-19 11:01:24,210 - DEBUG - ==>Verifying data for policy with id: cd245f75-f7ba-42e3-ba4b-65f5a82e3132, fqn: ['default-domain', 'ctest-TestBasicPolicy-43394183', 'ctest-policy-allow-all-48372093']
2026-06-19 11:01:24,210 - INFO - VN ctest-vn-65164507 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-19 11:01:24,210 - DEBUG - Verifying the vn in opserver
2026-06-19 11:01:24,210 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43394183:ctest-vn-65164507 virtual network link through opserver 10.0.0.38
2026-06-19 11:01:24,211 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-19 11:01:24,525 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-19 11:01:24,569 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43394183:ctest-vn-65164507', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43394183:ctest-vn-65164507?flat'}
2026-06-19 11:01:24,569 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43394183:ctest-vn-65164507 is found in opserver
2026-06-19 11:01:24,577 - DEBUG - Do not have enough data to verify VN in agent
2026-06-19 11:01:24,581 - DEBUG - VRF ids for VN ctest-vn-65164507: {}
2026-06-19 11:01:24,581 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-19 11:01:24,586 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0820a337-8254-4943-9a5e-4f57cebca439
2026-06-19 11:01:24,597 - DEBUG - Requesting: http://10.0.0.38:8082/project/f270e4c9-387d-4188-9bc6-9897a3017cda
2026-06-19 11:01:24,661 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/faeb0de7-b6fb-482f-bbca-bfd83e06a4ba
2026-06-19 11:01:24,670 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/faeb0de7-b6fb-482f-bbca-bfd83e06a4ba
2026-06-19 11:01:24,678 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d9a57a74-35fb-4ae0-b3a3-ddc9ae363d54
2026-06-19 11:01:24,684 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d9a57a74-35fb-4ae0-b3a3-ddc9ae363d54
2026-06-19 11:01:24,691 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/057827fd-731b-4946-bdb7-d592b3f46337
2026-06-19 11:01:24,697 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-19 11:01:24,697 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/faeb0de7-b6fb-482f-bbca-bfd83e06a4ba
2026-06-19 11:01:24,704 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d9a57a74-35fb-4ae0-b3a3-ddc9ae363d54
2026-06-19 11:01:24,718 - INFO - Verified VN network id 12 for VN faeb0de7-b6fb-482f-bbca-bfd83e06a4ba
2026-06-19 11:01:24,718 - INFO - Verifications in API Server for VN ctest-vn-98510823 passed
2026-06-19 11:01:24,718 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/faeb0de7-b6fb-482f-bbca-bfd83e06a4ba
2026-06-19 11:01:24,727 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d9a57a74-35fb-4ae0-b3a3-ddc9ae363d54
2026-06-19 11:01:24,734 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d9a57a74-35fb-4ae0-b3a3-ddc9ae363d54
2026-06-19 11:01:24,740 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/057827fd-731b-4946-bdb7-d592b3f46337
2026-06-19 11:01:24,750 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43394183:ctest-vn-98510823', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43394183', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18080560417867515951', 'uuid-lslong': '13531838965862540474'}, 'enable': 'true', 'created': '2026-06-19T11:01:22', 'last-modified': '2026-06-19T11:01:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.333327'}
2026-06-19 11:01:24,755 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-19 11:01:24,755 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98510823 passed
2026-06-19 11:01:24,755 - DEBUG - ====Verifying policy data for ctest-vn-98510823 in API_Server ======
2026-06-19 11:01:24,755 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-19 11:01:24,761 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0820a337-8254-4943-9a5e-4f57cebca439
2026-06-19 11:01:24,770 - DEBUG - Requesting: http://10.0.0.38:8082/project/f270e4c9-387d-4188-9bc6-9897a3017cda
2026-06-19 11:01:24,839 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/faeb0de7-b6fb-482f-bbca-bfd83e06a4ba
2026-06-19 11:01:24,846 - DEBUG - ==>Verifying data for policy with id: cd245f75-f7ba-42e3-ba4b-65f5a82e3132, fqn: ['default-domain', 'ctest-TestBasicPolicy-43394183', 'ctest-policy-allow-all-48372093']
2026-06-19 11:01:24,846 - INFO - VN ctest-vn-98510823 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-19 11:01:24,846 - DEBUG - Verifying the vn in opserver
2026-06-19 11:01:24,846 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43394183:ctest-vn-98510823 virtual network link through opserver 10.0.0.38
2026-06-19 11:01:24,847 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-19 11:01:24,854 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43394183:ctest-vn-98510823', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43394183:ctest-vn-98510823?flat'}
2026-06-19 11:01:24,854 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43394183:ctest-vn-98510823 is found in opserver
2026-06-19 11:01:24,862 - DEBUG - Do not have enough data to verify VN in agent
2026-06-19 11:01:24,866 - DEBUG - VRF ids for VN ctest-vn-98510823: {}
2026-06-19 11:01:24,912 - DEBUG - Services list from nova: [