2025-10-14 18:13:45,436 - INFO - Domain Default found not creating
2025-10-14 18:13:45,569 - INFO - Project ctest-TestBasicPolicy-88586345 not found, creating it
2025-10-14 18:13:45,999 - INFO - Created Project:ctest-TestBasicPolicy-88586345, ID : 88c65935-84e7-49b7-ac71-dbff4aa8125d
2025-10-14 18:13:47,405 - INFO - ================================================================================
2025-10-14 18:13:47,405 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-14 18:13:47,406 - 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-14 18:13:47,665 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-10-14 18:13:47,665 - INFO - Initial checks done. Running the testcase now
2025-10-14 18:13:47,665 - INFO -
2025-10-14 18:13:48,220 - DEBUG - Response for create_network : {'network': {'id': '67fe5e6a-9477-4fa6-995e-47fc4d122732', 'name': 'ctest-vn-11165152', 'tenant_id': '88c6593584e749b7ac71dbff4aa8125d', 'project_id': '88c6593584e749b7ac71dbff4aa8125d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88586345', 'ctest-vn-11165152'], 'port_security_enabled': True, 'description': ''}}
2025-10-14 18:13:48,434 - DEBUG - Response for create_subnet : {'subnet': {'id': '4fb3deee-4d86-4e75-8b51-240c9e2e8238', 'name': '', 'tenant_id': '88c6593584e749b7ac71dbff4aa8125d', 'network_id': '67fe5e6a-9477-4fa6-995e-47fc4d122732', 'ip_version': 4, 'cidr': '106.228.129.192/26', 'allocation_pools': [{'start': '106.228.129.194', 'end': '106.228.129.254'}], 'gateway_ip': '106.228.129.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.228.129.194', 'tags': [], 'project_id': '88c6593584e749b7ac71dbff4aa8125d'}}
2025-10-14 18:13:48,451 - INFO - Created VN ctest-vn-11165152
2025-10-14 18:13:48,504 - DEBUG - VN ctest-vn-11165152 UUID is 67fe5e6a-9477-4fa6-995e-47fc4d122732
2025-10-14 18:13:48,806 - DEBUG - Response for create_network : {'network': {'id': '613c553f-7be3-4ada-af70-713f1c00c097', 'name': 'ctest-vn-16612251', 'tenant_id': '88c6593584e749b7ac71dbff4aa8125d', 'project_id': '88c6593584e749b7ac71dbff4aa8125d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88586345', 'ctest-vn-16612251'], 'port_security_enabled': True, 'description': ''}}
2025-10-14 18:13:48,975 - DEBUG - Response for create_subnet : {'subnet': {'id': '78a5f39d-791d-43b4-84a5-1934eabcdcc0', 'name': '', 'tenant_id': '88c6593584e749b7ac71dbff4aa8125d', 'network_id': '613c553f-7be3-4ada-af70-713f1c00c097', 'ip_version': 4, 'cidr': '198.158.111.128/26', 'allocation_pools': [{'start': '198.158.111.130', 'end': '198.158.111.190'}], 'gateway_ip': '198.158.111.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.158.111.130', 'tags': [], 'project_id': '88c6593584e749b7ac71dbff4aa8125d'}}
2025-10-14 18:13:48,993 - INFO - Created VN ctest-vn-16612251
2025-10-14 18:13:49,044 - DEBUG - VN ctest-vn-16612251 UUID is 613c553f-7be3-4ada-af70-713f1c00c097
2025-10-14 18:13:49,195 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88586345:ctest-vn-11165152, 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-88586345:ctest-vn-16612251, 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-14 18:13:49,480 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '67fe5e6a-9477-4fa6-995e-47fc4d122732', 'name': 'ctest-vn-11165152', 'tenant_id': '88c6593584e749b7ac71dbff4aa8125d', 'project_id': '88c6593584e749b7ac71dbff4aa8125d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4fb3deee-4d86-4e75-8b51-240c9e2e8238'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88586345', 'ctest-vn-11165152'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88586345', 'ctest-policy-allow-all-19268407']], 'subnet_ipam': [{'subnet_cidr': '106.228.129.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-14 18:13:49,744 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '613c553f-7be3-4ada-af70-713f1c00c097', 'name': 'ctest-vn-16612251', 'tenant_id': '88c6593584e749b7ac71dbff4aa8125d', 'project_id': '88c6593584e749b7ac71dbff4aa8125d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78a5f39d-791d-43b4-84a5-1934eabcdcc0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88586345', 'ctest-vn-16612251'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88586345', 'ctest-policy-allow-all-19268407']], 'subnet_ipam': [{'subnet_cidr': '198.158.111.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-14 18:13:49,892 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-14 18:13:50,182 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-14 18:13:50,210 - DEBUG - Requesting: http://10.0.0.254:8082/domain/31fb57cf-c5a9-415c-b926-81959e070dfb
2025-10-14 18:13:50,220 - DEBUG - Requesting: http://10.0.0.254:8082/project/88c65935-84e7-49b7-ac71-dbff4aa8125d
2025-10-14 18:13:50,289 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/67fe5e6a-9477-4fa6-995e-47fc4d122732
2025-10-14 18:13:50,297 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/67fe5e6a-9477-4fa6-995e-47fc4d122732
2025-10-14 18:13:50,304 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f748c7f2-5a21-48e3-acda-0366371395a5
2025-10-14 18:13:50,310 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f748c7f2-5a21-48e3-acda-0366371395a5
2025-10-14 18:13:50,316 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9c8788be-fc1f-409d-af04-3dec8f14317d
2025-10-14 18:13:50,320 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-14 18:13:50,320 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/67fe5e6a-9477-4fa6-995e-47fc4d122732
2025-10-14 18:13:50,327 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f748c7f2-5a21-48e3-acda-0366371395a5
2025-10-14 18:13:50,338 - INFO - Verified VN network id 12 for VN 67fe5e6a-9477-4fa6-995e-47fc4d122732
2025-10-14 18:13:50,338 - INFO - Verifications in API Server for VN ctest-vn-11165152 passed
2025-10-14 18:13:50,338 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/67fe5e6a-9477-4fa6-995e-47fc4d122732
2025-10-14 18:13:50,346 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f748c7f2-5a21-48e3-acda-0366371395a5
2025-10-14 18:13:50,351 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f748c7f2-5a21-48e3-acda-0366371395a5
2025-10-14 18:13:50,356 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9c8788be-fc1f-409d-af04-3dec8f14317d
2025-10-14 18:13:50,365 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88586345:ctest-vn-11165152', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88586345', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7493530641841475494', 'uuid-lslong': '11051349684564141874'}, 'enable': 'true', 'created': '2025-10-14T18:13:48', 'last-modified': '2025-10-14T18:13:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.906883'}
2025-10-14 18:13:50,370 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-14 18:13:50,370 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11165152 passed
2025-10-14 18:13:50,370 - DEBUG - ====Verifying policy data for ctest-vn-11165152 in API_Server ======
2025-10-14 18:13:50,370 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-14 18:13:50,374 - DEBUG - Requesting: http://10.0.0.254:8082/domain/31fb57cf-c5a9-415c-b926-81959e070dfb
2025-10-14 18:13:50,383 - DEBUG - Requesting: http://10.0.0.254:8082/project/88c65935-84e7-49b7-ac71-dbff4aa8125d
2025-10-14 18:13:50,449 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/67fe5e6a-9477-4fa6-995e-47fc4d122732
2025-10-14 18:13:50,458 - DEBUG - ==>Verifying data for policy with id: 8ad07802-935d-4ff1-9880-09e8aa5038ba, fqn: ['default-domain', 'ctest-TestBasicPolicy-88586345', 'ctest-policy-allow-all-19268407']
2025-10-14 18:13:50,458 - INFO - VN ctest-vn-11165152 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-14 18:13:50,458 - DEBUG - Verifying the vn in opserver
2025-10-14 18:13:50,458 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88586345:ctest-vn-11165152 virtual network link through opserver 10.0.0.254
2025-10-14 18:13:50,458 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-14 18:13:50,748 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-14 18:13:50,796 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88586345:ctest-vn-11165152', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88586345:ctest-vn-11165152?flat'}
2025-10-14 18:13:50,796 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88586345:ctest-vn-11165152 is found in opserver
2025-10-14 18:13:50,805 - DEBUG - Do not have enough data to verify VN in agent
2025-10-14 18:13:50,809 - DEBUG - VRF ids for VN ctest-vn-11165152: {}
2025-10-14 18:13:50,809 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-14 18:13:50,814 - DEBUG - Requesting: http://10.0.0.254:8082/domain/31fb57cf-c5a9-415c-b926-81959e070dfb
2025-10-14 18:13:50,823 - DEBUG - Requesting: http://10.0.0.254:8082/project/88c65935-84e7-49b7-ac71-dbff4aa8125d
2025-10-14 18:13:50,892 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/613c553f-7be3-4ada-af70-713f1c00c097
2025-10-14 18:13:50,903 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/613c553f-7be3-4ada-af70-713f1c00c097
2025-10-14 18:13:50,911 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5e4971be-da0a-425c-afef-bd30e0c177ec
2025-10-14 18:13:50,917 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5e4971be-da0a-425c-afef-bd30e0c177ec
2025-10-14 18:13:50,923 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2f3678f7-4ee5-4bb4-bce1-a247ab8f84f3
2025-10-14 18:13:50,929 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-14 18:13:50,929 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/613c553f-7be3-4ada-af70-713f1c00c097
2025-10-14 18:13:50,937 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5e4971be-da0a-425c-afef-bd30e0c177ec
2025-10-14 18:13:50,948 - INFO - Verified VN network id 13 for VN 613c553f-7be3-4ada-af70-713f1c00c097
2025-10-14 18:13:50,949 - INFO - Verifications in API Server for VN ctest-vn-16612251 passed
2025-10-14 18:13:50,949 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/613c553f-7be3-4ada-af70-713f1c00c097
2025-10-14 18:13:50,956 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5e4971be-da0a-425c-afef-bd30e0c177ec
2025-10-14 18:13:50,962 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5e4971be-da0a-425c-afef-bd30e0c177ec
2025-10-14 18:13:50,968 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2f3678f7-4ee5-4bb4-bce1-a247ab8f84f3
2025-10-14 18:13:50,978 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88586345:ctest-vn-16612251', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88586345', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7006568851431443162', 'uuid-lslong': '12641728669895671959'}, 'enable': 'true', 'created': '2025-10-14T18:13:48', 'last-modified': '2025-10-14T18:13:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.305675'}
2025-10-14 18:13:50,984 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-14 18:13:50,984 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16612251 passed
2025-10-14 18:13:50,984 - DEBUG - ====Verifying policy data for ctest-vn-16612251 in API_Server ======
2025-10-14 18:13:50,984 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-14 18:13:50,989 - DEBUG - Requesting: http://10.0.0.254:8082/domain/31fb57cf-c5a9-415c-b926-81959e070dfb
2025-10-14 18:13:50,998 - DEBUG - Requesting: http://10.0.0.254:8082/project/88c65935-84e7-49b7-ac71-dbff4aa8125d
2025-10-14 18:13:51,066 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/613c553f-7be3-4ada-af70-713f1c00c097
2025-10-14 18:13:51,074 - DEBUG - ==>Verifying data for policy with id: 8ad07802-935d-4ff1-9880-09e8aa5038ba, fqn: ['default-domain', 'ctest-TestBasicPolicy-88586345', 'ctest-policy-allow-all-19268407']
2025-10-14 18:13:51,074 - INFO - VN ctest-vn-16612251 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-14 18:13:51,074 - DEBUG - Verifying the vn in opserver
2025-10-14 18:13:51,074 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88586345:ctest-vn-16612251 virtual network link through opserver 10.0.0.254
2025-10-14 18:13:51,074 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-14 18:13:51,082 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88586345:ctest-vn-16612251', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88586345:ctest-vn-16612251?flat'}
2025-10-14 18:13:51,082 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88586345:ctest-vn-16612251 is found in opserver
2025-10-14 18:13:51,092 - DEBUG - Do not have enough data to verify VN in agent
2025-10-14 18:13:51,096 - DEBUG - VRF ids for VN ctest-vn-16612251: {}
2025-10-14 18:13:51,148 - DEBUG - Services list from nova: [