2026-04-25 21:46:50,307 - INFO - Domain Default found not creating
2026-04-25 21:46:50,487 - INFO - Project ctest-TestBasicPolicy-39198586 not found, creating it
2026-04-25 21:46:50,962 - INFO - Created Project:ctest-TestBasicPolicy-39198586, ID : 0f404e3e-03c4-4d23-828f-812821aeec39
2026-04-25 21:46:52,473 - INFO - ================================================================================
2026-04-25 21:46:52,473 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-25 21:46:52,473 - 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-25 21:46:52,728 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-04-25 21:46:52,728 - INFO - Initial checks done. Running the testcase now
2026-04-25 21:46:52,728 - INFO -
2026-04-25 21:46:53,309 - DEBUG - Response for create_network : {'network': {'id': '553f4b85-7ce3-4a25-a249-a5b81c41fa9e', 'name': 'ctest-vn-54918998', 'tenant_id': '0f404e3e03c44d23828f812821aeec39', 'project_id': '0f404e3e03c44d23828f812821aeec39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39198586', 'ctest-vn-54918998'], 'port_security_enabled': True, 'description': ''}}
2026-04-25 21:46:53,509 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd9c0d70e-1266-450c-8cb2-dd3c2906e8e1', 'name': '', 'tenant_id': '0f404e3e03c44d23828f812821aeec39', 'network_id': '553f4b85-7ce3-4a25-a249-a5b81c41fa9e', 'ip_version': 4, 'cidr': '84.255.19.192/26', 'allocation_pools': [{'start': '84.255.19.194', 'end': '84.255.19.254'}], 'gateway_ip': '84.255.19.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.255.19.194', 'tags': [], 'project_id': '0f404e3e03c44d23828f812821aeec39'}}
2026-04-25 21:46:53,532 - INFO - Created VN ctest-vn-54918998
2026-04-25 21:46:53,584 - DEBUG - VN ctest-vn-54918998 UUID is 553f4b85-7ce3-4a25-a249-a5b81c41fa9e
2026-04-25 21:46:53,895 - DEBUG - Response for create_network : {'network': {'id': '829162d7-75f1-4d07-86b8-7a325d39fa05', 'name': 'ctest-vn-56126207', 'tenant_id': '0f404e3e03c44d23828f812821aeec39', 'project_id': '0f404e3e03c44d23828f812821aeec39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39198586', 'ctest-vn-56126207'], 'port_security_enabled': True, 'description': ''}}
2026-04-25 21:46:54,040 - DEBUG - Response for create_subnet : {'subnet': {'id': '1a8a3ae0-532c-4f3a-a4e6-56bdd45f4190', 'name': '', 'tenant_id': '0f404e3e03c44d23828f812821aeec39', 'network_id': '829162d7-75f1-4d07-86b8-7a325d39fa05', 'ip_version': 4, 'cidr': '11.183.106.192/26', 'allocation_pools': [{'start': '11.183.106.194', 'end': '11.183.106.254'}], 'gateway_ip': '11.183.106.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.183.106.194', 'tags': [], 'project_id': '0f404e3e03c44d23828f812821aeec39'}}
2026-04-25 21:46:54,058 - INFO - Created VN ctest-vn-56126207
2026-04-25 21:46:54,108 - DEBUG - VN ctest-vn-56126207 UUID is 829162d7-75f1-4d07-86b8-7a325d39fa05
2026-04-25 21:46:54,229 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39198586:ctest-vn-54918998, 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-39198586:ctest-vn-56126207, 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-25 21:46:54,522 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '553f4b85-7ce3-4a25-a249-a5b81c41fa9e', 'name': 'ctest-vn-54918998', 'tenant_id': '0f404e3e03c44d23828f812821aeec39', 'project_id': '0f404e3e03c44d23828f812821aeec39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d9c0d70e-1266-450c-8cb2-dd3c2906e8e1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39198586', 'ctest-vn-54918998'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39198586', 'ctest-policy-allow-all-29096317']], 'subnet_ipam': [{'subnet_cidr': '84.255.19.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-25 21:46:54,760 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '829162d7-75f1-4d07-86b8-7a325d39fa05', 'name': 'ctest-vn-56126207', 'tenant_id': '0f404e3e03c44d23828f812821aeec39', 'project_id': '0f404e3e03c44d23828f812821aeec39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1a8a3ae0-532c-4f3a-a4e6-56bdd45f4190'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39198586', 'ctest-vn-56126207'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39198586', 'ctest-policy-allow-all-29096317']], 'subnet_ipam': [{'subnet_cidr': '11.183.106.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-25 21:46:54,932 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-25 21:46:55,228 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-25 21:46:55,264 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c006664f-c0c0-4f0d-a597-06af468ee77c
2026-04-25 21:46:55,275 - DEBUG - Requesting: http://10.0.0.50:8082/project/0f404e3e-03c4-4d23-828f-812821aeec39
2026-04-25 21:46:55,344 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/553f4b85-7ce3-4a25-a249-a5b81c41fa9e
2026-04-25 21:46:55,357 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/553f4b85-7ce3-4a25-a249-a5b81c41fa9e
2026-04-25 21:46:55,367 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/495fa1ae-24ff-4426-a665-57f8c8e94729
2026-04-25 21:46:55,376 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/495fa1ae-24ff-4426-a665-57f8c8e94729
2026-04-25 21:46:55,384 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/812d2339-1c11-4a6c-bf1d-1a0ab085fea0
2026-04-25 21:46:55,390 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-25 21:46:55,391 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/553f4b85-7ce3-4a25-a249-a5b81c41fa9e
2026-04-25 21:46:55,399 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/495fa1ae-24ff-4426-a665-57f8c8e94729
2026-04-25 21:46:55,412 - INFO - Verified VN network id 11 for VN 553f4b85-7ce3-4a25-a249-a5b81c41fa9e
2026-04-25 21:46:55,412 - INFO - Verifications in API Server for VN ctest-vn-54918998 passed
2026-04-25 21:46:55,412 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/553f4b85-7ce3-4a25-a249-a5b81c41fa9e
2026-04-25 21:46:55,421 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/495fa1ae-24ff-4426-a665-57f8c8e94729
2026-04-25 21:46:55,430 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/495fa1ae-24ff-4426-a665-57f8c8e94729
2026-04-25 21:46:55,441 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/812d2339-1c11-4a6c-bf1d-1a0ab085fea0
2026-04-25 21:46:55,451 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39198586:ctest-vn-54918998', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39198586', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6142711453454649893', 'uuid-lslong': '11694060117610855070'}, 'enable': 'true', 'created': '2026-04-25T21:46:53', 'last-modified': '2026-04-25T21:46:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.952807'}
2026-04-25 21:46:55,457 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-25 21:46:55,457 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54918998 passed
2026-04-25 21:46:55,458 - DEBUG - ====Verifying policy data for ctest-vn-54918998 in API_Server ======
2026-04-25 21:46:55,458 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-25 21:46:55,463 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c006664f-c0c0-4f0d-a597-06af468ee77c
2026-04-25 21:46:55,473 - DEBUG - Requesting: http://10.0.0.50:8082/project/0f404e3e-03c4-4d23-828f-812821aeec39
2026-04-25 21:46:55,542 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/553f4b85-7ce3-4a25-a249-a5b81c41fa9e
2026-04-25 21:46:55,550 - DEBUG - ==>Verifying data for policy with id: dd73424d-eeab-45b9-94c8-a60cddc23d34, fqn: ['default-domain', 'ctest-TestBasicPolicy-39198586', 'ctest-policy-allow-all-29096317']
2026-04-25 21:46:55,550 - INFO - VN ctest-vn-54918998 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-25 21:46:55,550 - DEBUG - Verifying the vn in opserver
2026-04-25 21:46:55,550 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39198586:ctest-vn-54918998 virtual network link through opserver 10.0.0.50
2026-04-25 21:46:55,550 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-25 21:46:55,844 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-25 21:46:55,904 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39198586:ctest-vn-54918998', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39198586:ctest-vn-54918998?flat'}
2026-04-25 21:46:55,904 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39198586:ctest-vn-54918998 is found in opserver
2026-04-25 21:46:55,915 - DEBUG - Do not have enough data to verify VN in agent
2026-04-25 21:46:55,921 - DEBUG - VRF ids for VN ctest-vn-54918998: {}
2026-04-25 21:46:55,921 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-25 21:46:55,926 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c006664f-c0c0-4f0d-a597-06af468ee77c
2026-04-25 21:46:55,940 - DEBUG - Requesting: http://10.0.0.50:8082/project/0f404e3e-03c4-4d23-828f-812821aeec39
2026-04-25 21:46:56,011 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/829162d7-75f1-4d07-86b8-7a325d39fa05
2026-04-25 21:46:56,021 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/829162d7-75f1-4d07-86b8-7a325d39fa05
2026-04-25 21:46:56,029 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b2f902b9-b440-4582-92ee-9a3a7b936158
2026-04-25 21:46:56,036 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b2f902b9-b440-4582-92ee-9a3a7b936158
2026-04-25 21:46:56,042 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4511e6fb-5b0d-41c1-8823-db9e2846da01
2026-04-25 21:46:56,047 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-25 21:46:56,047 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/829162d7-75f1-4d07-86b8-7a325d39fa05
2026-04-25 21:46:56,055 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b2f902b9-b440-4582-92ee-9a3a7b936158
2026-04-25 21:46:56,067 - INFO - Verified VN network id 12 for VN 829162d7-75f1-4d07-86b8-7a325d39fa05
2026-04-25 21:46:56,067 - INFO - Verifications in API Server for VN ctest-vn-56126207 passed
2026-04-25 21:46:56,067 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/829162d7-75f1-4d07-86b8-7a325d39fa05
2026-04-25 21:46:56,075 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b2f902b9-b440-4582-92ee-9a3a7b936158
2026-04-25 21:46:56,081 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b2f902b9-b440-4582-92ee-9a3a7b936158
2026-04-25 21:46:56,087 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4511e6fb-5b0d-41c1-8823-db9e2846da01
2026-04-25 21:46:56,098 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39198586:ctest-vn-56126207', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39198586', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9408409774089915655', 'uuid-lslong': '9707643353528138245'}, 'enable': 'true', 'created': '2026-04-25T21:46:53', 'last-modified': '2026-04-25T21:46:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.358456'}
2026-04-25 21:46:56,104 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-25 21:46:56,104 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56126207 passed
2026-04-25 21:46:56,104 - DEBUG - ====Verifying policy data for ctest-vn-56126207 in API_Server ======
2026-04-25 21:46:56,104 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-25 21:46:56,108 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c006664f-c0c0-4f0d-a597-06af468ee77c
2026-04-25 21:46:56,118 - DEBUG - Requesting: http://10.0.0.50:8082/project/0f404e3e-03c4-4d23-828f-812821aeec39
2026-04-25 21:46:56,189 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/829162d7-75f1-4d07-86b8-7a325d39fa05
2026-04-25 21:46:56,199 - DEBUG - ==>Verifying data for policy with id: dd73424d-eeab-45b9-94c8-a60cddc23d34, fqn: ['default-domain', 'ctest-TestBasicPolicy-39198586', 'ctest-policy-allow-all-29096317']
2026-04-25 21:46:56,199 - INFO - VN ctest-vn-56126207 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-25 21:46:56,199 - DEBUG - Verifying the vn in opserver
2026-04-25 21:46:56,199 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39198586:ctest-vn-56126207 virtual network link through opserver 10.0.0.50
2026-04-25 21:46:56,199 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-25 21:46:56,209 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39198586:ctest-vn-56126207', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39198586:ctest-vn-56126207?flat'}
2026-04-25 21:46:56,209 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39198586:ctest-vn-56126207 is found in opserver
2026-04-25 21:46:56,218 - DEBUG - Do not have enough data to verify VN in agent
2026-04-25 21:46:56,223 - DEBUG - VRF ids for VN ctest-vn-56126207: {}
2026-04-25 21:46:56,279 - DEBUG - Services list from nova: [