2025-11-13 12:47:39,208 - INFO - Domain Default found not creating
2025-11-13 12:47:39,372 - INFO - Project ctest-TestBasicPolicy-67869927 not found, creating it
2025-11-13 12:47:39,828 - INFO - Created Project:ctest-TestBasicPolicy-67869927, ID : 204c176e-50ab-4db4-a609-454aa92afbd0
2025-11-13 12:47:41,320 - INFO - ================================================================================
2025-11-13 12:47:41,320 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-13 12:47:41,320 - 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-11-13 12:47:41,576 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-11-13 12:47:41,576 - INFO - Initial checks done. Running the testcase now
2025-11-13 12:47:41,576 - INFO -
2025-11-13 12:47:42,138 - DEBUG - Response for create_network : {'network': {'id': 'f796d3a7-62ee-499d-b3f8-06f0b1e06cea', 'name': 'ctest-vn-15517089', 'tenant_id': '204c176e50ab4db4a609454aa92afbd0', 'project_id': '204c176e50ab4db4a609454aa92afbd0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67869927', 'ctest-vn-15517089'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 12:47:42,319 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc102a75-f3c7-463c-86fd-7279443dbc76', 'name': '', 'tenant_id': '204c176e50ab4db4a609454aa92afbd0', 'network_id': 'f796d3a7-62ee-499d-b3f8-06f0b1e06cea', 'ip_version': 4, 'cidr': '23.151.184.0/26', 'allocation_pools': [{'start': '23.151.184.2', 'end': '23.151.184.62'}], 'gateway_ip': '23.151.184.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.151.184.2', 'tags': [], 'project_id': '204c176e50ab4db4a609454aa92afbd0'}}
2025-11-13 12:47:42,337 - INFO - Created VN ctest-vn-15517089
2025-11-13 12:47:42,390 - DEBUG - VN ctest-vn-15517089 UUID is f796d3a7-62ee-499d-b3f8-06f0b1e06cea
2025-11-13 12:47:42,675 - DEBUG - Response for create_network : {'network': {'id': '60b7762d-2290-4427-bc7a-a4436ba1b7ad', 'name': 'ctest-vn-41468858', 'tenant_id': '204c176e50ab4db4a609454aa92afbd0', 'project_id': '204c176e50ab4db4a609454aa92afbd0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67869927', 'ctest-vn-41468858'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 12:47:42,858 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3bf7314-2530-4fa8-9d90-c43b6f0e798c', 'name': '', 'tenant_id': '204c176e50ab4db4a609454aa92afbd0', 'network_id': '60b7762d-2290-4427-bc7a-a4436ba1b7ad', 'ip_version': 4, 'cidr': '167.159.46.64/26', 'allocation_pools': [{'start': '167.159.46.66', 'end': '167.159.46.126'}], 'gateway_ip': '167.159.46.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.159.46.66', 'tags': [], 'project_id': '204c176e50ab4db4a609454aa92afbd0'}}
2025-11-13 12:47:42,874 - INFO - Created VN ctest-vn-41468858
2025-11-13 12:47:42,926 - DEBUG - VN ctest-vn-41468858 UUID is 60b7762d-2290-4427-bc7a-a4436ba1b7ad
2025-11-13 12:47:43,082 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67869927:ctest-vn-15517089, 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-67869927:ctest-vn-41468858, 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-11-13 12:47:43,370 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f796d3a7-62ee-499d-b3f8-06f0b1e06cea', 'name': 'ctest-vn-15517089', 'tenant_id': '204c176e50ab4db4a609454aa92afbd0', 'project_id': '204c176e50ab4db4a609454aa92afbd0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc102a75-f3c7-463c-86fd-7279443dbc76'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67869927', 'ctest-vn-15517089'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67869927', 'ctest-policy-allow-all-97254219']], 'subnet_ipam': [{'subnet_cidr': '23.151.184.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 12:47:43,643 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60b7762d-2290-4427-bc7a-a4436ba1b7ad', 'name': 'ctest-vn-41468858', 'tenant_id': '204c176e50ab4db4a609454aa92afbd0', 'project_id': '204c176e50ab4db4a609454aa92afbd0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a3bf7314-2530-4fa8-9d90-c43b6f0e798c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67869927', 'ctest-vn-41468858'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67869927', 'ctest-policy-allow-all-97254219']], 'subnet_ipam': [{'subnet_cidr': '167.159.46.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 12:47:43,802 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-13 12:47:44,099 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-13 12:47:44,130 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cffd1dc8-b619-4051-90c2-fd7f00aedc9a
2025-11-13 12:47:44,142 - DEBUG - Requesting: http://10.0.0.38:8082/project/204c176e-50ab-4db4-a609-454aa92afbd0
2025-11-13 12:47:44,210 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f796d3a7-62ee-499d-b3f8-06f0b1e06cea
2025-11-13 12:47:44,220 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f796d3a7-62ee-499d-b3f8-06f0b1e06cea
2025-11-13 12:47:44,228 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e4f4d051-293b-4297-a641-367c0875d6b0
2025-11-13 12:47:44,234 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e4f4d051-293b-4297-a641-367c0875d6b0
2025-11-13 12:47:44,240 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/12b8b5fc-8f8b-495f-bb2d-43a083020eed
2025-11-13 12:47:44,246 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 12:47:44,246 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f796d3a7-62ee-499d-b3f8-06f0b1e06cea
2025-11-13 12:47:44,254 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e4f4d051-293b-4297-a641-367c0875d6b0
2025-11-13 12:47:44,267 - INFO - Verified VN network id 11 for VN f796d3a7-62ee-499d-b3f8-06f0b1e06cea
2025-11-13 12:47:44,267 - INFO - Verifications in API Server for VN ctest-vn-15517089 passed
2025-11-13 12:47:44,267 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f796d3a7-62ee-499d-b3f8-06f0b1e06cea
2025-11-13 12:47:44,275 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e4f4d051-293b-4297-a641-367c0875d6b0
2025-11-13 12:47:44,282 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e4f4d051-293b-4297-a641-367c0875d6b0
2025-11-13 12:47:44,288 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/12b8b5fc-8f8b-495f-bb2d-43a083020eed
2025-11-13 12:47:44,298 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67869927:ctest-vn-15517089', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67869927', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17840679689747581341', 'uuid-lslong': '12968122757859536106'}, 'enable': 'true', 'created': '2025-11-13T12:47:42', 'last-modified': '2025-11-13T12:47:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.949481'}
2025-11-13 12:47:44,304 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 12:47:44,304 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15517089 passed
2025-11-13 12:47:44,304 - DEBUG - ====Verifying policy data for ctest-vn-15517089 in API_Server ======
2025-11-13 12:47:44,304 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-13 12:47:44,308 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cffd1dc8-b619-4051-90c2-fd7f00aedc9a
2025-11-13 12:47:44,318 - DEBUG - Requesting: http://10.0.0.38:8082/project/204c176e-50ab-4db4-a609-454aa92afbd0
2025-11-13 12:47:44,389 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f796d3a7-62ee-499d-b3f8-06f0b1e06cea
2025-11-13 12:47:44,398 - DEBUG - ==>Verifying data for policy with id: 1c224257-b96c-46c8-85ec-4f0191d1adf3, fqn: ['default-domain', 'ctest-TestBasicPolicy-67869927', 'ctest-policy-allow-all-97254219']
2025-11-13 12:47:44,398 - INFO - VN ctest-vn-15517089 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 12:47:44,398 - DEBUG - Verifying the vn in opserver
2025-11-13 12:47:44,398 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67869927:ctest-vn-15517089 virtual network link through opserver 10.0.0.38
2025-11-13 12:47:44,398 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-13 12:47:44,687 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-13 12:47:44,742 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67869927:ctest-vn-15517089', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67869927:ctest-vn-15517089?flat'}
2025-11-13 12:47:44,742 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67869927:ctest-vn-15517089 is found in opserver
2025-11-13 12:47:44,752 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 12:47:44,756 - DEBUG - VRF ids for VN ctest-vn-15517089: {}
2025-11-13 12:47:44,756 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-13 12:47:44,761 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cffd1dc8-b619-4051-90c2-fd7f00aedc9a
2025-11-13 12:47:44,771 - DEBUG - Requesting: http://10.0.0.38:8082/project/204c176e-50ab-4db4-a609-454aa92afbd0
2025-11-13 12:47:44,841 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60b7762d-2290-4427-bc7a-a4436ba1b7ad
2025-11-13 12:47:44,852 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60b7762d-2290-4427-bc7a-a4436ba1b7ad
2025-11-13 12:47:44,861 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/feaa4312-58f9-440c-997f-5b6dc5f696d3
2025-11-13 12:47:44,869 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/feaa4312-58f9-440c-997f-5b6dc5f696d3
2025-11-13 12:47:44,876 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ab75738b-dde1-4f0a-904c-1287f68ec07e
2025-11-13 12:47:44,882 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 12:47:44,882 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60b7762d-2290-4427-bc7a-a4436ba1b7ad
2025-11-13 12:47:44,891 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/feaa4312-58f9-440c-997f-5b6dc5f696d3
2025-11-13 12:47:44,903 - INFO - Verified VN network id 12 for VN 60b7762d-2290-4427-bc7a-a4436ba1b7ad
2025-11-13 12:47:44,903 - INFO - Verifications in API Server for VN ctest-vn-41468858 passed
2025-11-13 12:47:44,903 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60b7762d-2290-4427-bc7a-a4436ba1b7ad
2025-11-13 12:47:44,914 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/feaa4312-58f9-440c-997f-5b6dc5f696d3
2025-11-13 12:47:44,920 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/feaa4312-58f9-440c-997f-5b6dc5f696d3
2025-11-13 12:47:44,928 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ab75738b-dde1-4f0a-904c-1287f68ec07e
2025-11-13 12:47:44,940 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67869927:ctest-vn-41468858', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67869927', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6969168884604617767', 'uuid-lslong': '13581348235764676525'}, 'enable': 'true', 'created': '2025-11-13T12:47:42', 'last-modified': '2025-11-13T12:47:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.356777'}
2025-11-13 12:47:44,945 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 12:47:44,946 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41468858 passed
2025-11-13 12:47:44,946 - DEBUG - ====Verifying policy data for ctest-vn-41468858 in API_Server ======
2025-11-13 12:47:44,946 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-13 12:47:44,951 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cffd1dc8-b619-4051-90c2-fd7f00aedc9a
2025-11-13 12:47:44,961 - DEBUG - Requesting: http://10.0.0.38:8082/project/204c176e-50ab-4db4-a609-454aa92afbd0
2025-11-13 12:47:45,031 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60b7762d-2290-4427-bc7a-a4436ba1b7ad
2025-11-13 12:47:45,040 - DEBUG - ==>Verifying data for policy with id: 1c224257-b96c-46c8-85ec-4f0191d1adf3, fqn: ['default-domain', 'ctest-TestBasicPolicy-67869927', 'ctest-policy-allow-all-97254219']
2025-11-13 12:47:45,040 - INFO - VN ctest-vn-41468858 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 12:47:45,040 - DEBUG - Verifying the vn in opserver
2025-11-13 12:47:45,040 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67869927:ctest-vn-41468858 virtual network link through opserver 10.0.0.38
2025-11-13 12:47:45,040 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-13 12:47:45,048 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67869927:ctest-vn-41468858', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67869927:ctest-vn-41468858?flat'}
2025-11-13 12:47:45,049 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67869927:ctest-vn-41468858 is found in opserver
2025-11-13 12:47:45,057 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 12:47:45,061 - DEBUG - VRF ids for VN ctest-vn-41468858: {}
2025-11-13 12:47:45,116 - DEBUG - Services list from nova: [