2025-11-05 19:31:52,039 - INFO - Domain Default found not creating
2025-11-05 19:31:52,197 - INFO - Project ctest-TestBasicPolicy-80481817 not found, creating it
2025-11-05 19:31:52,678 - INFO - Created Project:ctest-TestBasicPolicy-80481817, ID : 6b53d597-7e12-40f7-8093-a6d107321fbd
2025-11-05 19:31:54,169 - INFO - ================================================================================
2025-11-05 19:31:54,169 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 19:31:54,169 - 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-05 19:31:54,430 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with
2025-11-05 19:31:54,430 - INFO - Initial checks done. Running the testcase now
2025-11-05 19:31:54,430 - INFO -
2025-11-05 19:31:54,992 - DEBUG - Response for create_network : {'network': {'id': 'd9652d9a-3adb-40e8-bba2-03e1cb92a2a0', 'name': 'ctest-vn-41993527', 'tenant_id': '6b53d5977e1240f78093a6d107321fbd', 'project_id': '6b53d5977e1240f78093a6d107321fbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80481817', 'ctest-vn-41993527'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 19:31:55,155 - DEBUG - Response for create_subnet : {'subnet': {'id': '7af5d42e-f42e-41ed-a0fa-6c4af2bc9e53', 'name': '', 'tenant_id': '6b53d5977e1240f78093a6d107321fbd', 'network_id': 'd9652d9a-3adb-40e8-bba2-03e1cb92a2a0', 'ip_version': 4, 'cidr': '126.171.183.0/26', 'allocation_pools': [{'start': '126.171.183.2', 'end': '126.171.183.62'}], 'gateway_ip': '126.171.183.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.171.183.2', 'tags': [], 'project_id': '6b53d5977e1240f78093a6d107321fbd'}}
2025-11-05 19:31:55,175 - INFO - Created VN ctest-vn-41993527
2025-11-05 19:31:55,229 - DEBUG - VN ctest-vn-41993527 UUID is d9652d9a-3adb-40e8-bba2-03e1cb92a2a0
2025-11-05 19:31:55,516 - DEBUG - Response for create_network : {'network': {'id': '48b90b18-5a60-43e9-a83a-25547a3bec42', 'name': 'ctest-vn-97627421', 'tenant_id': '6b53d5977e1240f78093a6d107321fbd', 'project_id': '6b53d5977e1240f78093a6d107321fbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80481817', 'ctest-vn-97627421'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 19:31:55,691 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad07d456-330e-4faa-9511-1d5f0b2648d1', 'name': '', 'tenant_id': '6b53d5977e1240f78093a6d107321fbd', 'network_id': '48b90b18-5a60-43e9-a83a-25547a3bec42', 'ip_version': 4, 'cidr': '115.103.32.0/26', 'allocation_pools': [{'start': '115.103.32.2', 'end': '115.103.32.62'}], 'gateway_ip': '115.103.32.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.103.32.2', 'tags': [], 'project_id': '6b53d5977e1240f78093a6d107321fbd'}}
2025-11-05 19:31:55,708 - INFO - Created VN ctest-vn-97627421
2025-11-05 19:31:55,761 - DEBUG - VN ctest-vn-97627421 UUID is 48b90b18-5a60-43e9-a83a-25547a3bec42
2025-11-05 19:31:55,878 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80481817:ctest-vn-41993527, 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-80481817:ctest-vn-97627421, 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-05 19:31:56,166 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd9652d9a-3adb-40e8-bba2-03e1cb92a2a0', 'name': 'ctest-vn-41993527', 'tenant_id': '6b53d5977e1240f78093a6d107321fbd', 'project_id': '6b53d5977e1240f78093a6d107321fbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7af5d42e-f42e-41ed-a0fa-6c4af2bc9e53'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80481817', 'ctest-vn-41993527'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80481817', 'ctest-policy-allow-all-95030094']], 'subnet_ipam': [{'subnet_cidr': '126.171.183.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 19:31:56,407 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '48b90b18-5a60-43e9-a83a-25547a3bec42', 'name': 'ctest-vn-97627421', 'tenant_id': '6b53d5977e1240f78093a6d107321fbd', 'project_id': '6b53d5977e1240f78093a6d107321fbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad07d456-330e-4faa-9511-1d5f0b2648d1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80481817', 'ctest-vn-97627421'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80481817', 'ctest-policy-allow-all-95030094']], 'subnet_ipam': [{'subnet_cidr': '115.103.32.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 19:31:56,553 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-05 19:31:56,858 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-05 19:31:56,887 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f0abf5c5-4c69-4064-b262-0314d8719ba6
2025-11-05 19:31:56,902 - DEBUG - Requesting: http://10.0.0.38:8082/project/6b53d597-7e12-40f7-8093-a6d107321fbd
2025-11-05 19:31:56,980 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d9652d9a-3adb-40e8-bba2-03e1cb92a2a0
2025-11-05 19:31:56,994 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d9652d9a-3adb-40e8-bba2-03e1cb92a2a0
2025-11-05 19:31:57,005 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38520f27-2fad-479e-afec-823c224d579e
2025-11-05 19:31:57,012 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38520f27-2fad-479e-afec-823c224d579e
2025-11-05 19:31:57,020 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d83c1572-10b5-4149-a251-c6a02ad39580
2025-11-05 19:31:57,027 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 19:31:57,027 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d9652d9a-3adb-40e8-bba2-03e1cb92a2a0
2025-11-05 19:31:57,037 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38520f27-2fad-479e-afec-823c224d579e
2025-11-05 19:31:57,053 - INFO - Verified VN network id 11 for VN d9652d9a-3adb-40e8-bba2-03e1cb92a2a0
2025-11-05 19:31:57,053 - INFO - Verifications in API Server for VN ctest-vn-41993527 passed
2025-11-05 19:31:57,053 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d9652d9a-3adb-40e8-bba2-03e1cb92a2a0
2025-11-05 19:31:57,063 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38520f27-2fad-479e-afec-823c224d579e
2025-11-05 19:31:57,069 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38520f27-2fad-479e-afec-823c224d579e
2025-11-05 19:31:57,075 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d83c1572-10b5-4149-a251-c6a02ad39580
2025-11-05 19:31:57,087 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80481817:ctest-vn-41993527', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80481817', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15664977019313799400', 'uuid-lslong': '13520373299637559968'}, 'enable': 'true', 'created': '2025-11-05T19:31:54', 'last-modified': '2025-11-05T19:31:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.936435'}
2025-11-05 19:31:57,093 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 19:31:57,094 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41993527 passed
2025-11-05 19:31:57,094 - DEBUG - ====Verifying policy data for ctest-vn-41993527 in API_Server ======
2025-11-05 19:31:57,094 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-05 19:31:57,100 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f0abf5c5-4c69-4064-b262-0314d8719ba6
2025-11-05 19:31:57,109 - DEBUG - Requesting: http://10.0.0.38:8082/project/6b53d597-7e12-40f7-8093-a6d107321fbd
2025-11-05 19:31:57,183 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d9652d9a-3adb-40e8-bba2-03e1cb92a2a0
2025-11-05 19:31:57,191 - DEBUG - ==>Verifying data for policy with id: 7fa1e670-7395-4071-a34e-97c1aa8b07ea, fqn: ['default-domain', 'ctest-TestBasicPolicy-80481817', 'ctest-policy-allow-all-95030094']
2025-11-05 19:31:57,191 - INFO - VN ctest-vn-41993527 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 19:31:57,191 - DEBUG - Verifying the vn in opserver
2025-11-05 19:31:57,191 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80481817:ctest-vn-41993527 virtual network link through opserver 10.0.0.38
2025-11-05 19:31:57,191 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-05 19:31:57,485 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-05 19:31:57,552 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80481817:ctest-vn-41993527', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80481817:ctest-vn-41993527?flat'}
2025-11-05 19:31:57,552 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80481817:ctest-vn-41993527 is found in opserver
2025-11-05 19:31:57,562 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 19:31:57,567 - DEBUG - VRF ids for VN ctest-vn-41993527: {}
2025-11-05 19:31:57,567 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-05 19:31:57,573 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f0abf5c5-4c69-4064-b262-0314d8719ba6
2025-11-05 19:31:57,584 - DEBUG - Requesting: http://10.0.0.38:8082/project/6b53d597-7e12-40f7-8093-a6d107321fbd
2025-11-05 19:31:57,656 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/48b90b18-5a60-43e9-a83a-25547a3bec42
2025-11-05 19:31:57,669 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/48b90b18-5a60-43e9-a83a-25547a3bec42
2025-11-05 19:31:57,679 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/17547ae9-4b21-4d0b-b567-850bf5ea4454
2025-11-05 19:31:57,685 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/17547ae9-4b21-4d0b-b567-850bf5ea4454
2025-11-05 19:31:57,691 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/972e499c-b1c1-4b0a-9ede-875e02d99f8a
2025-11-05 19:31:57,698 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 19:31:57,698 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/48b90b18-5a60-43e9-a83a-25547a3bec42
2025-11-05 19:31:57,707 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/17547ae9-4b21-4d0b-b567-850bf5ea4454
2025-11-05 19:31:57,722 - INFO - Verified VN network id 12 for VN 48b90b18-5a60-43e9-a83a-25547a3bec42
2025-11-05 19:31:57,722 - INFO - Verifications in API Server for VN ctest-vn-97627421 passed
2025-11-05 19:31:57,722 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/48b90b18-5a60-43e9-a83a-25547a3bec42
2025-11-05 19:31:57,731 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/17547ae9-4b21-4d0b-b567-850bf5ea4454
2025-11-05 19:31:57,737 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/17547ae9-4b21-4d0b-b567-850bf5ea4454
2025-11-05 19:31:57,744 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/972e499c-b1c1-4b0a-9ede-875e02d99f8a
2025-11-05 19:31:57,757 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80481817:ctest-vn-97627421', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80481817', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5240231840645661673', 'uuid-lslong': '12122042391779339330'}, 'enable': 'true', 'created': '2025-11-05T19:31:55', 'last-modified': '2025-11-05T19:31:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.379411'}
2025-11-05 19:31:57,762 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 19:31:57,762 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97627421 passed
2025-11-05 19:31:57,762 - DEBUG - ====Verifying policy data for ctest-vn-97627421 in API_Server ======
2025-11-05 19:31:57,762 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-05 19:31:57,768 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f0abf5c5-4c69-4064-b262-0314d8719ba6
2025-11-05 19:31:57,782 - DEBUG - Requesting: http://10.0.0.38:8082/project/6b53d597-7e12-40f7-8093-a6d107321fbd
2025-11-05 19:31:57,862 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/48b90b18-5a60-43e9-a83a-25547a3bec42
2025-11-05 19:31:57,871 - DEBUG - ==>Verifying data for policy with id: 7fa1e670-7395-4071-a34e-97c1aa8b07ea, fqn: ['default-domain', 'ctest-TestBasicPolicy-80481817', 'ctest-policy-allow-all-95030094']
2025-11-05 19:31:57,871 - INFO - VN ctest-vn-97627421 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 19:31:57,871 - DEBUG - Verifying the vn in opserver
2025-11-05 19:31:57,871 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80481817:ctest-vn-97627421 virtual network link through opserver 10.0.0.38
2025-11-05 19:31:57,872 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-05 19:31:57,882 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80481817:ctest-vn-97627421', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80481817:ctest-vn-97627421?flat'}
2025-11-05 19:31:57,882 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80481817:ctest-vn-97627421 is found in opserver
2025-11-05 19:31:57,892 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 19:31:57,897 - DEBUG - VRF ids for VN ctest-vn-97627421: {}
2025-11-05 19:31:57,957 - DEBUG - Services list from nova: [