2025-11-12 21:47:38,014 - INFO - Domain Default found not creating
2025-11-12 21:47:38,169 - INFO - Project ctest-TestBasicPolicy-68937851 not found, creating it
2025-11-12 21:47:38,613 - INFO - Created Project:ctest-TestBasicPolicy-68937851, ID : 204a814c-08c8-40ce-8e53-2d492c00d0e4
2025-11-12 21:47:40,084 - INFO - ================================================================================
2025-11-12 21:47:40,084 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-12 21:47:40,084 - 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-12 21:47:40,339 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-11-12 21:47:40,339 - INFO - Initial checks done. Running the testcase now
2025-11-12 21:47:40,339 - INFO -
2025-11-12 21:47:40,921 - DEBUG - Response for create_network : {'network': {'id': '9b616963-809f-47eb-9efc-f10e687bcd28', 'name': 'ctest-vn-44868680', 'tenant_id': '204a814c08c840ce8e532d492c00d0e4', 'project_id': '204a814c08c840ce8e532d492c00d0e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68937851', 'ctest-vn-44868680'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 21:47:41,070 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca389f5f-f2ca-4892-88ea-8291830b5b30', 'name': '', 'tenant_id': '204a814c08c840ce8e532d492c00d0e4', 'network_id': '9b616963-809f-47eb-9efc-f10e687bcd28', 'ip_version': 4, 'cidr': '209.222.234.128/26', 'allocation_pools': [{'start': '209.222.234.130', 'end': '209.222.234.190'}], 'gateway_ip': '209.222.234.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.222.234.130', 'tags': [], 'project_id': '204a814c08c840ce8e532d492c00d0e4'}}
2025-11-12 21:47:41,083 - INFO - Created VN ctest-vn-44868680
2025-11-12 21:47:41,136 - DEBUG - VN ctest-vn-44868680 UUID is 9b616963-809f-47eb-9efc-f10e687bcd28
2025-11-12 21:47:41,421 - DEBUG - Response for create_network : {'network': {'id': 'e5ec5310-94fe-486e-8d05-2073b18e9b59', 'name': 'ctest-vn-97052439', 'tenant_id': '204a814c08c840ce8e532d492c00d0e4', 'project_id': '204a814c08c840ce8e532d492c00d0e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68937851', 'ctest-vn-97052439'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 21:47:41,578 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b9b3954-6441-4ae4-bf0d-b2230a4216a0', 'name': '', 'tenant_id': '204a814c08c840ce8e532d492c00d0e4', 'network_id': 'e5ec5310-94fe-486e-8d05-2073b18e9b59', 'ip_version': 4, 'cidr': '62.147.122.192/26', 'allocation_pools': [{'start': '62.147.122.194', 'end': '62.147.122.254'}], 'gateway_ip': '62.147.122.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.147.122.194', 'tags': [], 'project_id': '204a814c08c840ce8e532d492c00d0e4'}}
2025-11-12 21:47:41,594 - INFO - Created VN ctest-vn-97052439
2025-11-12 21:47:41,643 - DEBUG - VN ctest-vn-97052439 UUID is e5ec5310-94fe-486e-8d05-2073b18e9b59
2025-11-12 21:47:41,775 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68937851:ctest-vn-44868680, 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-68937851:ctest-vn-97052439, 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-12 21:47:42,049 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b616963-809f-47eb-9efc-f10e687bcd28', 'name': 'ctest-vn-44868680', 'tenant_id': '204a814c08c840ce8e532d492c00d0e4', 'project_id': '204a814c08c840ce8e532d492c00d0e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ca389f5f-f2ca-4892-88ea-8291830b5b30'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68937851', 'ctest-vn-44868680'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68937851', 'ctest-policy-allow-all-81595614']], 'subnet_ipam': [{'subnet_cidr': '209.222.234.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 21:47:42,259 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e5ec5310-94fe-486e-8d05-2073b18e9b59', 'name': 'ctest-vn-97052439', 'tenant_id': '204a814c08c840ce8e532d492c00d0e4', 'project_id': '204a814c08c840ce8e532d492c00d0e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b9b3954-6441-4ae4-bf0d-b2230a4216a0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68937851', 'ctest-vn-97052439'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68937851', 'ctest-policy-allow-all-81595614']], 'subnet_ipam': [{'subnet_cidr': '62.147.122.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 21:47:42,416 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-12 21:47:42,732 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-12 21:47:42,764 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ba890416-c665-4480-a0d7-b8aa84cda5fe
2025-11-12 21:47:42,775 - DEBUG - Requesting: http://10.0.0.50:8082/project/204a814c-08c8-40ce-8e53-2d492c00d0e4
2025-11-12 21:47:42,846 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b616963-809f-47eb-9efc-f10e687bcd28
2025-11-12 21:47:42,855 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b616963-809f-47eb-9efc-f10e687bcd28
2025-11-12 21:47:42,863 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f43a64ed-9f46-431f-8b06-27b10f2975d0
2025-11-12 21:47:42,868 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f43a64ed-9f46-431f-8b06-27b10f2975d0
2025-11-12 21:47:42,873 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8e64889a-cf8b-47be-9a6d-659cc98d2b74
2025-11-12 21:47:42,878 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 21:47:42,878 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b616963-809f-47eb-9efc-f10e687bcd28
2025-11-12 21:47:42,885 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f43a64ed-9f46-431f-8b06-27b10f2975d0
2025-11-12 21:47:42,895 - INFO - Verified VN network id 11 for VN 9b616963-809f-47eb-9efc-f10e687bcd28
2025-11-12 21:47:42,895 - INFO - Verifications in API Server for VN ctest-vn-44868680 passed
2025-11-12 21:47:42,895 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b616963-809f-47eb-9efc-f10e687bcd28
2025-11-12 21:47:42,903 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f43a64ed-9f46-431f-8b06-27b10f2975d0
2025-11-12 21:47:42,907 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f43a64ed-9f46-431f-8b06-27b10f2975d0
2025-11-12 21:47:42,912 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8e64889a-cf8b-47be-9a6d-659cc98d2b74
2025-11-12 21:47:42,921 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68937851:ctest-vn-44868680', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68937851', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11196346024700364779', 'uuid-lslong': '11456296596308479272'}, 'enable': 'true', 'created': '2025-11-12T21:47:40', 'last-modified': '2025-11-12T21:47:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.888733'}
2025-11-12 21:47:42,926 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 21:47:42,926 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44868680 passed
2025-11-12 21:47:42,926 - DEBUG - ====Verifying policy data for ctest-vn-44868680 in API_Server ======
2025-11-12 21:47:42,926 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-12 21:47:42,930 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ba890416-c665-4480-a0d7-b8aa84cda5fe
2025-11-12 21:47:42,938 - DEBUG - Requesting: http://10.0.0.50:8082/project/204a814c-08c8-40ce-8e53-2d492c00d0e4
2025-11-12 21:47:43,001 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b616963-809f-47eb-9efc-f10e687bcd28
2025-11-12 21:47:43,008 - DEBUG - ==>Verifying data for policy with id: 0d32e823-38dd-48c8-b5c9-353c18d06f73, fqn: ['default-domain', 'ctest-TestBasicPolicy-68937851', 'ctest-policy-allow-all-81595614']
2025-11-12 21:47:43,009 - INFO - VN ctest-vn-44868680 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 21:47:43,009 - DEBUG - Verifying the vn in opserver
2025-11-12 21:47:43,009 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68937851:ctest-vn-44868680 virtual network link through opserver 10.0.0.50
2025-11-12 21:47:43,009 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-12 21:47:43,326 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-12 21:47:43,374 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68937851:ctest-vn-44868680', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68937851:ctest-vn-44868680?flat'}
2025-11-12 21:47:43,374 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68937851:ctest-vn-44868680 is found in opserver
2025-11-12 21:47:43,383 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 21:47:43,386 - DEBUG - VRF ids for VN ctest-vn-44868680: {}
2025-11-12 21:47:43,386 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-12 21:47:43,391 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ba890416-c665-4480-a0d7-b8aa84cda5fe
2025-11-12 21:47:43,399 - DEBUG - Requesting: http://10.0.0.50:8082/project/204a814c-08c8-40ce-8e53-2d492c00d0e4
2025-11-12 21:47:43,465 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e5ec5310-94fe-486e-8d05-2073b18e9b59
2025-11-12 21:47:43,474 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e5ec5310-94fe-486e-8d05-2073b18e9b59
2025-11-12 21:47:43,482 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/513a4009-e4c0-4c42-b2b5-daef05f83870
2025-11-12 21:47:43,487 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/513a4009-e4c0-4c42-b2b5-daef05f83870
2025-11-12 21:47:43,492 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9c8ed63a-4269-4eca-ab10-44280cdc2763
2025-11-12 21:47:43,497 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 21:47:43,497 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e5ec5310-94fe-486e-8d05-2073b18e9b59
2025-11-12 21:47:43,503 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/513a4009-e4c0-4c42-b2b5-daef05f83870
2025-11-12 21:47:43,513 - INFO - Verified VN network id 12 for VN e5ec5310-94fe-486e-8d05-2073b18e9b59
2025-11-12 21:47:43,514 - INFO - Verifications in API Server for VN ctest-vn-97052439 passed
2025-11-12 21:47:43,514 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e5ec5310-94fe-486e-8d05-2073b18e9b59
2025-11-12 21:47:43,520 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/513a4009-e4c0-4c42-b2b5-daef05f83870
2025-11-12 21:47:43,525 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/513a4009-e4c0-4c42-b2b5-daef05f83870
2025-11-12 21:47:43,530 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9c8ed63a-4269-4eca-ab10-44280cdc2763
2025-11-12 21:47:43,538 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68937851:ctest-vn-97052439', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68937851', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16567708459873486958', 'uuid-lslong': '10161563815503633241'}, 'enable': 'true', 'created': '2025-11-12T21:47:41', 'last-modified': '2025-11-12T21:47:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.294783'}
2025-11-12 21:47:43,544 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 21:47:43,544 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97052439 passed
2025-11-12 21:47:43,544 - DEBUG - ====Verifying policy data for ctest-vn-97052439 in API_Server ======
2025-11-12 21:47:43,544 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-12 21:47:43,549 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ba890416-c665-4480-a0d7-b8aa84cda5fe
2025-11-12 21:47:43,558 - DEBUG - Requesting: http://10.0.0.50:8082/project/204a814c-08c8-40ce-8e53-2d492c00d0e4
2025-11-12 21:47:43,630 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e5ec5310-94fe-486e-8d05-2073b18e9b59
2025-11-12 21:47:43,639 - DEBUG - ==>Verifying data for policy with id: 0d32e823-38dd-48c8-b5c9-353c18d06f73, fqn: ['default-domain', 'ctest-TestBasicPolicy-68937851', 'ctest-policy-allow-all-81595614']
2025-11-12 21:47:43,639 - INFO - VN ctest-vn-97052439 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 21:47:43,639 - DEBUG - Verifying the vn in opserver
2025-11-12 21:47:43,639 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68937851:ctest-vn-97052439 virtual network link through opserver 10.0.0.50
2025-11-12 21:47:43,639 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-12 21:47:43,647 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68937851:ctest-vn-97052439', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68937851:ctest-vn-97052439?flat'}
2025-11-12 21:47:43,648 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68937851:ctest-vn-97052439 is found in opserver
2025-11-12 21:47:43,656 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 21:47:43,660 - DEBUG - VRF ids for VN ctest-vn-97052439: {}
2025-11-12 21:47:43,715 - DEBUG - Services list from nova: [