2025-10-22 15:00:29,825 - INFO - Reading existing Domain with UUID 8c582771-8b31-4700-9720-69718950e5ce
2025-10-22 15:00:29,839 - INFO - Using existing domain ['admin_domain'](8c582771-8b31-4700-9720-69718950e5ce)
2025-10-22 15:00:30,071 - INFO - Project ctest-TestBasicPolicy-70042290 not found, creating it
2025-10-22 15:00:30,588 - INFO - Created Project:ctest-TestBasicPolicy-70042290, ID : e3ff9a0e-77b6-46d8-a8b2-705bd4511047
2025-10-22 15:00:32,394 - INFO - ================================================================================
2025-10-22 15:00:32,395 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-22 15:00:32,395 - 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-22 15:00:32,792 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.0.0.241': '0'}} with
2025-10-22 15:00:32,792 - INFO - Initial checks done. Running the testcase now
2025-10-22 15:00:32,792 - INFO -
2025-10-22 15:00:33,608 - DEBUG - Response for create_network : {'network': {'id': '247938bc-6bf5-4fae-bc99-9c17e7b68a47', 'name': 'ctest-vn-92186153', 'tenant_id': 'e3ff9a0e77b646d8a8b2705bd4511047', 'project_id': 'e3ff9a0e77b646d8a8b2705bd4511047', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-70042290', 'ctest-vn-92186153'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-22 15:00:33,864 - DEBUG - Response for create_subnet : {'subnet': {'id': '1128fab0-17f3-4198-91e3-24daa61b8ce0', 'name': '', 'tenant_id': 'e3ff9a0e77b646d8a8b2705bd4511047', 'network_id': '247938bc-6bf5-4fae-bc99-9c17e7b68a47', 'ip_version': 4, 'cidr': '101.65.122.128/26', 'allocation_pools': [{'start': '101.65.122.130', 'end': '101.65.122.190'}], 'gateway_ip': '101.65.122.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T15:00:33.742767', 'updated_at': '2025-10-22T15:00:33.742767', 'dns_server_address': '101.65.122.130', 'tags': [], 'project_id': 'e3ff9a0e77b646d8a8b2705bd4511047'}}
2025-10-22 15:00:33,929 - INFO - Created VN ctest-vn-92186153
2025-10-22 15:00:33,982 - DEBUG - VN ctest-vn-92186153 UUID is 247938bc-6bf5-4fae-bc99-9c17e7b68a47
2025-10-22 15:00:34,499 - DEBUG - Response for create_network : {'network': {'id': 'cdf9940d-868e-4b48-af84-0a37ae3d07ae', 'name': 'ctest-vn-82963780', 'tenant_id': 'e3ff9a0e77b646d8a8b2705bd4511047', 'project_id': 'e3ff9a0e77b646d8a8b2705bd4511047', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-70042290', 'ctest-vn-82963780'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-22 15:00:34,731 - DEBUG - Response for create_subnet : {'subnet': {'id': '4508e2c9-d969-4095-a3d2-95bf301f351e', 'name': '', 'tenant_id': 'e3ff9a0e77b646d8a8b2705bd4511047', 'network_id': 'cdf9940d-868e-4b48-af84-0a37ae3d07ae', 'ip_version': 4, 'cidr': '86.0.219.128/26', 'allocation_pools': [{'start': '86.0.219.130', 'end': '86.0.219.190'}], 'gateway_ip': '86.0.219.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T15:00:34.620561', 'updated_at': '2025-10-22T15:00:34.620561', 'dns_server_address': '86.0.219.130', 'tags': [], 'project_id': 'e3ff9a0e77b646d8a8b2705bd4511047'}}
2025-10-22 15:00:34,797 - INFO - Created VN ctest-vn-82963780
2025-10-22 15:00:34,854 - DEBUG - VN ctest-vn-82963780 UUID is cdf9940d-868e-4b48-af84-0a37ae3d07ae
2025-10-22 15:00:35,072 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-92186153, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-82963780, 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-22 15:00:35,490 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '247938bc-6bf5-4fae-bc99-9c17e7b68a47', 'name': 'ctest-vn-92186153', 'tenant_id': 'e3ff9a0e77b646d8a8b2705bd4511047', 'project_id': 'e3ff9a0e77b646d8a8b2705bd4511047', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1128fab0-17f3-4198-91e3-24daa61b8ce0'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-70042290', 'ctest-vn-92186153'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-70042290', 'ctest-policy-allow-all-33379767']], 'subnet_ipam': [{'subnet_cidr': '101.65.122.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-22T15:00:33.530385', 'updated_at': '2025-10-22T15:00:33.760119'}}
2025-10-22 15:00:35,846 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cdf9940d-868e-4b48-af84-0a37ae3d07ae', 'name': 'ctest-vn-82963780', 'tenant_id': 'e3ff9a0e77b646d8a8b2705bd4511047', 'project_id': 'e3ff9a0e77b646d8a8b2705bd4511047', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4508e2c9-d969-4095-a3d2-95bf301f351e'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-70042290', 'ctest-vn-82963780'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-70042290', 'ctest-policy-allow-all-33379767']], 'subnet_ipam': [{'subnet_cidr': '86.0.219.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-22T15:00:34.418865', 'updated_at': '2025-10-22T15:00:34.634016'}}
2025-10-22 15:00:36,042 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2025-10-22 15:00:36,390 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2025-10-22 15:00:36,475 - DEBUG - Requesting: https://10.0.0.241:8082/domain/8c582771-8b31-4700-9720-69718950e5ce
2025-10-22 15:00:36,535 - DEBUG - Requesting: https://10.0.0.241:8082/project/e3ff9a0e-77b6-46d8-a8b2-705bd4511047
2025-10-22 15:00:36,617 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/247938bc-6bf5-4fae-bc99-9c17e7b68a47
2025-10-22 15:00:36,676 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/247938bc-6bf5-4fae-bc99-9c17e7b68a47
2025-10-22 15:00:36,733 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/95a18abf-0758-4246-b974-138943762e66
2025-10-22 15:00:36,787 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/95a18abf-0758-4246-b974-138943762e66
2025-10-22 15:00:36,840 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/029baa80-599e-4855-828d-a914ac81bb4c
2025-10-22 15:00:36,891 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 15:00:36,891 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/247938bc-6bf5-4fae-bc99-9c17e7b68a47
2025-10-22 15:00:36,948 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/95a18abf-0758-4246-b974-138943762e66
2025-10-22 15:00:37,011 - INFO - Verified VN network id 11 for VN 247938bc-6bf5-4fae-bc99-9c17e7b68a47
2025-10-22 15:00:37,012 - INFO - Verifications in API Server for VN ctest-vn-92186153 passed
2025-10-22 15:00:37,012 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/247938bc-6bf5-4fae-bc99-9c17e7b68a47
2025-10-22 15:00:37,070 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/95a18abf-0758-4246-b974-138943762e66
2025-10-22 15:00:37,127 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/95a18abf-0758-4246-b974-138943762e66
2025-10-22 15:00:37,180 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/029baa80-599e-4855-828d-a914ac81bb4c
2025-10-22 15:00:37,279 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-92186153', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70042290', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2628194239463641006', 'uuid-lslong': '13590064977052863047'}, 'enable': 'true', 'created': '2025-10-22T15:00:33', 'last-modified': '2025-10-22T15:00:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.815840'}
2025-10-22 15:00:37,329 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 15:00:37,329 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92186153 passed
2025-10-22 15:00:37,329 - DEBUG - ====Verifying policy data for ctest-vn-92186153 in API_Server ======
2025-10-22 15:00:37,329 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2025-10-22 15:00:37,383 - DEBUG - Requesting: https://10.0.0.241:8082/domain/8c582771-8b31-4700-9720-69718950e5ce
2025-10-22 15:00:37,444 - DEBUG - Requesting: https://10.0.0.241:8082/project/e3ff9a0e-77b6-46d8-a8b2-705bd4511047
2025-10-22 15:00:37,520 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/247938bc-6bf5-4fae-bc99-9c17e7b68a47
2025-10-22 15:00:37,576 - DEBUG - ==>Verifying data for policy with id: 68fe87db-49de-4391-a21c-15a6e787c755, fqn: ['admin_domain', 'ctest-TestBasicPolicy-70042290', 'ctest-policy-allow-all-33379767']
2025-10-22 15:00:37,576 - INFO - VN ctest-vn-92186153 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 15:00:37,576 - DEBUG - Verifying the vn in opserver
2025-10-22 15:00:37,576 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-92186153 virtual network link through opserver 10.0.0.241
2025-10-22 15:00:37,576 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks
2025-10-22 15:00:37,924 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks
2025-10-22 15:00:38,051 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-92186153', 'href': 'https://10.0.0.241:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-92186153?flat'}
2025-10-22 15:00:38,051 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-92186153 is found in opserver
2025-10-22 15:00:38,151 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 15:00:38,203 - DEBUG - VRF ids for VN ctest-vn-92186153: {}
2025-10-22 15:00:38,203 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2025-10-22 15:00:38,255 - DEBUG - Requesting: https://10.0.0.241:8082/domain/8c582771-8b31-4700-9720-69718950e5ce
2025-10-22 15:00:38,315 - DEBUG - Requesting: https://10.0.0.241:8082/project/e3ff9a0e-77b6-46d8-a8b2-705bd4511047
2025-10-22 15:00:38,400 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/cdf9940d-868e-4b48-af84-0a37ae3d07ae
2025-10-22 15:00:38,461 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/cdf9940d-868e-4b48-af84-0a37ae3d07ae
2025-10-22 15:00:38,524 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/187ed1ef-4127-4af6-ada8-50a64e209639
2025-10-22 15:00:38,579 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/187ed1ef-4127-4af6-ada8-50a64e209639
2025-10-22 15:00:38,631 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/4f8a4154-a85f-4ef2-81f8-8e1e88c1eed0
2025-10-22 15:00:38,687 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 15:00:38,687 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/cdf9940d-868e-4b48-af84-0a37ae3d07ae
2025-10-22 15:00:38,744 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/187ed1ef-4127-4af6-ada8-50a64e209639
2025-10-22 15:00:38,811 - INFO - Verified VN network id 12 for VN cdf9940d-868e-4b48-af84-0a37ae3d07ae
2025-10-22 15:00:38,811 - INFO - Verifications in API Server for VN ctest-vn-82963780 passed
2025-10-22 15:00:38,811 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/cdf9940d-868e-4b48-af84-0a37ae3d07ae
2025-10-22 15:00:38,868 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/187ed1ef-4127-4af6-ada8-50a64e209639
2025-10-22 15:00:38,928 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/187ed1ef-4127-4af6-ada8-50a64e209639
2025-10-22 15:00:38,983 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/4f8a4154-a85f-4ef2-81f8-8e1e88c1eed0
2025-10-22 15:00:39,091 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-82963780', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70042290', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14842056832789138248', 'uuid-lslong': '12647244887825909678'}, 'enable': 'true', 'created': '2025-10-22T15:00:34', 'last-modified': '2025-10-22T15:00:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.283192'}
2025-10-22 15:00:39,169 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 15:00:39,169 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82963780 passed
2025-10-22 15:00:39,169 - DEBUG - ====Verifying policy data for ctest-vn-82963780 in API_Server ======
2025-10-22 15:00:39,170 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2025-10-22 15:00:39,263 - DEBUG - Requesting: https://10.0.0.241:8082/domain/8c582771-8b31-4700-9720-69718950e5ce
2025-10-22 15:00:39,334 - DEBUG - Requesting: https://10.0.0.241:8082/project/e3ff9a0e-77b6-46d8-a8b2-705bd4511047
2025-10-22 15:00:39,440 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/cdf9940d-868e-4b48-af84-0a37ae3d07ae
2025-10-22 15:00:39,518 - DEBUG - ==>Verifying data for policy with id: 68fe87db-49de-4391-a21c-15a6e787c755, fqn: ['admin_domain', 'ctest-TestBasicPolicy-70042290', 'ctest-policy-allow-all-33379767']
2025-10-22 15:00:39,518 - INFO - VN ctest-vn-82963780 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 15:00:39,518 - DEBUG - Verifying the vn in opserver
2025-10-22 15:00:39,518 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-82963780 virtual network link through opserver 10.0.0.241
2025-10-22 15:00:39,518 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks
2025-10-22 15:00:39,579 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-82963780', 'href': 'https://10.0.0.241:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-82963780?flat'}
2025-10-22 15:00:39,580 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-70042290:ctest-vn-82963780 is found in opserver
2025-10-22 15:00:39,691 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 15:00:39,745 - DEBUG - VRF ids for VN ctest-vn-82963780: {}
2025-10-22 15:00:39,838 - DEBUG - Services list from nova: [