2026-02-03 07:09:44,346 - INFO - Reading existing Domain with UUID a20a955c-6c44-478d-8a7f-02c90676183f
2026-02-03 07:09:44,356 - INFO - Using existing domain ['admin_domain'](a20a955c-6c44-478d-8a7f-02c90676183f)
2026-02-03 07:09:44,536 - INFO - Project ctest-TestBasicPolicy-32173678 not found, creating it
2026-02-03 07:09:45,003 - INFO - Created Project:ctest-TestBasicPolicy-32173678, ID : c5b01278-4ddf-4853-ac37-7f2d8dc53d59
2026-02-03 07:09:46,602 - INFO - ================================================================================
2026-02-03 07:09:46,602 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-03 07:09:46,602 - 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
2026-02-03 07:09:46,988 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with
2026-02-03 07:09:46,988 - INFO - Initial checks done. Running the testcase now
2026-02-03 07:09:46,988 - INFO -
2026-02-03 07:09:48,024 - DEBUG - Response for create_network : {'network': {'id': 'ba1cb3f9-ed92-40a9-bebf-75266e568d4d', 'name': 'ctest-vn-47862391', 'tenant_id': 'c5b012784ddf4853ac377f2d8dc53d59', 'project_id': 'c5b012784ddf4853ac377f2d8dc53d59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-32173678', 'ctest-vn-47862391'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-02-03 07:09:48,542 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c07f80b1-8322-45e8-ad2b-809226b18c29', 'name': '', 'tenant_id': 'c5b012784ddf4853ac377f2d8dc53d59', 'network_id': 'ba1cb3f9-ed92-40a9-bebf-75266e568d4d', 'ip_version': 4, 'cidr': '152.36.58.64/26', 'allocation_pools': [{'start': '152.36.58.66', 'end': '152.36.58.126'}], 'gateway_ip': '152.36.58.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-02-03T07:09:48.400449', 'updated_at': '2026-02-03T07:09:48.400449', 'dns_server_address': '152.36.58.66', 'tags': [], 'project_id': 'c5b012784ddf4853ac377f2d8dc53d59'}}
2026-02-03 07:09:48,621 - INFO - Created VN ctest-vn-47862391
2026-02-03 07:09:48,740 - DEBUG - VN ctest-vn-47862391 UUID is ba1cb3f9-ed92-40a9-bebf-75266e568d4d
2026-02-03 07:09:50,111 - DEBUG - Response for create_network : {'network': {'id': 'accef337-f128-4160-8acd-c4385219eba8', 'name': 'ctest-vn-89615660', 'tenant_id': 'c5b012784ddf4853ac377f2d8dc53d59', 'project_id': 'c5b012784ddf4853ac377f2d8dc53d59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-32173678', 'ctest-vn-89615660'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-02-03 07:09:50,543 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f61c326c-ea34-4d6b-b584-5b1ba8f14bb1', 'name': '', 'tenant_id': 'c5b012784ddf4853ac377f2d8dc53d59', 'network_id': 'accef337-f128-4160-8acd-c4385219eba8', 'ip_version': 4, 'cidr': '114.247.21.192/26', 'allocation_pools': [{'start': '114.247.21.194', 'end': '114.247.21.254'}], 'gateway_ip': '114.247.21.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-02-03T07:09:50.283297', 'updated_at': '2026-02-03T07:09:50.283297', 'dns_server_address': '114.247.21.194', 'tags': [], 'project_id': 'c5b012784ddf4853ac377f2d8dc53d59'}}
2026-02-03 07:09:50,625 - INFO - Created VN ctest-vn-89615660
2026-02-03 07:09:50,687 - DEBUG - VN ctest-vn-89615660 UUID is accef337-f128-4160-8acd-c4385219eba8
2026-02-03 07:09:50,923 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-32173678:ctest-vn-47862391, 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-32173678:ctest-vn-89615660, 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]
2026-02-03 07:09:51,741 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ba1cb3f9-ed92-40a9-bebf-75266e568d4d', 'name': 'ctest-vn-47862391', 'tenant_id': 'c5b012784ddf4853ac377f2d8dc53d59', 'project_id': 'c5b012784ddf4853ac377f2d8dc53d59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c07f80b1-8322-45e8-ad2b-809226b18c29'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-32173678', 'ctest-vn-47862391'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-32173678', 'ctest-policy-allow-all-01871696']], 'subnet_ipam': [{'subnet_cidr': '152.36.58.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-02-03T07:09:47.863571', 'updated_at': '2026-02-03T07:09:48.416405'}}
2026-02-03 07:09:53,286 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'accef337-f128-4160-8acd-c4385219eba8', 'name': 'ctest-vn-89615660', 'tenant_id': 'c5b012784ddf4853ac377f2d8dc53d59', 'project_id': 'c5b012784ddf4853ac377f2d8dc53d59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f61c326c-ea34-4d6b-b584-5b1ba8f14bb1'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-32173678', 'ctest-vn-89615660'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-32173678', 'ctest-policy-allow-all-01871696']], 'subnet_ipam': [{'subnet_cidr': '114.247.21.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-02-03T07:09:49.974843', 'updated_at': '2026-02-03T07:09:50.302745'}}
2026-02-03 07:09:53,854 - DEBUG - Requesting: https://10.0.0.129:8082/domains
2026-02-03 07:09:54,396 - DEBUG - Requesting: https://10.0.0.129:8082/domains
2026-02-03 07:09:54,503 - DEBUG - Requesting: https://10.0.0.129:8082/domain/a20a955c-6c44-478d-8a7f-02c90676183f
2026-02-03 07:09:54,774 - DEBUG - Requesting: https://10.0.0.129:8082/project/c5b01278-4ddf-4853-ac37-7f2d8dc53d59
2026-02-03 07:09:54,936 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/ba1cb3f9-ed92-40a9-bebf-75266e568d4d
2026-02-03 07:09:55,003 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/ba1cb3f9-ed92-40a9-bebf-75266e568d4d
2026-02-03 07:09:55,060 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/bfd70eac-fbf5-442f-8f0d-53544a5262b3
2026-02-03 07:09:55,118 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/bfd70eac-fbf5-442f-8f0d-53544a5262b3
2026-02-03 07:09:55,176 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/e67f72f4-6f85-4296-8878-8ee89552a1d5
2026-02-03 07:09:55,227 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-03 07:09:55,227 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/ba1cb3f9-ed92-40a9-bebf-75266e568d4d
2026-02-03 07:09:55,284 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/bfd70eac-fbf5-442f-8f0d-53544a5262b3
2026-02-03 07:09:55,346 - INFO - Verified VN network id 11 for VN ba1cb3f9-ed92-40a9-bebf-75266e568d4d
2026-02-03 07:09:55,347 - INFO - Verifications in API Server for VN ctest-vn-47862391 passed
2026-02-03 07:09:55,347 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/ba1cb3f9-ed92-40a9-bebf-75266e568d4d
2026-02-03 07:09:55,407 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/bfd70eac-fbf5-442f-8f0d-53544a5262b3
2026-02-03 07:09:55,459 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/bfd70eac-fbf5-442f-8f0d-53544a5262b3
2026-02-03 07:09:55,516 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/e67f72f4-6f85-4296-8878-8ee89552a1d5
2026-02-03 07:09:55,632 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-32173678:ctest-vn-47862391', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32173678', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13410791676416508073', 'uuid-lslong': '13744833395678416205'}, 'enable': 'true', 'created': '2026-02-03T07:09:47', 'last-modified': '2026-02-03T07:09:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.094066'}
2026-02-03 07:09:55,684 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-03 07:09:55,685 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47862391 passed
2026-02-03 07:09:55,685 - DEBUG - ====Verifying policy data for ctest-vn-47862391 in API_Server ======
2026-02-03 07:09:55,685 - DEBUG - Requesting: https://10.0.0.129:8082/domains
2026-02-03 07:09:55,749 - DEBUG - Requesting: https://10.0.0.129:8082/domain/a20a955c-6c44-478d-8a7f-02c90676183f
2026-02-03 07:09:55,816 - DEBUG - Requesting: https://10.0.0.129:8082/project/c5b01278-4ddf-4853-ac37-7f2d8dc53d59
2026-02-03 07:09:55,903 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/ba1cb3f9-ed92-40a9-bebf-75266e568d4d
2026-02-03 07:09:55,964 - DEBUG - ==>Verifying data for policy with id: ccb131a4-2850-46d0-a16f-015f50b00a40, fqn: ['admin_domain', 'ctest-TestBasicPolicy-32173678', 'ctest-policy-allow-all-01871696']
2026-02-03 07:09:55,964 - INFO - VN ctest-vn-47862391 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-03 07:09:55,964 - DEBUG - Verifying the vn in opserver
2026-02-03 07:09:55,964 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-32173678:ctest-vn-47862391 virtual network link through opserver 10.0.0.129
2026-02-03 07:09:55,964 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks
2026-02-03 07:09:56,370 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks
2026-02-03 07:09:56,499 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-32173678:ctest-vn-47862391', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-32173678:ctest-vn-47862391?flat'}
2026-02-03 07:09:56,499 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-32173678:ctest-vn-47862391 is found in opserver
2026-02-03 07:09:56,619 - DEBUG - Do not have enough data to verify VN in agent
2026-02-03 07:09:56,673 - DEBUG - VRF ids for VN ctest-vn-47862391: {}
2026-02-03 07:09:56,673 - DEBUG - Requesting: https://10.0.0.129:8082/domains
2026-02-03 07:09:56,727 - DEBUG - Requesting: https://10.0.0.129:8082/domain/a20a955c-6c44-478d-8a7f-02c90676183f
2026-02-03 07:09:56,792 - DEBUG - Requesting: https://10.0.0.129:8082/project/c5b01278-4ddf-4853-ac37-7f2d8dc53d59
2026-02-03 07:09:56,876 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/accef337-f128-4160-8acd-c4385219eba8
2026-02-03 07:09:56,942 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/accef337-f128-4160-8acd-c4385219eba8
2026-02-03 07:09:57,010 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/528fdfbb-2c85-4b06-a847-a59baebf18c3
2026-02-03 07:09:57,070 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/528fdfbb-2c85-4b06-a847-a59baebf18c3
2026-02-03 07:09:57,133 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/5243513c-e2c7-4c78-a247-cb698a5f10a7
2026-02-03 07:09:57,191 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-03 07:09:57,191 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/accef337-f128-4160-8acd-c4385219eba8
2026-02-03 07:09:57,248 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/528fdfbb-2c85-4b06-a847-a59baebf18c3
2026-02-03 07:09:57,314 - INFO - Verified VN network id 12 for VN accef337-f128-4160-8acd-c4385219eba8
2026-02-03 07:09:57,314 - INFO - Verifications in API Server for VN ctest-vn-89615660 passed
2026-02-03 07:09:57,314 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/accef337-f128-4160-8acd-c4385219eba8
2026-02-03 07:09:57,373 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/528fdfbb-2c85-4b06-a847-a59baebf18c3
2026-02-03 07:09:57,432 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/528fdfbb-2c85-4b06-a847-a59baebf18c3
2026-02-03 07:09:57,493 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/5243513c-e2c7-4c78-a247-cb698a5f10a7
2026-02-03 07:09:57,607 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-32173678:ctest-vn-89615660', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32173678', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12452157441320698208', 'uuid-lslong': '10001866093634382760'}, 'enable': 'true', 'created': '2026-02-03T07:09:49', 'last-modified': '2026-02-03T07:09:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.688106'}
2026-02-03 07:09:57,687 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-03 07:09:57,687 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89615660 passed
2026-02-03 07:09:57,687 - DEBUG - ====Verifying policy data for ctest-vn-89615660 in API_Server ======
2026-02-03 07:09:57,687 - DEBUG - Requesting: https://10.0.0.129:8082/domains
2026-02-03 07:09:57,743 - DEBUG - Requesting: https://10.0.0.129:8082/domain/a20a955c-6c44-478d-8a7f-02c90676183f
2026-02-03 07:09:57,811 - DEBUG - Requesting: https://10.0.0.129:8082/project/c5b01278-4ddf-4853-ac37-7f2d8dc53d59
2026-02-03 07:09:57,904 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/accef337-f128-4160-8acd-c4385219eba8
2026-02-03 07:09:57,962 - DEBUG - ==>Verifying data for policy with id: ccb131a4-2850-46d0-a16f-015f50b00a40, fqn: ['admin_domain', 'ctest-TestBasicPolicy-32173678', 'ctest-policy-allow-all-01871696']
2026-02-03 07:09:57,962 - INFO - VN ctest-vn-89615660 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-03 07:09:57,962 - DEBUG - Verifying the vn in opserver
2026-02-03 07:09:57,962 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-32173678:ctest-vn-89615660 virtual network link through opserver 10.0.0.129
2026-02-03 07:09:57,962 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks
2026-02-03 07:09:58,021 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-32173678:ctest-vn-89615660', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-32173678:ctest-vn-89615660?flat'}
2026-02-03 07:09:58,021 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-32173678:ctest-vn-89615660 is found in opserver
2026-02-03 07:09:58,135 - DEBUG - Do not have enough data to verify VN in agent
2026-02-03 07:09:58,192 - DEBUG - VRF ids for VN ctest-vn-89615660: {}
2026-02-03 07:09:58,258 - DEBUG - Services list from nova: [