2026-04-23 02:25:31,528 - INFO - Domain Default found not creating
2026-04-23 02:25:31,698 - INFO - Project ctest-TestBasicPolicy-50530090 not found, creating it
2026-04-23 02:25:32,171 - INFO - Created Project:ctest-TestBasicPolicy-50530090, ID : 0ad6a598-08e9-4d51-ba3e-542af57b032f
2026-04-23 02:25:33,685 - INFO - ================================================================================
2026-04-23 02:25:33,685 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-23 02:25:33,685 - 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-04-23 02:25:33,960 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.201': '0'}} with
2026-04-23 02:25:33,960 - INFO - Initial checks done. Running the testcase now
2026-04-23 02:25:33,961 - INFO -
2026-04-23 02:25:34,523 - DEBUG - Response for create_network : {'network': {'id': 'ad32abe2-1fc5-46a2-aea9-47993ff6d49b', 'name': 'ctest-vn-59579005', 'tenant_id': '0ad6a59808e94d51ba3e542af57b032f', 'project_id': '0ad6a59808e94d51ba3e542af57b032f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50530090', 'ctest-vn-59579005'], 'port_security_enabled': True, 'description': ''}}
2026-04-23 02:25:34,689 - DEBUG - Response for create_subnet : {'subnet': {'id': 'add28c1f-8603-4dcb-907b-d8e6bfda74a3', 'name': '', 'tenant_id': '0ad6a59808e94d51ba3e542af57b032f', 'network_id': 'ad32abe2-1fc5-46a2-aea9-47993ff6d49b', 'ip_version': 4, 'cidr': '207.106.121.192/26', 'allocation_pools': [{'start': '207.106.121.194', 'end': '207.106.121.254'}], 'gateway_ip': '207.106.121.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.106.121.194', 'tags': [], 'project_id': '0ad6a59808e94d51ba3e542af57b032f'}}
2026-04-23 02:25:34,707 - INFO - Created VN ctest-vn-59579005
2026-04-23 02:25:34,760 - DEBUG - VN ctest-vn-59579005 UUID is ad32abe2-1fc5-46a2-aea9-47993ff6d49b
2026-04-23 02:25:35,033 - DEBUG - Response for create_network : {'network': {'id': '310c4f2b-6678-4560-86e0-a0da7270084f', 'name': 'ctest-vn-72628244', 'tenant_id': '0ad6a59808e94d51ba3e542af57b032f', 'project_id': '0ad6a59808e94d51ba3e542af57b032f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50530090', 'ctest-vn-72628244'], 'port_security_enabled': True, 'description': ''}}
2026-04-23 02:25:35,255 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ecfc78e2-ecc3-44c4-9cdd-da024216c2dd', 'name': '', 'tenant_id': '0ad6a59808e94d51ba3e542af57b032f', 'network_id': '310c4f2b-6678-4560-86e0-a0da7270084f', 'ip_version': 4, 'cidr': '47.199.119.64/26', 'allocation_pools': [{'start': '47.199.119.66', 'end': '47.199.119.126'}], 'gateway_ip': '47.199.119.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.199.119.66', 'tags': [], 'project_id': '0ad6a59808e94d51ba3e542af57b032f'}}
2026-04-23 02:25:35,277 - INFO - Created VN ctest-vn-72628244
2026-04-23 02:25:35,328 - DEBUG - VN ctest-vn-72628244 UUID is 310c4f2b-6678-4560-86e0-a0da7270084f
2026-04-23 02:25:35,476 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50530090:ctest-vn-59579005, 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-50530090:ctest-vn-72628244, 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-04-23 02:25:35,785 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ad32abe2-1fc5-46a2-aea9-47993ff6d49b', 'name': 'ctest-vn-59579005', 'tenant_id': '0ad6a59808e94d51ba3e542af57b032f', 'project_id': '0ad6a59808e94d51ba3e542af57b032f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['add28c1f-8603-4dcb-907b-d8e6bfda74a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50530090', 'ctest-vn-59579005'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50530090', 'ctest-policy-allow-all-76005701']], 'subnet_ipam': [{'subnet_cidr': '207.106.121.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-23 02:25:36,005 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '310c4f2b-6678-4560-86e0-a0da7270084f', 'name': 'ctest-vn-72628244', 'tenant_id': '0ad6a59808e94d51ba3e542af57b032f', 'project_id': '0ad6a59808e94d51ba3e542af57b032f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ecfc78e2-ecc3-44c4-9cdd-da024216c2dd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50530090', 'ctest-vn-72628244'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50530090', 'ctest-policy-allow-all-76005701']], 'subnet_ipam': [{'subnet_cidr': '47.199.119.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-23 02:25:36,164 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-23 02:25:36,472 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-23 02:25:36,503 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8c1e14a9-fffe-4d1c-80d6-8d1fc14152e5
2026-04-23 02:25:36,515 - DEBUG - Requesting: http://10.0.0.50:8082/project/0ad6a598-08e9-4d51-ba3e-542af57b032f
2026-04-23 02:25:36,588 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ad32abe2-1fc5-46a2-aea9-47993ff6d49b
2026-04-23 02:25:36,603 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ad32abe2-1fc5-46a2-aea9-47993ff6d49b
2026-04-23 02:25:36,611 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/664b9702-dbbe-4185-b765-432302a0998a
2026-04-23 02:25:36,618 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/664b9702-dbbe-4185-b765-432302a0998a
2026-04-23 02:25:36,627 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f5406c3d-fc7e-464d-bd3a-3d64f38326dc
2026-04-23 02:25:36,633 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-23 02:25:36,633 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ad32abe2-1fc5-46a2-aea9-47993ff6d49b
2026-04-23 02:25:36,643 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/664b9702-dbbe-4185-b765-432302a0998a
2026-04-23 02:25:36,658 - INFO - Verified VN network id 10 for VN ad32abe2-1fc5-46a2-aea9-47993ff6d49b
2026-04-23 02:25:36,659 - INFO - Verifications in API Server for VN ctest-vn-59579005 passed
2026-04-23 02:25:36,659 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ad32abe2-1fc5-46a2-aea9-47993ff6d49b
2026-04-23 02:25:36,672 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/664b9702-dbbe-4185-b765-432302a0998a
2026-04-23 02:25:36,709 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/664b9702-dbbe-4185-b765-432302a0998a
2026-04-23 02:25:36,718 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f5406c3d-fc7e-464d-bd3a-3d64f38326dc
2026-04-23 02:25:36,735 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50530090:ctest-vn-59579005', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50530090', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12480226505081046690', 'uuid-lslong': '12585669357192271003'}, 'enable': 'true', 'created': '2026-04-23T02:25:34', 'last-modified': '2026-04-23T02:25:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.973812'}
2026-04-23 02:25:36,741 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-23 02:25:36,741 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59579005 passed
2026-04-23 02:25:36,741 - DEBUG - ====Verifying policy data for ctest-vn-59579005 in API_Server ======
2026-04-23 02:25:36,741 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-23 02:25:36,748 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8c1e14a9-fffe-4d1c-80d6-8d1fc14152e5
2026-04-23 02:25:36,758 - DEBUG - Requesting: http://10.0.0.50:8082/project/0ad6a598-08e9-4d51-ba3e-542af57b032f
2026-04-23 02:25:36,837 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ad32abe2-1fc5-46a2-aea9-47993ff6d49b
2026-04-23 02:25:36,845 - DEBUG - ==>Verifying data for policy with id: f176b32f-e2bb-4e80-b7cf-33d69117d3c5, fqn: ['default-domain', 'ctest-TestBasicPolicy-50530090', 'ctest-policy-allow-all-76005701']
2026-04-23 02:25:36,846 - INFO - VN ctest-vn-59579005 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-23 02:25:36,846 - DEBUG - Verifying the vn in opserver
2026-04-23 02:25:36,846 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50530090:ctest-vn-59579005 virtual network link through opserver 10.0.0.50
2026-04-23 02:25:36,846 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-23 02:25:37,153 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-23 02:25:37,214 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50530090:ctest-vn-59579005', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50530090:ctest-vn-59579005?flat'}
2026-04-23 02:25:37,214 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50530090:ctest-vn-59579005 is found in opserver
2026-04-23 02:25:37,223 - DEBUG - Do not have enough data to verify VN in agent
2026-04-23 02:25:37,227 - DEBUG - VRF ids for VN ctest-vn-59579005: {}
2026-04-23 02:25:37,227 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-23 02:25:37,231 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8c1e14a9-fffe-4d1c-80d6-8d1fc14152e5
2026-04-23 02:25:37,240 - DEBUG - Requesting: http://10.0.0.50:8082/project/0ad6a598-08e9-4d51-ba3e-542af57b032f
2026-04-23 02:25:37,311 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/310c4f2b-6678-4560-86e0-a0da7270084f
2026-04-23 02:25:37,321 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/310c4f2b-6678-4560-86e0-a0da7270084f
2026-04-23 02:25:37,329 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e5aad366-d8ad-456e-8b7d-d8743ca46c51
2026-04-23 02:25:37,335 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e5aad366-d8ad-456e-8b7d-d8743ca46c51
2026-04-23 02:25:37,341 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/36927935-98d4-4701-93d3-c0981f0534b7
2026-04-23 02:25:37,348 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-23 02:25:37,348 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/310c4f2b-6678-4560-86e0-a0da7270084f
2026-04-23 02:25:37,359 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e5aad366-d8ad-456e-8b7d-d8743ca46c51
2026-04-23 02:25:37,373 - INFO - Verified VN network id 11 for VN 310c4f2b-6678-4560-86e0-a0da7270084f
2026-04-23 02:25:37,373 - INFO - Verifications in API Server for VN ctest-vn-72628244 passed
2026-04-23 02:25:37,374 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/310c4f2b-6678-4560-86e0-a0da7270084f
2026-04-23 02:25:37,382 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e5aad366-d8ad-456e-8b7d-d8743ca46c51
2026-04-23 02:25:37,388 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e5aad366-d8ad-456e-8b7d-d8743ca46c51
2026-04-23 02:25:37,395 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/36927935-98d4-4701-93d3-c0981f0534b7
2026-04-23 02:25:37,406 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50530090:ctest-vn-72628244', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50530090', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3534286855400342880', 'uuid-lslong': '9718944855948789839'}, 'enable': 'true', 'created': '2026-04-23T02:25:35', 'last-modified': '2026-04-23T02:25:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.420248'}
2026-04-23 02:25:37,411 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-23 02:25:37,413 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72628244 passed
2026-04-23 02:25:37,413 - DEBUG - ====Verifying policy data for ctest-vn-72628244 in API_Server ======
2026-04-23 02:25:37,413 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-23 02:25:37,418 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8c1e14a9-fffe-4d1c-80d6-8d1fc14152e5
2026-04-23 02:25:37,428 - DEBUG - Requesting: http://10.0.0.50:8082/project/0ad6a598-08e9-4d51-ba3e-542af57b032f
2026-04-23 02:25:37,496 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/310c4f2b-6678-4560-86e0-a0da7270084f
2026-04-23 02:25:37,505 - DEBUG - ==>Verifying data for policy with id: f176b32f-e2bb-4e80-b7cf-33d69117d3c5, fqn: ['default-domain', 'ctest-TestBasicPolicy-50530090', 'ctest-policy-allow-all-76005701']
2026-04-23 02:25:37,505 - INFO - VN ctest-vn-72628244 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-23 02:25:37,505 - DEBUG - Verifying the vn in opserver
2026-04-23 02:25:37,505 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50530090:ctest-vn-72628244 virtual network link through opserver 10.0.0.50
2026-04-23 02:25:37,505 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-23 02:25:37,515 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50530090:ctest-vn-72628244', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50530090:ctest-vn-72628244?flat'}
2026-04-23 02:25:37,515 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50530090:ctest-vn-72628244 is found in opserver
2026-04-23 02:25:37,525 - DEBUG - Do not have enough data to verify VN in agent
2026-04-23 02:25:37,530 - DEBUG - VRF ids for VN ctest-vn-72628244: {}
2026-04-23 02:25:37,598 - DEBUG - Services list from nova: [