2026-03-20 15:12:19,724 - INFO - Domain Default found not creating
2026-03-20 15:12:19,896 - INFO - Project ctest-TestBasicPolicy-14931710 not found, creating it
2026-03-20 15:12:20,367 - INFO - Created Project:ctest-TestBasicPolicy-14931710, ID : 11a43654-7f10-4fa2-8949-620ea46e1980
2026-03-20 15:12:21,887 - INFO - ================================================================================
2026-03-20 15:12:21,887 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-20 15:12:21,887 - 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-20 15:12:22,143 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-03-20 15:12:22,143 - INFO - Initial checks done. Running the testcase now
2026-03-20 15:12:22,143 - INFO -
2026-03-20 15:12:22,714 - DEBUG - Response for create_network : {'network': {'id': '949704b9-51f0-4dee-83d7-0157b8d5338e', 'name': 'ctest-vn-13887217', 'tenant_id': '11a436547f104fa28949620ea46e1980', 'project_id': '11a436547f104fa28949620ea46e1980', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14931710', 'ctest-vn-13887217'], 'port_security_enabled': True, 'description': ''}}
2026-03-20 15:12:22,869 - DEBUG - Response for create_subnet : {'subnet': {'id': '88221b73-b6b0-456b-88b4-9392c02c8839', 'name': '', 'tenant_id': '11a436547f104fa28949620ea46e1980', 'network_id': '949704b9-51f0-4dee-83d7-0157b8d5338e', 'ip_version': 4, 'cidr': '27.123.226.192/26', 'allocation_pools': [{'start': '27.123.226.194', 'end': '27.123.226.254'}], 'gateway_ip': '27.123.226.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.123.226.194', 'tags': [], 'project_id': '11a436547f104fa28949620ea46e1980'}}
2026-03-20 15:12:22,889 - INFO - Created VN ctest-vn-13887217
2026-03-20 15:12:22,945 - DEBUG - VN ctest-vn-13887217 UUID is 949704b9-51f0-4dee-83d7-0157b8d5338e
2026-03-20 15:12:23,252 - DEBUG - Response for create_network : {'network': {'id': '16850451-1643-4d19-8507-33a92adfebb3', 'name': 'ctest-vn-07667130', 'tenant_id': '11a436547f104fa28949620ea46e1980', 'project_id': '11a436547f104fa28949620ea46e1980', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14931710', 'ctest-vn-07667130'], 'port_security_enabled': True, 'description': ''}}
2026-03-20 15:12:23,400 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c2743e5-681c-44e4-94cd-82f3afa3395b', 'name': '', 'tenant_id': '11a436547f104fa28949620ea46e1980', 'network_id': '16850451-1643-4d19-8507-33a92adfebb3', 'ip_version': 4, 'cidr': '18.93.45.0/26', 'allocation_pools': [{'start': '18.93.45.2', 'end': '18.93.45.62'}], 'gateway_ip': '18.93.45.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.93.45.2', 'tags': [], 'project_id': '11a436547f104fa28949620ea46e1980'}}
2026-03-20 15:12:23,419 - INFO - Created VN ctest-vn-07667130
2026-03-20 15:12:23,469 - DEBUG - VN ctest-vn-07667130 UUID is 16850451-1643-4d19-8507-33a92adfebb3
2026-03-20 15:12:23,591 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14931710:ctest-vn-13887217, 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-14931710:ctest-vn-07667130, 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-20 15:12:23,901 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '949704b9-51f0-4dee-83d7-0157b8d5338e', 'name': 'ctest-vn-13887217', 'tenant_id': '11a436547f104fa28949620ea46e1980', 'project_id': '11a436547f104fa28949620ea46e1980', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['88221b73-b6b0-456b-88b4-9392c02c8839'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14931710', 'ctest-vn-13887217'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14931710', 'ctest-policy-allow-all-85077035']], 'subnet_ipam': [{'subnet_cidr': '27.123.226.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-20 15:12:24,143 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16850451-1643-4d19-8507-33a92adfebb3', 'name': 'ctest-vn-07667130', 'tenant_id': '11a436547f104fa28949620ea46e1980', 'project_id': '11a436547f104fa28949620ea46e1980', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c2743e5-681c-44e4-94cd-82f3afa3395b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14931710', 'ctest-vn-07667130'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14931710', 'ctest-policy-allow-all-85077035']], 'subnet_ipam': [{'subnet_cidr': '18.93.45.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-20 15:12:24,297 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-20 15:12:24,593 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-20 15:12:24,625 - DEBUG - Requesting: http://10.0.0.38:8082/domain/539d60a3-b1a9-4faf-964f-f691bca43cc3
2026-03-20 15:12:24,639 - DEBUG - Requesting: http://10.0.0.38:8082/project/11a43654-7f10-4fa2-8949-620ea46e1980
2026-03-20 15:12:24,710 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/949704b9-51f0-4dee-83d7-0157b8d5338e
2026-03-20 15:12:24,722 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/949704b9-51f0-4dee-83d7-0157b8d5338e
2026-03-20 15:12:24,731 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae1def12-9db0-4ae8-b450-eaff31e1cb75
2026-03-20 15:12:24,738 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae1def12-9db0-4ae8-b450-eaff31e1cb75
2026-03-20 15:12:24,744 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/df1a4c89-8b61-4796-98cf-86c27732171c
2026-03-20 15:12:24,749 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-20 15:12:24,749 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/949704b9-51f0-4dee-83d7-0157b8d5338e
2026-03-20 15:12:24,757 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae1def12-9db0-4ae8-b450-eaff31e1cb75
2026-03-20 15:12:24,770 - INFO - Verified VN network id 11 for VN 949704b9-51f0-4dee-83d7-0157b8d5338e
2026-03-20 15:12:24,770 - INFO - Verifications in API Server for VN ctest-vn-13887217 passed
2026-03-20 15:12:24,770 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/949704b9-51f0-4dee-83d7-0157b8d5338e
2026-03-20 15:12:24,780 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae1def12-9db0-4ae8-b450-eaff31e1cb75
2026-03-20 15:12:24,789 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae1def12-9db0-4ae8-b450-eaff31e1cb75
2026-03-20 15:12:24,797 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/df1a4c89-8b61-4796-98cf-86c27732171c
2026-03-20 15:12:24,812 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14931710:ctest-vn-13887217', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14931710', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10707031833086807534', 'uuid-lslong': '9500063415236113294'}, 'enable': 'true', 'created': '2026-03-20T15:12:22', 'last-modified': '2026-03-20T15:12:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.935987'}
2026-03-20 15:12:24,819 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-20 15:12:24,820 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13887217 passed
2026-03-20 15:12:24,820 - DEBUG - ====Verifying policy data for ctest-vn-13887217 in API_Server ======
2026-03-20 15:12:24,820 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-20 15:12:24,826 - DEBUG - Requesting: http://10.0.0.38:8082/domain/539d60a3-b1a9-4faf-964f-f691bca43cc3
2026-03-20 15:12:24,839 - DEBUG - Requesting: http://10.0.0.38:8082/project/11a43654-7f10-4fa2-8949-620ea46e1980
2026-03-20 15:12:24,907 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/949704b9-51f0-4dee-83d7-0157b8d5338e
2026-03-20 15:12:24,916 - DEBUG - ==>Verifying data for policy with id: 3b078944-a56e-4ac3-8ce4-f4fc78019795, fqn: ['default-domain', 'ctest-TestBasicPolicy-14931710', 'ctest-policy-allow-all-85077035']
2026-03-20 15:12:24,916 - INFO - VN ctest-vn-13887217 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-20 15:12:24,916 - DEBUG - Verifying the vn in opserver
2026-03-20 15:12:24,916 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14931710:ctest-vn-13887217 virtual network link through opserver 10.0.0.38
2026-03-20 15:12:24,916 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-20 15:12:25,207 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-20 15:12:25,268 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14931710:ctest-vn-13887217', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14931710:ctest-vn-13887217?flat'}
2026-03-20 15:12:25,268 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14931710:ctest-vn-13887217 is found in opserver
2026-03-20 15:12:25,277 - DEBUG - Do not have enough data to verify VN in agent
2026-03-20 15:12:25,282 - DEBUG - VRF ids for VN ctest-vn-13887217: {}
2026-03-20 15:12:25,282 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-20 15:12:25,287 - DEBUG - Requesting: http://10.0.0.38:8082/domain/539d60a3-b1a9-4faf-964f-f691bca43cc3
2026-03-20 15:12:25,300 - DEBUG - Requesting: http://10.0.0.38:8082/project/11a43654-7f10-4fa2-8949-620ea46e1980
2026-03-20 15:12:25,384 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/16850451-1643-4d19-8507-33a92adfebb3
2026-03-20 15:12:25,402 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/16850451-1643-4d19-8507-33a92adfebb3
2026-03-20 15:12:25,416 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/094e6c76-8aaf-438a-8065-ce0935fbab32
2026-03-20 15:12:25,424 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/094e6c76-8aaf-438a-8065-ce0935fbab32
2026-03-20 15:12:25,433 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0f36ca28-933c-42a0-893c-93d8825e8b87
2026-03-20 15:12:25,440 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-20 15:12:25,440 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/16850451-1643-4d19-8507-33a92adfebb3
2026-03-20 15:12:25,451 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/094e6c76-8aaf-438a-8065-ce0935fbab32
2026-03-20 15:12:25,465 - INFO - Verified VN network id 12 for VN 16850451-1643-4d19-8507-33a92adfebb3
2026-03-20 15:12:25,465 - INFO - Verifications in API Server for VN ctest-vn-07667130 passed
2026-03-20 15:12:25,465 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/16850451-1643-4d19-8507-33a92adfebb3
2026-03-20 15:12:25,474 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/094e6c76-8aaf-438a-8065-ce0935fbab32
2026-03-20 15:12:25,484 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/094e6c76-8aaf-438a-8065-ce0935fbab32
2026-03-20 15:12:25,492 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0f36ca28-933c-42a0-893c-93d8825e8b87
2026-03-20 15:12:25,505 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14931710:ctest-vn-07667130', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14931710', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1622707987049303321', 'uuid-lslong': '9585687133543197619'}, 'enable': 'true', 'created': '2026-03-20T15:12:23', 'last-modified': '2026-03-20T15:12:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.390987'}
2026-03-20 15:12:25,512 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-20 15:12:25,512 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07667130 passed
2026-03-20 15:12:25,512 - DEBUG - ====Verifying policy data for ctest-vn-07667130 in API_Server ======
2026-03-20 15:12:25,512 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-20 15:12:25,518 - DEBUG - Requesting: http://10.0.0.38:8082/domain/539d60a3-b1a9-4faf-964f-f691bca43cc3
2026-03-20 15:12:25,531 - DEBUG - Requesting: http://10.0.0.38:8082/project/11a43654-7f10-4fa2-8949-620ea46e1980
2026-03-20 15:12:25,604 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/16850451-1643-4d19-8507-33a92adfebb3
2026-03-20 15:12:25,619 - DEBUG - ==>Verifying data for policy with id: 3b078944-a56e-4ac3-8ce4-f4fc78019795, fqn: ['default-domain', 'ctest-TestBasicPolicy-14931710', 'ctest-policy-allow-all-85077035']
2026-03-20 15:12:25,619 - INFO - VN ctest-vn-07667130 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-20 15:12:25,619 - DEBUG - Verifying the vn in opserver
2026-03-20 15:12:25,620 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14931710:ctest-vn-07667130 virtual network link through opserver 10.0.0.38
2026-03-20 15:12:25,620 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-20 15:12:25,631 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14931710:ctest-vn-07667130', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14931710:ctest-vn-07667130?flat'}
2026-03-20 15:12:25,631 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14931710:ctest-vn-07667130 is found in opserver
2026-03-20 15:12:25,642 - DEBUG - Do not have enough data to verify VN in agent
2026-03-20 15:12:25,646 - DEBUG - VRF ids for VN ctest-vn-07667130: {}
2026-03-20 15:12:25,709 - DEBUG - Services list from nova: [