2025-10-21 15:25:19,836 - INFO - Domain Default found not creating
2025-10-21 15:25:19,973 - INFO - Project ctest-TestBasicPolicy-60518478 not found, creating it
2025-10-21 15:25:20,429 - INFO - Created Project:ctest-TestBasicPolicy-60518478, ID : 36ab57d4-6733-48e1-a1cc-460d9a36ef62
2025-10-21 15:25:21,838 - INFO - ================================================================================
2025-10-21 15:25:21,838 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-21 15:25:21,839 - 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-21 15:25:22,087 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with
2025-10-21 15:25:22,087 - INFO - Initial checks done. Running the testcase now
2025-10-21 15:25:22,087 - INFO -
2025-10-21 15:25:22,601 - DEBUG - Response for create_network : {'network': {'id': 'cde8e77b-87b7-49c7-86e2-a6a2cd73f87e', 'name': 'ctest-vn-67862854', 'tenant_id': '36ab57d4673348e1a1cc460d9a36ef62', 'project_id': '36ab57d4673348e1a1cc460d9a36ef62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60518478', 'ctest-vn-67862854'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 15:25:22,770 - DEBUG - Response for create_subnet : {'subnet': {'id': '54ffd73c-5f5a-4616-aaa0-9d6286240f90', 'name': '', 'tenant_id': '36ab57d4673348e1a1cc460d9a36ef62', 'network_id': 'cde8e77b-87b7-49c7-86e2-a6a2cd73f87e', 'ip_version': 4, 'cidr': '216.191.46.192/26', 'allocation_pools': [{'start': '216.191.46.194', 'end': '216.191.46.254'}], 'gateway_ip': '216.191.46.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.191.46.194', 'tags': [], 'project_id': '36ab57d4673348e1a1cc460d9a36ef62'}}
2025-10-21 15:25:22,785 - INFO - Created VN ctest-vn-67862854
2025-10-21 15:25:22,838 - DEBUG - VN ctest-vn-67862854 UUID is cde8e77b-87b7-49c7-86e2-a6a2cd73f87e
2025-10-21 15:25:23,143 - DEBUG - Response for create_network : {'network': {'id': '4315fe15-1c94-4f24-bc4c-04c6d45e871f', 'name': 'ctest-vn-29431131', 'tenant_id': '36ab57d4673348e1a1cc460d9a36ef62', 'project_id': '36ab57d4673348e1a1cc460d9a36ef62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60518478', 'ctest-vn-29431131'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 15:25:23,298 - DEBUG - Response for create_subnet : {'subnet': {'id': '4de8eb2f-ea4d-4765-a08b-3e0dc7b68b9d', 'name': '', 'tenant_id': '36ab57d4673348e1a1cc460d9a36ef62', 'network_id': '4315fe15-1c94-4f24-bc4c-04c6d45e871f', 'ip_version': 4, 'cidr': '21.98.26.128/26', 'allocation_pools': [{'start': '21.98.26.130', 'end': '21.98.26.190'}], 'gateway_ip': '21.98.26.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.98.26.130', 'tags': [], 'project_id': '36ab57d4673348e1a1cc460d9a36ef62'}}
2025-10-21 15:25:23,313 - INFO - Created VN ctest-vn-29431131
2025-10-21 15:25:23,362 - DEBUG - VN ctest-vn-29431131 UUID is 4315fe15-1c94-4f24-bc4c-04c6d45e871f
2025-10-21 15:25:23,505 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60518478:ctest-vn-67862854, 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-60518478:ctest-vn-29431131, 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-21 15:25:23,780 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cde8e77b-87b7-49c7-86e2-a6a2cd73f87e', 'name': 'ctest-vn-67862854', 'tenant_id': '36ab57d4673348e1a1cc460d9a36ef62', 'project_id': '36ab57d4673348e1a1cc460d9a36ef62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['54ffd73c-5f5a-4616-aaa0-9d6286240f90'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60518478', 'ctest-vn-67862854'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60518478', 'ctest-policy-allow-all-90382947']], 'subnet_ipam': [{'subnet_cidr': '216.191.46.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 15:25:24,018 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4315fe15-1c94-4f24-bc4c-04c6d45e871f', 'name': 'ctest-vn-29431131', 'tenant_id': '36ab57d4673348e1a1cc460d9a36ef62', 'project_id': '36ab57d4673348e1a1cc460d9a36ef62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4de8eb2f-ea4d-4765-a08b-3e0dc7b68b9d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60518478', 'ctest-vn-29431131'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60518478', 'ctest-policy-allow-all-90382947']], 'subnet_ipam': [{'subnet_cidr': '21.98.26.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 15:25:24,158 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-21 15:25:24,454 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-21 15:25:24,481 - DEBUG - Requesting: http://10.0.0.41:8082/domain/cb0d9fe4-4f68-4853-be03-f69af2411f49
2025-10-21 15:25:24,491 - DEBUG - Requesting: http://10.0.0.41:8082/project/36ab57d4-6733-48e1-a1cc-460d9a36ef62
2025-10-21 15:25:24,561 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/cde8e77b-87b7-49c7-86e2-a6a2cd73f87e
2025-10-21 15:25:24,572 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/cde8e77b-87b7-49c7-86e2-a6a2cd73f87e
2025-10-21 15:25:24,580 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/737f52b2-f3da-4b6b-b429-e9dcbf46fc61
2025-10-21 15:25:24,586 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/737f52b2-f3da-4b6b-b429-e9dcbf46fc61
2025-10-21 15:25:24,591 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f4c6984c-bc2f-4b7e-a6c4-4ee7c0942c3e
2025-10-21 15:25:24,596 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 15:25:24,596 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/cde8e77b-87b7-49c7-86e2-a6a2cd73f87e
2025-10-21 15:25:24,603 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/737f52b2-f3da-4b6b-b429-e9dcbf46fc61
2025-10-21 15:25:24,614 - INFO - Verified VN network id 12 for VN cde8e77b-87b7-49c7-86e2-a6a2cd73f87e
2025-10-21 15:25:24,614 - INFO - Verifications in API Server for VN ctest-vn-67862854 passed
2025-10-21 15:25:24,614 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/cde8e77b-87b7-49c7-86e2-a6a2cd73f87e
2025-10-21 15:25:24,622 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/737f52b2-f3da-4b6b-b429-e9dcbf46fc61
2025-10-21 15:25:24,628 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/737f52b2-f3da-4b6b-b429-e9dcbf46fc61
2025-10-21 15:25:24,634 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f4c6984c-bc2f-4b7e-a6c4-4ee7c0942c3e
2025-10-21 15:25:24,644 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60518478:ctest-vn-67862854', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60518478', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14837363490116028871', 'uuid-lslong': '9719514163980793982'}, 'enable': 'true', 'created': '2025-10-21T15:25:22', 'last-modified': '2025-10-21T15:25:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.880556'}
2025-10-21 15:25:24,651 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 15:25:24,651 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67862854 passed
2025-10-21 15:25:24,651 - DEBUG - ====Verifying policy data for ctest-vn-67862854 in API_Server ======
2025-10-21 15:25:24,651 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-21 15:25:24,656 - DEBUG - Requesting: http://10.0.0.41:8082/domain/cb0d9fe4-4f68-4853-be03-f69af2411f49
2025-10-21 15:25:24,668 - DEBUG - Requesting: http://10.0.0.41:8082/project/36ab57d4-6733-48e1-a1cc-460d9a36ef62
2025-10-21 15:25:24,743 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/cde8e77b-87b7-49c7-86e2-a6a2cd73f87e
2025-10-21 15:25:24,753 - DEBUG - ==>Verifying data for policy with id: 6fc00521-1f0d-440a-8f4c-862dbbbe1832, fqn: ['default-domain', 'ctest-TestBasicPolicy-60518478', 'ctest-policy-allow-all-90382947']
2025-10-21 15:25:24,753 - INFO - VN ctest-vn-67862854 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 15:25:24,753 - DEBUG - Verifying the vn in opserver
2025-10-21 15:25:24,753 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60518478:ctest-vn-67862854 virtual network link through opserver 10.0.0.41
2025-10-21 15:25:24,753 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-10-21 15:25:25,044 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-10-21 15:25:25,097 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60518478:ctest-vn-67862854', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60518478:ctest-vn-67862854?flat'}
2025-10-21 15:25:25,097 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60518478:ctest-vn-67862854 is found in opserver
2025-10-21 15:25:25,105 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 15:25:25,109 - DEBUG - VRF ids for VN ctest-vn-67862854: {}
2025-10-21 15:25:25,109 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-21 15:25:25,114 - DEBUG - Requesting: http://10.0.0.41:8082/domain/cb0d9fe4-4f68-4853-be03-f69af2411f49
2025-10-21 15:25:25,125 - DEBUG - Requesting: http://10.0.0.41:8082/project/36ab57d4-6733-48e1-a1cc-460d9a36ef62
2025-10-21 15:25:25,195 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4315fe15-1c94-4f24-bc4c-04c6d45e871f
2025-10-21 15:25:25,206 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4315fe15-1c94-4f24-bc4c-04c6d45e871f
2025-10-21 15:25:25,214 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2ecb4253-ca09-4fda-afe3-17d3abe6935b
2025-10-21 15:25:25,220 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2ecb4253-ca09-4fda-afe3-17d3abe6935b
2025-10-21 15:25:25,226 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/77864ba3-0f26-4d48-9043-024408f3e470
2025-10-21 15:25:25,232 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 15:25:25,232 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4315fe15-1c94-4f24-bc4c-04c6d45e871f
2025-10-21 15:25:25,241 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2ecb4253-ca09-4fda-afe3-17d3abe6935b
2025-10-21 15:25:25,256 - INFO - Verified VN network id 13 for VN 4315fe15-1c94-4f24-bc4c-04c6d45e871f
2025-10-21 15:25:25,256 - INFO - Verifications in API Server for VN ctest-vn-29431131 passed
2025-10-21 15:25:25,256 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4315fe15-1c94-4f24-bc4c-04c6d45e871f
2025-10-21 15:25:25,265 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2ecb4253-ca09-4fda-afe3-17d3abe6935b
2025-10-21 15:25:25,272 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2ecb4253-ca09-4fda-afe3-17d3abe6935b
2025-10-21 15:25:25,279 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/77864ba3-0f26-4d48-9043-024408f3e470
2025-10-21 15:25:25,290 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60518478:ctest-vn-29431131', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60518478', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4834049141679345444', 'uuid-lslong': '13568225029373462303'}, 'enable': 'true', 'created': '2025-10-21T15:25:23', 'last-modified': '2025-10-21T15:25:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.296845'}
2025-10-21 15:25:25,295 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 15:25:25,295 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29431131 passed
2025-10-21 15:25:25,295 - DEBUG - ====Verifying policy data for ctest-vn-29431131 in API_Server ======
2025-10-21 15:25:25,295 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-21 15:25:25,301 - DEBUG - Requesting: http://10.0.0.41:8082/domain/cb0d9fe4-4f68-4853-be03-f69af2411f49
2025-10-21 15:25:25,312 - DEBUG - Requesting: http://10.0.0.41:8082/project/36ab57d4-6733-48e1-a1cc-460d9a36ef62
2025-10-21 15:25:25,384 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4315fe15-1c94-4f24-bc4c-04c6d45e871f
2025-10-21 15:25:25,395 - DEBUG - ==>Verifying data for policy with id: 6fc00521-1f0d-440a-8f4c-862dbbbe1832, fqn: ['default-domain', 'ctest-TestBasicPolicy-60518478', 'ctest-policy-allow-all-90382947']
2025-10-21 15:25:25,395 - INFO - VN ctest-vn-29431131 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 15:25:25,395 - DEBUG - Verifying the vn in opserver
2025-10-21 15:25:25,395 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60518478:ctest-vn-29431131 virtual network link through opserver 10.0.0.41
2025-10-21 15:25:25,395 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-10-21 15:25:25,405 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60518478:ctest-vn-29431131', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60518478:ctest-vn-29431131?flat'}
2025-10-21 15:25:25,405 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60518478:ctest-vn-29431131 is found in opserver
2025-10-21 15:25:25,415 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 15:25:25,419 - DEBUG - VRF ids for VN ctest-vn-29431131: {}
2025-10-21 15:25:25,469 - DEBUG - Services list from nova: [