2025-06-24 15:46:28,852 - INFO - Domain Default found not creating
2025-06-24 15:46:28,998 - INFO - Project ctest-TestBasicPolicy-55458674 not found, creating it
2025-06-24 15:46:29,552 - INFO - Created Project:ctest-TestBasicPolicy-55458674, ID : 01553a5d-ce95-4572-a33e-3b3326b72db6
2025-06-24 15:46:31,046 - INFO - ================================================================================
2025-06-24 15:46:31,046 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-24 15:46:31,047 - 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-24 15:46:31,302 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-24 15:46:31,302 - INFO - Initial checks done. Running the testcase now
2025-06-24 15:46:31,302 - INFO -
2025-06-24 15:46:31,853 - DEBUG - Response for create_network : {'network': {'id': '1e6fee46-f732-4d0f-9145-e67d0ba4c6a2', 'name': 'ctest-vn-92342716', 'tenant_id': '01553a5dce954572a33e3b3326b72db6', 'project_id': '01553a5dce954572a33e3b3326b72db6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55458674', 'ctest-vn-92342716'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 15:46:32,051 - DEBUG - Response for create_subnet : {'subnet': {'id': '662d74d2-ca61-4f77-85e0-86f4ff8bc2e6', 'name': '', 'tenant_id': '01553a5dce954572a33e3b3326b72db6', 'network_id': '1e6fee46-f732-4d0f-9145-e67d0ba4c6a2', 'ip_version': 4, 'cidr': '196.143.11.64/26', 'allocation_pools': [{'start': '196.143.11.66', 'end': '196.143.11.126'}], 'gateway_ip': '196.143.11.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.143.11.66', 'tags': [], 'project_id': '01553a5dce954572a33e3b3326b72db6'}}
2025-06-24 15:46:32,073 - INFO - Created VN ctest-vn-92342716
2025-06-24 15:46:32,132 - DEBUG - VN ctest-vn-92342716 UUID is 1e6fee46-f732-4d0f-9145-e67d0ba4c6a2
2025-06-24 15:46:32,480 - DEBUG - Response for create_network : {'network': {'id': '525be652-0590-4698-b349-3fbe44d91cbb', 'name': 'ctest-vn-69934370', 'tenant_id': '01553a5dce954572a33e3b3326b72db6', 'project_id': '01553a5dce954572a33e3b3326b72db6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55458674', 'ctest-vn-69934370'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 15:46:32,692 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8a7bf00-bbb3-457d-be6b-f5f8c19a8619', 'name': '', 'tenant_id': '01553a5dce954572a33e3b3326b72db6', 'network_id': '525be652-0590-4698-b349-3fbe44d91cbb', 'ip_version': 4, 'cidr': '28.161.21.128/26', 'allocation_pools': [{'start': '28.161.21.130', 'end': '28.161.21.190'}], 'gateway_ip': '28.161.21.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.161.21.130', 'tags': [], 'project_id': '01553a5dce954572a33e3b3326b72db6'}}
2025-06-24 15:46:32,712 - INFO - Created VN ctest-vn-69934370
2025-06-24 15:46:32,768 - DEBUG - VN ctest-vn-69934370 UUID is 525be652-0590-4698-b349-3fbe44d91cbb
2025-06-24 15:46:32,885 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55458674:ctest-vn-92342716, 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-55458674:ctest-vn-69934370, 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-24 15:46:33,207 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1e6fee46-f732-4d0f-9145-e67d0ba4c6a2', 'name': 'ctest-vn-92342716', 'tenant_id': '01553a5dce954572a33e3b3326b72db6', 'project_id': '01553a5dce954572a33e3b3326b72db6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['662d74d2-ca61-4f77-85e0-86f4ff8bc2e6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55458674', 'ctest-vn-92342716'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55458674', 'ctest-policy-allow-all-18725784']], 'subnet_ipam': [{'subnet_cidr': '196.143.11.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 15:46:33,455 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '525be652-0590-4698-b349-3fbe44d91cbb', 'name': 'ctest-vn-69934370', 'tenant_id': '01553a5dce954572a33e3b3326b72db6', 'project_id': '01553a5dce954572a33e3b3326b72db6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d8a7bf00-bbb3-457d-be6b-f5f8c19a8619'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55458674', 'ctest-vn-69934370'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55458674', 'ctest-policy-allow-all-18725784']], 'subnet_ipam': [{'subnet_cidr': '28.161.21.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 15:46:33,628 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-24 15:46:33,927 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-24 15:46:33,959 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b2b7d340-c169-44ad-b2bb-224b0c1fe6ef
2025-06-24 15:46:33,974 - DEBUG - Requesting: http://10.0.0.38:8082/project/01553a5d-ce95-4572-a33e-3b3326b72db6
2025-06-24 15:46:34,066 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1e6fee46-f732-4d0f-9145-e67d0ba4c6a2
2025-06-24 15:46:34,080 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1e6fee46-f732-4d0f-9145-e67d0ba4c6a2
2025-06-24 15:46:34,092 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/54bcf44a-3b27-4b3a-95ae-f04c9e4c15f6
2025-06-24 15:46:34,102 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/54bcf44a-3b27-4b3a-95ae-f04c9e4c15f6
2025-06-24 15:46:34,110 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/28424f0d-c363-42f4-8961-81beb1926b92
2025-06-24 15:46:34,118 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 15:46:34,118 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1e6fee46-f732-4d0f-9145-e67d0ba4c6a2
2025-06-24 15:46:34,129 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/54bcf44a-3b27-4b3a-95ae-f04c9e4c15f6
2025-06-24 15:46:34,145 - INFO - Verified VN network id 8 for VN 1e6fee46-f732-4d0f-9145-e67d0ba4c6a2
2025-06-24 15:46:34,145 - INFO - Verifications in API Server for VN ctest-vn-92342716 passed
2025-06-24 15:46:34,145 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1e6fee46-f732-4d0f-9145-e67d0ba4c6a2
2025-06-24 15:46:34,156 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/54bcf44a-3b27-4b3a-95ae-f04c9e4c15f6
2025-06-24 15:46:34,164 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/54bcf44a-3b27-4b3a-95ae-f04c9e4c15f6
2025-06-24 15:46:34,172 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/28424f0d-c363-42f4-8961-81beb1926b92
2025-06-24 15:46:34,189 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55458674:ctest-vn-92342716', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55458674', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2193233532115111183', 'uuid-lslong': '10468026333633234594'}, 'enable': 'true', 'created': '2025-06-24T15:46:31', 'last-modified': '2025-06-24T15:46:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.006770'}
2025-06-24 15:46:34,196 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 15:46:34,196 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92342716 passed
2025-06-24 15:46:34,196 - DEBUG - ====Verifying policy data for ctest-vn-92342716 in API_Server ======
2025-06-24 15:46:34,196 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-24 15:46:34,203 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b2b7d340-c169-44ad-b2bb-224b0c1fe6ef
2025-06-24 15:46:34,216 - DEBUG - Requesting: http://10.0.0.38:8082/project/01553a5d-ce95-4572-a33e-3b3326b72db6
2025-06-24 15:46:34,288 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1e6fee46-f732-4d0f-9145-e67d0ba4c6a2
2025-06-24 15:46:34,299 - DEBUG - ==>Verifying data for policy with id: da74c449-fd85-432d-b875-ad9130b51655, fqn: ['default-domain', 'ctest-TestBasicPolicy-55458674', 'ctest-policy-allow-all-18725784']
2025-06-24 15:46:34,299 - INFO - VN ctest-vn-92342716 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 15:46:34,299 - DEBUG - Verifying the vn in opserver
2025-06-24 15:46:34,299 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55458674:ctest-vn-92342716 virtual network link through opserver 10.0.0.38
2025-06-24 15:46:34,299 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-24 15:46:34,588 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-24 15:46:34,655 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55458674:ctest-vn-92342716', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55458674:ctest-vn-92342716?flat'}
2025-06-24 15:46:34,655 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55458674:ctest-vn-92342716 is found in opserver
2025-06-24 15:46:34,668 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 15:46:34,673 - DEBUG - VRF ids for VN ctest-vn-92342716: {}
2025-06-24 15:46:34,674 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-24 15:46:34,680 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b2b7d340-c169-44ad-b2bb-224b0c1fe6ef
2025-06-24 15:46:34,693 - DEBUG - Requesting: http://10.0.0.38:8082/project/01553a5d-ce95-4572-a33e-3b3326b72db6
2025-06-24 15:46:34,770 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/525be652-0590-4698-b349-3fbe44d91cbb
2025-06-24 15:46:34,783 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/525be652-0590-4698-b349-3fbe44d91cbb
2025-06-24 15:46:34,793 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/504bfe20-8c2e-448c-a9ad-1b3362dc6fa2
2025-06-24 15:46:34,801 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/504bfe20-8c2e-448c-a9ad-1b3362dc6fa2
2025-06-24 15:46:34,810 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/94a54226-2087-4ac3-bcb3-f03fe84d4eb7
2025-06-24 15:46:34,817 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 15:46:34,817 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/525be652-0590-4698-b349-3fbe44d91cbb
2025-06-24 15:46:34,827 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/504bfe20-8c2e-448c-a9ad-1b3362dc6fa2
2025-06-24 15:46:34,843 - INFO - Verified VN network id 9 for VN 525be652-0590-4698-b349-3fbe44d91cbb
2025-06-24 15:46:34,844 - INFO - Verifications in API Server for VN ctest-vn-69934370 passed
2025-06-24 15:46:34,844 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/525be652-0590-4698-b349-3fbe44d91cbb
2025-06-24 15:46:34,855 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/504bfe20-8c2e-448c-a9ad-1b3362dc6fa2
2025-06-24 15:46:34,863 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/504bfe20-8c2e-448c-a9ad-1b3362dc6fa2
2025-06-24 15:46:34,870 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/94a54226-2087-4ac3-bcb3-f03fe84d4eb7
2025-06-24 15:46:34,883 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55458674:ctest-vn-69934370', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55458674', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5934590173945808536', 'uuid-lslong': '12918927092520393915'}, 'enable': 'true', 'created': '2025-06-24T15:46:32', 'last-modified': '2025-06-24T15:46:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.451902'}
2025-06-24 15:46:34,890 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 15:46:34,890 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69934370 passed
2025-06-24 15:46:34,890 - DEBUG - ====Verifying policy data for ctest-vn-69934370 in API_Server ======
2025-06-24 15:46:34,890 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-24 15:46:34,897 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b2b7d340-c169-44ad-b2bb-224b0c1fe6ef
2025-06-24 15:46:34,911 - DEBUG - Requesting: http://10.0.0.38:8082/project/01553a5d-ce95-4572-a33e-3b3326b72db6
2025-06-24 15:46:34,991 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/525be652-0590-4698-b349-3fbe44d91cbb
2025-06-24 15:46:35,005 - DEBUG - ==>Verifying data for policy with id: da74c449-fd85-432d-b875-ad9130b51655, fqn: ['default-domain', 'ctest-TestBasicPolicy-55458674', 'ctest-policy-allow-all-18725784']
2025-06-24 15:46:35,005 - INFO - VN ctest-vn-69934370 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 15:46:35,005 - DEBUG - Verifying the vn in opserver
2025-06-24 15:46:35,005 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55458674:ctest-vn-69934370 virtual network link through opserver 10.0.0.38
2025-06-24 15:46:35,005 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-24 15:46:35,019 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55458674:ctest-vn-69934370', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55458674:ctest-vn-69934370?flat'}
2025-06-24 15:46:35,019 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55458674:ctest-vn-69934370 is found in opserver
2025-06-24 15:46:35,031 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 15:46:35,036 - DEBUG - VRF ids for VN ctest-vn-69934370: {}
2025-06-24 15:46:35,098 - DEBUG - Services list from nova: [