2025-08-06 14:17:44,581 - INFO - Domain Default found not creating
2025-08-06 14:17:44,771 - INFO - Project ctest-TestBasicPolicy-36809552 not found, creating it
2025-08-06 14:17:45,297 - INFO - Created Project:ctest-TestBasicPolicy-36809552, ID : b1ab2b35-d8e4-4694-a0a2-ac1fa7dedb8a
2025-08-06 14:17:47,062 - INFO - ================================================================================
2025-08-06 14:17:47,062 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-06 14:17:47,062 - 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-08-06 14:17:47,338 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-08-06 14:17:47,338 - INFO - Initial checks done. Running the testcase now
2025-08-06 14:17:47,338 - INFO -
2025-08-06 14:17:47,958 - DEBUG - Response for create_network : {'network': {'id': '8c4de669-420a-42d4-b42c-baded3780f15', 'name': 'ctest-vn-71821703', 'tenant_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a', 'project_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36809552', 'ctest-vn-71821703'], 'port_security_enabled': True, 'description': ''}}
2025-08-06 14:17:48,120 - DEBUG - Response for create_subnet : {'subnet': {'id': '699db90e-6507-4bdc-8e3b-ec617f95a309', 'name': '', 'tenant_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a', 'network_id': '8c4de669-420a-42d4-b42c-baded3780f15', 'ip_version': 4, 'cidr': '1.96.218.64/26', 'allocation_pools': [{'start': '1.96.218.66', 'end': '1.96.218.126'}], 'gateway_ip': '1.96.218.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.96.218.66', 'tags': [], 'project_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a'}}
2025-08-06 14:17:48,142 - INFO - Created VN ctest-vn-71821703
2025-08-06 14:17:48,196 - DEBUG - VN ctest-vn-71821703 UUID is 8c4de669-420a-42d4-b42c-baded3780f15
2025-08-06 14:17:48,516 - DEBUG - Response for create_network : {'network': {'id': 'f3ea69cd-c184-4437-8450-9f7baaed74e2', 'name': 'ctest-vn-30532083', 'tenant_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a', 'project_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36809552', 'ctest-vn-30532083'], 'port_security_enabled': True, 'description': ''}}
2025-08-06 14:17:48,750 - DEBUG - Response for create_subnet : {'subnet': {'id': '48d3a052-9886-4209-bf56-4f879e330408', 'name': '', 'tenant_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a', 'network_id': 'f3ea69cd-c184-4437-8450-9f7baaed74e2', 'ip_version': 4, 'cidr': '84.185.157.0/26', 'allocation_pools': [{'start': '84.185.157.2', 'end': '84.185.157.62'}], 'gateway_ip': '84.185.157.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.185.157.2', 'tags': [], 'project_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a'}}
2025-08-06 14:17:48,772 - INFO - Created VN ctest-vn-30532083
2025-08-06 14:17:48,830 - DEBUG - VN ctest-vn-30532083 UUID is f3ea69cd-c184-4437-8450-9f7baaed74e2
2025-08-06 14:17:48,959 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-71821703, 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-36809552:ctest-vn-30532083, 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-08-06 14:17:49,275 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8c4de669-420a-42d4-b42c-baded3780f15', 'name': 'ctest-vn-71821703', 'tenant_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a', 'project_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['699db90e-6507-4bdc-8e3b-ec617f95a309'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36809552', 'ctest-vn-71821703'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36809552', 'ctest-policy-allow-all-38671152']], 'subnet_ipam': [{'subnet_cidr': '1.96.218.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-06 14:17:49,565 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f3ea69cd-c184-4437-8450-9f7baaed74e2', 'name': 'ctest-vn-30532083', 'tenant_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a', 'project_id': 'b1ab2b35d8e44694a0a2ac1fa7dedb8a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['48d3a052-9886-4209-bf56-4f879e330408'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36809552', 'ctest-vn-30532083'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36809552', 'ctest-policy-allow-all-38671152']], 'subnet_ipam': [{'subnet_cidr': '84.185.157.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-06 14:17:49,716 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-06 14:17:50,061 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-06 14:17:50,099 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f7978a71-7977-4bc1-b5f2-0fd76822ff8b
2025-08-06 14:17:50,116 - DEBUG - Requesting: http://10.0.0.50:8082/project/b1ab2b35-d8e4-4694-a0a2-ac1fa7dedb8a
2025-08-06 14:17:50,194 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c4de669-420a-42d4-b42c-baded3780f15
2025-08-06 14:17:50,208 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c4de669-420a-42d4-b42c-baded3780f15
2025-08-06 14:17:50,221 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b7b49d24-d846-46e1-b0a1-1f8de1642f4a
2025-08-06 14:17:50,231 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b7b49d24-d846-46e1-b0a1-1f8de1642f4a
2025-08-06 14:17:50,241 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6dd7dcd7-f468-43bb-a0c8-22f9a107681d
2025-08-06 14:17:50,250 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-06 14:17:50,250 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c4de669-420a-42d4-b42c-baded3780f15
2025-08-06 14:17:50,262 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b7b49d24-d846-46e1-b0a1-1f8de1642f4a
2025-08-06 14:17:50,281 - INFO - Verified VN network id 11 for VN 8c4de669-420a-42d4-b42c-baded3780f15
2025-08-06 14:17:50,281 - INFO - Verifications in API Server for VN ctest-vn-71821703 passed
2025-08-06 14:17:50,281 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c4de669-420a-42d4-b42c-baded3780f15
2025-08-06 14:17:50,295 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b7b49d24-d846-46e1-b0a1-1f8de1642f4a
2025-08-06 14:17:50,304 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b7b49d24-d846-46e1-b0a1-1f8de1642f4a
2025-08-06 14:17:50,313 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6dd7dcd7-f468-43bb-a0c8-22f9a107681d
2025-08-06 14:17:50,329 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-71821703', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36809552', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10109990078270554836', 'uuid-lslong': '12982957291995664149'}, 'enable': 'true', 'created': '2025-08-06T14:17:47', 'last-modified': '2025-08-06T14:17:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.078902'}
2025-08-06 14:17:50,337 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-06 14:17:50,337 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71821703 passed
2025-08-06 14:17:50,337 - DEBUG - ====Verifying policy data for ctest-vn-71821703 in API_Server ======
2025-08-06 14:17:50,337 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-06 14:17:50,347 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f7978a71-7977-4bc1-b5f2-0fd76822ff8b
2025-08-06 14:17:50,364 - DEBUG - Requesting: http://10.0.0.50:8082/project/b1ab2b35-d8e4-4694-a0a2-ac1fa7dedb8a
2025-08-06 14:17:50,443 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8c4de669-420a-42d4-b42c-baded3780f15
2025-08-06 14:17:50,455 - DEBUG - ==>Verifying data for policy with id: a05b7f2a-74f4-40ae-9401-321e6a45aebd, fqn: ['default-domain', 'ctest-TestBasicPolicy-36809552', 'ctest-policy-allow-all-38671152']
2025-08-06 14:17:50,455 - INFO - VN ctest-vn-71821703 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-06 14:17:50,455 - DEBUG - Verifying the vn in opserver
2025-08-06 14:17:50,455 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-71821703 virtual network link through opserver 10.0.0.50
2025-08-06 14:17:50,455 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-06 14:17:50,792 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-06 14:17:50,861 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-71821703', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-71821703?flat'}
2025-08-06 14:17:50,861 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-71821703 is found in opserver
2025-08-06 14:17:50,875 - DEBUG - Do not have enough data to verify VN in agent
2025-08-06 14:17:50,881 - DEBUG - VRF ids for VN ctest-vn-71821703: {}
2025-08-06 14:17:50,881 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-06 14:17:50,888 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f7978a71-7977-4bc1-b5f2-0fd76822ff8b
2025-08-06 14:17:50,902 - DEBUG - Requesting: http://10.0.0.50:8082/project/b1ab2b35-d8e4-4694-a0a2-ac1fa7dedb8a
2025-08-06 14:17:50,989 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f3ea69cd-c184-4437-8450-9f7baaed74e2
2025-08-06 14:17:51,004 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f3ea69cd-c184-4437-8450-9f7baaed74e2
2025-08-06 14:17:51,017 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/258354be-596e-4e31-9429-fafb8d29b20d
2025-08-06 14:17:51,027 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/258354be-596e-4e31-9429-fafb8d29b20d
2025-08-06 14:17:51,037 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/79bbeac1-0167-4b67-a3ff-e6979287d3cd
2025-08-06 14:17:51,048 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-06 14:17:51,048 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f3ea69cd-c184-4437-8450-9f7baaed74e2
2025-08-06 14:17:51,064 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/258354be-596e-4e31-9429-fafb8d29b20d
2025-08-06 14:17:51,085 - INFO - Verified VN network id 12 for VN f3ea69cd-c184-4437-8450-9f7baaed74e2
2025-08-06 14:17:51,085 - INFO - Verifications in API Server for VN ctest-vn-30532083 passed
2025-08-06 14:17:51,085 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f3ea69cd-c184-4437-8450-9f7baaed74e2
2025-08-06 14:17:51,098 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/258354be-596e-4e31-9429-fafb8d29b20d
2025-08-06 14:17:51,108 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/258354be-596e-4e31-9429-fafb8d29b20d
2025-08-06 14:17:51,119 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/79bbeac1-0167-4b67-a3ff-e6979287d3cd
2025-08-06 14:17:51,136 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-30532083', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36809552', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17575976828202665015', 'uuid-lslong': '9534295764640822498'}, 'enable': 'true', 'created': '2025-08-06T14:17:48', 'last-modified': '2025-08-06T14:17:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.643265'}
2025-08-06 14:17:51,146 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-06 14:17:51,147 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30532083 passed
2025-08-06 14:17:51,147 - DEBUG - ====Verifying policy data for ctest-vn-30532083 in API_Server ======
2025-08-06 14:17:51,147 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-06 14:17:51,156 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f7978a71-7977-4bc1-b5f2-0fd76822ff8b
2025-08-06 14:17:51,171 - DEBUG - Requesting: http://10.0.0.50:8082/project/b1ab2b35-d8e4-4694-a0a2-ac1fa7dedb8a
2025-08-06 14:17:51,249 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f3ea69cd-c184-4437-8450-9f7baaed74e2
2025-08-06 14:17:51,261 - DEBUG - ==>Verifying data for policy with id: a05b7f2a-74f4-40ae-9401-321e6a45aebd, fqn: ['default-domain', 'ctest-TestBasicPolicy-36809552', 'ctest-policy-allow-all-38671152']
2025-08-06 14:17:51,261 - INFO - VN ctest-vn-30532083 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-06 14:17:51,261 - DEBUG - Verifying the vn in opserver
2025-08-06 14:17:51,261 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-30532083 virtual network link through opserver 10.0.0.50
2025-08-06 14:17:51,262 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-06 14:17:51,275 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-30532083', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-30532083?flat'}
2025-08-06 14:17:51,275 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36809552:ctest-vn-30532083 is found in opserver
2025-08-06 14:17:51,294 - DEBUG - Do not have enough data to verify VN in agent
2025-08-06 14:17:51,300 - DEBUG - VRF ids for VN ctest-vn-30532083: {}
2025-08-06 14:17:51,372 - DEBUG - Services list from nova: [