2025-06-19 12:17:19,428 - INFO - Domain Default found not creating
2025-06-19 12:17:19,574 - INFO - Project ctest-TestBasicPolicy-80565155 not found, creating it
2025-06-19 12:17:20,045 - INFO - Created Project:ctest-TestBasicPolicy-80565155, ID : e02ecc54-aee2-4337-b190-95ca1754dcb8
2025-06-19 12:17:21,580 - INFO - ================================================================================
2025-06-19 12:17:21,580 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-19 12:17:21,580 - 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-06-19 12:17:21,836 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with
2025-06-19 12:17:21,836 - INFO - Initial checks done. Running the testcase now
2025-06-19 12:17:21,836 - INFO -
2025-06-19 12:17:22,435 - DEBUG - Response for create_network : {'network': {'id': '1169c9ba-0ca6-4001-8ad1-cc320b1c779b', 'name': 'ctest-vn-91891682', 'tenant_id': 'e02ecc54aee24337b19095ca1754dcb8', 'project_id': 'e02ecc54aee24337b19095ca1754dcb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80565155', 'ctest-vn-91891682'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 12:17:22,636 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b0aab61-ad55-458f-88b3-20ae701fa0b6', 'name': '', 'tenant_id': 'e02ecc54aee24337b19095ca1754dcb8', 'network_id': '1169c9ba-0ca6-4001-8ad1-cc320b1c779b', 'ip_version': 4, 'cidr': '124.172.178.192/26', 'allocation_pools': [{'start': '124.172.178.194', 'end': '124.172.178.254'}], 'gateway_ip': '124.172.178.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.172.178.194', 'tags': [], 'project_id': 'e02ecc54aee24337b19095ca1754dcb8'}}
2025-06-19 12:17:22,653 - INFO - Created VN ctest-vn-91891682
2025-06-19 12:17:22,706 - DEBUG - VN ctest-vn-91891682 UUID is 1169c9ba-0ca6-4001-8ad1-cc320b1c779b
2025-06-19 12:17:23,052 - DEBUG - Response for create_network : {'network': {'id': '5cfd301d-d134-4628-a5ed-3b8693b9d74e', 'name': 'ctest-vn-68458801', 'tenant_id': 'e02ecc54aee24337b19095ca1754dcb8', 'project_id': 'e02ecc54aee24337b19095ca1754dcb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80565155', 'ctest-vn-68458801'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 12:17:23,277 - DEBUG - Response for create_subnet : {'subnet': {'id': '1323fe77-a52e-4cfd-90ea-4055a06eaff9', 'name': '', 'tenant_id': 'e02ecc54aee24337b19095ca1754dcb8', 'network_id': '5cfd301d-d134-4628-a5ed-3b8693b9d74e', 'ip_version': 4, 'cidr': '183.188.20.128/26', 'allocation_pools': [{'start': '183.188.20.130', 'end': '183.188.20.190'}], 'gateway_ip': '183.188.20.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.188.20.130', 'tags': [], 'project_id': 'e02ecc54aee24337b19095ca1754dcb8'}}
2025-06-19 12:17:23,294 - INFO - Created VN ctest-vn-68458801
2025-06-19 12:17:23,346 - DEBUG - VN ctest-vn-68458801 UUID is 5cfd301d-d134-4628-a5ed-3b8693b9d74e
2025-06-19 12:17:23,502 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-91891682, 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-80565155:ctest-vn-68458801, 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-06-19 12:17:23,802 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1169c9ba-0ca6-4001-8ad1-cc320b1c779b', 'name': 'ctest-vn-91891682', 'tenant_id': 'e02ecc54aee24337b19095ca1754dcb8', 'project_id': 'e02ecc54aee24337b19095ca1754dcb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b0aab61-ad55-458f-88b3-20ae701fa0b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80565155', 'ctest-vn-91891682'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80565155', 'ctest-policy-allow-all-99609357']], 'subnet_ipam': [{'subnet_cidr': '124.172.178.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 12:17:24,030 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5cfd301d-d134-4628-a5ed-3b8693b9d74e', 'name': 'ctest-vn-68458801', 'tenant_id': 'e02ecc54aee24337b19095ca1754dcb8', 'project_id': 'e02ecc54aee24337b19095ca1754dcb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1323fe77-a52e-4cfd-90ea-4055a06eaff9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80565155', 'ctest-vn-68458801'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80565155', 'ctest-policy-allow-all-99609357']], 'subnet_ipam': [{'subnet_cidr': '183.188.20.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 12:17:24,178 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-06-19 12:17:24,529 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-06-19 12:17:24,557 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e9b245df-1ece-4277-9950-78fd9d50fe05
2025-06-19 12:17:24,572 - DEBUG - Requesting: http://10.0.0.130:8082/project/e02ecc54-aee2-4337-b190-95ca1754dcb8
2025-06-19 12:17:24,647 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/1169c9ba-0ca6-4001-8ad1-cc320b1c779b
2025-06-19 12:17:24,659 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/1169c9ba-0ca6-4001-8ad1-cc320b1c779b
2025-06-19 12:17:24,668 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8b18e6a9-b91a-4d91-a5ac-cc14ecb2ba12
2025-06-19 12:17:24,675 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8b18e6a9-b91a-4d91-a5ac-cc14ecb2ba12
2025-06-19 12:17:24,682 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/b35ca3dd-9970-4ae2-b510-cbb279bd64e1
2025-06-19 12:17:24,689 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 12:17:24,689 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/1169c9ba-0ca6-4001-8ad1-cc320b1c779b
2025-06-19 12:17:24,698 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8b18e6a9-b91a-4d91-a5ac-cc14ecb2ba12
2025-06-19 12:17:24,712 - INFO - Verified VN network id 8 for VN 1169c9ba-0ca6-4001-8ad1-cc320b1c779b
2025-06-19 12:17:24,712 - INFO - Verifications in API Server for VN ctest-vn-91891682 passed
2025-06-19 12:17:24,712 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/1169c9ba-0ca6-4001-8ad1-cc320b1c779b
2025-06-19 12:17:24,722 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8b18e6a9-b91a-4d91-a5ac-cc14ecb2ba12
2025-06-19 12:17:24,729 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8b18e6a9-b91a-4d91-a5ac-cc14ecb2ba12
2025-06-19 12:17:24,736 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/b35ca3dd-9970-4ae2-b510-cbb279bd64e1
2025-06-19 12:17:24,748 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-91891682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80565155', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1254755772112715777', 'uuid-lslong': '10003000762673428379'}, 'enable': 'true', 'created': '2025-06-19T12:17:22', 'last-modified': '2025-06-19T12:17:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.974936'}
2025-06-19 12:17:24,755 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 12:17:24,755 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91891682 passed
2025-06-19 12:17:24,755 - DEBUG - ====Verifying policy data for ctest-vn-91891682 in API_Server ======
2025-06-19 12:17:24,755 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-06-19 12:17:24,761 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e9b245df-1ece-4277-9950-78fd9d50fe05
2025-06-19 12:17:24,772 - DEBUG - Requesting: http://10.0.0.130:8082/project/e02ecc54-aee2-4337-b190-95ca1754dcb8
2025-06-19 12:17:24,842 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/1169c9ba-0ca6-4001-8ad1-cc320b1c779b
2025-06-19 12:17:24,854 - DEBUG - ==>Verifying data for policy with id: 65aa57e7-59cd-4a67-bda7-01be5d65a228, fqn: ['default-domain', 'ctest-TestBasicPolicy-80565155', 'ctest-policy-allow-all-99609357']
2025-06-19 12:17:24,854 - INFO - VN ctest-vn-91891682 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 12:17:24,854 - DEBUG - Verifying the vn in opserver
2025-06-19 12:17:24,854 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-91891682 virtual network link through opserver 10.0.0.130
2025-06-19 12:17:24,854 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-06-19 12:17:25,188 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-06-19 12:17:25,244 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-91891682', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-91891682?flat'}
2025-06-19 12:17:25,244 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-91891682 is found in opserver
2025-06-19 12:17:25,256 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 12:17:25,262 - DEBUG - VRF ids for VN ctest-vn-91891682: {}
2025-06-19 12:17:25,262 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-06-19 12:17:25,268 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e9b245df-1ece-4277-9950-78fd9d50fe05
2025-06-19 12:17:25,281 - DEBUG - Requesting: http://10.0.0.130:8082/project/e02ecc54-aee2-4337-b190-95ca1754dcb8
2025-06-19 12:17:25,354 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5cfd301d-d134-4628-a5ed-3b8693b9d74e
2025-06-19 12:17:25,367 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5cfd301d-d134-4628-a5ed-3b8693b9d74e
2025-06-19 12:17:25,377 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e46878b5-69ec-439a-b870-4ffe45436a98
2025-06-19 12:17:25,385 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e46878b5-69ec-439a-b870-4ffe45436a98
2025-06-19 12:17:25,393 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/9ff3c334-49e5-42ce-9c6a-4828a6a81e03
2025-06-19 12:17:25,399 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 12:17:25,399 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5cfd301d-d134-4628-a5ed-3b8693b9d74e
2025-06-19 12:17:25,416 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e46878b5-69ec-439a-b870-4ffe45436a98
2025-06-19 12:17:25,430 - INFO - Verified VN network id 9 for VN 5cfd301d-d134-4628-a5ed-3b8693b9d74e
2025-06-19 12:17:25,430 - INFO - Verifications in API Server for VN ctest-vn-68458801 passed
2025-06-19 12:17:25,430 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5cfd301d-d134-4628-a5ed-3b8693b9d74e
2025-06-19 12:17:25,440 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e46878b5-69ec-439a-b870-4ffe45436a98
2025-06-19 12:17:25,447 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e46878b5-69ec-439a-b870-4ffe45436a98
2025-06-19 12:17:25,454 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/9ff3c334-49e5-42ce-9c6a-4828a6a81e03
2025-06-19 12:17:25,468 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-68458801', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80565155', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6700564725219214888', 'uuid-lslong': '11956278034928621390'}, 'enable': 'true', 'created': '2025-06-19T12:17:23', 'last-modified': '2025-06-19T12:17:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.462937'}
2025-06-19 12:17:25,474 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 12:17:25,474 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68458801 passed
2025-06-19 12:17:25,474 - DEBUG - ====Verifying policy data for ctest-vn-68458801 in API_Server ======
2025-06-19 12:17:25,474 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-06-19 12:17:25,480 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e9b245df-1ece-4277-9950-78fd9d50fe05
2025-06-19 12:17:25,493 - DEBUG - Requesting: http://10.0.0.130:8082/project/e02ecc54-aee2-4337-b190-95ca1754dcb8
2025-06-19 12:17:25,570 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5cfd301d-d134-4628-a5ed-3b8693b9d74e
2025-06-19 12:17:25,582 - DEBUG - ==>Verifying data for policy with id: 65aa57e7-59cd-4a67-bda7-01be5d65a228, fqn: ['default-domain', 'ctest-TestBasicPolicy-80565155', 'ctest-policy-allow-all-99609357']
2025-06-19 12:17:25,582 - INFO - VN ctest-vn-68458801 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 12:17:25,582 - DEBUG - Verifying the vn in opserver
2025-06-19 12:17:25,582 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-68458801 virtual network link through opserver 10.0.0.130
2025-06-19 12:17:25,583 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-06-19 12:17:25,594 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-68458801', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-68458801?flat'}
2025-06-19 12:17:25,594 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-68458801 is found in opserver
2025-06-19 12:17:25,605 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 12:17:25,610 - DEBUG - VRF ids for VN ctest-vn-68458801: {}
2025-06-19 12:17:25,665 - DEBUG - Services list from nova: [