2026-02-24 15:40:47,206 - INFO - Domain Default found not creating
2026-02-24 15:40:47,405 - INFO - Project ctest-TestBasicPolicy-30270723 not found, creating it
2026-02-24 15:40:47,893 - INFO - Created Project:ctest-TestBasicPolicy-30270723, ID : 3356f833-4fd7-40b0-93a8-19e451cb4279
2026-02-24 15:40:49,431 - INFO - ================================================================================
2026-02-24 15:40:49,432 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-24 15:40:49,432 - 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-02-24 15:40:49,690 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-02-24 15:40:49,690 - INFO - Initial checks done. Running the testcase now
2026-02-24 15:40:49,690 - INFO -
2026-02-24 15:40:50,567 - DEBUG - Response for create_network : {'network': {'id': 'ff2c83c8-93c5-4892-bb87-1e5a2c651630', 'name': 'ctest-vn-68032117', 'tenant_id': '3356f8334fd740b093a819e451cb4279', 'project_id': '3356f8334fd740b093a819e451cb4279', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30270723', 'ctest-vn-68032117'], 'port_security_enabled': True, 'description': ''}}
2026-02-24 15:40:50,787 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c1144e6-2523-4271-9ccc-edac34e11684', 'name': '', 'tenant_id': '3356f8334fd740b093a819e451cb4279', 'network_id': 'ff2c83c8-93c5-4892-bb87-1e5a2c651630', 'ip_version': 4, 'cidr': '190.126.236.0/26', 'allocation_pools': [{'start': '190.126.236.2', 'end': '190.126.236.62'}], 'gateway_ip': '190.126.236.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.126.236.2', 'tags': [], 'project_id': '3356f8334fd740b093a819e451cb4279'}}
2026-02-24 15:40:50,809 - INFO - Created VN ctest-vn-68032117
2026-02-24 15:40:50,868 - DEBUG - VN ctest-vn-68032117 UUID is ff2c83c8-93c5-4892-bb87-1e5a2c651630
2026-02-24 15:40:51,196 - DEBUG - Response for create_network : {'network': {'id': '0ddf4530-653c-462f-8ad8-fa8b70ba6f7e', 'name': 'ctest-vn-46663468', 'tenant_id': '3356f8334fd740b093a819e451cb4279', 'project_id': '3356f8334fd740b093a819e451cb4279', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30270723', 'ctest-vn-46663468'], 'port_security_enabled': True, 'description': ''}}
2026-02-24 15:40:51,361 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe270f53-210f-4613-a0d8-f64494a68abe', 'name': '', 'tenant_id': '3356f8334fd740b093a819e451cb4279', 'network_id': '0ddf4530-653c-462f-8ad8-fa8b70ba6f7e', 'ip_version': 4, 'cidr': '189.49.20.0/26', 'allocation_pools': [{'start': '189.49.20.2', 'end': '189.49.20.62'}], 'gateway_ip': '189.49.20.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.49.20.2', 'tags': [], 'project_id': '3356f8334fd740b093a819e451cb4279'}}
2026-02-24 15:40:51,380 - INFO - Created VN ctest-vn-46663468
2026-02-24 15:40:51,436 - DEBUG - VN ctest-vn-46663468 UUID is 0ddf4530-653c-462f-8ad8-fa8b70ba6f7e
2026-02-24 15:40:51,557 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30270723:ctest-vn-68032117, 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-30270723:ctest-vn-46663468, 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-02-24 15:40:51,868 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ff2c83c8-93c5-4892-bb87-1e5a2c651630', 'name': 'ctest-vn-68032117', 'tenant_id': '3356f8334fd740b093a819e451cb4279', 'project_id': '3356f8334fd740b093a819e451cb4279', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c1144e6-2523-4271-9ccc-edac34e11684'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30270723', 'ctest-vn-68032117'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30270723', 'ctest-policy-allow-all-92515954']], 'subnet_ipam': [{'subnet_cidr': '190.126.236.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-24 15:40:52,119 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0ddf4530-653c-462f-8ad8-fa8b70ba6f7e', 'name': 'ctest-vn-46663468', 'tenant_id': '3356f8334fd740b093a819e451cb4279', 'project_id': '3356f8334fd740b093a819e451cb4279', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fe270f53-210f-4613-a0d8-f64494a68abe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30270723', 'ctest-vn-46663468'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30270723', 'ctest-policy-allow-all-92515954']], 'subnet_ipam': [{'subnet_cidr': '189.49.20.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-24 15:40:52,288 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-24 15:40:52,592 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-24 15:40:52,626 - DEBUG - Requesting: http://10.0.0.38:8082/domain/199b6b8f-63b3-4724-98ce-439ce0ccb072
2026-02-24 15:40:52,639 - DEBUG - Requesting: http://10.0.0.38:8082/project/3356f833-4fd7-40b0-93a8-19e451cb4279
2026-02-24 15:40:52,716 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff2c83c8-93c5-4892-bb87-1e5a2c651630
2026-02-24 15:40:52,729 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff2c83c8-93c5-4892-bb87-1e5a2c651630
2026-02-24 15:40:52,740 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e80622c9-c5fe-483c-a369-b906423f2f00
2026-02-24 15:40:52,748 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e80622c9-c5fe-483c-a369-b906423f2f00
2026-02-24 15:40:52,755 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c3a7c737-9afe-49ba-8046-fc52096effe6
2026-02-24 15:40:52,761 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-24 15:40:52,761 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff2c83c8-93c5-4892-bb87-1e5a2c651630
2026-02-24 15:40:52,775 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e80622c9-c5fe-483c-a369-b906423f2f00
2026-02-24 15:40:52,791 - INFO - Verified VN network id 11 for VN ff2c83c8-93c5-4892-bb87-1e5a2c651630
2026-02-24 15:40:52,792 - INFO - Verifications in API Server for VN ctest-vn-68032117 passed
2026-02-24 15:40:52,792 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff2c83c8-93c5-4892-bb87-1e5a2c651630
2026-02-24 15:40:52,802 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e80622c9-c5fe-483c-a369-b906423f2f00
2026-02-24 15:40:52,810 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e80622c9-c5fe-483c-a369-b906423f2f00
2026-02-24 15:40:52,819 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c3a7c737-9afe-49ba-8046-fc52096effe6
2026-02-24 15:40:52,831 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30270723:ctest-vn-68032117', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30270723', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18387216276142770322', 'uuid-lslong': '13512802579589174832'}, 'enable': 'true', 'created': '2026-02-24T15:40:50', 'last-modified': '2026-02-24T15:40:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.987599'}
2026-02-24 15:40:52,839 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-24 15:40:52,839 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68032117 passed
2026-02-24 15:40:52,839 - DEBUG - ====Verifying policy data for ctest-vn-68032117 in API_Server ======
2026-02-24 15:40:52,839 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-24 15:40:52,846 - DEBUG - Requesting: http://10.0.0.38:8082/domain/199b6b8f-63b3-4724-98ce-439ce0ccb072
2026-02-24 15:40:52,858 - DEBUG - Requesting: http://10.0.0.38:8082/project/3356f833-4fd7-40b0-93a8-19e451cb4279
2026-02-24 15:40:52,932 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff2c83c8-93c5-4892-bb87-1e5a2c651630
2026-02-24 15:40:52,943 - DEBUG - ==>Verifying data for policy with id: 256dde5e-a78a-4563-8220-9ce97e1e460e, fqn: ['default-domain', 'ctest-TestBasicPolicy-30270723', 'ctest-policy-allow-all-92515954']
2026-02-24 15:40:52,943 - INFO - VN ctest-vn-68032117 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-24 15:40:52,943 - DEBUG - Verifying the vn in opserver
2026-02-24 15:40:52,943 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30270723:ctest-vn-68032117 virtual network link through opserver 10.0.0.38
2026-02-24 15:40:52,944 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-24 15:40:53,245 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-24 15:40:53,313 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30270723:ctest-vn-68032117', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30270723:ctest-vn-68032117?flat'}
2026-02-24 15:40:53,313 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30270723:ctest-vn-68032117 is found in opserver
2026-02-24 15:40:53,323 - DEBUG - Do not have enough data to verify VN in agent
2026-02-24 15:40:53,328 - DEBUG - VRF ids for VN ctest-vn-68032117: {}
2026-02-24 15:40:53,328 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-24 15:40:53,333 - DEBUG - Requesting: http://10.0.0.38:8082/domain/199b6b8f-63b3-4724-98ce-439ce0ccb072
2026-02-24 15:40:53,345 - DEBUG - Requesting: http://10.0.0.38:8082/project/3356f833-4fd7-40b0-93a8-19e451cb4279
2026-02-24 15:40:53,420 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0ddf4530-653c-462f-8ad8-fa8b70ba6f7e
2026-02-24 15:40:53,431 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0ddf4530-653c-462f-8ad8-fa8b70ba6f7e
2026-02-24 15:40:53,439 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/10b0d16c-5fe2-43aa-a3aa-25f2047f79ab
2026-02-24 15:40:53,447 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/10b0d16c-5fe2-43aa-a3aa-25f2047f79ab
2026-02-24 15:40:53,455 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3edb531b-3e0e-40ae-a630-010e2081e30b
2026-02-24 15:40:53,462 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-24 15:40:53,462 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0ddf4530-653c-462f-8ad8-fa8b70ba6f7e
2026-02-24 15:40:53,472 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/10b0d16c-5fe2-43aa-a3aa-25f2047f79ab
2026-02-24 15:40:53,488 - INFO - Verified VN network id 12 for VN 0ddf4530-653c-462f-8ad8-fa8b70ba6f7e
2026-02-24 15:40:53,488 - INFO - Verifications in API Server for VN ctest-vn-46663468 passed
2026-02-24 15:40:53,488 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0ddf4530-653c-462f-8ad8-fa8b70ba6f7e
2026-02-24 15:40:53,497 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/10b0d16c-5fe2-43aa-a3aa-25f2047f79ab
2026-02-24 15:40:53,505 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/10b0d16c-5fe2-43aa-a3aa-25f2047f79ab
2026-02-24 15:40:53,513 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3edb531b-3e0e-40ae-a630-010e2081e30b
2026-02-24 15:40:53,524 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30270723:ctest-vn-46663468', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30270723', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '999593716458735151', 'uuid-lslong': '10005022049002221438'}, 'enable': 'true', 'created': '2026-02-24T15:40:51', 'last-modified': '2026-02-24T15:40:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.432606'}
2026-02-24 15:40:53,530 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-24 15:40:53,530 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46663468 passed
2026-02-24 15:40:53,530 - DEBUG - ====Verifying policy data for ctest-vn-46663468 in API_Server ======
2026-02-24 15:40:53,530 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-24 15:40:53,536 - DEBUG - Requesting: http://10.0.0.38:8082/domain/199b6b8f-63b3-4724-98ce-439ce0ccb072
2026-02-24 15:40:53,548 - DEBUG - Requesting: http://10.0.0.38:8082/project/3356f833-4fd7-40b0-93a8-19e451cb4279
2026-02-24 15:40:53,619 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0ddf4530-653c-462f-8ad8-fa8b70ba6f7e
2026-02-24 15:40:53,630 - DEBUG - ==>Verifying data for policy with id: 256dde5e-a78a-4563-8220-9ce97e1e460e, fqn: ['default-domain', 'ctest-TestBasicPolicy-30270723', 'ctest-policy-allow-all-92515954']
2026-02-24 15:40:53,630 - INFO - VN ctest-vn-46663468 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-24 15:40:53,630 - DEBUG - Verifying the vn in opserver
2026-02-24 15:40:53,630 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30270723:ctest-vn-46663468 virtual network link through opserver 10.0.0.38
2026-02-24 15:40:53,630 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-24 15:40:53,640 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30270723:ctest-vn-46663468', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30270723:ctest-vn-46663468?flat'}
2026-02-24 15:40:53,640 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30270723:ctest-vn-46663468 is found in opserver
2026-02-24 15:40:53,658 - DEBUG - Do not have enough data to verify VN in agent
2026-02-24 15:40:53,663 - DEBUG - VRF ids for VN ctest-vn-46663468: {}
2026-02-24 15:40:53,726 - DEBUG - Services list from nova: [