2025-10-08 14:43:20,470 - INFO - Domain Default found not creating
2025-10-08 14:43:20,589 - INFO - Project ctest-TestBasicPolicy-64119866 not found, creating it
2025-10-08 14:43:21,041 - INFO - Created Project:ctest-TestBasicPolicy-64119866, ID : 3edbf586-278f-4cca-871a-96bea569e450
2025-10-08 14:43:22,339 - INFO - ================================================================================
2025-10-08 14:43:22,340 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-08 14:43:22,340 - 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-08 14:43:22,587 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.18': '0'}} with
2025-10-08 14:43:22,587 - INFO - Initial checks done. Running the testcase now
2025-10-08 14:43:22,587 - INFO -
2025-10-08 14:43:23,082 - DEBUG - Response for create_network : {'network': {'id': 'ec1500a3-9e74-4717-9cfb-d12e9fa115c0', 'name': 'ctest-vn-29561401', 'tenant_id': '3edbf586278f4cca871a96bea569e450', 'project_id': '3edbf586278f4cca871a96bea569e450', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64119866', 'ctest-vn-29561401'], 'port_security_enabled': True, 'description': ''}}
2025-10-08 14:43:23,233 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb86eeee-15a9-4749-ae16-f9e921d2818d', 'name': '', 'tenant_id': '3edbf586278f4cca871a96bea569e450', 'network_id': 'ec1500a3-9e74-4717-9cfb-d12e9fa115c0', 'ip_version': 4, 'cidr': '52.115.33.64/26', 'allocation_pools': [{'start': '52.115.33.66', 'end': '52.115.33.126'}], 'gateway_ip': '52.115.33.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.115.33.66', 'tags': [], 'project_id': '3edbf586278f4cca871a96bea569e450'}}
2025-10-08 14:43:23,249 - INFO - Created VN ctest-vn-29561401
2025-10-08 14:43:23,299 - DEBUG - VN ctest-vn-29561401 UUID is ec1500a3-9e74-4717-9cfb-d12e9fa115c0
2025-10-08 14:43:23,588 - DEBUG - Response for create_network : {'network': {'id': '204dea83-2411-4f5a-99dd-744df1e3dd06', 'name': 'ctest-vn-26874766', 'tenant_id': '3edbf586278f4cca871a96bea569e450', 'project_id': '3edbf586278f4cca871a96bea569e450', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64119866', 'ctest-vn-26874766'], 'port_security_enabled': True, 'description': ''}}
2025-10-08 14:43:23,755 - DEBUG - Response for create_subnet : {'subnet': {'id': '20c94758-d540-4d4b-a243-37aabe4d17aa', 'name': '', 'tenant_id': '3edbf586278f4cca871a96bea569e450', 'network_id': '204dea83-2411-4f5a-99dd-744df1e3dd06', 'ip_version': 4, 'cidr': '1.50.70.128/26', 'allocation_pools': [{'start': '1.50.70.130', 'end': '1.50.70.190'}], 'gateway_ip': '1.50.70.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.50.70.130', 'tags': [], 'project_id': '3edbf586278f4cca871a96bea569e450'}}
2025-10-08 14:43:23,770 - INFO - Created VN ctest-vn-26874766
2025-10-08 14:43:23,819 - DEBUG - VN ctest-vn-26874766 UUID is 204dea83-2411-4f5a-99dd-744df1e3dd06
2025-10-08 14:43:23,959 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64119866:ctest-vn-29561401, 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-64119866:ctest-vn-26874766, 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-08 14:43:24,237 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec1500a3-9e74-4717-9cfb-d12e9fa115c0', 'name': 'ctest-vn-29561401', 'tenant_id': '3edbf586278f4cca871a96bea569e450', 'project_id': '3edbf586278f4cca871a96bea569e450', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bb86eeee-15a9-4749-ae16-f9e921d2818d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64119866', 'ctest-vn-29561401'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64119866', 'ctest-policy-allow-all-66945082']], 'subnet_ipam': [{'subnet_cidr': '52.115.33.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-08 14:43:24,452 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '204dea83-2411-4f5a-99dd-744df1e3dd06', 'name': 'ctest-vn-26874766', 'tenant_id': '3edbf586278f4cca871a96bea569e450', 'project_id': '3edbf586278f4cca871a96bea569e450', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['20c94758-d540-4d4b-a243-37aabe4d17aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64119866', 'ctest-vn-26874766'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64119866', 'ctest-policy-allow-all-66945082']], 'subnet_ipam': [{'subnet_cidr': '1.50.70.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-08 14:43:24,611 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2025-10-08 14:43:24,901 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2025-10-08 14:43:24,924 - DEBUG - Requesting: http://10.0.0.162:8082/domain/cc6a519a-1a13-4692-af8e-06e2ffdfb27f
2025-10-08 14:43:24,934 - DEBUG - Requesting: http://10.0.0.162:8082/project/3edbf586-278f-4cca-871a-96bea569e450
2025-10-08 14:43:25,001 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/ec1500a3-9e74-4717-9cfb-d12e9fa115c0
2025-10-08 14:43:25,009 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/ec1500a3-9e74-4717-9cfb-d12e9fa115c0
2025-10-08 14:43:25,016 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/1bebeb4e-62eb-4462-bf8d-3a7a017fa823
2025-10-08 14:43:25,022 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/1bebeb4e-62eb-4462-bf8d-3a7a017fa823
2025-10-08 14:43:25,026 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/d453135d-8f58-4906-a881-d32ddd5d5e71
2025-10-08 14:43:25,030 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-08 14:43:25,030 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/ec1500a3-9e74-4717-9cfb-d12e9fa115c0
2025-10-08 14:43:25,037 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/1bebeb4e-62eb-4462-bf8d-3a7a017fa823
2025-10-08 14:43:25,048 - INFO - Verified VN network id 12 for VN ec1500a3-9e74-4717-9cfb-d12e9fa115c0
2025-10-08 14:43:25,048 - INFO - Verifications in API Server for VN ctest-vn-29561401 passed
2025-10-08 14:43:25,048 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/ec1500a3-9e74-4717-9cfb-d12e9fa115c0
2025-10-08 14:43:25,055 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/1bebeb4e-62eb-4462-bf8d-3a7a017fa823
2025-10-08 14:43:25,059 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/1bebeb4e-62eb-4462-bf8d-3a7a017fa823
2025-10-08 14:43:25,064 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/d453135d-8f58-4906-a881-d32ddd5d5e71
2025-10-08 14:43:25,075 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64119866:ctest-vn-29561401', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64119866', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17011503870200006423', 'uuid-lslong': '11311864887247967680'}, 'enable': 'true', 'created': '2025-10-08T14:43:23', 'last-modified': '2025-10-08T14:43:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.859196'}
2025-10-08 14:43:25,079 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-08 14:43:25,079 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29561401 passed
2025-10-08 14:43:25,080 - DEBUG - ====Verifying policy data for ctest-vn-29561401 in API_Server ======
2025-10-08 14:43:25,080 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2025-10-08 14:43:25,084 - DEBUG - Requesting: http://10.0.0.162:8082/domain/cc6a519a-1a13-4692-af8e-06e2ffdfb27f
2025-10-08 14:43:25,093 - DEBUG - Requesting: http://10.0.0.162:8082/project/3edbf586-278f-4cca-871a-96bea569e450
2025-10-08 14:43:25,159 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/ec1500a3-9e74-4717-9cfb-d12e9fa115c0
2025-10-08 14:43:25,167 - DEBUG - ==>Verifying data for policy with id: 4064faf8-b152-495c-97e3-f9272e2ae86d, fqn: ['default-domain', 'ctest-TestBasicPolicy-64119866', 'ctest-policy-allow-all-66945082']
2025-10-08 14:43:25,167 - INFO - VN ctest-vn-29561401 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-08 14:43:25,167 - DEBUG - Verifying the vn in opserver
2025-10-08 14:43:25,167 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64119866:ctest-vn-29561401 virtual network link through opserver 10.0.0.162
2025-10-08 14:43:25,167 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks
2025-10-08 14:43:25,457 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks
2025-10-08 14:43:25,502 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64119866:ctest-vn-29561401', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64119866:ctest-vn-29561401?flat'}
2025-10-08 14:43:25,502 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64119866:ctest-vn-29561401 is found in opserver
2025-10-08 14:43:25,510 - DEBUG - Do not have enough data to verify VN in agent
2025-10-08 14:43:25,513 - DEBUG - VRF ids for VN ctest-vn-29561401: {}
2025-10-08 14:43:25,513 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2025-10-08 14:43:25,518 - DEBUG - Requesting: http://10.0.0.162:8082/domain/cc6a519a-1a13-4692-af8e-06e2ffdfb27f
2025-10-08 14:43:25,528 - DEBUG - Requesting: http://10.0.0.162:8082/project/3edbf586-278f-4cca-871a-96bea569e450
2025-10-08 14:43:25,596 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/204dea83-2411-4f5a-99dd-744df1e3dd06
2025-10-08 14:43:25,607 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/204dea83-2411-4f5a-99dd-744df1e3dd06
2025-10-08 14:43:25,615 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/0e015862-f6f0-4dee-ada0-7ba2239a8bca
2025-10-08 14:43:25,621 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/0e015862-f6f0-4dee-ada0-7ba2239a8bca
2025-10-08 14:43:25,626 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/2b26da9f-cb86-4940-90ab-9ab7b21a6a1f
2025-10-08 14:43:25,631 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-08 14:43:25,631 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/204dea83-2411-4f5a-99dd-744df1e3dd06
2025-10-08 14:43:25,638 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/0e015862-f6f0-4dee-ada0-7ba2239a8bca
2025-10-08 14:43:25,649 - INFO - Verified VN network id 13 for VN 204dea83-2411-4f5a-99dd-744df1e3dd06
2025-10-08 14:43:25,649 - INFO - Verifications in API Server for VN ctest-vn-26874766 passed
2025-10-08 14:43:25,649 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/204dea83-2411-4f5a-99dd-744df1e3dd06
2025-10-08 14:43:25,656 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/0e015862-f6f0-4dee-ada0-7ba2239a8bca
2025-10-08 14:43:25,661 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/0e015862-f6f0-4dee-ada0-7ba2239a8bca
2025-10-08 14:43:25,667 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/2b26da9f-cb86-4940-90ab-9ab7b21a6a1f
2025-10-08 14:43:25,676 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64119866:ctest-vn-26874766', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64119866', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2327774431387144026', 'uuid-lslong': '11087145735775575302'}, 'enable': 'true', 'created': '2025-10-08T14:43:23', 'last-modified': '2025-10-08T14:43:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.247106'}
2025-10-08 14:43:25,681 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-08 14:43:25,681 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26874766 passed
2025-10-08 14:43:25,681 - DEBUG - ====Verifying policy data for ctest-vn-26874766 in API_Server ======
2025-10-08 14:43:25,681 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2025-10-08 14:43:25,685 - DEBUG - Requesting: http://10.0.0.162:8082/domain/cc6a519a-1a13-4692-af8e-06e2ffdfb27f
2025-10-08 14:43:25,695 - DEBUG - Requesting: http://10.0.0.162:8082/project/3edbf586-278f-4cca-871a-96bea569e450
2025-10-08 14:43:25,764 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/204dea83-2411-4f5a-99dd-744df1e3dd06
2025-10-08 14:43:25,772 - DEBUG - ==>Verifying data for policy with id: 4064faf8-b152-495c-97e3-f9272e2ae86d, fqn: ['default-domain', 'ctest-TestBasicPolicy-64119866', 'ctest-policy-allow-all-66945082']
2025-10-08 14:43:25,772 - INFO - VN ctest-vn-26874766 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-08 14:43:25,772 - DEBUG - Verifying the vn in opserver
2025-10-08 14:43:25,772 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64119866:ctest-vn-26874766 virtual network link through opserver 10.0.0.162
2025-10-08 14:43:25,772 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks
2025-10-08 14:43:25,780 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64119866:ctest-vn-26874766', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64119866:ctest-vn-26874766?flat'}
2025-10-08 14:43:25,780 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64119866:ctest-vn-26874766 is found in opserver
2025-10-08 14:43:25,789 - DEBUG - Do not have enough data to verify VN in agent
2025-10-08 14:43:25,792 - DEBUG - VRF ids for VN ctest-vn-26874766: {}
2025-10-08 14:43:25,838 - DEBUG - Services list from nova: [