2025-11-14 07:52:39,265 - INFO - Domain Default found not creating
2025-11-14 07:52:39,423 - INFO - Project ctest-TestBasicPolicy-82097730 not found, creating it
2025-11-14 07:52:39,880 - INFO - Created Project:ctest-TestBasicPolicy-82097730, ID : a7418c5e-ab9d-4234-ba79-58c3536490fc
2025-11-14 07:52:41,500 - INFO - ================================================================================
2025-11-14 07:52:41,500 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-14 07:52:41,500 - 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-14 07:52:41,765 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-11-14 07:52:41,765 - INFO - Initial checks done. Running the testcase now
2025-11-14 07:52:41,765 - INFO -
2025-11-14 07:52:42,378 - DEBUG - Response for create_network : {'network': {'id': '5723d887-e64a-4c53-9380-b46febd56501', 'name': 'ctest-vn-80468343', 'tenant_id': 'a7418c5eab9d4234ba7958c3536490fc', 'project_id': 'a7418c5eab9d4234ba7958c3536490fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82097730', 'ctest-vn-80468343'], 'port_security_enabled': True, 'description': ''}}
2025-11-14 07:52:42,581 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b65cc09f-4f22-4bb7-96a3-b74acab997c5', 'name': '', 'tenant_id': 'a7418c5eab9d4234ba7958c3536490fc', 'network_id': '5723d887-e64a-4c53-9380-b46febd56501', 'ip_version': 4, 'cidr': '35.150.240.0/26', 'allocation_pools': [{'start': '35.150.240.2', 'end': '35.150.240.62'}], 'gateway_ip': '35.150.240.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.150.240.2', 'tags': [], 'project_id': 'a7418c5eab9d4234ba7958c3536490fc'}}
2025-11-14 07:52:42,608 - INFO - Created VN ctest-vn-80468343
2025-11-14 07:52:42,662 - DEBUG - VN ctest-vn-80468343 UUID is 5723d887-e64a-4c53-9380-b46febd56501
2025-11-14 07:52:42,971 - DEBUG - Response for create_network : {'network': {'id': 'b57ec727-f9c8-414e-bcfd-b320ed8cfde2', 'name': 'ctest-vn-99135427', 'tenant_id': 'a7418c5eab9d4234ba7958c3536490fc', 'project_id': 'a7418c5eab9d4234ba7958c3536490fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82097730', 'ctest-vn-99135427'], 'port_security_enabled': True, 'description': ''}}
2025-11-14 07:52:43,130 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b32eb26-8708-4b1a-86df-9bab5602a2bf', 'name': '', 'tenant_id': 'a7418c5eab9d4234ba7958c3536490fc', 'network_id': 'b57ec727-f9c8-414e-bcfd-b320ed8cfde2', 'ip_version': 4, 'cidr': '86.106.189.0/26', 'allocation_pools': [{'start': '86.106.189.2', 'end': '86.106.189.62'}], 'gateway_ip': '86.106.189.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.106.189.2', 'tags': [], 'project_id': 'a7418c5eab9d4234ba7958c3536490fc'}}
2025-11-14 07:52:43,151 - INFO - Created VN ctest-vn-99135427
2025-11-14 07:52:43,206 - DEBUG - VN ctest-vn-99135427 UUID is b57ec727-f9c8-414e-bcfd-b320ed8cfde2
2025-11-14 07:52:43,358 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82097730:ctest-vn-80468343, 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-82097730:ctest-vn-99135427, 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-14 07:52:43,669 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5723d887-e64a-4c53-9380-b46febd56501', 'name': 'ctest-vn-80468343', 'tenant_id': 'a7418c5eab9d4234ba7958c3536490fc', 'project_id': 'a7418c5eab9d4234ba7958c3536490fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b65cc09f-4f22-4bb7-96a3-b74acab997c5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82097730', 'ctest-vn-80468343'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82097730', 'ctest-policy-allow-all-33602277']], 'subnet_ipam': [{'subnet_cidr': '35.150.240.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-14 07:52:43,892 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b57ec727-f9c8-414e-bcfd-b320ed8cfde2', 'name': 'ctest-vn-99135427', 'tenant_id': 'a7418c5eab9d4234ba7958c3536490fc', 'project_id': 'a7418c5eab9d4234ba7958c3536490fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b32eb26-8708-4b1a-86df-9bab5602a2bf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82097730', 'ctest-vn-99135427'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82097730', 'ctest-policy-allow-all-33602277']], 'subnet_ipam': [{'subnet_cidr': '86.106.189.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-14 07:52:44,054 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-14 07:52:44,384 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-14 07:52:44,414 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8bb30c5f-0428-4214-84fc-6569f7875112
2025-11-14 07:52:44,427 - DEBUG - Requesting: http://10.0.0.50:8082/project/a7418c5e-ab9d-4234-ba79-58c3536490fc
2025-11-14 07:52:44,499 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5723d887-e64a-4c53-9380-b46febd56501
2025-11-14 07:52:44,509 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5723d887-e64a-4c53-9380-b46febd56501
2025-11-14 07:52:44,518 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/11f1bbf3-fe3d-4ba3-bf7c-042b08daa97e
2025-11-14 07:52:44,524 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/11f1bbf3-fe3d-4ba3-bf7c-042b08daa97e
2025-11-14 07:52:44,530 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1681e853-9f6b-4d99-acf7-a79097930655
2025-11-14 07:52:44,535 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-14 07:52:44,535 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5723d887-e64a-4c53-9380-b46febd56501
2025-11-14 07:52:44,544 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/11f1bbf3-fe3d-4ba3-bf7c-042b08daa97e
2025-11-14 07:52:44,556 - INFO - Verified VN network id 10 for VN 5723d887-e64a-4c53-9380-b46febd56501
2025-11-14 07:52:44,556 - INFO - Verifications in API Server for VN ctest-vn-80468343 passed
2025-11-14 07:52:44,556 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5723d887-e64a-4c53-9380-b46febd56501
2025-11-14 07:52:44,564 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/11f1bbf3-fe3d-4ba3-bf7c-042b08daa97e
2025-11-14 07:52:44,570 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/11f1bbf3-fe3d-4ba3-bf7c-042b08daa97e
2025-11-14 07:52:44,575 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1681e853-9f6b-4d99-acf7-a79097930655
2025-11-14 07:52:44,586 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82097730:ctest-vn-80468343', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82097730', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6279100383680416851', 'uuid-lslong': '10628693513385370881'}, 'enable': 'true', 'created': '2025-11-14T07:52:42', 'last-modified': '2025-11-14T07:52:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.943592'}
2025-11-14 07:52:44,591 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-14 07:52:44,591 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80468343 passed
2025-11-14 07:52:44,592 - DEBUG - ====Verifying policy data for ctest-vn-80468343 in API_Server ======
2025-11-14 07:52:44,592 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-14 07:52:44,596 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8bb30c5f-0428-4214-84fc-6569f7875112
2025-11-14 07:52:44,606 - DEBUG - Requesting: http://10.0.0.50:8082/project/a7418c5e-ab9d-4234-ba79-58c3536490fc
2025-11-14 07:52:44,675 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5723d887-e64a-4c53-9380-b46febd56501
2025-11-14 07:52:44,683 - DEBUG - ==>Verifying data for policy with id: 1bfb0643-cc51-4e60-ba37-a3979498b5c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-82097730', 'ctest-policy-allow-all-33602277']
2025-11-14 07:52:44,683 - INFO - VN ctest-vn-80468343 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-14 07:52:44,683 - DEBUG - Verifying the vn in opserver
2025-11-14 07:52:44,683 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82097730:ctest-vn-80468343 virtual network link through opserver 10.0.0.50
2025-11-14 07:52:44,684 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-14 07:52:45,020 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-14 07:52:45,087 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82097730:ctest-vn-80468343', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82097730:ctest-vn-80468343?flat'}
2025-11-14 07:52:45,087 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82097730:ctest-vn-80468343 is found in opserver
2025-11-14 07:52:45,096 - DEBUG - Do not have enough data to verify VN in agent
2025-11-14 07:52:45,101 - DEBUG - VRF ids for VN ctest-vn-80468343: {}
2025-11-14 07:52:45,101 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-14 07:52:45,106 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8bb30c5f-0428-4214-84fc-6569f7875112
2025-11-14 07:52:45,116 - DEBUG - Requesting: http://10.0.0.50:8082/project/a7418c5e-ab9d-4234-ba79-58c3536490fc
2025-11-14 07:52:45,189 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b57ec727-f9c8-414e-bcfd-b320ed8cfde2
2025-11-14 07:52:45,202 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b57ec727-f9c8-414e-bcfd-b320ed8cfde2
2025-11-14 07:52:45,211 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/feb16eb0-f5ee-485a-8563-bbedc0393158
2025-11-14 07:52:45,219 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/feb16eb0-f5ee-485a-8563-bbedc0393158
2025-11-14 07:52:45,226 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4d84ec4e-12fa-478f-a4f0-897f465e965d
2025-11-14 07:52:45,232 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-14 07:52:45,232 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b57ec727-f9c8-414e-bcfd-b320ed8cfde2
2025-11-14 07:52:45,241 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/feb16eb0-f5ee-485a-8563-bbedc0393158
2025-11-14 07:52:45,255 - INFO - Verified VN network id 11 for VN b57ec727-f9c8-414e-bcfd-b320ed8cfde2
2025-11-14 07:52:45,255 - INFO - Verifications in API Server for VN ctest-vn-99135427 passed
2025-11-14 07:52:45,255 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b57ec727-f9c8-414e-bcfd-b320ed8cfde2
2025-11-14 07:52:45,264 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/feb16eb0-f5ee-485a-8563-bbedc0393158
2025-11-14 07:52:45,271 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/feb16eb0-f5ee-485a-8563-bbedc0393158
2025-11-14 07:52:45,278 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4d84ec4e-12fa-478f-a4f0-897f465e965d
2025-11-14 07:52:45,289 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82097730:ctest-vn-99135427', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82097730', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13078109342438801742', 'uuid-lslong': '13618237802244013538'}, 'enable': 'true', 'created': '2025-11-14T07:52:42', 'last-modified': '2025-11-14T07:52:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.423384'}
2025-11-14 07:52:45,296 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-14 07:52:45,296 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99135427 passed
2025-11-14 07:52:45,296 - DEBUG - ====Verifying policy data for ctest-vn-99135427 in API_Server ======
2025-11-14 07:52:45,296 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-14 07:52:45,302 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8bb30c5f-0428-4214-84fc-6569f7875112
2025-11-14 07:52:45,311 - DEBUG - Requesting: http://10.0.0.50:8082/project/a7418c5e-ab9d-4234-ba79-58c3536490fc
2025-11-14 07:52:45,382 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b57ec727-f9c8-414e-bcfd-b320ed8cfde2
2025-11-14 07:52:45,392 - DEBUG - ==>Verifying data for policy with id: 1bfb0643-cc51-4e60-ba37-a3979498b5c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-82097730', 'ctest-policy-allow-all-33602277']
2025-11-14 07:52:45,392 - INFO - VN ctest-vn-99135427 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-14 07:52:45,392 - DEBUG - Verifying the vn in opserver
2025-11-14 07:52:45,392 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82097730:ctest-vn-99135427 virtual network link through opserver 10.0.0.50
2025-11-14 07:52:45,392 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-14 07:52:45,402 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82097730:ctest-vn-99135427', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82097730:ctest-vn-99135427?flat'}
2025-11-14 07:52:45,402 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82097730:ctest-vn-99135427 is found in opserver
2025-11-14 07:52:45,411 - DEBUG - Do not have enough data to verify VN in agent
2025-11-14 07:52:45,415 - DEBUG - VRF ids for VN ctest-vn-99135427: {}
2025-11-14 07:52:45,474 - DEBUG - Services list from nova: [