2025-06-09 02:20:26,990 - INFO - Domain Default found not creating
2025-06-09 02:20:27,167 - INFO - Project ctest-TestBasicPolicy-05624190 not found, creating it
2025-06-09 02:20:27,741 - INFO - Created Project:ctest-TestBasicPolicy-05624190, ID : 7b5de380-4bda-4b92-a872-bb98d0af2b3f
2025-06-09 02:20:29,246 - INFO - ================================================================================
2025-06-09 02:20:29,246 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-09 02:20:29,246 - 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-06-09 02:20:29,507 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with
2025-06-09 02:20:29,507 - INFO - Initial checks done. Running the testcase now
2025-06-09 02:20:29,507 - INFO -
2025-06-09 02:20:30,087 - DEBUG - Response for create_network : {'network': {'id': '23850911-c982-4a3c-8857-5dfcf9642cf0', 'name': 'ctest-vn-04204060', 'tenant_id': '7b5de3804bda4b92a872bb98d0af2b3f', 'project_id': '7b5de3804bda4b92a872bb98d0af2b3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05624190', 'ctest-vn-04204060'], 'port_security_enabled': True, 'description': ''}}
2025-06-09 02:20:30,252 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f2d9fee1-ce58-4e43-9ceb-d2d654b5722b', 'name': '', 'tenant_id': '7b5de3804bda4b92a872bb98d0af2b3f', 'network_id': '23850911-c982-4a3c-8857-5dfcf9642cf0', 'ip_version': 4, 'cidr': '23.189.162.64/26', 'allocation_pools': [{'start': '23.189.162.66', 'end': '23.189.162.126'}], 'gateway_ip': '23.189.162.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.189.162.66', 'tags': [], 'project_id': '7b5de3804bda4b92a872bb98d0af2b3f'}}
2025-06-09 02:20:30,272 - INFO - Created VN ctest-vn-04204060
2025-06-09 02:20:30,325 - DEBUG - VN ctest-vn-04204060 UUID is 23850911-c982-4a3c-8857-5dfcf9642cf0
2025-06-09 02:20:30,641 - DEBUG - Response for create_network : {'network': {'id': '19b78805-9c4c-4ab7-bc5d-98b4347e3b76', 'name': 'ctest-vn-26893452', 'tenant_id': '7b5de3804bda4b92a872bb98d0af2b3f', 'project_id': '7b5de3804bda4b92a872bb98d0af2b3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05624190', 'ctest-vn-26893452'], 'port_security_enabled': True, 'description': ''}}
2025-06-09 02:20:30,817 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a0f2036-9e50-4673-832e-6e0a9a472982', 'name': '', 'tenant_id': '7b5de3804bda4b92a872bb98d0af2b3f', 'network_id': '19b78805-9c4c-4ab7-bc5d-98b4347e3b76', 'ip_version': 4, 'cidr': '39.161.82.0/26', 'allocation_pools': [{'start': '39.161.82.2', 'end': '39.161.82.62'}], 'gateway_ip': '39.161.82.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.161.82.2', 'tags': [], 'project_id': '7b5de3804bda4b92a872bb98d0af2b3f'}}
2025-06-09 02:20:30,835 - INFO - Created VN ctest-vn-26893452
2025-06-09 02:20:30,888 - DEBUG - VN ctest-vn-26893452 UUID is 19b78805-9c4c-4ab7-bc5d-98b4347e3b76
2025-06-09 02:20:31,004 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05624190:ctest-vn-04204060, 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-05624190:ctest-vn-26893452, 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-06-09 02:20:31,341 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '23850911-c982-4a3c-8857-5dfcf9642cf0', 'name': 'ctest-vn-04204060', 'tenant_id': '7b5de3804bda4b92a872bb98d0af2b3f', 'project_id': '7b5de3804bda4b92a872bb98d0af2b3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f2d9fee1-ce58-4e43-9ceb-d2d654b5722b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05624190', 'ctest-vn-04204060'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05624190', 'ctest-policy-allow-all-66207984']], 'subnet_ipam': [{'subnet_cidr': '23.189.162.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-09 02:20:31,629 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '19b78805-9c4c-4ab7-bc5d-98b4347e3b76', 'name': 'ctest-vn-26893452', 'tenant_id': '7b5de3804bda4b92a872bb98d0af2b3f', 'project_id': '7b5de3804bda4b92a872bb98d0af2b3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0a0f2036-9e50-4673-832e-6e0a9a472982'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05624190', 'ctest-vn-26893452'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05624190', 'ctest-policy-allow-all-66207984']], 'subnet_ipam': [{'subnet_cidr': '39.161.82.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-09 02:20:31,776 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-09 02:20:32,074 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-09 02:20:32,102 - DEBUG - Requesting: http://10.0.0.27:8082/domain/02221717-eca1-43d9-adef-8bec404929db
2025-06-09 02:20:32,116 - DEBUG - Requesting: http://10.0.0.27:8082/project/7b5de380-4bda-4b92-a872-bb98d0af2b3f
2025-06-09 02:20:32,190 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/23850911-c982-4a3c-8857-5dfcf9642cf0
2025-06-09 02:20:32,203 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/23850911-c982-4a3c-8857-5dfcf9642cf0
2025-06-09 02:20:32,213 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/31409ec1-5ce4-4ea6-b811-bbc4cadc9f60
2025-06-09 02:20:32,221 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/31409ec1-5ce4-4ea6-b811-bbc4cadc9f60
2025-06-09 02:20:32,230 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c7df8c55-7754-448f-911d-6afff73a634b
2025-06-09 02:20:32,238 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-09 02:20:32,238 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/23850911-c982-4a3c-8857-5dfcf9642cf0
2025-06-09 02:20:32,248 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/31409ec1-5ce4-4ea6-b811-bbc4cadc9f60
2025-06-09 02:20:32,264 - INFO - Verified VN network id 8 for VN 23850911-c982-4a3c-8857-5dfcf9642cf0
2025-06-09 02:20:32,264 - INFO - Verifications in API Server for VN ctest-vn-04204060 passed
2025-06-09 02:20:32,264 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/23850911-c982-4a3c-8857-5dfcf9642cf0
2025-06-09 02:20:32,275 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/31409ec1-5ce4-4ea6-b811-bbc4cadc9f60
2025-06-09 02:20:32,282 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/31409ec1-5ce4-4ea6-b811-bbc4cadc9f60
2025-06-09 02:20:32,289 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c7df8c55-7754-448f-911d-6afff73a634b
2025-06-09 02:20:32,301 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05624190:ctest-vn-04204060', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05624190', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2559461935229848124', 'uuid-lslong': '9824424453229260016'}, 'enable': 'true', 'created': '2025-06-09T02:20:30', 'last-modified': '2025-06-09T02:20:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.991758'}
2025-06-09 02:20:32,308 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-09 02:20:32,308 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04204060 passed
2025-06-09 02:20:32,308 - DEBUG - ====Verifying policy data for ctest-vn-04204060 in API_Server ======
2025-06-09 02:20:32,308 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-09 02:20:32,314 - DEBUG - Requesting: http://10.0.0.27:8082/domain/02221717-eca1-43d9-adef-8bec404929db
2025-06-09 02:20:32,327 - DEBUG - Requesting: http://10.0.0.27:8082/project/7b5de380-4bda-4b92-a872-bb98d0af2b3f
2025-06-09 02:20:32,401 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/23850911-c982-4a3c-8857-5dfcf9642cf0
2025-06-09 02:20:32,412 - DEBUG - ==>Verifying data for policy with id: 12ef5798-88a1-4b3d-a83f-e8d1054f1fc8, fqn: ['default-domain', 'ctest-TestBasicPolicy-05624190', 'ctest-policy-allow-all-66207984']
2025-06-09 02:20:32,412 - INFO - VN ctest-vn-04204060 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-09 02:20:32,412 - DEBUG - Verifying the vn in opserver
2025-06-09 02:20:32,412 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05624190:ctest-vn-04204060 virtual network link through opserver 10.0.0.27
2025-06-09 02:20:32,412 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-06-09 02:20:32,702 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-06-09 02:20:32,759 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05624190:ctest-vn-04204060', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05624190:ctest-vn-04204060?flat'}
2025-06-09 02:20:32,759 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05624190:ctest-vn-04204060 is found in opserver
2025-06-09 02:20:32,770 - DEBUG - Do not have enough data to verify VN in agent
2025-06-09 02:20:32,775 - DEBUG - VRF ids for VN ctest-vn-04204060: {}
2025-06-09 02:20:32,775 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-09 02:20:32,781 - DEBUG - Requesting: http://10.0.0.27:8082/domain/02221717-eca1-43d9-adef-8bec404929db
2025-06-09 02:20:32,793 - DEBUG - Requesting: http://10.0.0.27:8082/project/7b5de380-4bda-4b92-a872-bb98d0af2b3f
2025-06-09 02:20:32,867 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/19b78805-9c4c-4ab7-bc5d-98b4347e3b76
2025-06-09 02:20:32,880 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/19b78805-9c4c-4ab7-bc5d-98b4347e3b76
2025-06-09 02:20:32,889 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bd808279-8c9e-4cd3-ac48-0729d4cad3e0
2025-06-09 02:20:32,896 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bd808279-8c9e-4cd3-ac48-0729d4cad3e0
2025-06-09 02:20:32,903 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/215a665e-a0b8-45ec-9ee7-16632f3a2e44
2025-06-09 02:20:32,909 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-09 02:20:32,909 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/19b78805-9c4c-4ab7-bc5d-98b4347e3b76
2025-06-09 02:20:32,919 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bd808279-8c9e-4cd3-ac48-0729d4cad3e0
2025-06-09 02:20:32,934 - INFO - Verified VN network id 9 for VN 19b78805-9c4c-4ab7-bc5d-98b4347e3b76
2025-06-09 02:20:32,934 - INFO - Verifications in API Server for VN ctest-vn-26893452 passed
2025-06-09 02:20:32,934 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/19b78805-9c4c-4ab7-bc5d-98b4347e3b76
2025-06-09 02:20:32,945 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bd808279-8c9e-4cd3-ac48-0729d4cad3e0
2025-06-09 02:20:32,953 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bd808279-8c9e-4cd3-ac48-0729d4cad3e0
2025-06-09 02:20:32,961 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/215a665e-a0b8-45ec-9ee7-16632f3a2e44
2025-06-09 02:20:32,975 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05624190:ctest-vn-26893452', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05624190', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1853099329364708023', 'uuid-lslong': '13573172751706766198'}, 'enable': 'true', 'created': '2025-06-09T02:20:30', 'last-modified': '2025-06-09T02:20:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.418365'}
2025-06-09 02:20:32,983 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-09 02:20:32,983 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26893452 passed
2025-06-09 02:20:32,983 - DEBUG - ====Verifying policy data for ctest-vn-26893452 in API_Server ======
2025-06-09 02:20:32,983 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-06-09 02:20:32,989 - DEBUG - Requesting: http://10.0.0.27:8082/domain/02221717-eca1-43d9-adef-8bec404929db
2025-06-09 02:20:33,001 - DEBUG - Requesting: http://10.0.0.27:8082/project/7b5de380-4bda-4b92-a872-bb98d0af2b3f
2025-06-09 02:20:33,080 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/19b78805-9c4c-4ab7-bc5d-98b4347e3b76
2025-06-09 02:20:33,091 - DEBUG - ==>Verifying data for policy with id: 12ef5798-88a1-4b3d-a83f-e8d1054f1fc8, fqn: ['default-domain', 'ctest-TestBasicPolicy-05624190', 'ctest-policy-allow-all-66207984']
2025-06-09 02:20:33,091 - INFO - VN ctest-vn-26893452 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-09 02:20:33,091 - DEBUG - Verifying the vn in opserver
2025-06-09 02:20:33,091 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05624190:ctest-vn-26893452 virtual network link through opserver 10.0.0.27
2025-06-09 02:20:33,091 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-06-09 02:20:33,102 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05624190:ctest-vn-26893452', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05624190:ctest-vn-26893452?flat'}
2025-06-09 02:20:33,102 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05624190:ctest-vn-26893452 is found in opserver
2025-06-09 02:20:33,113 - DEBUG - Do not have enough data to verify VN in agent
2025-06-09 02:20:33,119 - DEBUG - VRF ids for VN ctest-vn-26893452: {}
2025-06-09 02:20:33,178 - DEBUG - Services list from nova: [