2025-10-23 13:15:54,149 - INFO - Domain Default found not creating
2025-10-23 13:15:54,292 - INFO - Project ctest-TestBasicPolicy-13660060 not found, creating it
2025-10-23 13:15:54,739 - INFO - Created Project:ctest-TestBasicPolicy-13660060, ID : 92ff1af9-084f-4ece-ae2c-5c136e84ae07 
2025-10-23 13:15:56,164 - INFO - ================================================================================
2025-10-23 13:15:56,164 - INFO - STARTING TEST    : test_basic_policy_allow_deny
2025-10-23 13:15:56,164 - 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-23 13:15:56,423 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-10-23 13:15:56,425 - INFO - Initial checks done. Running the testcase now
2025-10-23 13:15:56,425 - INFO - 
2025-10-23 13:15:56,961 - DEBUG - Response for create_network : {'network': {'id': '899d3030-8050-4e93-bc8b-d4140b3f07b0', 'name': 'ctest-vn-07119145', 'tenant_id': '92ff1af9084f4eceae2c5c136e84ae07', 'project_id': '92ff1af9084f4eceae2c5c136e84ae07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13660060', 'ctest-vn-07119145'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 13:15:57,107 - DEBUG - Response for create_subnet : {'subnet': {'id': '286c7c63-f7ec-4c18-b91a-b5a9410c8677', 'name': '', 'tenant_id': '92ff1af9084f4eceae2c5c136e84ae07', 'network_id': '899d3030-8050-4e93-bc8b-d4140b3f07b0', 'ip_version': 4, 'cidr': '105.163.157.0/26', 'allocation_pools': [{'start': '105.163.157.2', 'end': '105.163.157.62'}], 'gateway_ip': '105.163.157.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.163.157.2', 'tags': [], 'project_id': '92ff1af9084f4eceae2c5c136e84ae07'}}
2025-10-23 13:15:57,126 - INFO - Created VN ctest-vn-07119145
2025-10-23 13:15:57,177 - DEBUG - VN ctest-vn-07119145 UUID is 899d3030-8050-4e93-bc8b-d4140b3f07b0
2025-10-23 13:15:57,512 - DEBUG - Response for create_network : {'network': {'id': 'b04823a3-fb82-4623-be3c-8f9ae1bad3d1', 'name': 'ctest-vn-82577248', 'tenant_id': '92ff1af9084f4eceae2c5c136e84ae07', 'project_id': '92ff1af9084f4eceae2c5c136e84ae07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13660060', 'ctest-vn-82577248'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 13:15:57,668 - DEBUG - Response for create_subnet : {'subnet': {'id': '46acf23f-b102-4a9b-b852-9c58e7b8a121', 'name': '', 'tenant_id': '92ff1af9084f4eceae2c5c136e84ae07', 'network_id': 'b04823a3-fb82-4623-be3c-8f9ae1bad3d1', 'ip_version': 4, 'cidr': '56.237.124.192/26', 'allocation_pools': [{'start': '56.237.124.194', 'end': '56.237.124.254'}], 'gateway_ip': '56.237.124.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.237.124.194', 'tags': [], 'project_id': '92ff1af9084f4eceae2c5c136e84ae07'}}
2025-10-23 13:15:57,685 - INFO - Created VN ctest-vn-82577248
2025-10-23 13:15:57,742 - DEBUG - VN ctest-vn-82577248 UUID is b04823a3-fb82-4623-be3c-8f9ae1bad3d1
2025-10-23 13:15:57,893 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13660060:ctest-vn-07119145, 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-13660060:ctest-vn-82577248, 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-23 13:15:58,181 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '899d3030-8050-4e93-bc8b-d4140b3f07b0', 'name': 'ctest-vn-07119145', 'tenant_id': '92ff1af9084f4eceae2c5c136e84ae07', 'project_id': '92ff1af9084f4eceae2c5c136e84ae07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['286c7c63-f7ec-4c18-b91a-b5a9410c8677'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13660060', 'ctest-vn-07119145'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13660060', 'ctest-policy-allow-all-42544721']], 'subnet_ipam': [{'subnet_cidr': '105.163.157.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 13:15:58,409 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b04823a3-fb82-4623-be3c-8f9ae1bad3d1', 'name': 'ctest-vn-82577248', 'tenant_id': '92ff1af9084f4eceae2c5c136e84ae07', 'project_id': '92ff1af9084f4eceae2c5c136e84ae07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['46acf23f-b102-4a9b-b852-9c58e7b8a121'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13660060', 'ctest-vn-82577248'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13660060', 'ctest-policy-allow-all-42544721']], 'subnet_ipam': [{'subnet_cidr': '56.237.124.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 13:15:58,577 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-23 13:15:58,869 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-23 13:15:58,894 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a0dfb5cd-ddb8-4df7-9cb2-c3e1b3606637
2025-10-23 13:15:58,904 - DEBUG - Requesting: http://10.0.0.38:8082/project/92ff1af9-084f-4ece-ae2c-5c136e84ae07
2025-10-23 13:15:58,977 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/899d3030-8050-4e93-bc8b-d4140b3f07b0
2025-10-23 13:15:58,987 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/899d3030-8050-4e93-bc8b-d4140b3f07b0
2025-10-23 13:15:58,996 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6150c2e-cada-484d-928b-d0dac8287438
2025-10-23 13:15:59,003 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6150c2e-cada-484d-928b-d0dac8287438
2025-10-23 13:15:59,008 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7dc39c32-2b12-4d15-9930-ae30eaa3a473
2025-10-23 13:15:59,015 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 13:15:59,015 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/899d3030-8050-4e93-bc8b-d4140b3f07b0
2025-10-23 13:15:59,023 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6150c2e-cada-484d-928b-d0dac8287438
2025-10-23 13:15:59,035 - INFO - Verified VN network id 11 for VN 899d3030-8050-4e93-bc8b-d4140b3f07b0
2025-10-23 13:15:59,035 - INFO - Verifications in API Server for VN ctest-vn-07119145 passed
2025-10-23 13:15:59,036 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/899d3030-8050-4e93-bc8b-d4140b3f07b0
2025-10-23 13:15:59,044 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6150c2e-cada-484d-928b-d0dac8287438
2025-10-23 13:15:59,049 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6150c2e-cada-484d-928b-d0dac8287438
2025-10-23 13:15:59,055 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7dc39c32-2b12-4d15-9930-ae30eaa3a473
2025-10-23 13:15:59,066 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13660060:ctest-vn-07119145', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13660060', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9916134939409010323', 'uuid-lslong': '13586185883446347696'}, 'enable': 'true', 'created': '2025-10-23T13:15:56', 'last-modified': '2025-10-23T13:15:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.906947'}
2025-10-23 13:15:59,072 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 13:15:59,072 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07119145 passed
2025-10-23 13:15:59,073 - DEBUG - ====Verifying policy data for ctest-vn-07119145 in API_Server ======
2025-10-23 13:15:59,073 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-23 13:15:59,078 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a0dfb5cd-ddb8-4df7-9cb2-c3e1b3606637
2025-10-23 13:15:59,088 - DEBUG - Requesting: http://10.0.0.38:8082/project/92ff1af9-084f-4ece-ae2c-5c136e84ae07
2025-10-23 13:15:59,156 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/899d3030-8050-4e93-bc8b-d4140b3f07b0
2025-10-23 13:15:59,165 - DEBUG - ==>Verifying data for policy with id: b63bdf89-ad92-47cf-bee7-b9f1b84a0cb5, fqn: ['default-domain', 'ctest-TestBasicPolicy-13660060', 'ctest-policy-allow-all-42544721']
2025-10-23 13:15:59,165 - INFO - VN ctest-vn-07119145 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 13:15:59,165 - DEBUG - Verifying the vn in opserver
2025-10-23 13:15:59,165 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13660060:ctest-vn-07119145 virtual network link  through opserver 10.0.0.38
2025-10-23 13:15:59,165 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-23 13:15:59,462 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-23 13:15:59,515 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13660060:ctest-vn-07119145', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13660060:ctest-vn-07119145?flat'}
2025-10-23 13:15:59,515 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13660060:ctest-vn-07119145 is found in opserver
2025-10-23 13:15:59,524 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 13:15:59,528 - DEBUG - VRF ids for VN ctest-vn-07119145: {}
2025-10-23 13:15:59,528 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-23 13:15:59,533 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a0dfb5cd-ddb8-4df7-9cb2-c3e1b3606637
2025-10-23 13:15:59,542 - DEBUG - Requesting: http://10.0.0.38:8082/project/92ff1af9-084f-4ece-ae2c-5c136e84ae07
2025-10-23 13:15:59,612 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b04823a3-fb82-4623-be3c-8f9ae1bad3d1
2025-10-23 13:15:59,623 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b04823a3-fb82-4623-be3c-8f9ae1bad3d1
2025-10-23 13:15:59,631 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6ec7be94-7eab-4eb5-9be2-de10bb13aaa5
2025-10-23 13:15:59,637 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6ec7be94-7eab-4eb5-9be2-de10bb13aaa5
2025-10-23 13:15:59,644 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/83b9d22d-5fd6-4889-acaa-965cc6176e7e
2025-10-23 13:15:59,651 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 13:15:59,651 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b04823a3-fb82-4623-be3c-8f9ae1bad3d1
2025-10-23 13:15:59,660 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6ec7be94-7eab-4eb5-9be2-de10bb13aaa5
2025-10-23 13:15:59,676 - INFO - Verified VN network id 12 for VN b04823a3-fb82-4623-be3c-8f9ae1bad3d1
2025-10-23 13:15:59,676 - INFO - Verifications in API Server for VN ctest-vn-82577248 passed
2025-10-23 13:15:59,676 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b04823a3-fb82-4623-be3c-8f9ae1bad3d1
2025-10-23 13:15:59,686 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6ec7be94-7eab-4eb5-9be2-de10bb13aaa5
2025-10-23 13:15:59,693 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6ec7be94-7eab-4eb5-9be2-de10bb13aaa5
2025-10-23 13:15:59,699 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/83b9d22d-5fd6-4889-acaa-965cc6176e7e
2025-10-23 13:15:59,712 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13660060:ctest-vn-82577248', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13660060', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12702441936204744227', 'uuid-lslong': '13707989261183800273'}, 'enable': 'true', 'created': '2025-10-23T13:15:57', 'last-modified': '2025-10-23T13:15:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.326251'}
2025-10-23 13:15:59,718 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 13:15:59,718 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82577248 passed
2025-10-23 13:15:59,719 - DEBUG - ====Verifying policy data for ctest-vn-82577248 in API_Server ======
2025-10-23 13:15:59,719 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-23 13:15:59,725 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a0dfb5cd-ddb8-4df7-9cb2-c3e1b3606637
2025-10-23 13:15:59,735 - DEBUG - Requesting: http://10.0.0.38:8082/project/92ff1af9-084f-4ece-ae2c-5c136e84ae07
2025-10-23 13:15:59,801 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b04823a3-fb82-4623-be3c-8f9ae1bad3d1
2025-10-23 13:15:59,810 - DEBUG - ==>Verifying data for policy with id: b63bdf89-ad92-47cf-bee7-b9f1b84a0cb5, fqn: ['default-domain', 'ctest-TestBasicPolicy-13660060', 'ctest-policy-allow-all-42544721']
2025-10-23 13:15:59,810 - INFO - VN ctest-vn-82577248 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 13:15:59,810 - DEBUG - Verifying the vn in opserver
2025-10-23 13:15:59,810 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13660060:ctest-vn-82577248 virtual network link  through opserver 10.0.0.38
2025-10-23 13:15:59,810 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-23 13:15:59,819 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13660060:ctest-vn-82577248', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13660060:ctest-vn-82577248?flat'}
2025-10-23 13:15:59,820 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13660060:ctest-vn-82577248 is found in opserver
2025-10-23 13:15:59,828 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 13:15:59,832 - DEBUG - VRF ids for VN ctest-vn-82577248: {}
2025-10-23 13:15:59,887 - DEBUG - Services list from nova: [