2025-11-05 17:33:00,396 - INFO - Domain Default found not creating
2025-11-05 17:33:00,560 - INFO - Project ctest-TestBasicPolicy-62897345 not found, creating it
2025-11-05 17:33:01,039 - INFO - Created Project:ctest-TestBasicPolicy-62897345, ID : d9c0331f-f90c-487a-abc8-413ff4e71805
2025-11-05 17:33:02,648 - INFO - ================================================================================
2025-11-05 17:33:02,648 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 17:33:02,648 - 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 17:33:02,911 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.18': '0'}} with
2025-11-05 17:33:02,911 - INFO - Initial checks done. Running the testcase now
2025-11-05 17:33:02,911 - INFO -
2025-11-05 17:33:03,550 - DEBUG - Response for create_network : {'network': {'id': 'd94606b7-22ac-411f-9b2b-940c9eadc2fd', 'name': 'ctest-vn-76894079', 'tenant_id': 'd9c0331ff90c487aabc8413ff4e71805', 'project_id': 'd9c0331ff90c487aabc8413ff4e71805', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62897345', 'ctest-vn-76894079'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 17:33:03,771 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aca29cbf-7e7a-4ef6-b36b-a2609f68f959', 'name': '', 'tenant_id': 'd9c0331ff90c487aabc8413ff4e71805', 'network_id': 'd94606b7-22ac-411f-9b2b-940c9eadc2fd', 'ip_version': 4, 'cidr': '50.39.102.128/26', 'allocation_pools': [{'start': '50.39.102.130', 'end': '50.39.102.190'}], 'gateway_ip': '50.39.102.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.39.102.130', 'tags': [], 'project_id': 'd9c0331ff90c487aabc8413ff4e71805'}}
2025-11-05 17:33:03,793 - INFO - Created VN ctest-vn-76894079
2025-11-05 17:33:03,848 - DEBUG - VN ctest-vn-76894079 UUID is d94606b7-22ac-411f-9b2b-940c9eadc2fd
2025-11-05 17:33:04,193 - DEBUG - Response for create_network : {'network': {'id': 'bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f', 'name': 'ctest-vn-11900758', 'tenant_id': 'd9c0331ff90c487aabc8413ff4e71805', 'project_id': 'd9c0331ff90c487aabc8413ff4e71805', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62897345', 'ctest-vn-11900758'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 17:33:04,426 - DEBUG - Response for create_subnet : {'subnet': {'id': '2097da5e-ae48-4e89-867f-5975c6417b18', 'name': '', 'tenant_id': 'd9c0331ff90c487aabc8413ff4e71805', 'network_id': 'bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f', 'ip_version': 4, 'cidr': '101.118.81.64/26', 'allocation_pools': [{'start': '101.118.81.66', 'end': '101.118.81.126'}], 'gateway_ip': '101.118.81.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.118.81.66', 'tags': [], 'project_id': 'd9c0331ff90c487aabc8413ff4e71805'}}
2025-11-05 17:33:04,446 - INFO - Created VN ctest-vn-11900758
2025-11-05 17:33:04,499 - DEBUG - VN ctest-vn-11900758 UUID is bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f
2025-11-05 17:33:04,636 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-76894079, 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-62897345:ctest-vn-11900758, 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 17:33:04,947 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd94606b7-22ac-411f-9b2b-940c9eadc2fd', 'name': 'ctest-vn-76894079', 'tenant_id': 'd9c0331ff90c487aabc8413ff4e71805', 'project_id': 'd9c0331ff90c487aabc8413ff4e71805', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aca29cbf-7e7a-4ef6-b36b-a2609f68f959'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62897345', 'ctest-vn-76894079'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62897345', 'ctest-policy-allow-all-93467664']], 'subnet_ipam': [{'subnet_cidr': '50.39.102.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 17:33:05,224 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f', 'name': 'ctest-vn-11900758', 'tenant_id': 'd9c0331ff90c487aabc8413ff4e71805', 'project_id': 'd9c0331ff90c487aabc8413ff4e71805', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2097da5e-ae48-4e89-867f-5975c6417b18'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62897345', 'ctest-vn-11900758'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62897345', 'ctest-policy-allow-all-93467664']], 'subnet_ipam': [{'subnet_cidr': '101.118.81.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 17:33:05,384 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 17:33:05,690 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 17:33:05,721 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ddf6cb89-b3ed-4675-a5d7-f2134d9e2d78
2025-11-05 17:33:05,733 - DEBUG - Requesting: http://10.0.0.50:8082/project/d9c0331f-f90c-487a-abc8-413ff4e71805
2025-11-05 17:33:05,811 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d94606b7-22ac-411f-9b2b-940c9eadc2fd
2025-11-05 17:33:05,822 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d94606b7-22ac-411f-9b2b-940c9eadc2fd
2025-11-05 17:33:05,842 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/31dda085-e1f2-4f15-9fb4-2584b78bc400
2025-11-05 17:33:05,854 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/31dda085-e1f2-4f15-9fb4-2584b78bc400
2025-11-05 17:33:05,862 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ca26f84b-4c4d-4cdf-9cac-24fd4c2bc5d9
2025-11-05 17:33:05,869 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 17:33:05,869 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d94606b7-22ac-411f-9b2b-940c9eadc2fd
2025-11-05 17:33:05,880 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/31dda085-e1f2-4f15-9fb4-2584b78bc400
2025-11-05 17:33:05,896 - INFO - Verified VN network id 9 for VN d94606b7-22ac-411f-9b2b-940c9eadc2fd
2025-11-05 17:33:05,896 - INFO - Verifications in API Server for VN ctest-vn-76894079 passed
2025-11-05 17:33:05,896 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d94606b7-22ac-411f-9b2b-940c9eadc2fd
2025-11-05 17:33:05,908 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/31dda085-e1f2-4f15-9fb4-2584b78bc400
2025-11-05 17:33:05,915 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/31dda085-e1f2-4f15-9fb4-2584b78bc400
2025-11-05 17:33:05,923 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ca26f84b-4c4d-4cdf-9cac-24fd4c2bc5d9
2025-11-05 17:33:05,935 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-76894079', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62897345', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15656208538230604063', 'uuid-lslong': '11181193281800094461'}, 'enable': 'true', 'created': '2025-11-05T17:33:03', 'last-modified': '2025-11-05T17:33:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.013439'}
2025-11-05 17:33:05,942 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 17:33:05,942 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76894079 passed
2025-11-05 17:33:05,942 - DEBUG - ====Verifying policy data for ctest-vn-76894079 in API_Server ======
2025-11-05 17:33:05,942 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 17:33:05,948 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ddf6cb89-b3ed-4675-a5d7-f2134d9e2d78
2025-11-05 17:33:05,961 - DEBUG - Requesting: http://10.0.0.50:8082/project/d9c0331f-f90c-487a-abc8-413ff4e71805
2025-11-05 17:33:06,033 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d94606b7-22ac-411f-9b2b-940c9eadc2fd
2025-11-05 17:33:06,043 - DEBUG - ==>Verifying data for policy with id: e42b3282-1f02-4961-8598-cf145d11a586, fqn: ['default-domain', 'ctest-TestBasicPolicy-62897345', 'ctest-policy-allow-all-93467664']
2025-11-05 17:33:06,043 - INFO - VN ctest-vn-76894079 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 17:33:06,043 - DEBUG - Verifying the vn in opserver
2025-11-05 17:33:06,043 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-76894079 virtual network link through opserver 10.0.0.50
2025-11-05 17:33:06,043 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-05 17:33:06,345 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-05 17:33:06,424 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-76894079', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-76894079?flat'}
2025-11-05 17:33:06,424 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-76894079 is found in opserver
2025-11-05 17:33:06,443 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 17:33:06,455 - DEBUG - VRF ids for VN ctest-vn-76894079: {}
2025-11-05 17:33:06,455 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 17:33:06,463 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ddf6cb89-b3ed-4675-a5d7-f2134d9e2d78
2025-11-05 17:33:06,479 - DEBUG - Requesting: http://10.0.0.50:8082/project/d9c0331f-f90c-487a-abc8-413ff4e71805
2025-11-05 17:33:06,567 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f
2025-11-05 17:33:06,580 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f
2025-11-05 17:33:06,593 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eef93088-a2e1-447b-889d-39ff80bfd428
2025-11-05 17:33:06,602 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eef93088-a2e1-447b-889d-39ff80bfd428
2025-11-05 17:33:06,610 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ef35e3a0-6775-4624-9957-98b544f1ccca
2025-11-05 17:33:06,619 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 17:33:06,619 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f
2025-11-05 17:33:06,633 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eef93088-a2e1-447b-889d-39ff80bfd428
2025-11-05 17:33:06,651 - INFO - Verified VN network id 10 for VN bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f
2025-11-05 17:33:06,652 - INFO - Verifications in API Server for VN ctest-vn-11900758 passed
2025-11-05 17:33:06,652 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f
2025-11-05 17:33:06,665 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eef93088-a2e1-447b-889d-39ff80bfd428
2025-11-05 17:33:06,674 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eef93088-a2e1-447b-889d-39ff80bfd428
2025-11-05 17:33:06,684 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ef35e3a0-6775-4624-9957-98b544f1ccca
2025-11-05 17:33:06,704 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-11900758', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62897345', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13745245617182165819', 'uuid-lslong': '10533192190694555247'}, 'enable': 'true', 'created': '2025-11-05T17:33:04', 'last-modified': '2025-11-05T17:33:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.548517'}
2025-11-05 17:33:06,713 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 17:33:06,713 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11900758 passed
2025-11-05 17:33:06,713 - DEBUG - ====Verifying policy data for ctest-vn-11900758 in API_Server ======
2025-11-05 17:33:06,714 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 17:33:06,721 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ddf6cb89-b3ed-4675-a5d7-f2134d9e2d78
2025-11-05 17:33:06,734 - DEBUG - Requesting: http://10.0.0.50:8082/project/d9c0331f-f90c-487a-abc8-413ff4e71805
2025-11-05 17:33:06,817 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bec0ec10-3aa3-4b3b-922d-6a7d7d447e6f
2025-11-05 17:33:06,829 - DEBUG - ==>Verifying data for policy with id: e42b3282-1f02-4961-8598-cf145d11a586, fqn: ['default-domain', 'ctest-TestBasicPolicy-62897345', 'ctest-policy-allow-all-93467664']
2025-11-05 17:33:06,829 - INFO - VN ctest-vn-11900758 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 17:33:06,829 - DEBUG - Verifying the vn in opserver
2025-11-05 17:33:06,829 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-11900758 virtual network link through opserver 10.0.0.50
2025-11-05 17:33:06,829 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-05 17:33:06,840 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-11900758', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-11900758?flat'}
2025-11-05 17:33:06,840 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62897345:ctest-vn-11900758 is found in opserver
2025-11-05 17:33:06,853 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 17:33:06,859 - DEBUG - VRF ids for VN ctest-vn-11900758: {}
2025-11-05 17:33:06,951 - DEBUG - Services list from nova: [