2025-12-09 01:12:22,798 - INFO - Domain Default found not creating
2025-12-09 01:12:22,959 - INFO - Project ctest-TestBasicPolicy-41046661 not found, creating it
2025-12-09 01:12:23,413 - INFO - Created Project:ctest-TestBasicPolicy-41046661, ID : 65121344-ca1f-4fa5-8bd3-ce51a8f06701
2025-12-09 01:12:24,978 - INFO - ================================================================================
2025-12-09 01:12:24,978 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-09 01:12:24,978 - 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-12-09 01:12:25,232 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2025-12-09 01:12:25,232 - INFO - Initial checks done. Running the testcase now
2025-12-09 01:12:25,232 - INFO -
2025-12-09 01:12:25,845 - DEBUG - Response for create_network : {'network': {'id': 'a6baad1f-10b4-4ada-b35c-ea22f4f4479c', 'name': 'ctest-vn-75342431', 'tenant_id': '65121344ca1f4fa58bd3ce51a8f06701', 'project_id': '65121344ca1f4fa58bd3ce51a8f06701', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41046661', 'ctest-vn-75342431'], 'port_security_enabled': True, 'description': ''}}
2025-12-09 01:12:26,064 - DEBUG - Response for create_subnet : {'subnet': {'id': '71476bcb-495c-4994-b337-b88e3753f2a7', 'name': '', 'tenant_id': '65121344ca1f4fa58bd3ce51a8f06701', 'network_id': 'a6baad1f-10b4-4ada-b35c-ea22f4f4479c', 'ip_version': 4, 'cidr': '88.252.20.192/26', 'allocation_pools': [{'start': '88.252.20.194', 'end': '88.252.20.254'}], 'gateway_ip': '88.252.20.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.252.20.194', 'tags': [], 'project_id': '65121344ca1f4fa58bd3ce51a8f06701'}}
2025-12-09 01:12:26,082 - INFO - Created VN ctest-vn-75342431
2025-12-09 01:12:26,135 - DEBUG - VN ctest-vn-75342431 UUID is a6baad1f-10b4-4ada-b35c-ea22f4f4479c
2025-12-09 01:12:26,446 - DEBUG - Response for create_network : {'network': {'id': '0f7788d2-5bc7-44f2-8df4-e7a853069544', 'name': 'ctest-vn-04420513', 'tenant_id': '65121344ca1f4fa58bd3ce51a8f06701', 'project_id': '65121344ca1f4fa58bd3ce51a8f06701', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41046661', 'ctest-vn-04420513'], 'port_security_enabled': True, 'description': ''}}
2025-12-09 01:12:26,639 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c17e0c36-e6df-4b57-8b7d-3ffbc086bdcc', 'name': '', 'tenant_id': '65121344ca1f4fa58bd3ce51a8f06701', 'network_id': '0f7788d2-5bc7-44f2-8df4-e7a853069544', 'ip_version': 4, 'cidr': '123.145.242.128/26', 'allocation_pools': [{'start': '123.145.242.130', 'end': '123.145.242.190'}], 'gateway_ip': '123.145.242.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.145.242.130', 'tags': [], 'project_id': '65121344ca1f4fa58bd3ce51a8f06701'}}
2025-12-09 01:12:26,659 - INFO - Created VN ctest-vn-04420513
2025-12-09 01:12:26,715 - DEBUG - VN ctest-vn-04420513 UUID is 0f7788d2-5bc7-44f2-8df4-e7a853069544
2025-12-09 01:12:26,871 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41046661:ctest-vn-75342431, 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-41046661:ctest-vn-04420513, 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-12-09 01:12:27,161 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a6baad1f-10b4-4ada-b35c-ea22f4f4479c', 'name': 'ctest-vn-75342431', 'tenant_id': '65121344ca1f4fa58bd3ce51a8f06701', 'project_id': '65121344ca1f4fa58bd3ce51a8f06701', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['71476bcb-495c-4994-b337-b88e3753f2a7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41046661', 'ctest-vn-75342431'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41046661', 'ctest-policy-allow-all-50834474']], 'subnet_ipam': [{'subnet_cidr': '88.252.20.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-09 01:12:27,384 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f7788d2-5bc7-44f2-8df4-e7a853069544', 'name': 'ctest-vn-04420513', 'tenant_id': '65121344ca1f4fa58bd3ce51a8f06701', 'project_id': '65121344ca1f4fa58bd3ce51a8f06701', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c17e0c36-e6df-4b57-8b7d-3ffbc086bdcc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41046661', 'ctest-vn-04420513'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41046661', 'ctest-policy-allow-all-50834474']], 'subnet_ipam': [{'subnet_cidr': '123.145.242.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-09 01:12:27,527 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 01:12:27,869 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 01:12:27,900 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1b1f41bf-8a9d-4711-9531-5e11f20790f0
2025-12-09 01:12:27,911 - DEBUG - Requesting: http://10.0.0.38:8082/project/65121344-ca1f-4fa5-8bd3-ce51a8f06701
2025-12-09 01:12:27,985 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a6baad1f-10b4-4ada-b35c-ea22f4f4479c
2025-12-09 01:12:27,997 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a6baad1f-10b4-4ada-b35c-ea22f4f4479c
2025-12-09 01:12:28,006 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4ad7819f-17ce-4ad6-854d-351c79647bde
2025-12-09 01:12:28,012 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4ad7819f-17ce-4ad6-854d-351c79647bde
2025-12-09 01:12:28,018 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/26b76710-865a-4d29-b3fb-f3f3d43c490f
2025-12-09 01:12:28,024 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-09 01:12:28,024 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a6baad1f-10b4-4ada-b35c-ea22f4f4479c
2025-12-09 01:12:28,032 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4ad7819f-17ce-4ad6-854d-351c79647bde
2025-12-09 01:12:28,046 - INFO - Verified VN network id 11 for VN a6baad1f-10b4-4ada-b35c-ea22f4f4479c
2025-12-09 01:12:28,046 - INFO - Verifications in API Server for VN ctest-vn-75342431 passed
2025-12-09 01:12:28,046 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a6baad1f-10b4-4ada-b35c-ea22f4f4479c
2025-12-09 01:12:28,055 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4ad7819f-17ce-4ad6-854d-351c79647bde
2025-12-09 01:12:28,062 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4ad7819f-17ce-4ad6-854d-351c79647bde
2025-12-09 01:12:28,069 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/26b76710-865a-4d29-b3fb-f3f3d43c490f
2025-12-09 01:12:28,079 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41046661:ctest-vn-75342431', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41046661', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12014105304900061914', 'uuid-lslong': '12924462466505918364'}, 'enable': 'true', 'created': '2025-12-09T01:12:25', 'last-modified': '2025-12-09T01:12:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.944074'}
2025-12-09 01:12:28,087 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-09 01:12:28,087 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75342431 passed
2025-12-09 01:12:28,087 - DEBUG - ====Verifying policy data for ctest-vn-75342431 in API_Server ======
2025-12-09 01:12:28,087 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 01:12:28,092 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1b1f41bf-8a9d-4711-9531-5e11f20790f0
2025-12-09 01:12:28,102 - DEBUG - Requesting: http://10.0.0.38:8082/project/65121344-ca1f-4fa5-8bd3-ce51a8f06701
2025-12-09 01:12:28,173 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a6baad1f-10b4-4ada-b35c-ea22f4f4479c
2025-12-09 01:12:28,181 - DEBUG - ==>Verifying data for policy with id: b4dc1bbe-d4fe-4ecf-8566-6bb33cc33aef, fqn: ['default-domain', 'ctest-TestBasicPolicy-41046661', 'ctest-policy-allow-all-50834474']
2025-12-09 01:12:28,181 - INFO - VN ctest-vn-75342431 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-09 01:12:28,181 - DEBUG - Verifying the vn in opserver
2025-12-09 01:12:28,181 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41046661:ctest-vn-75342431 virtual network link through opserver 10.0.0.38
2025-12-09 01:12:28,181 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-09 01:12:28,514 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-09 01:12:28,575 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41046661:ctest-vn-75342431', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41046661:ctest-vn-75342431?flat'}
2025-12-09 01:12:28,575 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41046661:ctest-vn-75342431 is found in opserver
2025-12-09 01:12:28,586 - DEBUG - Do not have enough data to verify VN in agent
2025-12-09 01:12:28,590 - DEBUG - VRF ids for VN ctest-vn-75342431: {}
2025-12-09 01:12:28,590 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 01:12:28,595 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1b1f41bf-8a9d-4711-9531-5e11f20790f0
2025-12-09 01:12:28,605 - DEBUG - Requesting: http://10.0.0.38:8082/project/65121344-ca1f-4fa5-8bd3-ce51a8f06701
2025-12-09 01:12:28,672 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0f7788d2-5bc7-44f2-8df4-e7a853069544
2025-12-09 01:12:28,683 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0f7788d2-5bc7-44f2-8df4-e7a853069544
2025-12-09 01:12:28,691 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5d951fac-f461-42d6-9241-56991650b09b
2025-12-09 01:12:28,697 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5d951fac-f461-42d6-9241-56991650b09b
2025-12-09 01:12:28,702 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f8f74a6c-720d-4d01-93eb-8ba0e72e38aa
2025-12-09 01:12:28,708 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-09 01:12:28,708 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0f7788d2-5bc7-44f2-8df4-e7a853069544
2025-12-09 01:12:28,716 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5d951fac-f461-42d6-9241-56991650b09b
2025-12-09 01:12:28,728 - INFO - Verified VN network id 12 for VN 0f7788d2-5bc7-44f2-8df4-e7a853069544
2025-12-09 01:12:28,728 - INFO - Verifications in API Server for VN ctest-vn-04420513 passed
2025-12-09 01:12:28,728 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0f7788d2-5bc7-44f2-8df4-e7a853069544
2025-12-09 01:12:28,736 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5d951fac-f461-42d6-9241-56991650b09b
2025-12-09 01:12:28,742 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5d951fac-f461-42d6-9241-56991650b09b
2025-12-09 01:12:28,748 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f8f74a6c-720d-4d01-93eb-8ba0e72e38aa
2025-12-09 01:12:28,758 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41046661:ctest-vn-04420513', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41046661', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1114509869861782770', 'uuid-lslong': '10229055363798701380'}, 'enable': 'true', 'created': '2025-12-09T01:12:26', 'last-modified': '2025-12-09T01:12:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.395519'}
2025-12-09 01:12:28,764 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-09 01:12:28,764 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04420513 passed
2025-12-09 01:12:28,764 - DEBUG - ====Verifying policy data for ctest-vn-04420513 in API_Server ======
2025-12-09 01:12:28,764 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 01:12:28,769 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1b1f41bf-8a9d-4711-9531-5e11f20790f0
2025-12-09 01:12:28,779 - DEBUG - Requesting: http://10.0.0.38:8082/project/65121344-ca1f-4fa5-8bd3-ce51a8f06701
2025-12-09 01:12:28,849 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0f7788d2-5bc7-44f2-8df4-e7a853069544
2025-12-09 01:12:28,860 - DEBUG - ==>Verifying data for policy with id: b4dc1bbe-d4fe-4ecf-8566-6bb33cc33aef, fqn: ['default-domain', 'ctest-TestBasicPolicy-41046661', 'ctest-policy-allow-all-50834474']
2025-12-09 01:12:28,860 - INFO - VN ctest-vn-04420513 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-09 01:12:28,860 - DEBUG - Verifying the vn in opserver
2025-12-09 01:12:28,860 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41046661:ctest-vn-04420513 virtual network link through opserver 10.0.0.38
2025-12-09 01:12:28,860 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-09 01:12:28,870 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41046661:ctest-vn-04420513', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41046661:ctest-vn-04420513?flat'}
2025-12-09 01:12:28,870 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41046661:ctest-vn-04420513 is found in opserver
2025-12-09 01:12:28,879 - DEBUG - Do not have enough data to verify VN in agent
2025-12-09 01:12:28,884 - DEBUG - VRF ids for VN ctest-vn-04420513: {}
2025-12-09 01:12:28,941 - DEBUG - Services list from nova: [