2025-10-02 01:56:15,286 - INFO - Domain Default found not creating
2025-10-02 01:56:15,418 - INFO - Project ctest-TestBasicPolicy-91414780 not found, creating it
2025-10-02 01:56:15,859 - INFO - Created Project:ctest-TestBasicPolicy-91414780, ID : ad305ebe-3c2a-4542-b8e4-1abea3ffa585
2025-10-02 01:56:17,216 - INFO - ================================================================================
2025-10-02 01:56:17,216 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-02 01:56:17,216 - 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-02 01:56:17,471 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.18': '0'}} with
2025-10-02 01:56:17,471 - INFO - Initial checks done. Running the testcase now
2025-10-02 01:56:17,471 - INFO -
2025-10-02 01:56:18,326 - DEBUG - Response for create_network : {'network': {'id': '4f09c13f-da67-46c6-a597-e2a553ff0dd0', 'name': 'ctest-vn-39524694', 'tenant_id': 'ad305ebe3c2a4542b8e41abea3ffa585', 'project_id': 'ad305ebe3c2a4542b8e41abea3ffa585', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91414780', 'ctest-vn-39524694'], 'port_security_enabled': True, 'description': ''}}
2025-10-02 01:56:18,508 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c08a31b7-ce48-49ef-bbaf-94d12c58fc70', 'name': '', 'tenant_id': 'ad305ebe3c2a4542b8e41abea3ffa585', 'network_id': '4f09c13f-da67-46c6-a597-e2a553ff0dd0', 'ip_version': 4, 'cidr': '181.5.216.64/26', 'allocation_pools': [{'start': '181.5.216.66', 'end': '181.5.216.126'}], 'gateway_ip': '181.5.216.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.5.216.66', 'tags': [], 'project_id': 'ad305ebe3c2a4542b8e41abea3ffa585'}}
2025-10-02 01:56:18,530 - INFO - Created VN ctest-vn-39524694
2025-10-02 01:56:18,582 - DEBUG - VN ctest-vn-39524694 UUID is 4f09c13f-da67-46c6-a597-e2a553ff0dd0
2025-10-02 01:56:18,866 - DEBUG - Response for create_network : {'network': {'id': '61c52c41-a07f-447c-ba0c-b994cb6c789d', 'name': 'ctest-vn-94643974', 'tenant_id': 'ad305ebe3c2a4542b8e41abea3ffa585', 'project_id': 'ad305ebe3c2a4542b8e41abea3ffa585', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91414780', 'ctest-vn-94643974'], 'port_security_enabled': True, 'description': ''}}
2025-10-02 01:56:19,076 - DEBUG - Response for create_subnet : {'subnet': {'id': '6202cfaa-ae9f-4bf6-9ffe-1dc0fb74a4aa', 'name': '', 'tenant_id': 'ad305ebe3c2a4542b8e41abea3ffa585', 'network_id': '61c52c41-a07f-447c-ba0c-b994cb6c789d', 'ip_version': 4, 'cidr': '182.105.203.192/26', 'allocation_pools': [{'start': '182.105.203.194', 'end': '182.105.203.254'}], 'gateway_ip': '182.105.203.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.105.203.194', 'tags': [], 'project_id': 'ad305ebe3c2a4542b8e41abea3ffa585'}}
2025-10-02 01:56:19,093 - INFO - Created VN ctest-vn-94643974
2025-10-02 01:56:19,146 - DEBUG - VN ctest-vn-94643974 UUID is 61c52c41-a07f-447c-ba0c-b994cb6c789d
2025-10-02 01:56:19,294 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91414780:ctest-vn-39524694, 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-91414780:ctest-vn-94643974, 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-02 01:56:19,577 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4f09c13f-da67-46c6-a597-e2a553ff0dd0', 'name': 'ctest-vn-39524694', 'tenant_id': 'ad305ebe3c2a4542b8e41abea3ffa585', 'project_id': 'ad305ebe3c2a4542b8e41abea3ffa585', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c08a31b7-ce48-49ef-bbaf-94d12c58fc70'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91414780', 'ctest-vn-39524694'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91414780', 'ctest-policy-allow-all-14787509']], 'subnet_ipam': [{'subnet_cidr': '181.5.216.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-02 01:56:19,790 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '61c52c41-a07f-447c-ba0c-b994cb6c789d', 'name': 'ctest-vn-94643974', 'tenant_id': 'ad305ebe3c2a4542b8e41abea3ffa585', 'project_id': 'ad305ebe3c2a4542b8e41abea3ffa585', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6202cfaa-ae9f-4bf6-9ffe-1dc0fb74a4aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91414780', 'ctest-vn-94643974'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91414780', 'ctest-policy-allow-all-14787509']], 'subnet_ipam': [{'subnet_cidr': '182.105.203.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-02 01:56:19,934 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-02 01:56:20,232 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-02 01:56:20,256 - DEBUG - Requesting: http://10.0.0.131:8082/domain/beb5e39c-6386-493b-8558-63a22034139b
2025-10-02 01:56:20,266 - DEBUG - Requesting: http://10.0.0.131:8082/project/ad305ebe-3c2a-4542-b8e4-1abea3ffa585
2025-10-02 01:56:20,336 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/4f09c13f-da67-46c6-a597-e2a553ff0dd0
2025-10-02 01:56:20,345 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/4f09c13f-da67-46c6-a597-e2a553ff0dd0
2025-10-02 01:56:20,352 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/8bd511fb-7b6d-4f03-9cba-ea97076207dd
2025-10-02 01:56:20,358 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/8bd511fb-7b6d-4f03-9cba-ea97076207dd
2025-10-02 01:56:20,363 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/3b2fa414-ec82-461a-969f-acb3946e2566
2025-10-02 01:56:20,368 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-02 01:56:20,368 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/4f09c13f-da67-46c6-a597-e2a553ff0dd0
2025-10-02 01:56:20,375 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/8bd511fb-7b6d-4f03-9cba-ea97076207dd
2025-10-02 01:56:20,386 - INFO - Verified VN network id 10 for VN 4f09c13f-da67-46c6-a597-e2a553ff0dd0
2025-10-02 01:56:20,386 - INFO - Verifications in API Server for VN ctest-vn-39524694 passed
2025-10-02 01:56:20,386 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/4f09c13f-da67-46c6-a597-e2a553ff0dd0
2025-10-02 01:56:20,393 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/8bd511fb-7b6d-4f03-9cba-ea97076207dd
2025-10-02 01:56:20,398 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/8bd511fb-7b6d-4f03-9cba-ea97076207dd
2025-10-02 01:56:20,403 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/3b2fa414-ec82-461a-969f-acb3946e2566
2025-10-02 01:56:20,412 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91414780:ctest-vn-39524694', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91414780', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5695295683778004678', 'uuid-lslong': '11932254937448123856'}, 'enable': 'true', 'created': '2025-10-02T01:56:18', 'last-modified': '2025-10-02T01:56:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.853100'}
2025-10-02 01:56:20,417 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-02 01:56:20,417 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39524694 passed
2025-10-02 01:56:20,417 - DEBUG - ====Verifying policy data for ctest-vn-39524694 in API_Server ======
2025-10-02 01:56:20,417 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-02 01:56:20,422 - DEBUG - Requesting: http://10.0.0.131:8082/domain/beb5e39c-6386-493b-8558-63a22034139b
2025-10-02 01:56:20,431 - DEBUG - Requesting: http://10.0.0.131:8082/project/ad305ebe-3c2a-4542-b8e4-1abea3ffa585
2025-10-02 01:56:20,501 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/4f09c13f-da67-46c6-a597-e2a553ff0dd0
2025-10-02 01:56:20,509 - DEBUG - ==>Verifying data for policy with id: 4a249507-cd4c-4256-bbc6-4b036d74e311, fqn: ['default-domain', 'ctest-TestBasicPolicy-91414780', 'ctest-policy-allow-all-14787509']
2025-10-02 01:56:20,509 - INFO - VN ctest-vn-39524694 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-02 01:56:20,509 - DEBUG - Verifying the vn in opserver
2025-10-02 01:56:20,509 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91414780:ctest-vn-39524694 virtual network link through opserver 10.0.0.131
2025-10-02 01:56:20,510 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-10-02 01:56:20,799 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-10-02 01:56:20,847 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91414780:ctest-vn-39524694', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91414780:ctest-vn-39524694?flat'}
2025-10-02 01:56:20,847 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91414780:ctest-vn-39524694 is found in opserver
2025-10-02 01:56:20,857 - DEBUG - Do not have enough data to verify VN in agent
2025-10-02 01:56:20,862 - DEBUG - VRF ids for VN ctest-vn-39524694: {}
2025-10-02 01:56:20,862 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-02 01:56:20,867 - DEBUG - Requesting: http://10.0.0.131:8082/domain/beb5e39c-6386-493b-8558-63a22034139b
2025-10-02 01:56:20,876 - DEBUG - Requesting: http://10.0.0.131:8082/project/ad305ebe-3c2a-4542-b8e4-1abea3ffa585
2025-10-02 01:56:20,966 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/61c52c41-a07f-447c-ba0c-b994cb6c789d
2025-10-02 01:56:20,992 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/61c52c41-a07f-447c-ba0c-b994cb6c789d
2025-10-02 01:56:21,003 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/905a03f5-46bb-4bb8-a52b-f6d1a2fbdef6
2025-10-02 01:56:21,011 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/905a03f5-46bb-4bb8-a52b-f6d1a2fbdef6
2025-10-02 01:56:21,018 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/8e7d762d-b7f9-4778-a2ea-c6803ce15f8d
2025-10-02 01:56:21,024 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-02 01:56:21,024 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/61c52c41-a07f-447c-ba0c-b994cb6c789d
2025-10-02 01:56:21,032 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/905a03f5-46bb-4bb8-a52b-f6d1a2fbdef6
2025-10-02 01:56:21,044 - INFO - Verified VN network id 11 for VN 61c52c41-a07f-447c-ba0c-b994cb6c789d
2025-10-02 01:56:21,044 - INFO - Verifications in API Server for VN ctest-vn-94643974 passed
2025-10-02 01:56:21,044 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/61c52c41-a07f-447c-ba0c-b994cb6c789d
2025-10-02 01:56:21,053 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/905a03f5-46bb-4bb8-a52b-f6d1a2fbdef6
2025-10-02 01:56:21,061 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/905a03f5-46bb-4bb8-a52b-f6d1a2fbdef6
2025-10-02 01:56:21,069 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/8e7d762d-b7f9-4778-a2ea-c6803ce15f8d
2025-10-02 01:56:21,080 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91414780:ctest-vn-94643974', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91414780', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7045085852468200572', 'uuid-lslong': '13406294239494305949'}, 'enable': 'true', 'created': '2025-10-02T01:56:18', 'last-modified': '2025-10-02T01:56:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.306982'}
2025-10-02 01:56:21,086 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-02 01:56:21,086 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94643974 passed
2025-10-02 01:56:21,086 - DEBUG - ====Verifying policy data for ctest-vn-94643974 in API_Server ======
2025-10-02 01:56:21,087 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-02 01:56:21,092 - DEBUG - Requesting: http://10.0.0.131:8082/domain/beb5e39c-6386-493b-8558-63a22034139b
2025-10-02 01:56:21,101 - DEBUG - Requesting: http://10.0.0.131:8082/project/ad305ebe-3c2a-4542-b8e4-1abea3ffa585
2025-10-02 01:56:21,165 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/61c52c41-a07f-447c-ba0c-b994cb6c789d
2025-10-02 01:56:21,174 - DEBUG - ==>Verifying data for policy with id: 4a249507-cd4c-4256-bbc6-4b036d74e311, fqn: ['default-domain', 'ctest-TestBasicPolicy-91414780', 'ctest-policy-allow-all-14787509']
2025-10-02 01:56:21,174 - INFO - VN ctest-vn-94643974 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-02 01:56:21,174 - DEBUG - Verifying the vn in opserver
2025-10-02 01:56:21,174 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91414780:ctest-vn-94643974 virtual network link through opserver 10.0.0.131
2025-10-02 01:56:21,175 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-10-02 01:56:21,184 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91414780:ctest-vn-94643974', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91414780:ctest-vn-94643974?flat'}
2025-10-02 01:56:21,184 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91414780:ctest-vn-94643974 is found in opserver
2025-10-02 01:56:21,198 - DEBUG - Do not have enough data to verify VN in agent
2025-10-02 01:56:21,205 - DEBUG - VRF ids for VN ctest-vn-94643974: {}
2025-10-02 01:56:21,280 - DEBUG - Services list from nova: [