2026-01-14 15:09:50,737 - INFO - Domain Default found not creating
2026-01-14 15:09:50,893 - INFO - Project ctest-TestBasicPolicy-58339885 not found, creating it
2026-01-14 15:09:51,351 - INFO - Created Project:ctest-TestBasicPolicy-58339885, ID : 1d0dede3-67c1-47a0-98ff-e57f43c80197
2026-01-14 15:09:52,791 - INFO - ================================================================================
2026-01-14 15:09:52,791 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-14 15:09:52,791 - 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-01-14 15:09:53,048 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2026-01-14 15:09:53,048 - INFO - Initial checks done. Running the testcase now
2026-01-14 15:09:53,048 - INFO -
2026-01-14 15:09:53,615 - DEBUG - Response for create_network : {'network': {'id': '35185c47-77fd-4b1c-a80c-95422f27b5b8', 'name': 'ctest-vn-54024428', 'tenant_id': '1d0dede367c147a098ffe57f43c80197', 'project_id': '1d0dede367c147a098ffe57f43c80197', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58339885', 'ctest-vn-54024428'], 'port_security_enabled': True, 'description': ''}}
2026-01-14 15:09:53,838 - DEBUG - Response for create_subnet : {'subnet': {'id': '03f2c978-5abf-45d6-908b-a9171bc15638', 'name': '', 'tenant_id': '1d0dede367c147a098ffe57f43c80197', 'network_id': '35185c47-77fd-4b1c-a80c-95422f27b5b8', 'ip_version': 4, 'cidr': '59.132.207.128/26', 'allocation_pools': [{'start': '59.132.207.130', 'end': '59.132.207.190'}], 'gateway_ip': '59.132.207.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.132.207.130', 'tags': [], 'project_id': '1d0dede367c147a098ffe57f43c80197'}}
2026-01-14 15:09:53,856 - INFO - Created VN ctest-vn-54024428
2026-01-14 15:09:53,910 - DEBUG - VN ctest-vn-54024428 UUID is 35185c47-77fd-4b1c-a80c-95422f27b5b8
2026-01-14 15:09:54,204 - DEBUG - Response for create_network : {'network': {'id': '32662b8d-3dee-4942-bc57-5a58a8803522', 'name': 'ctest-vn-84851931', 'tenant_id': '1d0dede367c147a098ffe57f43c80197', 'project_id': '1d0dede367c147a098ffe57f43c80197', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58339885', 'ctest-vn-84851931'], 'port_security_enabled': True, 'description': ''}}
2026-01-14 15:09:54,375 - DEBUG - Response for create_subnet : {'subnet': {'id': '8df32cca-12cc-44de-8af3-826ea003dc55', 'name': '', 'tenant_id': '1d0dede367c147a098ffe57f43c80197', 'network_id': '32662b8d-3dee-4942-bc57-5a58a8803522', 'ip_version': 4, 'cidr': '131.76.253.64/26', 'allocation_pools': [{'start': '131.76.253.66', 'end': '131.76.253.126'}], 'gateway_ip': '131.76.253.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.76.253.66', 'tags': [], 'project_id': '1d0dede367c147a098ffe57f43c80197'}}
2026-01-14 15:09:54,394 - INFO - Created VN ctest-vn-84851931
2026-01-14 15:09:54,450 - DEBUG - VN ctest-vn-84851931 UUID is 32662b8d-3dee-4942-bc57-5a58a8803522
2026-01-14 15:09:54,562 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58339885:ctest-vn-54024428, 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-58339885:ctest-vn-84851931, 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-01-14 15:09:54,858 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '35185c47-77fd-4b1c-a80c-95422f27b5b8', 'name': 'ctest-vn-54024428', 'tenant_id': '1d0dede367c147a098ffe57f43c80197', 'project_id': '1d0dede367c147a098ffe57f43c80197', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['03f2c978-5abf-45d6-908b-a9171bc15638'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58339885', 'ctest-vn-54024428'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58339885', 'ctest-policy-allow-all-52176502']], 'subnet_ipam': [{'subnet_cidr': '59.132.207.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-14 15:09:55,094 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32662b8d-3dee-4942-bc57-5a58a8803522', 'name': 'ctest-vn-84851931', 'tenant_id': '1d0dede367c147a098ffe57f43c80197', 'project_id': '1d0dede367c147a098ffe57f43c80197', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8df32cca-12cc-44de-8af3-826ea003dc55'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58339885', 'ctest-vn-84851931'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58339885', 'ctest-policy-allow-all-52176502']], 'subnet_ipam': [{'subnet_cidr': '131.76.253.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-14 15:09:55,278 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-14 15:09:55,592 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-14 15:09:55,630 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9e699d8c-7608-478f-a478-1567fee9dc54
2026-01-14 15:09:55,644 - DEBUG - Requesting: http://10.0.0.22:8082/project/1d0dede3-67c1-47a0-98ff-e57f43c80197
2026-01-14 15:09:55,720 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/35185c47-77fd-4b1c-a80c-95422f27b5b8
2026-01-14 15:09:55,733 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/35185c47-77fd-4b1c-a80c-95422f27b5b8
2026-01-14 15:09:55,742 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3730f2cb-72e9-4a81-80db-7de9ee2e999e
2026-01-14 15:09:55,750 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3730f2cb-72e9-4a81-80db-7de9ee2e999e
2026-01-14 15:09:55,758 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/341d5705-21b4-4272-b22d-b9a83ff46b10
2026-01-14 15:09:55,764 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-14 15:09:55,764 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/35185c47-77fd-4b1c-a80c-95422f27b5b8
2026-01-14 15:09:55,773 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3730f2cb-72e9-4a81-80db-7de9ee2e999e
2026-01-14 15:09:55,786 - INFO - Verified VN network id 11 for VN 35185c47-77fd-4b1c-a80c-95422f27b5b8
2026-01-14 15:09:55,786 - INFO - Verifications in API Server for VN ctest-vn-54024428 passed
2026-01-14 15:09:55,786 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/35185c47-77fd-4b1c-a80c-95422f27b5b8
2026-01-14 15:09:55,795 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3730f2cb-72e9-4a81-80db-7de9ee2e999e
2026-01-14 15:09:55,801 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3730f2cb-72e9-4a81-80db-7de9ee2e999e
2026-01-14 15:09:55,808 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/341d5705-21b4-4272-b22d-b9a83ff46b10
2026-01-14 15:09:55,820 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58339885:ctest-vn-54024428', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58339885', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3825909345476758300', 'uuid-lslong': '12109217609583932856'}, 'enable': 'true', 'created': '2026-01-14T15:09:53', 'last-modified': '2026-01-14T15:09:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.981066'}
2026-01-14 15:09:55,825 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-14 15:09:55,825 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54024428 passed
2026-01-14 15:09:55,826 - DEBUG - ====Verifying policy data for ctest-vn-54024428 in API_Server ======
2026-01-14 15:09:55,826 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-14 15:09:55,831 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9e699d8c-7608-478f-a478-1567fee9dc54
2026-01-14 15:09:55,844 - DEBUG - Requesting: http://10.0.0.22:8082/project/1d0dede3-67c1-47a0-98ff-e57f43c80197
2026-01-14 15:09:55,915 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/35185c47-77fd-4b1c-a80c-95422f27b5b8
2026-01-14 15:09:55,925 - DEBUG - ==>Verifying data for policy with id: fa820609-a23b-4125-a89e-3203976ac7e6, fqn: ['default-domain', 'ctest-TestBasicPolicy-58339885', 'ctest-policy-allow-all-52176502']
2026-01-14 15:09:55,925 - INFO - VN ctest-vn-54024428 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-14 15:09:55,925 - DEBUG - Verifying the vn in opserver
2026-01-14 15:09:55,925 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58339885:ctest-vn-54024428 virtual network link through opserver 10.0.0.22
2026-01-14 15:09:55,925 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-14 15:09:56,225 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-14 15:09:56,287 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58339885:ctest-vn-54024428', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58339885:ctest-vn-54024428?flat'}
2026-01-14 15:09:56,287 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58339885:ctest-vn-54024428 is found in opserver
2026-01-14 15:09:56,296 - DEBUG - Do not have enough data to verify VN in agent
2026-01-14 15:09:56,300 - DEBUG - VRF ids for VN ctest-vn-54024428: {}
2026-01-14 15:09:56,300 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-14 15:09:56,305 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9e699d8c-7608-478f-a478-1567fee9dc54
2026-01-14 15:09:56,316 - DEBUG - Requesting: http://10.0.0.22:8082/project/1d0dede3-67c1-47a0-98ff-e57f43c80197
2026-01-14 15:09:56,399 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/32662b8d-3dee-4942-bc57-5a58a8803522
2026-01-14 15:09:56,411 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/32662b8d-3dee-4942-bc57-5a58a8803522
2026-01-14 15:09:56,420 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6cd90249-883a-4810-a187-a06081eebab8
2026-01-14 15:09:56,427 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6cd90249-883a-4810-a187-a06081eebab8
2026-01-14 15:09:56,434 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/da4ac380-1789-4772-a6ea-4199ec18ff60
2026-01-14 15:09:56,442 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-14 15:09:56,442 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/32662b8d-3dee-4942-bc57-5a58a8803522
2026-01-14 15:09:56,451 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6cd90249-883a-4810-a187-a06081eebab8
2026-01-14 15:09:56,466 - INFO - Verified VN network id 12 for VN 32662b8d-3dee-4942-bc57-5a58a8803522
2026-01-14 15:09:56,466 - INFO - Verifications in API Server for VN ctest-vn-84851931 passed
2026-01-14 15:09:56,466 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/32662b8d-3dee-4942-bc57-5a58a8803522
2026-01-14 15:09:56,476 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6cd90249-883a-4810-a187-a06081eebab8
2026-01-14 15:09:56,482 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6cd90249-883a-4810-a187-a06081eebab8
2026-01-14 15:09:56,490 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/da4ac380-1789-4772-a6ea-4199ec18ff60
2026-01-14 15:09:56,502 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58339885:ctest-vn-84851931', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58339885', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3631638035150293314', 'uuid-lslong': '13571415338934875426'}, 'enable': 'true', 'created': '2026-01-14T15:09:54', 'last-modified': '2026-01-14T15:09:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.436668'}
2026-01-14 15:09:56,508 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-14 15:09:56,508 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84851931 passed
2026-01-14 15:09:56,508 - DEBUG - ====Verifying policy data for ctest-vn-84851931 in API_Server ======
2026-01-14 15:09:56,508 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-14 15:09:56,514 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9e699d8c-7608-478f-a478-1567fee9dc54
2026-01-14 15:09:56,524 - DEBUG - Requesting: http://10.0.0.22:8082/project/1d0dede3-67c1-47a0-98ff-e57f43c80197
2026-01-14 15:09:56,598 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/32662b8d-3dee-4942-bc57-5a58a8803522
2026-01-14 15:09:56,609 - DEBUG - ==>Verifying data for policy with id: fa820609-a23b-4125-a89e-3203976ac7e6, fqn: ['default-domain', 'ctest-TestBasicPolicy-58339885', 'ctest-policy-allow-all-52176502']
2026-01-14 15:09:56,609 - INFO - VN ctest-vn-84851931 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-14 15:09:56,609 - DEBUG - Verifying the vn in opserver
2026-01-14 15:09:56,609 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58339885:ctest-vn-84851931 virtual network link through opserver 10.0.0.22
2026-01-14 15:09:56,609 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-14 15:09:56,620 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58339885:ctest-vn-84851931', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58339885:ctest-vn-84851931?flat'}
2026-01-14 15:09:56,620 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58339885:ctest-vn-84851931 is found in opserver
2026-01-14 15:09:56,629 - DEBUG - Do not have enough data to verify VN in agent
2026-01-14 15:09:56,633 - DEBUG - VRF ids for VN ctest-vn-84851931: {}
2026-01-14 15:09:56,690 - DEBUG - Services list from nova: [