2025-10-31 00:35:09,677 - INFO - Domain Default found not creating
2025-10-31 00:35:09,855 - INFO - Project ctest-TestBasicPolicy-13680464 not found, creating it
2025-10-31 00:35:10,321 - INFO - Created Project:ctest-TestBasicPolicy-13680464, ID : ebb6d96c-ff05-49f9-bb01-bd4d36c0850b 
2025-10-31 00:35:11,834 - INFO - ================================================================================
2025-10-31 00:35:11,834 - INFO - STARTING TEST    : test_basic_policy_allow_deny
2025-10-31 00:35:11,834 - 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-31 00:35:12,098 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.242': '0'}} with
2025-10-31 00:35:12,098 - INFO - Initial checks done. Running the testcase now
2025-10-31 00:35:12,099 - INFO - 
2025-10-31 00:35:12,666 - DEBUG - Response for create_network : {'network': {'id': '3d4cfed5-5670-4cda-8afe-e0f6f2ad4c48', 'name': 'ctest-vn-16158024', 'tenant_id': 'ebb6d96cff0549f9bb01bd4d36c0850b', 'project_id': 'ebb6d96cff0549f9bb01bd4d36c0850b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13680464', 'ctest-vn-16158024'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 00:35:12,823 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c7d38f6-c080-4c30-ba3e-c4bf71b82d88', 'name': '', 'tenant_id': 'ebb6d96cff0549f9bb01bd4d36c0850b', 'network_id': '3d4cfed5-5670-4cda-8afe-e0f6f2ad4c48', 'ip_version': 4, 'cidr': '36.108.246.64/26', 'allocation_pools': [{'start': '36.108.246.66', 'end': '36.108.246.126'}], 'gateway_ip': '36.108.246.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.108.246.66', 'tags': [], 'project_id': 'ebb6d96cff0549f9bb01bd4d36c0850b'}}
2025-10-31 00:35:12,848 - INFO - Created VN ctest-vn-16158024
2025-10-31 00:35:12,904 - DEBUG - VN ctest-vn-16158024 UUID is 3d4cfed5-5670-4cda-8afe-e0f6f2ad4c48
2025-10-31 00:35:13,237 - DEBUG - Response for create_network : {'network': {'id': '66d8c451-345d-4fba-abbd-2eed2909b497', 'name': 'ctest-vn-00303258', 'tenant_id': 'ebb6d96cff0549f9bb01bd4d36c0850b', 'project_id': 'ebb6d96cff0549f9bb01bd4d36c0850b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13680464', 'ctest-vn-00303258'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 00:35:13,470 - DEBUG - Response for create_subnet : {'subnet': {'id': '22204b8a-7e96-472c-a6bb-6c568787bf61', 'name': '', 'tenant_id': 'ebb6d96cff0549f9bb01bd4d36c0850b', 'network_id': '66d8c451-345d-4fba-abbd-2eed2909b497', 'ip_version': 4, 'cidr': '55.45.238.64/26', 'allocation_pools': [{'start': '55.45.238.66', 'end': '55.45.238.126'}], 'gateway_ip': '55.45.238.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.45.238.66', 'tags': [], 'project_id': 'ebb6d96cff0549f9bb01bd4d36c0850b'}}
2025-10-31 00:35:13,489 - INFO - Created VN ctest-vn-00303258
2025-10-31 00:35:13,540 - DEBUG - VN ctest-vn-00303258 UUID is 66d8c451-345d-4fba-abbd-2eed2909b497
2025-10-31 00:35:13,659 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13680464:ctest-vn-16158024, 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-13680464:ctest-vn-00303258, 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-31 00:35:13,970 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3d4cfed5-5670-4cda-8afe-e0f6f2ad4c48', 'name': 'ctest-vn-16158024', 'tenant_id': 'ebb6d96cff0549f9bb01bd4d36c0850b', 'project_id': 'ebb6d96cff0549f9bb01bd4d36c0850b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4c7d38f6-c080-4c30-ba3e-c4bf71b82d88'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13680464', 'ctest-vn-16158024'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13680464', 'ctest-policy-allow-all-64105319']], 'subnet_ipam': [{'subnet_cidr': '36.108.246.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 00:35:14,253 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '66d8c451-345d-4fba-abbd-2eed2909b497', 'name': 'ctest-vn-00303258', 'tenant_id': 'ebb6d96cff0549f9bb01bd4d36c0850b', 'project_id': 'ebb6d96cff0549f9bb01bd4d36c0850b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['22204b8a-7e96-472c-a6bb-6c568787bf61'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13680464', 'ctest-vn-00303258'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13680464', 'ctest-policy-allow-all-64105319']], 'subnet_ipam': [{'subnet_cidr': '55.45.238.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 00:35:14,408 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-31 00:35:14,716 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-31 00:35:14,748 - DEBUG - Requesting: http://10.0.0.137:8082/domain/edb8b332-5a70-4731-92d7-d2a7959493a2
2025-10-31 00:35:14,761 - DEBUG - Requesting: http://10.0.0.137:8082/project/ebb6d96c-ff05-49f9-bb01-bd4d36c0850b
2025-10-31 00:35:14,836 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/3d4cfed5-5670-4cda-8afe-e0f6f2ad4c48
2025-10-31 00:35:14,846 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/3d4cfed5-5670-4cda-8afe-e0f6f2ad4c48
2025-10-31 00:35:14,854 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/43f92a5e-8497-4c19-a4bc-c6c226e79a2d
2025-10-31 00:35:14,861 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/43f92a5e-8497-4c19-a4bc-c6c226e79a2d
2025-10-31 00:35:14,867 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/2473da66-e18f-40ca-b58a-f93305b90aca
2025-10-31 00:35:14,874 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 00:35:14,874 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/3d4cfed5-5670-4cda-8afe-e0f6f2ad4c48
2025-10-31 00:35:14,883 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/43f92a5e-8497-4c19-a4bc-c6c226e79a2d
2025-10-31 00:35:14,898 - INFO - Verified VN network id 11 for VN 3d4cfed5-5670-4cda-8afe-e0f6f2ad4c48
2025-10-31 00:35:14,898 - INFO - Verifications in API Server for VN ctest-vn-16158024 passed
2025-10-31 00:35:14,898 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/3d4cfed5-5670-4cda-8afe-e0f6f2ad4c48
2025-10-31 00:35:14,909 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/43f92a5e-8497-4c19-a4bc-c6c226e79a2d
2025-10-31 00:35:14,918 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/43f92a5e-8497-4c19-a4bc-c6c226e79a2d
2025-10-31 00:35:14,926 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/2473da66-e18f-40ca-b58a-f93305b90aca
2025-10-31 00:35:14,942 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13680464:ctest-vn-16158024', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13680464', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4417185526775303386', 'uuid-lslong': '10015689972556581960'}, 'enable': 'true', 'created': '2025-10-31T00:35:12', 'last-modified': '2025-10-31T00:35:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.995629'}
2025-10-31 00:35:14,949 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 00:35:14,949 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16158024 passed
2025-10-31 00:35:14,949 - DEBUG - ====Verifying policy data for ctest-vn-16158024 in API_Server ======
2025-10-31 00:35:14,949 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-31 00:35:14,955 - DEBUG - Requesting: http://10.0.0.137:8082/domain/edb8b332-5a70-4731-92d7-d2a7959493a2
2025-10-31 00:35:14,967 - DEBUG - Requesting: http://10.0.0.137:8082/project/ebb6d96c-ff05-49f9-bb01-bd4d36c0850b
2025-10-31 00:35:15,041 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/3d4cfed5-5670-4cda-8afe-e0f6f2ad4c48
2025-10-31 00:35:15,050 - DEBUG - ==>Verifying data for policy with id: 51db93ee-8084-4aa0-967c-7a6f5ab36620, fqn: ['default-domain', 'ctest-TestBasicPolicy-13680464', 'ctest-policy-allow-all-64105319']
2025-10-31 00:35:15,050 - INFO - VN ctest-vn-16158024 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 00:35:15,050 - DEBUG - Verifying the vn in opserver
2025-10-31 00:35:15,050 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13680464:ctest-vn-16158024 virtual network link  through opserver 10.0.0.137
2025-10-31 00:35:15,051 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-31 00:35:15,345 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-31 00:35:15,417 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13680464:ctest-vn-16158024', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13680464:ctest-vn-16158024?flat'}
2025-10-31 00:35:15,417 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13680464:ctest-vn-16158024 is found in opserver
2025-10-31 00:35:15,427 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 00:35:15,432 - DEBUG - VRF ids for VN ctest-vn-16158024: {}
2025-10-31 00:35:15,432 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-31 00:35:15,438 - DEBUG - Requesting: http://10.0.0.137:8082/domain/edb8b332-5a70-4731-92d7-d2a7959493a2
2025-10-31 00:35:15,450 - DEBUG - Requesting: http://10.0.0.137:8082/project/ebb6d96c-ff05-49f9-bb01-bd4d36c0850b
2025-10-31 00:35:15,529 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/66d8c451-345d-4fba-abbd-2eed2909b497
2025-10-31 00:35:15,543 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/66d8c451-345d-4fba-abbd-2eed2909b497
2025-10-31 00:35:15,553 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/4ef5fe12-c227-46b8-8fba-0e98bfed1f67
2025-10-31 00:35:15,560 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/4ef5fe12-c227-46b8-8fba-0e98bfed1f67
2025-10-31 00:35:15,567 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/cd88474e-d402-4383-b777-1bffa38fa0a0
2025-10-31 00:35:15,575 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 00:35:15,575 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/66d8c451-345d-4fba-abbd-2eed2909b497
2025-10-31 00:35:15,585 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/4ef5fe12-c227-46b8-8fba-0e98bfed1f67
2025-10-31 00:35:15,603 - INFO - Verified VN network id 12 for VN 66d8c451-345d-4fba-abbd-2eed2909b497
2025-10-31 00:35:15,603 - INFO - Verifications in API Server for VN ctest-vn-00303258 passed
2025-10-31 00:35:15,603 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/66d8c451-345d-4fba-abbd-2eed2909b497
2025-10-31 00:35:15,612 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/4ef5fe12-c227-46b8-8fba-0e98bfed1f67
2025-10-31 00:35:15,619 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/4ef5fe12-c227-46b8-8fba-0e98bfed1f67
2025-10-31 00:35:15,626 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/cd88474e-d402-4383-b777-1bffa38fa0a0
2025-10-31 00:35:15,638 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13680464:ctest-vn-00303258', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13680464', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7410889039888076730', 'uuid-lslong': '12375098947214619799'}, 'enable': 'true', 'created': '2025-10-31T00:35:13', 'last-modified': '2025-10-31T00:35:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.449885'}
2025-10-31 00:35:15,645 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 00:35:15,645 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00303258 passed
2025-10-31 00:35:15,645 - DEBUG - ====Verifying policy data for ctest-vn-00303258 in API_Server ======
2025-10-31 00:35:15,645 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-10-31 00:35:15,653 - DEBUG - Requesting: http://10.0.0.137:8082/domain/edb8b332-5a70-4731-92d7-d2a7959493a2
2025-10-31 00:35:15,665 - DEBUG - Requesting: http://10.0.0.137:8082/project/ebb6d96c-ff05-49f9-bb01-bd4d36c0850b
2025-10-31 00:35:15,742 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/66d8c451-345d-4fba-abbd-2eed2909b497
2025-10-31 00:35:15,753 - DEBUG - ==>Verifying data for policy with id: 51db93ee-8084-4aa0-967c-7a6f5ab36620, fqn: ['default-domain', 'ctest-TestBasicPolicy-13680464', 'ctest-policy-allow-all-64105319']
2025-10-31 00:35:15,753 - INFO - VN ctest-vn-00303258 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 00:35:15,753 - DEBUG - Verifying the vn in opserver
2025-10-31 00:35:15,753 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13680464:ctest-vn-00303258 virtual network link  through opserver 10.0.0.137
2025-10-31 00:35:15,753 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-31 00:35:15,763 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13680464:ctest-vn-00303258', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13680464:ctest-vn-00303258?flat'}
2025-10-31 00:35:15,763 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13680464:ctest-vn-00303258 is found in opserver
2025-10-31 00:35:15,772 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 00:35:15,777 - DEBUG - VRF ids for VN ctest-vn-00303258: {}
2025-10-31 00:35:15,844 - DEBUG - Services list from nova: [