2025-07-22 23:26:11,492 - INFO - Domain Default found not creating
2025-07-22 23:26:11,656 - INFO - Project ctest-TestBasicPolicy-37098881 not found, creating it
2025-07-22 23:26:12,168 - INFO - Created Project:ctest-TestBasicPolicy-37098881, ID : 6f9fe94f-5fd2-498e-a62c-f7617d7d3829
2025-07-22 23:26:14,262 - INFO - ================================================================================
2025-07-22 23:26:14,262 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-22 23:26:14,262 - 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-07-22 23:26:14,521 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-07-22 23:26:14,521 - INFO - Initial checks done. Running the testcase now
2025-07-22 23:26:14,521 - INFO -
2025-07-22 23:26:15,055 - DEBUG - Response for create_network : {'network': {'id': '6b5f4623-1730-44b4-bd38-d103ab178136', 'name': 'ctest-vn-75465536', 'tenant_id': '6f9fe94f5fd2498ea62cf7617d7d3829', 'project_id': '6f9fe94f5fd2498ea62cf7617d7d3829', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37098881', 'ctest-vn-75465536'], 'port_security_enabled': True, 'description': ''}}
2025-07-22 23:26:15,234 - DEBUG - Response for create_subnet : {'subnet': {'id': '45151911-f1de-49a3-8bcd-f5f3956ed2e8', 'name': '', 'tenant_id': '6f9fe94f5fd2498ea62cf7617d7d3829', 'network_id': '6b5f4623-1730-44b4-bd38-d103ab178136', 'ip_version': 4, 'cidr': '18.37.215.192/26', 'allocation_pools': [{'start': '18.37.215.194', 'end': '18.37.215.254'}], 'gateway_ip': '18.37.215.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.37.215.194', 'tags': [], 'project_id': '6f9fe94f5fd2498ea62cf7617d7d3829'}}
2025-07-22 23:26:15,252 - INFO - Created VN ctest-vn-75465536
2025-07-22 23:26:15,307 - DEBUG - VN ctest-vn-75465536 UUID is 6b5f4623-1730-44b4-bd38-d103ab178136
2025-07-22 23:26:15,602 - DEBUG - Response for create_network : {'network': {'id': '1bd6745d-d0bc-45bc-a1ee-fa8ce38ec282', 'name': 'ctest-vn-39884519', 'tenant_id': '6f9fe94f5fd2498ea62cf7617d7d3829', 'project_id': '6f9fe94f5fd2498ea62cf7617d7d3829', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37098881', 'ctest-vn-39884519'], 'port_security_enabled': True, 'description': ''}}
2025-07-22 23:26:15,802 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d442977-5d41-4c27-8b8c-c336a6955b7e', 'name': '', 'tenant_id': '6f9fe94f5fd2498ea62cf7617d7d3829', 'network_id': '1bd6745d-d0bc-45bc-a1ee-fa8ce38ec282', 'ip_version': 4, 'cidr': '71.16.112.128/26', 'allocation_pools': [{'start': '71.16.112.130', 'end': '71.16.112.190'}], 'gateway_ip': '71.16.112.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.16.112.130', 'tags': [], 'project_id': '6f9fe94f5fd2498ea62cf7617d7d3829'}}
2025-07-22 23:26:15,821 - INFO - Created VN ctest-vn-39884519
2025-07-22 23:26:15,875 - DEBUG - VN ctest-vn-39884519 UUID is 1bd6745d-d0bc-45bc-a1ee-fa8ce38ec282
2025-07-22 23:26:15,992 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37098881:ctest-vn-75465536, 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-37098881:ctest-vn-39884519, 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-07-22 23:26:16,302 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6b5f4623-1730-44b4-bd38-d103ab178136', 'name': 'ctest-vn-75465536', 'tenant_id': '6f9fe94f5fd2498ea62cf7617d7d3829', 'project_id': '6f9fe94f5fd2498ea62cf7617d7d3829', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['45151911-f1de-49a3-8bcd-f5f3956ed2e8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37098881', 'ctest-vn-75465536'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37098881', 'ctest-policy-allow-all-17980864']], 'subnet_ipam': [{'subnet_cidr': '18.37.215.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-22 23:26:16,545 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1bd6745d-d0bc-45bc-a1ee-fa8ce38ec282', 'name': 'ctest-vn-39884519', 'tenant_id': '6f9fe94f5fd2498ea62cf7617d7d3829', 'project_id': '6f9fe94f5fd2498ea62cf7617d7d3829', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d442977-5d41-4c27-8b8c-c336a6955b7e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37098881', 'ctest-vn-39884519'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37098881', 'ctest-policy-allow-all-17980864']], 'subnet_ipam': [{'subnet_cidr': '71.16.112.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-22 23:26:16,707 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-22 23:26:17,016 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-22 23:26:17,046 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3d35b737-47ae-40a2-861c-ea327ce5373c
2025-07-22 23:26:17,060 - DEBUG - Requesting: http://10.0.0.38:8082/project/6f9fe94f-5fd2-498e-a62c-f7617d7d3829
2025-07-22 23:26:17,134 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6b5f4623-1730-44b4-bd38-d103ab178136
2025-07-22 23:26:17,149 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6b5f4623-1730-44b4-bd38-d103ab178136
2025-07-22 23:26:17,161 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f9ba67d-21d1-4993-8e39-1404b1a82748
2025-07-22 23:26:17,170 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f9ba67d-21d1-4993-8e39-1404b1a82748
2025-07-22 23:26:17,179 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cf1f5fb3-5adb-4a0f-a219-32dfa275b343
2025-07-22 23:26:17,186 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-22 23:26:17,186 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6b5f4623-1730-44b4-bd38-d103ab178136
2025-07-22 23:26:17,197 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f9ba67d-21d1-4993-8e39-1404b1a82748
2025-07-22 23:26:17,213 - INFO - Verified VN network id 11 for VN 6b5f4623-1730-44b4-bd38-d103ab178136
2025-07-22 23:26:17,213 - INFO - Verifications in API Server for VN ctest-vn-75465536 passed
2025-07-22 23:26:17,213 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6b5f4623-1730-44b4-bd38-d103ab178136
2025-07-22 23:26:17,223 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f9ba67d-21d1-4993-8e39-1404b1a82748
2025-07-22 23:26:17,231 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f9ba67d-21d1-4993-8e39-1404b1a82748
2025-07-22 23:26:17,238 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cf1f5fb3-5adb-4a0f-a219-32dfa275b343
2025-07-22 23:26:17,252 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37098881:ctest-vn-75465536', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37098881', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7736979801372640436', 'uuid-lslong': '13634877685549728054'}, 'enable': 'true', 'created': '2025-07-22T23:26:15', 'last-modified': '2025-07-22T23:26:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978538'}
2025-07-22 23:26:17,259 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-22 23:26:17,259 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75465536 passed
2025-07-22 23:26:17,259 - DEBUG - ====Verifying policy data for ctest-vn-75465536 in API_Server ======
2025-07-22 23:26:17,259 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-22 23:26:17,266 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3d35b737-47ae-40a2-861c-ea327ce5373c
2025-07-22 23:26:17,278 - DEBUG - Requesting: http://10.0.0.38:8082/project/6f9fe94f-5fd2-498e-a62c-f7617d7d3829
2025-07-22 23:26:17,349 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6b5f4623-1730-44b4-bd38-d103ab178136
2025-07-22 23:26:17,359 - DEBUG - ==>Verifying data for policy with id: 43882ecf-49d3-4cd0-8eb4-6b73cdb723ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-37098881', 'ctest-policy-allow-all-17980864']
2025-07-22 23:26:17,359 - INFO - VN ctest-vn-75465536 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-22 23:26:17,360 - DEBUG - Verifying the vn in opserver
2025-07-22 23:26:17,360 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37098881:ctest-vn-75465536 virtual network link through opserver 10.0.0.38
2025-07-22 23:26:17,360 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-22 23:26:17,657 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-22 23:26:17,718 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37098881:ctest-vn-75465536', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37098881:ctest-vn-75465536?flat'}
2025-07-22 23:26:17,718 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37098881:ctest-vn-75465536 is found in opserver
2025-07-22 23:26:17,729 - DEBUG - Do not have enough data to verify VN in agent
2025-07-22 23:26:17,734 - DEBUG - VRF ids for VN ctest-vn-75465536: {}
2025-07-22 23:26:17,734 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-22 23:26:17,740 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3d35b737-47ae-40a2-861c-ea327ce5373c
2025-07-22 23:26:17,753 - DEBUG - Requesting: http://10.0.0.38:8082/project/6f9fe94f-5fd2-498e-a62c-f7617d7d3829
2025-07-22 23:26:17,827 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1bd6745d-d0bc-45bc-a1ee-fa8ce38ec282
2025-07-22 23:26:17,839 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1bd6745d-d0bc-45bc-a1ee-fa8ce38ec282
2025-07-22 23:26:17,849 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c0dd8183-8e21-4683-844c-d3a7df07deaf
2025-07-22 23:26:17,857 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c0dd8183-8e21-4683-844c-d3a7df07deaf
2025-07-22 23:26:17,868 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ed6fde26-423b-4985-a35a-a93ce965a616
2025-07-22 23:26:17,875 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-22 23:26:17,875 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1bd6745d-d0bc-45bc-a1ee-fa8ce38ec282
2025-07-22 23:26:17,884 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c0dd8183-8e21-4683-844c-d3a7df07deaf
2025-07-22 23:26:17,899 - INFO - Verified VN network id 12 for VN 1bd6745d-d0bc-45bc-a1ee-fa8ce38ec282
2025-07-22 23:26:17,899 - INFO - Verifications in API Server for VN ctest-vn-39884519 passed
2025-07-22 23:26:17,899 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1bd6745d-d0bc-45bc-a1ee-fa8ce38ec282
2025-07-22 23:26:17,913 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c0dd8183-8e21-4683-844c-d3a7df07deaf
2025-07-22 23:26:17,922 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c0dd8183-8e21-4683-844c-d3a7df07deaf
2025-07-22 23:26:17,931 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ed6fde26-423b-4985-a35a-a93ce965a616
2025-07-22 23:26:17,944 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37098881:ctest-vn-39884519', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37098881', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2005918630322914748', 'uuid-lslong': '11668539167583683202'}, 'enable': 'true', 'created': '2025-07-22T23:26:15', 'last-modified': '2025-07-22T23:26:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.428849'}
2025-07-22 23:26:17,951 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-22 23:26:17,951 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39884519 passed
2025-07-22 23:26:17,951 - DEBUG - ====Verifying policy data for ctest-vn-39884519 in API_Server ======
2025-07-22 23:26:17,951 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-22 23:26:17,958 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3d35b737-47ae-40a2-861c-ea327ce5373c
2025-07-22 23:26:17,970 - DEBUG - Requesting: http://10.0.0.38:8082/project/6f9fe94f-5fd2-498e-a62c-f7617d7d3829
2025-07-22 23:26:18,044 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1bd6745d-d0bc-45bc-a1ee-fa8ce38ec282
2025-07-22 23:26:18,057 - DEBUG - ==>Verifying data for policy with id: 43882ecf-49d3-4cd0-8eb4-6b73cdb723ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-37098881', 'ctest-policy-allow-all-17980864']
2025-07-22 23:26:18,057 - INFO - VN ctest-vn-39884519 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-22 23:26:18,057 - DEBUG - Verifying the vn in opserver
2025-07-22 23:26:18,057 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37098881:ctest-vn-39884519 virtual network link through opserver 10.0.0.38
2025-07-22 23:26:18,057 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-22 23:26:18,068 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37098881:ctest-vn-39884519', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37098881:ctest-vn-39884519?flat'}
2025-07-22 23:26:18,069 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37098881:ctest-vn-39884519 is found in opserver
2025-07-22 23:26:18,079 - DEBUG - Do not have enough data to verify VN in agent
2025-07-22 23:26:18,085 - DEBUG - VRF ids for VN ctest-vn-39884519: {}
2025-07-22 23:26:18,145 - DEBUG - Services list from nova: [