2025-12-19 16:21:19,134 - INFO - Domain Default found not creating
2025-12-19 16:21:19,462 - INFO - Project ctest-TestBasicPolicy-87580539 not found, creating it
2025-12-19 16:21:20,004 - INFO - Created Project:ctest-TestBasicPolicy-87580539, ID : 8117f0a4-20b8-4be6-9280-f016f22bccf7
2025-12-19 16:21:21,961 - INFO - ================================================================================
2025-12-19 16:21:21,962 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-19 16:21:21,962 - 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-12-19 16:21:22,266 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-12-19 16:21:22,266 - INFO - Initial checks done. Running the testcase now
2025-12-19 16:21:22,266 - INFO -
2025-12-19 16:21:22,906 - DEBUG - Response for create_network : {'network': {'id': '57f16d93-d810-41a3-83de-0a68bf51b0b4', 'name': 'ctest-vn-77283175', 'tenant_id': '8117f0a420b84be69280f016f22bccf7', 'project_id': '8117f0a420b84be69280f016f22bccf7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87580539', 'ctest-vn-77283175'], 'port_security_enabled': True, 'description': ''}}
2025-12-19 16:21:23,132 - DEBUG - Response for create_subnet : {'subnet': {'id': '16e7199e-0a30-4aea-bfc0-1cf884faf88b', 'name': '', 'tenant_id': '8117f0a420b84be69280f016f22bccf7', 'network_id': '57f16d93-d810-41a3-83de-0a68bf51b0b4', 'ip_version': 4, 'cidr': '61.126.141.0/26', 'allocation_pools': [{'start': '61.126.141.2', 'end': '61.126.141.62'}], 'gateway_ip': '61.126.141.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.126.141.2', 'tags': [], 'project_id': '8117f0a420b84be69280f016f22bccf7'}}
2025-12-19 16:21:23,151 - INFO - Created VN ctest-vn-77283175
2025-12-19 16:21:23,204 - DEBUG - VN ctest-vn-77283175 UUID is 57f16d93-d810-41a3-83de-0a68bf51b0b4
2025-12-19 16:21:23,572 - DEBUG - Response for create_network : {'network': {'id': '37674f07-5899-4b98-9965-5e249535412d', 'name': 'ctest-vn-85236325', 'tenant_id': '8117f0a420b84be69280f016f22bccf7', 'project_id': '8117f0a420b84be69280f016f22bccf7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87580539', 'ctest-vn-85236325'], 'port_security_enabled': True, 'description': ''}}
2025-12-19 16:21:23,741 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e56102ba-ec89-47da-9263-326358b9e40b', 'name': '', 'tenant_id': '8117f0a420b84be69280f016f22bccf7', 'network_id': '37674f07-5899-4b98-9965-5e249535412d', 'ip_version': 4, 'cidr': '12.135.28.0/26', 'allocation_pools': [{'start': '12.135.28.2', 'end': '12.135.28.62'}], 'gateway_ip': '12.135.28.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.135.28.2', 'tags': [], 'project_id': '8117f0a420b84be69280f016f22bccf7'}}
2025-12-19 16:21:23,762 - INFO - Created VN ctest-vn-85236325
2025-12-19 16:21:23,819 - DEBUG - VN ctest-vn-85236325 UUID is 37674f07-5899-4b98-9965-5e249535412d
2025-12-19 16:21:23,948 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87580539:ctest-vn-77283175, 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-87580539:ctest-vn-85236325, 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-12-19 16:21:24,268 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '57f16d93-d810-41a3-83de-0a68bf51b0b4', 'name': 'ctest-vn-77283175', 'tenant_id': '8117f0a420b84be69280f016f22bccf7', 'project_id': '8117f0a420b84be69280f016f22bccf7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['16e7199e-0a30-4aea-bfc0-1cf884faf88b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87580539', 'ctest-vn-77283175'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87580539', 'ctest-policy-allow-all-04917166']], 'subnet_ipam': [{'subnet_cidr': '61.126.141.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-19 16:21:24,527 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37674f07-5899-4b98-9965-5e249535412d', 'name': 'ctest-vn-85236325', 'tenant_id': '8117f0a420b84be69280f016f22bccf7', 'project_id': '8117f0a420b84be69280f016f22bccf7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e56102ba-ec89-47da-9263-326358b9e40b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87580539', 'ctest-vn-85236325'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87580539', 'ctest-policy-allow-all-04917166']], 'subnet_ipam': [{'subnet_cidr': '12.135.28.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-19 16:21:24,703 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-19 16:21:25,020 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-19 16:21:25,056 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e51db401-bbc5-49a2-84d3-da17407b2094
2025-12-19 16:21:25,073 - DEBUG - Requesting: http://10.0.0.33:8082/project/8117f0a4-20b8-4be6-9280-f016f22bccf7
2025-12-19 16:21:25,157 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/57f16d93-d810-41a3-83de-0a68bf51b0b4
2025-12-19 16:21:25,173 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/57f16d93-d810-41a3-83de-0a68bf51b0b4
2025-12-19 16:21:25,185 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7984873b-9179-4394-b79b-6b95b95237e0
2025-12-19 16:21:25,194 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7984873b-9179-4394-b79b-6b95b95237e0
2025-12-19 16:21:25,202 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b810fb76-bb57-4417-aee8-8f360a74287f
2025-12-19 16:21:25,211 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-19 16:21:25,211 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/57f16d93-d810-41a3-83de-0a68bf51b0b4
2025-12-19 16:21:25,221 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7984873b-9179-4394-b79b-6b95b95237e0
2025-12-19 16:21:25,238 - INFO - Verified VN network id 11 for VN 57f16d93-d810-41a3-83de-0a68bf51b0b4
2025-12-19 16:21:25,238 - INFO - Verifications in API Server for VN ctest-vn-77283175 passed
2025-12-19 16:21:25,238 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/57f16d93-d810-41a3-83de-0a68bf51b0b4
2025-12-19 16:21:25,249 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7984873b-9179-4394-b79b-6b95b95237e0
2025-12-19 16:21:25,256 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7984873b-9179-4394-b79b-6b95b95237e0
2025-12-19 16:21:25,265 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b810fb76-bb57-4417-aee8-8f360a74287f
2025-12-19 16:21:25,279 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87580539:ctest-vn-77283175', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87580539', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6336966632439562659', 'uuid-lslong': '9502043708801003700'}, 'enable': 'true', 'created': '2025-12-19T16:21:22', 'last-modified': '2025-12-19T16:21:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.038841'}
2025-12-19 16:21:25,285 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-19 16:21:25,286 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77283175 passed
2025-12-19 16:21:25,286 - DEBUG - ====Verifying policy data for ctest-vn-77283175 in API_Server ======
2025-12-19 16:21:25,286 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-19 16:21:25,291 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e51db401-bbc5-49a2-84d3-da17407b2094
2025-12-19 16:21:25,304 - DEBUG - Requesting: http://10.0.0.33:8082/project/8117f0a4-20b8-4be6-9280-f016f22bccf7
2025-12-19 16:21:25,375 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/57f16d93-d810-41a3-83de-0a68bf51b0b4
2025-12-19 16:21:25,385 - DEBUG - ==>Verifying data for policy with id: c900d079-5946-42cb-b845-fc9e7d45841f, fqn: ['default-domain', 'ctest-TestBasicPolicy-87580539', 'ctest-policy-allow-all-04917166']
2025-12-19 16:21:25,385 - INFO - VN ctest-vn-77283175 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-19 16:21:25,385 - DEBUG - Verifying the vn in opserver
2025-12-19 16:21:25,386 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87580539:ctest-vn-77283175 virtual network link through opserver 10.0.0.33
2025-12-19 16:21:25,386 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-12-19 16:21:25,682 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-12-19 16:21:25,766 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87580539:ctest-vn-77283175', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87580539:ctest-vn-77283175?flat'}
2025-12-19 16:21:25,766 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87580539:ctest-vn-77283175 is found in opserver
2025-12-19 16:21:25,782 - DEBUG - Do not have enough data to verify VN in agent
2025-12-19 16:21:25,791 - DEBUG - VRF ids for VN ctest-vn-77283175: {}
2025-12-19 16:21:25,791 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-19 16:21:25,804 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e51db401-bbc5-49a2-84d3-da17407b2094
2025-12-19 16:21:25,825 - DEBUG - Requesting: http://10.0.0.33:8082/project/8117f0a4-20b8-4be6-9280-f016f22bccf7
2025-12-19 16:21:25,926 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/37674f07-5899-4b98-9965-5e249535412d
2025-12-19 16:21:25,942 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/37674f07-5899-4b98-9965-5e249535412d
2025-12-19 16:21:25,958 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8a1ed40e-57fd-42a6-8833-e985d9cd5ae8
2025-12-19 16:21:25,968 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8a1ed40e-57fd-42a6-8833-e985d9cd5ae8
2025-12-19 16:21:25,978 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/1a8a12f7-0ddf-4e00-b4b9-fd532a7ba8ee
2025-12-19 16:21:25,991 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-19 16:21:25,991 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/37674f07-5899-4b98-9965-5e249535412d
2025-12-19 16:21:26,002 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8a1ed40e-57fd-42a6-8833-e985d9cd5ae8
2025-12-19 16:21:26,022 - INFO - Verified VN network id 12 for VN 37674f07-5899-4b98-9965-5e249535412d
2025-12-19 16:21:26,022 - INFO - Verifications in API Server for VN ctest-vn-85236325 passed
2025-12-19 16:21:26,022 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/37674f07-5899-4b98-9965-5e249535412d
2025-12-19 16:21:26,034 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8a1ed40e-57fd-42a6-8833-e985d9cd5ae8
2025-12-19 16:21:26,041 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8a1ed40e-57fd-42a6-8833-e985d9cd5ae8
2025-12-19 16:21:26,049 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/1a8a12f7-0ddf-4e00-b4b9-fd532a7ba8ee
2025-12-19 16:21:26,064 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87580539:ctest-vn-85236325', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87580539', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3992246487657040792', 'uuid-lslong': '11053344371665879341'}, 'enable': 'true', 'created': '2025-12-19T16:21:23', 'last-modified': '2025-12-19T16:21:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.550482'}
2025-12-19 16:21:26,072 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-19 16:21:26,073 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85236325 passed
2025-12-19 16:21:26,073 - DEBUG - ====Verifying policy data for ctest-vn-85236325 in API_Server ======
2025-12-19 16:21:26,073 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-19 16:21:26,084 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e51db401-bbc5-49a2-84d3-da17407b2094
2025-12-19 16:21:26,098 - DEBUG - Requesting: http://10.0.0.33:8082/project/8117f0a4-20b8-4be6-9280-f016f22bccf7
2025-12-19 16:21:26,181 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/37674f07-5899-4b98-9965-5e249535412d
2025-12-19 16:21:26,197 - DEBUG - ==>Verifying data for policy with id: c900d079-5946-42cb-b845-fc9e7d45841f, fqn: ['default-domain', 'ctest-TestBasicPolicy-87580539', 'ctest-policy-allow-all-04917166']
2025-12-19 16:21:26,197 - INFO - VN ctest-vn-85236325 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-19 16:21:26,197 - DEBUG - Verifying the vn in opserver
2025-12-19 16:21:26,197 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87580539:ctest-vn-85236325 virtual network link through opserver 10.0.0.33
2025-12-19 16:21:26,197 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-12-19 16:21:26,215 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87580539:ctest-vn-85236325', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87580539:ctest-vn-85236325?flat'}
2025-12-19 16:21:26,215 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87580539:ctest-vn-85236325 is found in opserver
2025-12-19 16:21:26,229 - DEBUG - Do not have enough data to verify VN in agent
2025-12-19 16:21:26,236 - DEBUG - VRF ids for VN ctest-vn-85236325: {}
2025-12-19 16:21:26,307 - DEBUG - Services list from nova: [