2025-11-24 18:35:08,097 - INFO - Domain Default found not creating
2025-11-24 18:35:08,394 - INFO - Project ctest-TestBasicPolicy-28094514 not found, creating it
2025-11-24 18:35:09,029 - INFO - Created Project:ctest-TestBasicPolicy-28094514, ID : f33b807e-2cb6-40bd-8321-81cb754fc34b
2025-11-24 18:35:10,790 - INFO - ================================================================================
2025-11-24 18:35:10,791 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-24 18:35:10,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
2025-11-24 18:35:11,120 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.252': '0'}} with
2025-11-24 18:35:11,121 - INFO - Initial checks done. Running the testcase now
2025-11-24 18:35:11,121 - INFO -
2025-11-24 18:35:11,937 - DEBUG - Response for create_network : {'network': {'id': '5f806a3d-1e3e-42c8-a512-688264cc39f0', 'name': 'ctest-vn-04634291', 'tenant_id': 'f33b807e2cb640bd832181cb754fc34b', 'project_id': 'f33b807e2cb640bd832181cb754fc34b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28094514', 'ctest-vn-04634291'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 18:35:12,123 - DEBUG - Response for create_subnet : {'subnet': {'id': '0ec3603b-95f0-4f14-a413-c147cc6fbff4', 'name': '', 'tenant_id': 'f33b807e2cb640bd832181cb754fc34b', 'network_id': '5f806a3d-1e3e-42c8-a512-688264cc39f0', 'ip_version': 4, 'cidr': '140.250.57.192/26', 'allocation_pools': [{'start': '140.250.57.194', 'end': '140.250.57.254'}], 'gateway_ip': '140.250.57.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.250.57.194', 'tags': [], 'project_id': 'f33b807e2cb640bd832181cb754fc34b'}}
2025-11-24 18:35:12,144 - INFO - Created VN ctest-vn-04634291
2025-11-24 18:35:12,198 - DEBUG - VN ctest-vn-04634291 UUID is 5f806a3d-1e3e-42c8-a512-688264cc39f0
2025-11-24 18:35:12,603 - DEBUG - Response for create_network : {'network': {'id': 'ab2fdbdd-7f30-494a-b361-00c1de2b8d5f', 'name': 'ctest-vn-59297781', 'tenant_id': 'f33b807e2cb640bd832181cb754fc34b', 'project_id': 'f33b807e2cb640bd832181cb754fc34b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28094514', 'ctest-vn-59297781'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 18:35:12,884 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f522dbaf-1548-433e-b5b6-444e8d4ca166', 'name': '', 'tenant_id': 'f33b807e2cb640bd832181cb754fc34b', 'network_id': 'ab2fdbdd-7f30-494a-b361-00c1de2b8d5f', 'ip_version': 4, 'cidr': '23.145.44.0/26', 'allocation_pools': [{'start': '23.145.44.2', 'end': '23.145.44.62'}], 'gateway_ip': '23.145.44.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.145.44.2', 'tags': [], 'project_id': 'f33b807e2cb640bd832181cb754fc34b'}}
2025-11-24 18:35:12,913 - INFO - Created VN ctest-vn-59297781
2025-11-24 18:35:12,982 - DEBUG - VN ctest-vn-59297781 UUID is ab2fdbdd-7f30-494a-b361-00c1de2b8d5f
2025-11-24 18:35:13,130 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28094514:ctest-vn-04634291, 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-28094514:ctest-vn-59297781, 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]
2025-11-24 18:35:13,604 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5f806a3d-1e3e-42c8-a512-688264cc39f0', 'name': 'ctest-vn-04634291', 'tenant_id': 'f33b807e2cb640bd832181cb754fc34b', 'project_id': 'f33b807e2cb640bd832181cb754fc34b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0ec3603b-95f0-4f14-a413-c147cc6fbff4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28094514', 'ctest-vn-04634291'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28094514', 'ctest-policy-allow-all-75802474']], 'subnet_ipam': [{'subnet_cidr': '140.250.57.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 18:35:13,876 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab2fdbdd-7f30-494a-b361-00c1de2b8d5f', 'name': 'ctest-vn-59297781', 'tenant_id': 'f33b807e2cb640bd832181cb754fc34b', 'project_id': 'f33b807e2cb640bd832181cb754fc34b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f522dbaf-1548-433e-b5b6-444e8d4ca166'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28094514', 'ctest-vn-59297781'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28094514', 'ctest-policy-allow-all-75802474']], 'subnet_ipam': [{'subnet_cidr': '23.145.44.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 18:35:14,038 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-24 18:35:14,390 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-24 18:35:14,479 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1ceb41c8-154b-44e5-ac11-f7c3b29646c1
2025-11-24 18:35:14,500 - DEBUG - Requesting: http://10.0.0.38:8082/project/f33b807e-2cb6-40bd-8321-81cb754fc34b
2025-11-24 18:35:14,598 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f806a3d-1e3e-42c8-a512-688264cc39f0
2025-11-24 18:35:14,620 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f806a3d-1e3e-42c8-a512-688264cc39f0
2025-11-24 18:35:14,639 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a97c0e83-0b45-4508-a4f9-d248f5014430
2025-11-24 18:35:14,654 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a97c0e83-0b45-4508-a4f9-d248f5014430
2025-11-24 18:35:14,669 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1ae3fade-1397-4271-9c47-a3aa3f06979b
2025-11-24 18:35:14,681 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 18:35:14,682 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f806a3d-1e3e-42c8-a512-688264cc39f0
2025-11-24 18:35:14,698 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a97c0e83-0b45-4508-a4f9-d248f5014430
2025-11-24 18:35:14,726 - INFO - Verified VN network id 11 for VN 5f806a3d-1e3e-42c8-a512-688264cc39f0
2025-11-24 18:35:14,726 - INFO - Verifications in API Server for VN ctest-vn-04634291 passed
2025-11-24 18:35:14,726 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f806a3d-1e3e-42c8-a512-688264cc39f0
2025-11-24 18:35:14,748 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a97c0e83-0b45-4508-a4f9-d248f5014430
2025-11-24 18:35:14,763 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a97c0e83-0b45-4508-a4f9-d248f5014430
2025-11-24 18:35:14,772 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1ae3fade-1397-4271-9c47-a3aa3f06979b
2025-11-24 18:35:14,793 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28094514:ctest-vn-04634291', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28094514', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6881617041355064008', 'uuid-lslong': '11894684475085044208'}, 'enable': 'true', 'created': '2025-11-24T18:35:11', 'last-modified': '2025-11-24T18:35:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.247417'}
2025-11-24 18:35:14,805 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 18:35:14,805 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04634291 passed
2025-11-24 18:35:14,805 - DEBUG - ====Verifying policy data for ctest-vn-04634291 in API_Server ======
2025-11-24 18:35:14,806 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-24 18:35:14,816 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1ceb41c8-154b-44e5-ac11-f7c3b29646c1
2025-11-24 18:35:14,835 - DEBUG - Requesting: http://10.0.0.38:8082/project/f33b807e-2cb6-40bd-8321-81cb754fc34b
2025-11-24 18:35:14,948 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f806a3d-1e3e-42c8-a512-688264cc39f0
2025-11-24 18:35:14,965 - DEBUG - ==>Verifying data for policy with id: ea3d254e-9fcb-4f0f-acdc-dd6156a516b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-28094514', 'ctest-policy-allow-all-75802474']
2025-11-24 18:35:14,965 - INFO - VN ctest-vn-04634291 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 18:35:14,966 - DEBUG - Verifying the vn in opserver
2025-11-24 18:35:14,966 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28094514:ctest-vn-04634291 virtual network link through opserver 10.0.0.38
2025-11-24 18:35:14,966 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-24 18:35:15,318 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-24 18:35:15,421 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28094514:ctest-vn-04634291', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28094514:ctest-vn-04634291?flat'}
2025-11-24 18:35:15,422 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28094514:ctest-vn-04634291 is found in opserver
2025-11-24 18:35:15,436 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 18:35:15,444 - DEBUG - VRF ids for VN ctest-vn-04634291: {}
2025-11-24 18:35:15,444 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-24 18:35:15,452 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1ceb41c8-154b-44e5-ac11-f7c3b29646c1
2025-11-24 18:35:15,474 - DEBUG - Requesting: http://10.0.0.38:8082/project/f33b807e-2cb6-40bd-8321-81cb754fc34b
2025-11-24 18:35:15,594 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ab2fdbdd-7f30-494a-b361-00c1de2b8d5f
2025-11-24 18:35:15,617 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ab2fdbdd-7f30-494a-b361-00c1de2b8d5f
2025-11-24 18:35:15,636 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a0ed8f56-a165-4ef7-9ed7-bcbbbba00519
2025-11-24 18:35:15,649 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a0ed8f56-a165-4ef7-9ed7-bcbbbba00519
2025-11-24 18:35:15,662 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b264b762-bc0a-4433-988a-28f068536e88
2025-11-24 18:35:15,673 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 18:35:15,673 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ab2fdbdd-7f30-494a-b361-00c1de2b8d5f
2025-11-24 18:35:15,690 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a0ed8f56-a165-4ef7-9ed7-bcbbbba00519
2025-11-24 18:35:15,718 - INFO - Verified VN network id 12 for VN ab2fdbdd-7f30-494a-b361-00c1de2b8d5f
2025-11-24 18:35:15,718 - INFO - Verifications in API Server for VN ctest-vn-59297781 passed
2025-11-24 18:35:15,718 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ab2fdbdd-7f30-494a-b361-00c1de2b8d5f
2025-11-24 18:35:15,738 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a0ed8f56-a165-4ef7-9ed7-bcbbbba00519
2025-11-24 18:35:15,752 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a0ed8f56-a165-4ef7-9ed7-bcbbbba00519
2025-11-24 18:35:15,768 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b264b762-bc0a-4433-988a-28f068536e88
2025-11-24 18:35:15,794 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28094514:ctest-vn-59297781', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28094514', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12335319648759204170', 'uuid-lslong': '12925613238186118495'}, 'enable': 'true', 'created': '2025-11-24T18:35:12', 'last-modified': '2025-11-24T18:35:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.946046'}
2025-11-24 18:35:15,805 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 18:35:15,805 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59297781 passed
2025-11-24 18:35:15,806 - DEBUG - ====Verifying policy data for ctest-vn-59297781 in API_Server ======
2025-11-24 18:35:15,806 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-24 18:35:15,820 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1ceb41c8-154b-44e5-ac11-f7c3b29646c1
2025-11-24 18:35:15,849 - DEBUG - Requesting: http://10.0.0.38:8082/project/f33b807e-2cb6-40bd-8321-81cb754fc34b
2025-11-24 18:35:15,976 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ab2fdbdd-7f30-494a-b361-00c1de2b8d5f
2025-11-24 18:35:15,997 - DEBUG - ==>Verifying data for policy with id: ea3d254e-9fcb-4f0f-acdc-dd6156a516b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-28094514', 'ctest-policy-allow-all-75802474']
2025-11-24 18:35:15,997 - INFO - VN ctest-vn-59297781 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 18:35:15,997 - DEBUG - Verifying the vn in opserver
2025-11-24 18:35:15,997 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28094514:ctest-vn-59297781 virtual network link through opserver 10.0.0.38
2025-11-24 18:35:15,997 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-24 18:35:16,019 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28094514:ctest-vn-59297781', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28094514:ctest-vn-59297781?flat'}
2025-11-24 18:35:16,019 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28094514:ctest-vn-59297781 is found in opserver
2025-11-24 18:35:16,037 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 18:35:16,046 - DEBUG - VRF ids for VN ctest-vn-59297781: {}
2025-11-24 18:35:16,148 - DEBUG - Services list from nova: [