2025-11-05 08:10:12,744 - INFO - Domain Default found not creating
2025-11-05 08:10:12,902 - INFO - Project ctest-TestBasicPolicy-76618942 not found, creating it
2025-11-05 08:10:13,346 - INFO - Created Project:ctest-TestBasicPolicy-76618942, ID : 1ca7d21b-abfe-4fde-bd2a-7b32f70a9968
2025-11-05 08:10:14,906 - INFO - ================================================================================
2025-11-05 08:10:14,906 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 08:10:14,906 - 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-11-05 08:10:15,163 - DEBUG - Nothing to compare xmpp stats {'10.0.0.133': {'10.20.0.14': '0'}} with
2025-11-05 08:10:15,163 - INFO - Initial checks done. Running the testcase now
2025-11-05 08:10:15,163 - INFO -
2025-11-05 08:10:15,726 - DEBUG - Response for create_network : {'network': {'id': 'eada1a30-dd22-411a-883c-29ddb45b6e13', 'name': 'ctest-vn-51305718', 'tenant_id': '1ca7d21babfe4fdebd2a7b32f70a9968', 'project_id': '1ca7d21babfe4fdebd2a7b32f70a9968', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76618942', 'ctest-vn-51305718'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:10:15,938 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e2d2f130-bbc8-4b1f-90e5-5307a7ebbdce', 'name': '', 'tenant_id': '1ca7d21babfe4fdebd2a7b32f70a9968', 'network_id': 'eada1a30-dd22-411a-883c-29ddb45b6e13', 'ip_version': 4, 'cidr': '100.224.88.0/26', 'allocation_pools': [{'start': '100.224.88.2', 'end': '100.224.88.62'}], 'gateway_ip': '100.224.88.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.224.88.2', 'tags': [], 'project_id': '1ca7d21babfe4fdebd2a7b32f70a9968'}}
2025-11-05 08:10:15,953 - INFO - Created VN ctest-vn-51305718
2025-11-05 08:10:16,005 - DEBUG - VN ctest-vn-51305718 UUID is eada1a30-dd22-411a-883c-29ddb45b6e13
2025-11-05 08:10:16,271 - DEBUG - Response for create_network : {'network': {'id': '3212b111-0a85-424b-9063-82540673323e', 'name': 'ctest-vn-26469467', 'tenant_id': '1ca7d21babfe4fdebd2a7b32f70a9968', 'project_id': '1ca7d21babfe4fdebd2a7b32f70a9968', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76618942', 'ctest-vn-26469467'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:10:16,493 - DEBUG - Response for create_subnet : {'subnet': {'id': '9cd461d8-27d9-4610-bf48-ad77e9006302', 'name': '', 'tenant_id': '1ca7d21babfe4fdebd2a7b32f70a9968', 'network_id': '3212b111-0a85-424b-9063-82540673323e', 'ip_version': 4, 'cidr': '124.188.32.128/26', 'allocation_pools': [{'start': '124.188.32.130', 'end': '124.188.32.190'}], 'gateway_ip': '124.188.32.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.188.32.130', 'tags': [], 'project_id': '1ca7d21babfe4fdebd2a7b32f70a9968'}}
2025-11-05 08:10:16,508 - INFO - Created VN ctest-vn-26469467
2025-11-05 08:10:16,561 - DEBUG - VN ctest-vn-26469467 UUID is 3212b111-0a85-424b-9063-82540673323e
2025-11-05 08:10:16,705 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76618942:ctest-vn-51305718, 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-76618942:ctest-vn-26469467, 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-11-05 08:10:17,005 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eada1a30-dd22-411a-883c-29ddb45b6e13', 'name': 'ctest-vn-51305718', 'tenant_id': '1ca7d21babfe4fdebd2a7b32f70a9968', 'project_id': '1ca7d21babfe4fdebd2a7b32f70a9968', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e2d2f130-bbc8-4b1f-90e5-5307a7ebbdce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76618942', 'ctest-vn-51305718'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76618942', 'ctest-policy-allow-all-51238377']], 'subnet_ipam': [{'subnet_cidr': '100.224.88.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:10:17,219 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3212b111-0a85-424b-9063-82540673323e', 'name': 'ctest-vn-26469467', 'tenant_id': '1ca7d21babfe4fdebd2a7b32f70a9968', 'project_id': '1ca7d21babfe4fdebd2a7b32f70a9968', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9cd461d8-27d9-4610-bf48-ad77e9006302'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76618942', 'ctest-vn-26469467'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76618942', 'ctest-policy-allow-all-51238377']], 'subnet_ipam': [{'subnet_cidr': '124.188.32.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:10:17,373 - DEBUG - Requesting: http://10.0.0.133:8082/domains
2025-11-05 08:10:17,704 - DEBUG - Requesting: http://10.0.0.133:8082/domains
2025-11-05 08:10:17,733 - DEBUG - Requesting: http://10.0.0.133:8082/domain/7e7a7568-7cce-4d3b-bae0-b2e2c4f23c1c
2025-11-05 08:10:17,744 - DEBUG - Requesting: http://10.0.0.133:8082/project/1ca7d21b-abfe-4fde-bd2a-7b32f70a9968
2025-11-05 08:10:17,817 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/eada1a30-dd22-411a-883c-29ddb45b6e13
2025-11-05 08:10:17,826 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/eada1a30-dd22-411a-883c-29ddb45b6e13
2025-11-05 08:10:17,835 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/ed2fd5ee-99d1-40b4-9266-a37297b708ff
2025-11-05 08:10:17,842 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/ed2fd5ee-99d1-40b4-9266-a37297b708ff
2025-11-05 08:10:17,848 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/c8d7dbf2-7ae3-43ba-b6fd-c737a63b0380
2025-11-05 08:10:17,854 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 08:10:17,854 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/eada1a30-dd22-411a-883c-29ddb45b6e13
2025-11-05 08:10:17,862 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/ed2fd5ee-99d1-40b4-9266-a37297b708ff
2025-11-05 08:10:17,874 - INFO - Verified VN network id 12 for VN eada1a30-dd22-411a-883c-29ddb45b6e13
2025-11-05 08:10:17,875 - INFO - Verifications in API Server for VN ctest-vn-51305718 passed
2025-11-05 08:10:17,875 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/eada1a30-dd22-411a-883c-29ddb45b6e13
2025-11-05 08:10:17,885 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/ed2fd5ee-99d1-40b4-9266-a37297b708ff
2025-11-05 08:10:17,893 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/ed2fd5ee-99d1-40b4-9266-a37297b708ff
2025-11-05 08:10:17,901 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/c8d7dbf2-7ae3-43ba-b6fd-c737a63b0380
2025-11-05 08:10:17,913 - DEBUG - Control-node 10.0.0.133 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76618942:ctest-vn-51305718', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76618942', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16922867346968822042', 'uuid-lslong': '9816767319951240723'}, 'enable': 'true', 'created': '2025-11-05T08:10:15', 'last-modified': '2025-11-05T08:10:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.935753'}
2025-11-05 08:10:17,920 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 08:10:17,920 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51305718 passed
2025-11-05 08:10:17,920 - DEBUG - ====Verifying policy data for ctest-vn-51305718 in API_Server ======
2025-11-05 08:10:17,920 - DEBUG - Requesting: http://10.0.0.133:8082/domains
2025-11-05 08:10:17,926 - DEBUG - Requesting: http://10.0.0.133:8082/domain/7e7a7568-7cce-4d3b-bae0-b2e2c4f23c1c
2025-11-05 08:10:17,938 - DEBUG - Requesting: http://10.0.0.133:8082/project/1ca7d21b-abfe-4fde-bd2a-7b32f70a9968
2025-11-05 08:10:18,009 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/eada1a30-dd22-411a-883c-29ddb45b6e13
2025-11-05 08:10:18,017 - DEBUG - ==>Verifying data for policy with id: 12788b2e-6003-4682-8c35-79a28000c1f9, fqn: ['default-domain', 'ctest-TestBasicPolicy-76618942', 'ctest-policy-allow-all-51238377']
2025-11-05 08:10:18,017 - INFO - VN ctest-vn-51305718 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 08:10:18,017 - DEBUG - Verifying the vn in opserver
2025-11-05 08:10:18,017 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76618942:ctest-vn-51305718 virtual network link through opserver 10.0.0.133
2025-11-05 08:10:18,018 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks
2025-11-05 08:10:18,338 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks
2025-11-05 08:10:18,395 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76618942:ctest-vn-51305718', 'href': 'http://10.0.0.133:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76618942:ctest-vn-51305718?flat'}
2025-11-05 08:10:18,395 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76618942:ctest-vn-51305718 is found in opserver
2025-11-05 08:10:18,403 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 08:10:18,408 - DEBUG - VRF ids for VN ctest-vn-51305718: {}
2025-11-05 08:10:18,408 - DEBUG - Requesting: http://10.0.0.133:8082/domains
2025-11-05 08:10:18,413 - DEBUG - Requesting: http://10.0.0.133:8082/domain/7e7a7568-7cce-4d3b-bae0-b2e2c4f23c1c
2025-11-05 08:10:18,424 - DEBUG - Requesting: http://10.0.0.133:8082/project/1ca7d21b-abfe-4fde-bd2a-7b32f70a9968
2025-11-05 08:10:18,495 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/3212b111-0a85-424b-9063-82540673323e
2025-11-05 08:10:18,505 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/3212b111-0a85-424b-9063-82540673323e
2025-11-05 08:10:18,513 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/483e1ce9-d2e3-4713-8953-806db9ae1187
2025-11-05 08:10:18,519 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/483e1ce9-d2e3-4713-8953-806db9ae1187
2025-11-05 08:10:18,524 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/70510f4b-890c-4c0b-b722-894a2e5653c9
2025-11-05 08:10:18,529 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 08:10:18,529 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/3212b111-0a85-424b-9063-82540673323e
2025-11-05 08:10:18,537 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/483e1ce9-d2e3-4713-8953-806db9ae1187
2025-11-05 08:10:18,549 - INFO - Verified VN network id 13 for VN 3212b111-0a85-424b-9063-82540673323e
2025-11-05 08:10:18,549 - INFO - Verifications in API Server for VN ctest-vn-26469467 passed
2025-11-05 08:10:18,550 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/3212b111-0a85-424b-9063-82540673323e
2025-11-05 08:10:18,557 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/483e1ce9-d2e3-4713-8953-806db9ae1187
2025-11-05 08:10:18,563 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/483e1ce9-d2e3-4713-8953-806db9ae1187
2025-11-05 08:10:18,569 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/70510f4b-890c-4c0b-b722-894a2e5653c9
2025-11-05 08:10:18,579 - DEBUG - Control-node 10.0.0.133 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76618942:ctest-vn-26469467', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76618942', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3608140938226254411', 'uuid-lslong': '10404302861553054270'}, 'enable': 'true', 'created': '2025-11-05T08:10:16', 'last-modified': '2025-11-05T08:10:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.378500'}
2025-11-05 08:10:18,584 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 08:10:18,584 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26469467 passed
2025-11-05 08:10:18,584 - DEBUG - ====Verifying policy data for ctest-vn-26469467 in API_Server ======
2025-11-05 08:10:18,584 - DEBUG - Requesting: http://10.0.0.133:8082/domains
2025-11-05 08:10:18,589 - DEBUG - Requesting: http://10.0.0.133:8082/domain/7e7a7568-7cce-4d3b-bae0-b2e2c4f23c1c
2025-11-05 08:10:18,599 - DEBUG - Requesting: http://10.0.0.133:8082/project/1ca7d21b-abfe-4fde-bd2a-7b32f70a9968
2025-11-05 08:10:18,673 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/3212b111-0a85-424b-9063-82540673323e
2025-11-05 08:10:18,684 - DEBUG - ==>Verifying data for policy with id: 12788b2e-6003-4682-8c35-79a28000c1f9, fqn: ['default-domain', 'ctest-TestBasicPolicy-76618942', 'ctest-policy-allow-all-51238377']
2025-11-05 08:10:18,684 - INFO - VN ctest-vn-26469467 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 08:10:18,684 - DEBUG - Verifying the vn in opserver
2025-11-05 08:10:18,684 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76618942:ctest-vn-26469467 virtual network link through opserver 10.0.0.133
2025-11-05 08:10:18,684 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks
2025-11-05 08:10:18,695 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76618942:ctest-vn-26469467', 'href': 'http://10.0.0.133:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76618942:ctest-vn-26469467?flat'}
2025-11-05 08:10:18,695 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76618942:ctest-vn-26469467 is found in opserver
2025-11-05 08:10:18,706 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 08:10:18,713 - DEBUG - VRF ids for VN ctest-vn-26469467: {}
2025-11-05 08:10:18,780 - DEBUG - Services list from nova: [