2025-10-23 16:35:33,471 - INFO - Domain Default found not creating
2025-10-23 16:35:33,637 - INFO - Project ctest-TestBasicPolicy-98241888 not found, creating it
2025-10-23 16:35:34,129 - INFO - Created Project:ctest-TestBasicPolicy-98241888, ID : db1f6f24-725b-4290-bab7-9e9e571337f7
2025-10-23 16:35:35,718 - INFO - ================================================================================
2025-10-23 16:35:35,718 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-23 16:35:35,718 - 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-23 16:35:35,983 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with
2025-10-23 16:35:35,983 - INFO - Initial checks done. Running the testcase now
2025-10-23 16:35:35,983 - INFO -
2025-10-23 16:35:36,578 - DEBUG - Response for create_network : {'network': {'id': '8489739f-eb96-4553-b967-c72e6e50a7e2', 'name': 'ctest-vn-39719021', 'tenant_id': 'db1f6f24725b4290bab79e9e571337f7', 'project_id': 'db1f6f24725b4290bab79e9e571337f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98241888', 'ctest-vn-39719021'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 16:35:36,749 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b54ba74-4c88-4978-98ba-32a2ccba6953', 'name': '', 'tenant_id': 'db1f6f24725b4290bab79e9e571337f7', 'network_id': '8489739f-eb96-4553-b967-c72e6e50a7e2', 'ip_version': 4, 'cidr': '52.157.98.128/26', 'allocation_pools': [{'start': '52.157.98.130', 'end': '52.157.98.190'}], 'gateway_ip': '52.157.98.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.157.98.130', 'tags': [], 'project_id': 'db1f6f24725b4290bab79e9e571337f7'}}
2025-10-23 16:35:36,768 - INFO - Created VN ctest-vn-39719021
2025-10-23 16:35:36,822 - DEBUG - VN ctest-vn-39719021 UUID is 8489739f-eb96-4553-b967-c72e6e50a7e2
2025-10-23 16:35:37,107 - DEBUG - Response for create_network : {'network': {'id': '0f07ebee-89ca-4a18-8f14-0c5624dc08dd', 'name': 'ctest-vn-06150756', 'tenant_id': 'db1f6f24725b4290bab79e9e571337f7', 'project_id': 'db1f6f24725b4290bab79e9e571337f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98241888', 'ctest-vn-06150756'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 16:35:37,315 - DEBUG - Response for create_subnet : {'subnet': {'id': '3acf170a-afbe-4041-a563-f6b787fe01c4', 'name': '', 'tenant_id': 'db1f6f24725b4290bab79e9e571337f7', 'network_id': '0f07ebee-89ca-4a18-8f14-0c5624dc08dd', 'ip_version': 4, 'cidr': '158.184.112.128/26', 'allocation_pools': [{'start': '158.184.112.130', 'end': '158.184.112.190'}], 'gateway_ip': '158.184.112.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.184.112.130', 'tags': [], 'project_id': 'db1f6f24725b4290bab79e9e571337f7'}}
2025-10-23 16:35:37,335 - INFO - Created VN ctest-vn-06150756
2025-10-23 16:35:37,386 - DEBUG - VN ctest-vn-06150756 UUID is 0f07ebee-89ca-4a18-8f14-0c5624dc08dd
2025-10-23 16:35:37,504 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98241888:ctest-vn-39719021, 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-98241888:ctest-vn-06150756, 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-23 16:35:37,797 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8489739f-eb96-4553-b967-c72e6e50a7e2', 'name': 'ctest-vn-39719021', 'tenant_id': 'db1f6f24725b4290bab79e9e571337f7', 'project_id': 'db1f6f24725b4290bab79e9e571337f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b54ba74-4c88-4978-98ba-32a2ccba6953'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98241888', 'ctest-vn-39719021'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98241888', 'ctest-policy-allow-all-78981338']], 'subnet_ipam': [{'subnet_cidr': '52.157.98.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 16:35:38,028 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f07ebee-89ca-4a18-8f14-0c5624dc08dd', 'name': 'ctest-vn-06150756', 'tenant_id': 'db1f6f24725b4290bab79e9e571337f7', 'project_id': 'db1f6f24725b4290bab79e9e571337f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3acf170a-afbe-4041-a563-f6b787fe01c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98241888', 'ctest-vn-06150756'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98241888', 'ctest-policy-allow-all-78981338']], 'subnet_ipam': [{'subnet_cidr': '158.184.112.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 16:35:38,178 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-23 16:35:38,520 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-23 16:35:38,549 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e3f52d12-6e28-4b9a-b260-e4b32965614c
2025-10-23 16:35:38,561 - DEBUG - Requesting: http://10.0.0.27:8082/project/db1f6f24-725b-4290-bab7-9e9e571337f7
2025-10-23 16:35:38,632 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8489739f-eb96-4553-b967-c72e6e50a7e2
2025-10-23 16:35:38,643 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8489739f-eb96-4553-b967-c72e6e50a7e2
2025-10-23 16:35:38,652 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bb6f154f-530c-4c2c-9d6e-a6e04b9c4b14
2025-10-23 16:35:38,659 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bb6f154f-530c-4c2c-9d6e-a6e04b9c4b14
2025-10-23 16:35:38,666 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/111f1541-32b7-4572-817d-70153a464c99
2025-10-23 16:35:38,672 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 16:35:38,672 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8489739f-eb96-4553-b967-c72e6e50a7e2
2025-10-23 16:35:38,680 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bb6f154f-530c-4c2c-9d6e-a6e04b9c4b14
2025-10-23 16:35:38,692 - INFO - Verified VN network id 11 for VN 8489739f-eb96-4553-b967-c72e6e50a7e2
2025-10-23 16:35:38,692 - INFO - Verifications in API Server for VN ctest-vn-39719021 passed
2025-10-23 16:35:38,692 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8489739f-eb96-4553-b967-c72e6e50a7e2
2025-10-23 16:35:38,700 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bb6f154f-530c-4c2c-9d6e-a6e04b9c4b14
2025-10-23 16:35:38,706 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bb6f154f-530c-4c2c-9d6e-a6e04b9c4b14
2025-10-23 16:35:38,713 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/111f1541-32b7-4572-817d-70153a464c99
2025-10-23 16:35:38,725 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98241888:ctest-vn-39719021', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98241888', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9550291615505335635', 'uuid-lslong': '13359865821851068386'}, 'enable': 'true', 'created': '2025-10-23T16:35:36', 'last-modified': '2025-10-23T16:35:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.950583'}
2025-10-23 16:35:38,733 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 16:35:38,734 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39719021 passed
2025-10-23 16:35:38,734 - DEBUG - ====Verifying policy data for ctest-vn-39719021 in API_Server ======
2025-10-23 16:35:38,734 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-23 16:35:38,740 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e3f52d12-6e28-4b9a-b260-e4b32965614c
2025-10-23 16:35:38,752 - DEBUG - Requesting: http://10.0.0.27:8082/project/db1f6f24-725b-4290-bab7-9e9e571337f7
2025-10-23 16:35:38,824 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8489739f-eb96-4553-b967-c72e6e50a7e2
2025-10-23 16:35:38,832 - DEBUG - ==>Verifying data for policy with id: f0c23b3b-7593-46e3-b1ba-98fcfb88c3c3, fqn: ['default-domain', 'ctest-TestBasicPolicy-98241888', 'ctest-policy-allow-all-78981338']
2025-10-23 16:35:38,832 - INFO - VN ctest-vn-39719021 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 16:35:38,832 - DEBUG - Verifying the vn in opserver
2025-10-23 16:35:38,832 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98241888:ctest-vn-39719021 virtual network link through opserver 10.0.0.27
2025-10-23 16:35:38,832 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-23 16:35:39,165 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-23 16:35:39,228 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98241888:ctest-vn-39719021', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98241888:ctest-vn-39719021?flat'}
2025-10-23 16:35:39,228 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98241888:ctest-vn-39719021 is found in opserver
2025-10-23 16:35:39,238 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 16:35:39,242 - DEBUG - VRF ids for VN ctest-vn-39719021: {}
2025-10-23 16:35:39,242 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-23 16:35:39,248 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e3f52d12-6e28-4b9a-b260-e4b32965614c
2025-10-23 16:35:39,260 - DEBUG - Requesting: http://10.0.0.27:8082/project/db1f6f24-725b-4290-bab7-9e9e571337f7
2025-10-23 16:35:39,329 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0f07ebee-89ca-4a18-8f14-0c5624dc08dd
2025-10-23 16:35:39,340 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0f07ebee-89ca-4a18-8f14-0c5624dc08dd
2025-10-23 16:35:39,349 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2b9b6808-44ec-4794-b389-a81ef12e9ea5
2025-10-23 16:35:39,357 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2b9b6808-44ec-4794-b389-a81ef12e9ea5
2025-10-23 16:35:39,364 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/dbeb6fc9-398a-4eeb-84a6-b42440fc482b
2025-10-23 16:35:39,371 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 16:35:39,371 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0f07ebee-89ca-4a18-8f14-0c5624dc08dd
2025-10-23 16:35:39,381 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2b9b6808-44ec-4794-b389-a81ef12e9ea5
2025-10-23 16:35:39,397 - INFO - Verified VN network id 12 for VN 0f07ebee-89ca-4a18-8f14-0c5624dc08dd
2025-10-23 16:35:39,397 - INFO - Verifications in API Server for VN ctest-vn-06150756 passed
2025-10-23 16:35:39,397 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0f07ebee-89ca-4a18-8f14-0c5624dc08dd
2025-10-23 16:35:39,406 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2b9b6808-44ec-4794-b389-a81ef12e9ea5
2025-10-23 16:35:39,412 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2b9b6808-44ec-4794-b389-a81ef12e9ea5
2025-10-23 16:35:39,419 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/dbeb6fc9-398a-4eeb-84a6-b42440fc482b
2025-10-23 16:35:39,430 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98241888:ctest-vn-06150756', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98241888', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1083093645152373272', 'uuid-lslong': '10309879011083028701'}, 'enable': 'true', 'created': '2025-10-23T16:35:37', 'last-modified': '2025-10-23T16:35:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.429525'}
2025-10-23 16:35:39,435 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 16:35:39,436 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06150756 passed
2025-10-23 16:35:39,436 - DEBUG - ====Verifying policy data for ctest-vn-06150756 in API_Server ======
2025-10-23 16:35:39,436 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-23 16:35:39,441 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e3f52d12-6e28-4b9a-b260-e4b32965614c
2025-10-23 16:35:39,451 - DEBUG - Requesting: http://10.0.0.27:8082/project/db1f6f24-725b-4290-bab7-9e9e571337f7
2025-10-23 16:35:39,523 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0f07ebee-89ca-4a18-8f14-0c5624dc08dd
2025-10-23 16:35:39,532 - DEBUG - ==>Verifying data for policy with id: f0c23b3b-7593-46e3-b1ba-98fcfb88c3c3, fqn: ['default-domain', 'ctest-TestBasicPolicy-98241888', 'ctest-policy-allow-all-78981338']
2025-10-23 16:35:39,532 - INFO - VN ctest-vn-06150756 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 16:35:39,532 - DEBUG - Verifying the vn in opserver
2025-10-23 16:35:39,532 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98241888:ctest-vn-06150756 virtual network link through opserver 10.0.0.27
2025-10-23 16:35:39,533 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-23 16:35:39,543 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98241888:ctest-vn-06150756', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98241888:ctest-vn-06150756?flat'}
2025-10-23 16:35:39,543 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98241888:ctest-vn-06150756 is found in opserver
2025-10-23 16:35:39,553 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 16:35:39,558 - DEBUG - VRF ids for VN ctest-vn-06150756: {}
2025-10-23 16:35:39,615 - DEBUG - Services list from nova: [