2025-10-22 21:53:16,788 - INFO - Domain Default found not creating
2025-10-22 21:53:16,945 - INFO - Project ctest-TestBasicPolicy-95135153 not found, creating it
2025-10-22 21:53:17,396 - INFO - Created Project:ctest-TestBasicPolicy-95135153, ID : 2fe159c5-3174-4098-9694-7f269cebb6bf
2025-10-22 21:53:18,979 - INFO - ================================================================================
2025-10-22 21:53:18,979 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-22 21:53:18,980 - 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-10-22 21:53:19,235 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2025-10-22 21:53:19,235 - INFO - Initial checks done. Running the testcase now
2025-10-22 21:53:19,235 - INFO -
2025-10-22 21:53:19,825 - DEBUG - Response for create_network : {'network': {'id': '864c37b5-7a4f-4acd-8b39-3c59dd2607d5', 'name': 'ctest-vn-46048242', 'tenant_id': '2fe159c53174409896947f269cebb6bf', 'project_id': '2fe159c53174409896947f269cebb6bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95135153', 'ctest-vn-46048242'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 21:53:20,011 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9054845-6fe8-455a-a3c0-228eae5107e0', 'name': '', 'tenant_id': '2fe159c53174409896947f269cebb6bf', 'network_id': '864c37b5-7a4f-4acd-8b39-3c59dd2607d5', 'ip_version': 4, 'cidr': '163.254.103.64/26', 'allocation_pools': [{'start': '163.254.103.66', 'end': '163.254.103.126'}], 'gateway_ip': '163.254.103.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.254.103.66', 'tags': [], 'project_id': '2fe159c53174409896947f269cebb6bf'}}
2025-10-22 21:53:20,031 - INFO - Created VN ctest-vn-46048242
2025-10-22 21:53:20,086 - DEBUG - VN ctest-vn-46048242 UUID is 864c37b5-7a4f-4acd-8b39-3c59dd2607d5
2025-10-22 21:53:20,376 - DEBUG - Response for create_network : {'network': {'id': '87b069df-db21-47bb-a59d-14ad3dfb68b7', 'name': 'ctest-vn-49595491', 'tenant_id': '2fe159c53174409896947f269cebb6bf', 'project_id': '2fe159c53174409896947f269cebb6bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95135153', 'ctest-vn-49595491'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 21:53:20,593 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e79e0e02-4163-4729-b310-8b28428402fa', 'name': '', 'tenant_id': '2fe159c53174409896947f269cebb6bf', 'network_id': '87b069df-db21-47bb-a59d-14ad3dfb68b7', 'ip_version': 4, 'cidr': '199.35.127.192/26', 'allocation_pools': [{'start': '199.35.127.194', 'end': '199.35.127.254'}], 'gateway_ip': '199.35.127.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.35.127.194', 'tags': [], 'project_id': '2fe159c53174409896947f269cebb6bf'}}
2025-10-22 21:53:20,609 - INFO - Created VN ctest-vn-49595491
2025-10-22 21:53:20,661 - DEBUG - VN ctest-vn-49595491 UUID is 87b069df-db21-47bb-a59d-14ad3dfb68b7
2025-10-22 21:53:20,772 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95135153:ctest-vn-46048242, 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-95135153:ctest-vn-49595491, 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-10-22 21:53:21,068 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '864c37b5-7a4f-4acd-8b39-3c59dd2607d5', 'name': 'ctest-vn-46048242', 'tenant_id': '2fe159c53174409896947f269cebb6bf', 'project_id': '2fe159c53174409896947f269cebb6bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a9054845-6fe8-455a-a3c0-228eae5107e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95135153', 'ctest-vn-46048242'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95135153', 'ctest-policy-allow-all-63255743']], 'subnet_ipam': [{'subnet_cidr': '163.254.103.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 21:53:21,295 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '87b069df-db21-47bb-a59d-14ad3dfb68b7', 'name': 'ctest-vn-49595491', 'tenant_id': '2fe159c53174409896947f269cebb6bf', 'project_id': '2fe159c53174409896947f269cebb6bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e79e0e02-4163-4729-b310-8b28428402fa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95135153', 'ctest-vn-49595491'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95135153', 'ctest-policy-allow-all-63255743']], 'subnet_ipam': [{'subnet_cidr': '199.35.127.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 21:53:21,442 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-22 21:53:21,777 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-22 21:53:21,806 - DEBUG - Requesting: http://10.0.0.22:8082/domain/638b8277-0221-4cc8-899a-9e393f7c48b6
2025-10-22 21:53:21,819 - DEBUG - Requesting: http://10.0.0.22:8082/project/2fe159c5-3174-4098-9694-7f269cebb6bf
2025-10-22 21:53:21,889 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/864c37b5-7a4f-4acd-8b39-3c59dd2607d5
2025-10-22 21:53:21,898 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/864c37b5-7a4f-4acd-8b39-3c59dd2607d5
2025-10-22 21:53:21,907 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/64403bba-3569-4337-a04b-4eae2df4ccc7
2025-10-22 21:53:21,913 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/64403bba-3569-4337-a04b-4eae2df4ccc7
2025-10-22 21:53:21,918 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/192e477d-ea74-4796-bffb-5b1e30902046
2025-10-22 21:53:21,923 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 21:53:21,923 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/864c37b5-7a4f-4acd-8b39-3c59dd2607d5
2025-10-22 21:53:21,931 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/64403bba-3569-4337-a04b-4eae2df4ccc7
2025-10-22 21:53:21,944 - INFO - Verified VN network id 11 for VN 864c37b5-7a4f-4acd-8b39-3c59dd2607d5
2025-10-22 21:53:21,944 - INFO - Verifications in API Server for VN ctest-vn-46048242 passed
2025-10-22 21:53:21,944 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/864c37b5-7a4f-4acd-8b39-3c59dd2607d5
2025-10-22 21:53:21,952 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/64403bba-3569-4337-a04b-4eae2df4ccc7
2025-10-22 21:53:21,957 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/64403bba-3569-4337-a04b-4eae2df4ccc7
2025-10-22 21:53:21,963 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/192e477d-ea74-4796-bffb-5b1e30902046
2025-10-22 21:53:21,973 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95135153:ctest-vn-46048242', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95135153', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9677170951892978381', 'uuid-lslong': '10032116001604503509'}, 'enable': 'true', 'created': '2025-10-22T21:53:19', 'last-modified': '2025-10-22T21:53:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.930038'}
2025-10-22 21:53:21,978 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 21:53:21,978 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46048242 passed
2025-10-22 21:53:21,978 - DEBUG - ====Verifying policy data for ctest-vn-46048242 in API_Server ======
2025-10-22 21:53:21,979 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-22 21:53:21,983 - DEBUG - Requesting: http://10.0.0.22:8082/domain/638b8277-0221-4cc8-899a-9e393f7c48b6
2025-10-22 21:53:21,995 - DEBUG - Requesting: http://10.0.0.22:8082/project/2fe159c5-3174-4098-9694-7f269cebb6bf
2025-10-22 21:53:22,065 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/864c37b5-7a4f-4acd-8b39-3c59dd2607d5
2025-10-22 21:53:22,074 - DEBUG - ==>Verifying data for policy with id: f5204e7b-25ed-446f-9894-18cb773959e1, fqn: ['default-domain', 'ctest-TestBasicPolicy-95135153', 'ctest-policy-allow-all-63255743']
2025-10-22 21:53:22,074 - INFO - VN ctest-vn-46048242 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 21:53:22,074 - DEBUG - Verifying the vn in opserver
2025-10-22 21:53:22,074 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95135153:ctest-vn-46048242 virtual network link through opserver 10.0.0.22
2025-10-22 21:53:22,075 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-22 21:53:22,406 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-22 21:53:22,463 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95135153:ctest-vn-46048242', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95135153:ctest-vn-46048242?flat'}
2025-10-22 21:53:22,463 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95135153:ctest-vn-46048242 is found in opserver
2025-10-22 21:53:22,473 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 21:53:22,478 - DEBUG - VRF ids for VN ctest-vn-46048242: {}
2025-10-22 21:53:22,478 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-22 21:53:22,483 - DEBUG - Requesting: http://10.0.0.22:8082/domain/638b8277-0221-4cc8-899a-9e393f7c48b6
2025-10-22 21:53:22,494 - DEBUG - Requesting: http://10.0.0.22:8082/project/2fe159c5-3174-4098-9694-7f269cebb6bf
2025-10-22 21:53:22,560 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/87b069df-db21-47bb-a59d-14ad3dfb68b7
2025-10-22 21:53:22,572 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/87b069df-db21-47bb-a59d-14ad3dfb68b7
2025-10-22 21:53:22,581 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8deaaf3d-171f-4075-be10-b42f9106685a
2025-10-22 21:53:22,587 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8deaaf3d-171f-4075-be10-b42f9106685a
2025-10-22 21:53:22,593 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/82109c1f-a313-4b81-a477-467d87ea51ba
2025-10-22 21:53:22,598 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 21:53:22,598 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/87b069df-db21-47bb-a59d-14ad3dfb68b7
2025-10-22 21:53:22,606 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8deaaf3d-171f-4075-be10-b42f9106685a
2025-10-22 21:53:22,620 - INFO - Verified VN network id 12 for VN 87b069df-db21-47bb-a59d-14ad3dfb68b7
2025-10-22 21:53:22,620 - INFO - Verifications in API Server for VN ctest-vn-49595491 passed
2025-10-22 21:53:22,620 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/87b069df-db21-47bb-a59d-14ad3dfb68b7
2025-10-22 21:53:22,629 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8deaaf3d-171f-4075-be10-b42f9106685a
2025-10-22 21:53:22,636 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8deaaf3d-171f-4075-be10-b42f9106685a
2025-10-22 21:53:22,643 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/82109c1f-a313-4b81-a477-467d87ea51ba
2025-10-22 21:53:22,656 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95135153:ctest-vn-49595491', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95135153', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9777431201196361659', 'uuid-lslong': '11933717321903466679'}, 'enable': 'true', 'created': '2025-10-22T21:53:20', 'last-modified': '2025-10-22T21:53:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.381299'}
2025-10-22 21:53:22,662 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 21:53:22,663 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49595491 passed
2025-10-22 21:53:22,664 - DEBUG - ====Verifying policy data for ctest-vn-49595491 in API_Server ======
2025-10-22 21:53:22,664 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-22 21:53:22,669 - DEBUG - Requesting: http://10.0.0.22:8082/domain/638b8277-0221-4cc8-899a-9e393f7c48b6
2025-10-22 21:53:22,679 - DEBUG - Requesting: http://10.0.0.22:8082/project/2fe159c5-3174-4098-9694-7f269cebb6bf
2025-10-22 21:53:22,746 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/87b069df-db21-47bb-a59d-14ad3dfb68b7
2025-10-22 21:53:22,755 - DEBUG - ==>Verifying data for policy with id: f5204e7b-25ed-446f-9894-18cb773959e1, fqn: ['default-domain', 'ctest-TestBasicPolicy-95135153', 'ctest-policy-allow-all-63255743']
2025-10-22 21:53:22,755 - INFO - VN ctest-vn-49595491 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 21:53:22,755 - DEBUG - Verifying the vn in opserver
2025-10-22 21:53:22,755 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95135153:ctest-vn-49595491 virtual network link through opserver 10.0.0.22
2025-10-22 21:53:22,755 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-22 21:53:22,764 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95135153:ctest-vn-49595491', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95135153:ctest-vn-49595491?flat'}
2025-10-22 21:53:22,764 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95135153:ctest-vn-49595491 is found in opserver
2025-10-22 21:53:22,773 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 21:53:22,778 - DEBUG - VRF ids for VN ctest-vn-49595491: {}
2025-10-22 21:53:22,839 - DEBUG - Services list from nova: [