2026-03-05 12:48:29,057 - INFO - Domain Default found not creating
2026-03-05 12:48:29,255 - INFO - Project ctest-TestBasicPolicy-04373873 not found, creating it
2026-03-05 12:48:29,728 - INFO - Created Project:ctest-TestBasicPolicy-04373873, ID : c5a4a9a5-fef5-4873-8cfb-7a8c6dcc24eb
2026-03-05 12:48:31,555 - INFO - ================================================================================
2026-03-05 12:48:31,555 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-05 12:48:31,555 - 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
2026-03-05 12:48:31,826 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with
2026-03-05 12:48:31,826 - INFO - Initial checks done. Running the testcase now
2026-03-05 12:48:31,826 - INFO -
2026-03-05 12:48:32,403 - DEBUG - Response for create_network : {'network': {'id': '7a44a024-6d2d-43a1-8d0e-7f94fa0b0089', 'name': 'ctest-vn-86251671', 'tenant_id': 'c5a4a9a5fef548738cfb7a8c6dcc24eb', 'project_id': 'c5a4a9a5fef548738cfb7a8c6dcc24eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04373873', 'ctest-vn-86251671'], 'port_security_enabled': True, 'description': ''}}
2026-03-05 12:48:32,564 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc6f53fc-8f57-4cf5-a1ff-e6c524bb8cb6', 'name': '', 'tenant_id': 'c5a4a9a5fef548738cfb7a8c6dcc24eb', 'network_id': '7a44a024-6d2d-43a1-8d0e-7f94fa0b0089', 'ip_version': 4, 'cidr': '144.21.239.0/26', 'allocation_pools': [{'start': '144.21.239.2', 'end': '144.21.239.62'}], 'gateway_ip': '144.21.239.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.21.239.2', 'tags': [], 'project_id': 'c5a4a9a5fef548738cfb7a8c6dcc24eb'}}
2026-03-05 12:48:32,584 - INFO - Created VN ctest-vn-86251671
2026-03-05 12:48:32,636 - DEBUG - VN ctest-vn-86251671 UUID is 7a44a024-6d2d-43a1-8d0e-7f94fa0b0089
2026-03-05 12:48:32,949 - DEBUG - Response for create_network : {'network': {'id': '76f6a0cd-4634-4125-a81a-6a054ca69950', 'name': 'ctest-vn-09667778', 'tenant_id': 'c5a4a9a5fef548738cfb7a8c6dcc24eb', 'project_id': 'c5a4a9a5fef548738cfb7a8c6dcc24eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04373873', 'ctest-vn-09667778'], 'port_security_enabled': True, 'description': ''}}
2026-03-05 12:48:33,183 - DEBUG - Response for create_subnet : {'subnet': {'id': '996dc60c-ab45-46d5-8200-49f1f276bb75', 'name': '', 'tenant_id': 'c5a4a9a5fef548738cfb7a8c6dcc24eb', 'network_id': '76f6a0cd-4634-4125-a81a-6a054ca69950', 'ip_version': 4, 'cidr': '139.123.99.128/26', 'allocation_pools': [{'start': '139.123.99.130', 'end': '139.123.99.190'}], 'gateway_ip': '139.123.99.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.123.99.130', 'tags': [], 'project_id': 'c5a4a9a5fef548738cfb7a8c6dcc24eb'}}
2026-03-05 12:48:33,205 - INFO - Created VN ctest-vn-09667778
2026-03-05 12:48:33,260 - DEBUG - VN ctest-vn-09667778 UUID is 76f6a0cd-4634-4125-a81a-6a054ca69950
2026-03-05 12:48:33,388 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04373873:ctest-vn-86251671, 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-04373873:ctest-vn-09667778, 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]
2026-03-05 12:48:33,707 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7a44a024-6d2d-43a1-8d0e-7f94fa0b0089', 'name': 'ctest-vn-86251671', 'tenant_id': 'c5a4a9a5fef548738cfb7a8c6dcc24eb', 'project_id': 'c5a4a9a5fef548738cfb7a8c6dcc24eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc6f53fc-8f57-4cf5-a1ff-e6c524bb8cb6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04373873', 'ctest-vn-86251671'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04373873', 'ctest-policy-allow-all-64384919']], 'subnet_ipam': [{'subnet_cidr': '144.21.239.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-05 12:48:33,963 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '76f6a0cd-4634-4125-a81a-6a054ca69950', 'name': 'ctest-vn-09667778', 'tenant_id': 'c5a4a9a5fef548738cfb7a8c6dcc24eb', 'project_id': 'c5a4a9a5fef548738cfb7a8c6dcc24eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['996dc60c-ab45-46d5-8200-49f1f276bb75'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04373873', 'ctest-vn-09667778'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04373873', 'ctest-policy-allow-all-64384919']], 'subnet_ipam': [{'subnet_cidr': '139.123.99.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-05 12:48:34,124 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-03-05 12:48:34,443 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-03-05 12:48:34,481 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4e3b2f1f-24d3-4ce6-b6de-9e97fb4e27a2
2026-03-05 12:48:34,496 - DEBUG - Requesting: http://10.0.0.33:8082/project/c5a4a9a5-fef5-4873-8cfb-7a8c6dcc24eb
2026-03-05 12:48:34,572 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7a44a024-6d2d-43a1-8d0e-7f94fa0b0089
2026-03-05 12:48:34,585 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7a44a024-6d2d-43a1-8d0e-7f94fa0b0089
2026-03-05 12:48:34,596 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7761cfe9-6d80-48e0-bd0d-8d8b22290626
2026-03-05 12:48:34,604 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7761cfe9-6d80-48e0-bd0d-8d8b22290626
2026-03-05 12:48:34,612 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/de99649b-0b5b-486f-8e77-800a2e2f7ddc
2026-03-05 12:48:34,620 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-05 12:48:34,620 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7a44a024-6d2d-43a1-8d0e-7f94fa0b0089
2026-03-05 12:48:34,634 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7761cfe9-6d80-48e0-bd0d-8d8b22290626
2026-03-05 12:48:34,655 - INFO - Verified VN network id 12 for VN 7a44a024-6d2d-43a1-8d0e-7f94fa0b0089
2026-03-05 12:48:34,655 - INFO - Verifications in API Server for VN ctest-vn-86251671 passed
2026-03-05 12:48:34,655 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7a44a024-6d2d-43a1-8d0e-7f94fa0b0089
2026-03-05 12:48:34,667 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7761cfe9-6d80-48e0-bd0d-8d8b22290626
2026-03-05 12:48:34,676 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7761cfe9-6d80-48e0-bd0d-8d8b22290626
2026-03-05 12:48:34,686 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/de99649b-0b5b-486f-8e77-800a2e2f7ddc
2026-03-05 12:48:34,699 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04373873:ctest-vn-86251671', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04373873', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8810342849354482593', 'uuid-lslong': '10164201686848700553'}, 'enable': 'true', 'created': '2026-03-05T12:48:32', 'last-modified': '2026-03-05T12:48:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.020001'}
2026-03-05 12:48:34,706 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-05 12:48:34,706 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86251671 passed
2026-03-05 12:48:34,706 - DEBUG - ====Verifying policy data for ctest-vn-86251671 in API_Server ======
2026-03-05 12:48:34,706 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-03-05 12:48:34,715 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4e3b2f1f-24d3-4ce6-b6de-9e97fb4e27a2
2026-03-05 12:48:34,730 - DEBUG - Requesting: http://10.0.0.33:8082/project/c5a4a9a5-fef5-4873-8cfb-7a8c6dcc24eb
2026-03-05 12:48:34,808 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7a44a024-6d2d-43a1-8d0e-7f94fa0b0089
2026-03-05 12:48:34,819 - DEBUG - ==>Verifying data for policy with id: a9b93814-551a-430d-bb5b-2612d2214699, fqn: ['default-domain', 'ctest-TestBasicPolicy-04373873', 'ctest-policy-allow-all-64384919']
2026-03-05 12:48:34,819 - INFO - VN ctest-vn-86251671 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-05 12:48:34,819 - DEBUG - Verifying the vn in opserver
2026-03-05 12:48:34,819 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04373873:ctest-vn-86251671 virtual network link through opserver 10.0.0.33
2026-03-05 12:48:34,819 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-03-05 12:48:35,138 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-03-05 12:48:35,210 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04373873:ctest-vn-86251671', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04373873:ctest-vn-86251671?flat'}
2026-03-05 12:48:35,210 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04373873:ctest-vn-86251671 is found in opserver
2026-03-05 12:48:35,225 - DEBUG - Do not have enough data to verify VN in agent
2026-03-05 12:48:35,231 - DEBUG - VRF ids for VN ctest-vn-86251671: {}
2026-03-05 12:48:35,231 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-03-05 12:48:35,237 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4e3b2f1f-24d3-4ce6-b6de-9e97fb4e27a2
2026-03-05 12:48:35,250 - DEBUG - Requesting: http://10.0.0.33:8082/project/c5a4a9a5-fef5-4873-8cfb-7a8c6dcc24eb
2026-03-05 12:48:35,333 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/76f6a0cd-4634-4125-a81a-6a054ca69950
2026-03-05 12:48:35,347 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/76f6a0cd-4634-4125-a81a-6a054ca69950
2026-03-05 12:48:35,357 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9dd1bd6f-77a9-441e-9007-0fad1a54b668
2026-03-05 12:48:35,367 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9dd1bd6f-77a9-441e-9007-0fad1a54b668
2026-03-05 12:48:35,376 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f01c5f68-f237-4f39-b5af-586ddd2a1516
2026-03-05 12:48:35,385 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-05 12:48:35,385 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/76f6a0cd-4634-4125-a81a-6a054ca69950
2026-03-05 12:48:35,397 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9dd1bd6f-77a9-441e-9007-0fad1a54b668
2026-03-05 12:48:35,414 - INFO - Verified VN network id 13 for VN 76f6a0cd-4634-4125-a81a-6a054ca69950
2026-03-05 12:48:35,414 - INFO - Verifications in API Server for VN ctest-vn-09667778 passed
2026-03-05 12:48:35,414 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/76f6a0cd-4634-4125-a81a-6a054ca69950
2026-03-05 12:48:35,427 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9dd1bd6f-77a9-441e-9007-0fad1a54b668
2026-03-05 12:48:35,437 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9dd1bd6f-77a9-441e-9007-0fad1a54b668
2026-03-05 12:48:35,445 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f01c5f68-f237-4f39-b5af-586ddd2a1516
2026-03-05 12:48:35,458 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04373873:ctest-vn-09667778', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04373873', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8572215744252887333', 'uuid-lslong': '12113110718759737680'}, 'enable': 'true', 'created': '2026-03-05T12:48:32', 'last-modified': '2026-03-05T12:48:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.523365'}
2026-03-05 12:48:35,465 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-05 12:48:35,465 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09667778 passed
2026-03-05 12:48:35,465 - DEBUG - ====Verifying policy data for ctest-vn-09667778 in API_Server ======
2026-03-05 12:48:35,465 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-03-05 12:48:35,471 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4e3b2f1f-24d3-4ce6-b6de-9e97fb4e27a2
2026-03-05 12:48:35,483 - DEBUG - Requesting: http://10.0.0.33:8082/project/c5a4a9a5-fef5-4873-8cfb-7a8c6dcc24eb
2026-03-05 12:48:35,564 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/76f6a0cd-4634-4125-a81a-6a054ca69950
2026-03-05 12:48:35,576 - DEBUG - ==>Verifying data for policy with id: a9b93814-551a-430d-bb5b-2612d2214699, fqn: ['default-domain', 'ctest-TestBasicPolicy-04373873', 'ctest-policy-allow-all-64384919']
2026-03-05 12:48:35,576 - INFO - VN ctest-vn-09667778 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-05 12:48:35,576 - DEBUG - Verifying the vn in opserver
2026-03-05 12:48:35,576 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04373873:ctest-vn-09667778 virtual network link through opserver 10.0.0.33
2026-03-05 12:48:35,576 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-03-05 12:48:35,588 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04373873:ctest-vn-09667778', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04373873:ctest-vn-09667778?flat'}
2026-03-05 12:48:35,588 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04373873:ctest-vn-09667778 is found in opserver
2026-03-05 12:48:35,601 - DEBUG - Do not have enough data to verify VN in agent
2026-03-05 12:48:35,606 - DEBUG - VRF ids for VN ctest-vn-09667778: {}
2026-03-05 12:48:35,677 - DEBUG - Services list from nova: [