2025-04-16 11:08:02,936 - INFO - Reading existing Domain with UUID b01b56ed-3042-44ba-b42d-383118ee132c
2025-04-16 11:08:02,953 - INFO - Using existing domain ['admin_domain'](b01b56ed-3042-44ba-b42d-383118ee132c)
2025-04-16 11:08:03,247 - INFO - Project ctest-TestBasicPolicy-53613612 not found, creating it
2025-04-16 11:08:04,258 - INFO - Created Project:ctest-TestBasicPolicy-53613612, ID : 5dfb2878-5195-4804-b955-d3f916ce50a0
2025-04-16 11:08:06,356 - INFO - ================================================================================
2025-04-16 11:08:06,357 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-16 11:08:06,357 - 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-04-16 11:08:06,742 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.0.0.19': '0'}} with
2025-04-16 11:08:06,742 - INFO - Initial checks done. Running the testcase now
2025-04-16 11:08:06,742 - INFO -
2025-04-16 11:08:07,602 - DEBUG - Response for create_network : {'network': {'id': '845ef7f9-e7a0-4d16-93bf-d1ac48f05cc6', 'name': 'ctest-vn-50374656', 'tenant_id': '5dfb287851954804b955d3f916ce50a0', 'project_id': '5dfb287851954804b955d3f916ce50a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-53613612', 'ctest-vn-50374656'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-04-16 11:08:08,115 - DEBUG - Response for create_subnet : {'subnet': {'id': '33e4f20f-66b6-43c1-bf44-409b72a5e5d6', 'name': '', 'tenant_id': '5dfb287851954804b955d3f916ce50a0', 'network_id': '845ef7f9-e7a0-4d16-93bf-d1ac48f05cc6', 'ip_version': 4, 'cidr': '116.46.76.0/26', 'allocation_pools': [{'start': '116.46.76.2', 'end': '116.46.76.62'}], 'gateway_ip': '116.46.76.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-16T11:08:07.893517', 'updated_at': '2025-04-16T11:08:07.893517', 'dns_server_address': '116.46.76.2', 'tags': [], 'project_id': '5dfb287851954804b955d3f916ce50a0'}}
2025-04-16 11:08:08,208 - INFO - Created VN ctest-vn-50374656
2025-04-16 11:08:08,285 - DEBUG - VN ctest-vn-50374656 UUID is 845ef7f9-e7a0-4d16-93bf-d1ac48f05cc6
2025-04-16 11:08:08,898 - DEBUG - Response for create_network : {'network': {'id': 'd768a585-88f9-4440-829f-b2b130d129e0', 'name': 'ctest-vn-12578034', 'tenant_id': '5dfb287851954804b955d3f916ce50a0', 'project_id': '5dfb287851954804b955d3f916ce50a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-53613612', 'ctest-vn-12578034'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-04-16 11:08:09,142 - DEBUG - Response for create_subnet : {'subnet': {'id': '2aa0c542-ba1a-4aad-9968-fa2ac1d26fbe', 'name': '', 'tenant_id': '5dfb287851954804b955d3f916ce50a0', 'network_id': 'd768a585-88f9-4440-829f-b2b130d129e0', 'ip_version': 4, 'cidr': '59.211.88.0/26', 'allocation_pools': [{'start': '59.211.88.2', 'end': '59.211.88.62'}], 'gateway_ip': '59.211.88.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-16T11:08:09.017851', 'updated_at': '2025-04-16T11:08:09.017851', 'dns_server_address': '59.211.88.2', 'tags': [], 'project_id': '5dfb287851954804b955d3f916ce50a0'}}
2025-04-16 11:08:09,215 - INFO - Created VN ctest-vn-12578034
2025-04-16 11:08:09,276 - DEBUG - VN ctest-vn-12578034 UUID is d768a585-88f9-4440-829f-b2b130d129e0
2025-04-16 11:08:09,536 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-50374656, 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-53613612:ctest-vn-12578034, 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-04-16 11:08:10,057 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '845ef7f9-e7a0-4d16-93bf-d1ac48f05cc6', 'name': 'ctest-vn-50374656', 'tenant_id': '5dfb287851954804b955d3f916ce50a0', 'project_id': '5dfb287851954804b955d3f916ce50a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['33e4f20f-66b6-43c1-bf44-409b72a5e5d6'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-53613612', 'ctest-vn-50374656'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-53613612', 'ctest-policy-allow-all-03334757']], 'subnet_ipam': [{'subnet_cidr': '116.46.76.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-04-16T11:08:07.512225', 'updated_at': '2025-04-16T11:08:07.955524'}}
2025-04-16 11:08:10,440 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd768a585-88f9-4440-829f-b2b130d129e0', 'name': 'ctest-vn-12578034', 'tenant_id': '5dfb287851954804b955d3f916ce50a0', 'project_id': '5dfb287851954804b955d3f916ce50a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2aa0c542-ba1a-4aad-9968-fa2ac1d26fbe'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-53613612', 'ctest-vn-12578034'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-53613612', 'ctest-policy-allow-all-03334757']], 'subnet_ipam': [{'subnet_cidr': '59.211.88.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-04-16T11:08:08.819102', 'updated_at': '2025-04-16T11:08:09.039595'}}
2025-04-16 11:08:10,620 - DEBUG - Requesting: https://10.0.0.19:8082/domains
2025-04-16 11:08:10,983 - DEBUG - Requesting: https://10.0.0.19:8082/domains
2025-04-16 11:08:11,073 - DEBUG - Requesting: https://10.0.0.19:8082/domain/b01b56ed-3042-44ba-b42d-383118ee132c
2025-04-16 11:08:11,134 - DEBUG - Requesting: https://10.0.0.19:8082/project/5dfb2878-5195-4804-b955-d3f916ce50a0
2025-04-16 11:08:11,231 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/845ef7f9-e7a0-4d16-93bf-d1ac48f05cc6
2025-04-16 11:08:11,291 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/845ef7f9-e7a0-4d16-93bf-d1ac48f05cc6
2025-04-16 11:08:11,347 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fd5aa799-0cbb-4323-b9b5-a58daf8fde89
2025-04-16 11:08:11,402 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fd5aa799-0cbb-4323-b9b5-a58daf8fde89
2025-04-16 11:08:11,463 - DEBUG - Requesting: https://10.0.0.19:8082/route-target/90333213-9865-4023-b08e-f8021340781a
2025-04-16 11:08:11,518 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-16 11:08:11,518 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/845ef7f9-e7a0-4d16-93bf-d1ac48f05cc6
2025-04-16 11:08:11,579 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fd5aa799-0cbb-4323-b9b5-a58daf8fde89
2025-04-16 11:08:11,643 - INFO - Verified VN network id 8 for VN 845ef7f9-e7a0-4d16-93bf-d1ac48f05cc6
2025-04-16 11:08:11,643 - INFO - Verifications in API Server for VN ctest-vn-50374656 passed
2025-04-16 11:08:11,644 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/845ef7f9-e7a0-4d16-93bf-d1ac48f05cc6
2025-04-16 11:08:11,701 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fd5aa799-0cbb-4323-b9b5-a58daf8fde89
2025-04-16 11:08:11,758 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fd5aa799-0cbb-4323-b9b5-a58daf8fde89
2025-04-16 11:08:11,814 - DEBUG - Requesting: https://10.0.0.19:8082/route-target/90333213-9865-4023-b08e-f8021340781a
2025-04-16 11:08:11,926 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-50374656', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53613612', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9538333713522248982', 'uuid-lslong': '10646458582015433926'}, 'enable': 'true', 'created': '2025-04-16T11:08:07', 'last-modified': '2025-04-16T11:08:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.926866'}
2025-04-16 11:08:11,983 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-16 11:08:11,983 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50374656 passed
2025-04-16 11:08:11,983 - DEBUG - ====Verifying policy data for ctest-vn-50374656 in API_Server ======
2025-04-16 11:08:11,983 - DEBUG - Requesting: https://10.0.0.19:8082/domains
2025-04-16 11:08:12,041 - DEBUG - Requesting: https://10.0.0.19:8082/domain/b01b56ed-3042-44ba-b42d-383118ee132c
2025-04-16 11:08:12,102 - DEBUG - Requesting: https://10.0.0.19:8082/project/5dfb2878-5195-4804-b955-d3f916ce50a0
2025-04-16 11:08:12,194 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/845ef7f9-e7a0-4d16-93bf-d1ac48f05cc6
2025-04-16 11:08:12,251 - DEBUG - ==>Verifying data for policy with id: 06f3aae7-85ca-401a-8dc9-43e8a3fb5be0, fqn: ['admin_domain', 'ctest-TestBasicPolicy-53613612', 'ctest-policy-allow-all-03334757']
2025-04-16 11:08:12,251 - INFO - VN ctest-vn-50374656 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-16 11:08:12,251 - DEBUG - Verifying the vn in opserver
2025-04-16 11:08:12,251 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-50374656 virtual network link through opserver 10.0.0.19
2025-04-16 11:08:12,251 - DEBUG - Requesting: https://10.0.0.19:8081/analytics/uves/virtual-networks
2025-04-16 11:08:12,612 - DEBUG - Requesting: https://10.0.0.19:8081/analytics/uves/virtual-networks
2025-04-16 11:08:12,753 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-50374656', 'href': 'https://10.0.0.19:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-50374656?flat'}
2025-04-16 11:08:12,754 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-50374656 is found in opserver
2025-04-16 11:08:12,862 - DEBUG - Do not have enough data to verify VN in agent
2025-04-16 11:08:12,913 - DEBUG - VRF ids for VN ctest-vn-50374656: {}
2025-04-16 11:08:12,914 - DEBUG - Requesting: https://10.0.0.19:8082/domains
2025-04-16 11:08:12,969 - DEBUG - Requesting: https://10.0.0.19:8082/domain/b01b56ed-3042-44ba-b42d-383118ee132c
2025-04-16 11:08:13,030 - DEBUG - Requesting: https://10.0.0.19:8082/project/5dfb2878-5195-4804-b955-d3f916ce50a0
2025-04-16 11:08:13,110 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/d768a585-88f9-4440-829f-b2b130d129e0
2025-04-16 11:08:13,171 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/d768a585-88f9-4440-829f-b2b130d129e0
2025-04-16 11:08:13,228 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fa6cedb9-6521-45a7-b7b3-d2e83dcd4c0b
2025-04-16 11:08:13,282 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fa6cedb9-6521-45a7-b7b3-d2e83dcd4c0b
2025-04-16 11:08:13,338 - DEBUG - Requesting: https://10.0.0.19:8082/route-target/029845f3-ef85-477d-b980-60139b3d54a0
2025-04-16 11:08:13,393 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-16 11:08:13,393 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/d768a585-88f9-4440-829f-b2b130d129e0
2025-04-16 11:08:13,455 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fa6cedb9-6521-45a7-b7b3-d2e83dcd4c0b
2025-04-16 11:08:13,524 - INFO - Verified VN network id 9 for VN d768a585-88f9-4440-829f-b2b130d129e0
2025-04-16 11:08:13,524 - INFO - Verifications in API Server for VN ctest-vn-12578034 passed
2025-04-16 11:08:13,524 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/d768a585-88f9-4440-829f-b2b130d129e0
2025-04-16 11:08:13,583 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fa6cedb9-6521-45a7-b7b3-d2e83dcd4c0b
2025-04-16 11:08:13,638 - DEBUG - Requesting: https://10.0.0.19:8082/routing-instance/fa6cedb9-6521-45a7-b7b3-d2e83dcd4c0b
2025-04-16 11:08:13,698 - DEBUG - Requesting: https://10.0.0.19:8082/route-target/029845f3-ef85-477d-b980-60139b3d54a0
2025-04-16 11:08:13,810 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-12578034', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53613612', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15521838108679685184', 'uuid-lslong': '9412438220325595616'}, 'enable': 'true', 'created': '2025-04-16T11:08:08', 'last-modified': '2025-04-16T11:08:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.393009'}
2025-04-16 11:08:13,863 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-16 11:08:13,863 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12578034 passed
2025-04-16 11:08:13,864 - DEBUG - ====Verifying policy data for ctest-vn-12578034 in API_Server ======
2025-04-16 11:08:13,864 - DEBUG - Requesting: https://10.0.0.19:8082/domains
2025-04-16 11:08:13,917 - DEBUG - Requesting: https://10.0.0.19:8082/domain/b01b56ed-3042-44ba-b42d-383118ee132c
2025-04-16 11:08:13,978 - DEBUG - Requesting: https://10.0.0.19:8082/project/5dfb2878-5195-4804-b955-d3f916ce50a0
2025-04-16 11:08:14,067 - DEBUG - Requesting: https://10.0.0.19:8082/virtual-network/d768a585-88f9-4440-829f-b2b130d129e0
2025-04-16 11:08:14,127 - DEBUG - ==>Verifying data for policy with id: 06f3aae7-85ca-401a-8dc9-43e8a3fb5be0, fqn: ['admin_domain', 'ctest-TestBasicPolicy-53613612', 'ctest-policy-allow-all-03334757']
2025-04-16 11:08:14,128 - INFO - VN ctest-vn-12578034 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-16 11:08:14,128 - DEBUG - Verifying the vn in opserver
2025-04-16 11:08:14,128 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-12578034 virtual network link through opserver 10.0.0.19
2025-04-16 11:08:14,128 - DEBUG - Requesting: https://10.0.0.19:8081/analytics/uves/virtual-networks
2025-04-16 11:08:14,189 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-12578034', 'href': 'https://10.0.0.19:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-12578034?flat'}
2025-04-16 11:08:14,189 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-53613612:ctest-vn-12578034 is found in opserver
2025-04-16 11:08:14,294 - DEBUG - Do not have enough data to verify VN in agent
2025-04-16 11:08:14,345 - DEBUG - VRF ids for VN ctest-vn-12578034: {}
2025-04-16 11:08:14,423 - DEBUG - Services list from nova: [