2025-10-27 07:53:53,295 - INFO - Domain Default found not creating
2025-10-27 07:53:53,446 - INFO - Project ctest-TestBasicPolicy-51372866 not found, creating it
2025-10-27 07:53:53,910 - INFO - Created Project:ctest-TestBasicPolicy-51372866, ID : 95c514f4-b73f-4bbb-9ad1-1e741e4b98a5
2025-10-27 07:53:55,558 - INFO - ================================================================================
2025-10-27 07:53:55,558 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-27 07:53:55,558 - 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-10-27 07:53:55,815 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2025-10-27 07:53:55,815 - INFO - Initial checks done. Running the testcase now
2025-10-27 07:53:55,815 - INFO -
2025-10-27 07:53:56,397 - DEBUG - Response for create_network : {'network': {'id': 'f64711d6-ae47-4354-bf0a-8120b83170c6', 'name': 'ctest-vn-27167296', 'tenant_id': '95c514f4b73f4bbb9ad11e741e4b98a5', 'project_id': '95c514f4b73f4bbb9ad11e741e4b98a5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51372866', 'ctest-vn-27167296'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 07:53:56,559 - DEBUG - Response for create_subnet : {'subnet': {'id': '037dd661-3420-434e-89f9-4f8310de7026', 'name': '', 'tenant_id': '95c514f4b73f4bbb9ad11e741e4b98a5', 'network_id': 'f64711d6-ae47-4354-bf0a-8120b83170c6', 'ip_version': 4, 'cidr': '11.125.31.0/26', 'allocation_pools': [{'start': '11.125.31.2', 'end': '11.125.31.62'}], 'gateway_ip': '11.125.31.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.125.31.2', 'tags': [], 'project_id': '95c514f4b73f4bbb9ad11e741e4b98a5'}}
2025-10-27 07:53:56,579 - INFO - Created VN ctest-vn-27167296
2025-10-27 07:53:56,630 - DEBUG - VN ctest-vn-27167296 UUID is f64711d6-ae47-4354-bf0a-8120b83170c6
2025-10-27 07:53:56,953 - DEBUG - Response for create_network : {'network': {'id': '7fcd0091-589c-4352-a3ae-84c4452fc923', 'name': 'ctest-vn-54777500', 'tenant_id': '95c514f4b73f4bbb9ad11e741e4b98a5', 'project_id': '95c514f4b73f4bbb9ad11e741e4b98a5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51372866', 'ctest-vn-54777500'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 07:53:57,103 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd60783f-071a-4223-a3f2-26ac2c808671', 'name': '', 'tenant_id': '95c514f4b73f4bbb9ad11e741e4b98a5', 'network_id': '7fcd0091-589c-4352-a3ae-84c4452fc923', 'ip_version': 4, 'cidr': '123.94.253.64/26', 'allocation_pools': [{'start': '123.94.253.66', 'end': '123.94.253.126'}], 'gateway_ip': '123.94.253.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.94.253.66', 'tags': [], 'project_id': '95c514f4b73f4bbb9ad11e741e4b98a5'}}
2025-10-27 07:53:57,123 - INFO - Created VN ctest-vn-54777500
2025-10-27 07:53:57,174 - DEBUG - VN ctest-vn-54777500 UUID is 7fcd0091-589c-4352-a3ae-84c4452fc923
2025-10-27 07:53:57,295 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-51372866:ctest-vn-27167296, 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-51372866:ctest-vn-54777500, 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-10-27 07:53:57,593 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f64711d6-ae47-4354-bf0a-8120b83170c6', 'name': 'ctest-vn-27167296', 'tenant_id': '95c514f4b73f4bbb9ad11e741e4b98a5', 'project_id': '95c514f4b73f4bbb9ad11e741e4b98a5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['037dd661-3420-434e-89f9-4f8310de7026'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51372866', 'ctest-vn-27167296'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51372866', 'ctest-policy-allow-all-35474538']], 'subnet_ipam': [{'subnet_cidr': '11.125.31.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 07:53:57,831 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7fcd0091-589c-4352-a3ae-84c4452fc923', 'name': 'ctest-vn-54777500', 'tenant_id': '95c514f4b73f4bbb9ad11e741e4b98a5', 'project_id': '95c514f4b73f4bbb9ad11e741e4b98a5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fd60783f-071a-4223-a3f2-26ac2c808671'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51372866', 'ctest-vn-54777500'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51372866', 'ctest-policy-allow-all-35474538']], 'subnet_ipam': [{'subnet_cidr': '123.94.253.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 07:53:57,986 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-27 07:53:58,318 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-27 07:53:58,345 - DEBUG - Requesting: http://10.0.0.249:8082/domain/05a5bf6f-da3c-4d7f-b9ed-69828826623a
2025-10-27 07:53:58,357 - DEBUG - Requesting: http://10.0.0.249:8082/project/95c514f4-b73f-4bbb-9ad1-1e741e4b98a5
2025-10-27 07:53:58,433 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f64711d6-ae47-4354-bf0a-8120b83170c6
2025-10-27 07:53:58,445 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f64711d6-ae47-4354-bf0a-8120b83170c6
2025-10-27 07:53:58,454 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/74e788a0-eaeb-493d-9ffc-df69dade0f5e
2025-10-27 07:53:58,461 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/74e788a0-eaeb-493d-9ffc-df69dade0f5e
2025-10-27 07:53:58,468 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/af802399-4767-4434-8c9d-a62259670ff6
2025-10-27 07:53:58,474 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 07:53:58,474 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f64711d6-ae47-4354-bf0a-8120b83170c6
2025-10-27 07:53:58,483 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/74e788a0-eaeb-493d-9ffc-df69dade0f5e
2025-10-27 07:53:58,497 - INFO - Verified VN network id 11 for VN f64711d6-ae47-4354-bf0a-8120b83170c6
2025-10-27 07:53:58,497 - INFO - Verifications in API Server for VN ctest-vn-27167296 passed
2025-10-27 07:53:58,497 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f64711d6-ae47-4354-bf0a-8120b83170c6
2025-10-27 07:53:58,506 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/74e788a0-eaeb-493d-9ffc-df69dade0f5e
2025-10-27 07:53:58,512 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/74e788a0-eaeb-493d-9ffc-df69dade0f5e
2025-10-27 07:53:58,518 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/af802399-4767-4434-8c9d-a62259670ff6
2025-10-27 07:53:58,529 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51372866:ctest-vn-27167296', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51372866', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17746172470421308244', 'uuid-lslong': '13765957188540526790'}, 'enable': 'true', 'created': '2025-10-27T07:53:56', 'last-modified': '2025-10-27T07:53:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.960507'}
2025-10-27 07:53:58,535 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 07:53:58,535 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27167296 passed
2025-10-27 07:53:58,535 - DEBUG - ====Verifying policy data for ctest-vn-27167296 in API_Server ======
2025-10-27 07:53:58,535 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-27 07:53:58,540 - DEBUG - Requesting: http://10.0.0.249:8082/domain/05a5bf6f-da3c-4d7f-b9ed-69828826623a
2025-10-27 07:53:58,551 - DEBUG - Requesting: http://10.0.0.249:8082/project/95c514f4-b73f-4bbb-9ad1-1e741e4b98a5
2025-10-27 07:53:58,619 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f64711d6-ae47-4354-bf0a-8120b83170c6
2025-10-27 07:53:58,628 - DEBUG - ==>Verifying data for policy with id: 20bf775a-5ffa-443c-93f3-a9735436675a, fqn: ['default-domain', 'ctest-TestBasicPolicy-51372866', 'ctest-policy-allow-all-35474538']
2025-10-27 07:53:58,628 - INFO - VN ctest-vn-27167296 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 07:53:58,629 - DEBUG - Verifying the vn in opserver
2025-10-27 07:53:58,629 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51372866:ctest-vn-27167296 virtual network link through opserver 10.0.0.249
2025-10-27 07:53:58,629 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-27 07:53:58,960 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-27 07:53:59,020 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51372866:ctest-vn-27167296', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51372866:ctest-vn-27167296?flat'}
2025-10-27 07:53:59,020 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51372866:ctest-vn-27167296 is found in opserver
2025-10-27 07:53:59,030 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 07:53:59,035 - DEBUG - VRF ids for VN ctest-vn-27167296: {}
2025-10-27 07:53:59,035 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-27 07:53:59,040 - DEBUG - Requesting: http://10.0.0.249:8082/domain/05a5bf6f-da3c-4d7f-b9ed-69828826623a
2025-10-27 07:53:59,052 - DEBUG - Requesting: http://10.0.0.249:8082/project/95c514f4-b73f-4bbb-9ad1-1e741e4b98a5
2025-10-27 07:53:59,120 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/7fcd0091-589c-4352-a3ae-84c4452fc923
2025-10-27 07:53:59,132 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/7fcd0091-589c-4352-a3ae-84c4452fc923
2025-10-27 07:53:59,141 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f7fbcfb5-eaef-405a-b32a-fdf56a7ef94e
2025-10-27 07:53:59,148 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f7fbcfb5-eaef-405a-b32a-fdf56a7ef94e
2025-10-27 07:53:59,156 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/b2e2f5ae-5608-40cd-b1fc-d908e7fda81e
2025-10-27 07:53:59,164 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 07:53:59,164 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/7fcd0091-589c-4352-a3ae-84c4452fc923
2025-10-27 07:53:59,176 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f7fbcfb5-eaef-405a-b32a-fdf56a7ef94e
2025-10-27 07:53:59,193 - INFO - Verified VN network id 12 for VN 7fcd0091-589c-4352-a3ae-84c4452fc923
2025-10-27 07:53:59,193 - INFO - Verifications in API Server for VN ctest-vn-54777500 passed
2025-10-27 07:53:59,193 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/7fcd0091-589c-4352-a3ae-84c4452fc923
2025-10-27 07:53:59,202 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f7fbcfb5-eaef-405a-b32a-fdf56a7ef94e
2025-10-27 07:53:59,208 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f7fbcfb5-eaef-405a-b32a-fdf56a7ef94e
2025-10-27 07:53:59,215 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/b2e2f5ae-5608-40cd-b1fc-d908e7fda81e
2025-10-27 07:53:59,227 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51372866:ctest-vn-54777500', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51372866', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9209017437299426130', 'uuid-lslong': '11794510452639123747'}, 'enable': 'true', 'created': '2025-10-27T07:53:56', 'last-modified': '2025-10-27T07:53:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.429940'}
2025-10-27 07:53:59,233 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 07:53:59,233 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54777500 passed
2025-10-27 07:53:59,233 - DEBUG - ====Verifying policy data for ctest-vn-54777500 in API_Server ======
2025-10-27 07:53:59,233 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-27 07:53:59,240 - DEBUG - Requesting: http://10.0.0.249:8082/domain/05a5bf6f-da3c-4d7f-b9ed-69828826623a
2025-10-27 07:53:59,251 - DEBUG - Requesting: http://10.0.0.249:8082/project/95c514f4-b73f-4bbb-9ad1-1e741e4b98a5
2025-10-27 07:53:59,324 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/7fcd0091-589c-4352-a3ae-84c4452fc923
2025-10-27 07:53:59,335 - DEBUG - ==>Verifying data for policy with id: 20bf775a-5ffa-443c-93f3-a9735436675a, fqn: ['default-domain', 'ctest-TestBasicPolicy-51372866', 'ctest-policy-allow-all-35474538']
2025-10-27 07:53:59,335 - INFO - VN ctest-vn-54777500 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 07:53:59,335 - DEBUG - Verifying the vn in opserver
2025-10-27 07:53:59,335 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51372866:ctest-vn-54777500 virtual network link through opserver 10.0.0.249
2025-10-27 07:53:59,335 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-27 07:53:59,345 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51372866:ctest-vn-54777500', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51372866:ctest-vn-54777500?flat'}
2025-10-27 07:53:59,345 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51372866:ctest-vn-54777500 is found in opserver
2025-10-27 07:53:59,354 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 07:53:59,359 - DEBUG - VRF ids for VN ctest-vn-54777500: {}
2025-10-27 07:53:59,420 - DEBUG - Services list from nova: [