2025-10-16 18:12:16,485 - INFO - Domain Default found not creating
2025-10-16 18:12:16,627 - INFO - Project ctest-TestBasicPolicy-17661963 not found, creating it
2025-10-16 18:12:17,059 - INFO - Created Project:ctest-TestBasicPolicy-17661963, ID : 58ddab3c-ce06-45fd-95e1-aca5db32b04c
2025-10-16 18:12:18,456 - INFO - ================================================================================
2025-10-16 18:12:18,456 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-16 18:12:18,456 - 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-16 18:12:18,713 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-10-16 18:12:18,713 - INFO - Initial checks done. Running the testcase now
2025-10-16 18:12:18,713 - INFO -
2025-10-16 18:12:19,253 - DEBUG - Response for create_network : {'network': {'id': '2033041e-6a9f-43b9-9a7a-2cc590a052af', 'name': 'ctest-vn-42759242', 'tenant_id': '58ddab3cce0645fd95e1aca5db32b04c', 'project_id': '58ddab3cce0645fd95e1aca5db32b04c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17661963', 'ctest-vn-42759242'], 'port_security_enabled': True, 'description': ''}}
2025-10-16 18:12:19,407 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f4984c9-a106-48b3-a519-a61c66d5f1f4', 'name': '', 'tenant_id': '58ddab3cce0645fd95e1aca5db32b04c', 'network_id': '2033041e-6a9f-43b9-9a7a-2cc590a052af', 'ip_version': 4, 'cidr': '150.138.169.64/26', 'allocation_pools': [{'start': '150.138.169.66', 'end': '150.138.169.126'}], 'gateway_ip': '150.138.169.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.138.169.66', 'tags': [], 'project_id': '58ddab3cce0645fd95e1aca5db32b04c'}}
2025-10-16 18:12:19,425 - INFO - Created VN ctest-vn-42759242
2025-10-16 18:12:19,476 - DEBUG - VN ctest-vn-42759242 UUID is 2033041e-6a9f-43b9-9a7a-2cc590a052af
2025-10-16 18:12:19,785 - DEBUG - Response for create_network : {'network': {'id': '08ca551c-69fe-4180-a0c1-ee4c94c6a9db', 'name': 'ctest-vn-69516619', 'tenant_id': '58ddab3cce0645fd95e1aca5db32b04c', 'project_id': '58ddab3cce0645fd95e1aca5db32b04c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17661963', 'ctest-vn-69516619'], 'port_security_enabled': True, 'description': ''}}
2025-10-16 18:12:19,978 - DEBUG - Response for create_subnet : {'subnet': {'id': '17629a3d-86cf-4521-88d8-dd293071ad6f', 'name': '', 'tenant_id': '58ddab3cce0645fd95e1aca5db32b04c', 'network_id': '08ca551c-69fe-4180-a0c1-ee4c94c6a9db', 'ip_version': 4, 'cidr': '148.146.9.0/26', 'allocation_pools': [{'start': '148.146.9.2', 'end': '148.146.9.62'}], 'gateway_ip': '148.146.9.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.146.9.2', 'tags': [], 'project_id': '58ddab3cce0645fd95e1aca5db32b04c'}}
2025-10-16 18:12:19,993 - INFO - Created VN ctest-vn-69516619
2025-10-16 18:12:20,044 - DEBUG - VN ctest-vn-69516619 UUID is 08ca551c-69fe-4180-a0c1-ee4c94c6a9db
2025-10-16 18:12:20,174 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17661963:ctest-vn-42759242, 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-17661963:ctest-vn-69516619, 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-16 18:12:20,453 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2033041e-6a9f-43b9-9a7a-2cc590a052af', 'name': 'ctest-vn-42759242', 'tenant_id': '58ddab3cce0645fd95e1aca5db32b04c', 'project_id': '58ddab3cce0645fd95e1aca5db32b04c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f4984c9-a106-48b3-a519-a61c66d5f1f4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17661963', 'ctest-vn-42759242'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17661963', 'ctest-policy-allow-all-33831519']], 'subnet_ipam': [{'subnet_cidr': '150.138.169.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-16 18:12:20,674 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '08ca551c-69fe-4180-a0c1-ee4c94c6a9db', 'name': 'ctest-vn-69516619', 'tenant_id': '58ddab3cce0645fd95e1aca5db32b04c', 'project_id': '58ddab3cce0645fd95e1aca5db32b04c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['17629a3d-86cf-4521-88d8-dd293071ad6f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17661963', 'ctest-vn-69516619'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17661963', 'ctest-policy-allow-all-33831519']], 'subnet_ipam': [{'subnet_cidr': '148.146.9.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-16 18:12:20,836 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-16 18:12:21,123 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-16 18:12:21,148 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6f7278c8-d932-49e4-acb2-f0615b2fe3cd
2025-10-16 18:12:21,158 - DEBUG - Requesting: http://10.0.0.22:8082/project/58ddab3c-ce06-45fd-95e1-aca5db32b04c
2025-10-16 18:12:21,228 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2033041e-6a9f-43b9-9a7a-2cc590a052af
2025-10-16 18:12:21,237 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2033041e-6a9f-43b9-9a7a-2cc590a052af
2025-10-16 18:12:21,246 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3120410b-ae56-497c-b878-7023d43e8548
2025-10-16 18:12:21,252 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3120410b-ae56-497c-b878-7023d43e8548
2025-10-16 18:12:21,258 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3b830165-ea4b-408e-9d3c-b9728f3f1038
2025-10-16 18:12:21,264 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-16 18:12:21,264 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2033041e-6a9f-43b9-9a7a-2cc590a052af
2025-10-16 18:12:21,272 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3120410b-ae56-497c-b878-7023d43e8548
2025-10-16 18:12:21,284 - INFO - Verified VN network id 9 for VN 2033041e-6a9f-43b9-9a7a-2cc590a052af
2025-10-16 18:12:21,284 - INFO - Verifications in API Server for VN ctest-vn-42759242 passed
2025-10-16 18:12:21,284 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2033041e-6a9f-43b9-9a7a-2cc590a052af
2025-10-16 18:12:21,292 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3120410b-ae56-497c-b878-7023d43e8548
2025-10-16 18:12:21,298 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3120410b-ae56-497c-b878-7023d43e8548
2025-10-16 18:12:21,304 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3b830165-ea4b-408e-9d3c-b9728f3f1038
2025-10-16 18:12:21,314 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17661963:ctest-vn-42759242', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17661963', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2320202761710289849', 'uuid-lslong': '11131258656046207663'}, 'enable': 'true', 'created': '2025-10-16T18:12:19', 'last-modified': '2025-10-16T18:12:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.882711'}
2025-10-16 18:12:21,320 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-16 18:12:21,320 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42759242 passed
2025-10-16 18:12:21,320 - DEBUG - ====Verifying policy data for ctest-vn-42759242 in API_Server ======
2025-10-16 18:12:21,320 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-16 18:12:21,325 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6f7278c8-d932-49e4-acb2-f0615b2fe3cd
2025-10-16 18:12:21,336 - DEBUG - Requesting: http://10.0.0.22:8082/project/58ddab3c-ce06-45fd-95e1-aca5db32b04c
2025-10-16 18:12:21,407 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2033041e-6a9f-43b9-9a7a-2cc590a052af
2025-10-16 18:12:21,418 - DEBUG - ==>Verifying data for policy with id: c99108e9-ad72-4508-bd2a-b34e26f7b94c, fqn: ['default-domain', 'ctest-TestBasicPolicy-17661963', 'ctest-policy-allow-all-33831519']
2025-10-16 18:12:21,418 - INFO - VN ctest-vn-42759242 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-16 18:12:21,418 - DEBUG - Verifying the vn in opserver
2025-10-16 18:12:21,418 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17661963:ctest-vn-42759242 virtual network link through opserver 10.0.0.22
2025-10-16 18:12:21,418 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-16 18:12:21,711 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-16 18:12:21,763 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17661963:ctest-vn-42759242', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17661963:ctest-vn-42759242?flat'}
2025-10-16 18:12:21,763 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17661963:ctest-vn-42759242 is found in opserver
2025-10-16 18:12:21,771 - DEBUG - Do not have enough data to verify VN in agent
2025-10-16 18:12:21,774 - DEBUG - VRF ids for VN ctest-vn-42759242: {}
2025-10-16 18:12:21,774 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-16 18:12:21,779 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6f7278c8-d932-49e4-acb2-f0615b2fe3cd
2025-10-16 18:12:21,788 - DEBUG - Requesting: http://10.0.0.22:8082/project/58ddab3c-ce06-45fd-95e1-aca5db32b04c
2025-10-16 18:12:21,854 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/08ca551c-69fe-4180-a0c1-ee4c94c6a9db
2025-10-16 18:12:21,865 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/08ca551c-69fe-4180-a0c1-ee4c94c6a9db
2025-10-16 18:12:21,873 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bac218c0-743d-4329-b56e-e6f28997a2c3
2025-10-16 18:12:21,879 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bac218c0-743d-4329-b56e-e6f28997a2c3
2025-10-16 18:12:21,885 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/56a7920b-74e5-48e5-8929-791e3504b702
2025-10-16 18:12:21,893 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-16 18:12:21,893 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/08ca551c-69fe-4180-a0c1-ee4c94c6a9db
2025-10-16 18:12:21,903 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bac218c0-743d-4329-b56e-e6f28997a2c3
2025-10-16 18:12:21,916 - INFO - Verified VN network id 10 for VN 08ca551c-69fe-4180-a0c1-ee4c94c6a9db
2025-10-16 18:12:21,916 - INFO - Verifications in API Server for VN ctest-vn-69516619 passed
2025-10-16 18:12:21,916 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/08ca551c-69fe-4180-a0c1-ee4c94c6a9db
2025-10-16 18:12:21,924 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bac218c0-743d-4329-b56e-e6f28997a2c3
2025-10-16 18:12:21,930 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bac218c0-743d-4329-b56e-e6f28997a2c3
2025-10-16 18:12:21,936 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/56a7920b-74e5-48e5-8929-791e3504b702
2025-10-16 18:12:21,946 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17661963:ctest-vn-69516619', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17661963', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '633412278124691840', 'uuid-lslong': '11583801729254599131'}, 'enable': 'true', 'created': '2025-10-16T18:12:19', 'last-modified': '2025-10-16T18:12:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.295813'}
2025-10-16 18:12:21,951 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-16 18:12:21,951 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69516619 passed
2025-10-16 18:12:21,951 - DEBUG - ====Verifying policy data for ctest-vn-69516619 in API_Server ======
2025-10-16 18:12:21,951 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-16 18:12:21,956 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6f7278c8-d932-49e4-acb2-f0615b2fe3cd
2025-10-16 18:12:21,966 - DEBUG - Requesting: http://10.0.0.22:8082/project/58ddab3c-ce06-45fd-95e1-aca5db32b04c
2025-10-16 18:12:22,030 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/08ca551c-69fe-4180-a0c1-ee4c94c6a9db
2025-10-16 18:12:22,039 - DEBUG - ==>Verifying data for policy with id: c99108e9-ad72-4508-bd2a-b34e26f7b94c, fqn: ['default-domain', 'ctest-TestBasicPolicy-17661963', 'ctest-policy-allow-all-33831519']
2025-10-16 18:12:22,039 - INFO - VN ctest-vn-69516619 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-16 18:12:22,039 - DEBUG - Verifying the vn in opserver
2025-10-16 18:12:22,039 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17661963:ctest-vn-69516619 virtual network link through opserver 10.0.0.22
2025-10-16 18:12:22,039 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-16 18:12:22,049 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17661963:ctest-vn-69516619', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17661963:ctest-vn-69516619?flat'}
2025-10-16 18:12:22,049 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17661963:ctest-vn-69516619 is found in opserver
2025-10-16 18:12:22,058 - DEBUG - Do not have enough data to verify VN in agent
2025-10-16 18:12:22,062 - DEBUG - VRF ids for VN ctest-vn-69516619: {}
2025-10-16 18:12:22,121 - DEBUG - Services list from nova: [