2025-10-09 05:52:05,339 - INFO - Domain Default found not creating
2025-10-09 05:52:05,504 - INFO - Project ctest-TestBasicPolicy-32907526 not found, creating it
2025-10-09 05:52:05,951 - INFO - Created Project:ctest-TestBasicPolicy-32907526, ID : 6100fb29-7d23-4e5f-bc29-2186c4fa9220
2025-10-09 05:52:07,550 - INFO - ================================================================================
2025-10-09 05:52:07,550 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 05:52:07,550 - 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-09 05:52:07,805 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-09 05:52:07,805 - INFO - Initial checks done. Running the testcase now
2025-10-09 05:52:07,805 - INFO -
2025-10-09 05:52:08,402 - DEBUG - Response for create_network : {'network': {'id': '877c6bde-01f6-4eaf-9379-9ad2ecbba2b7', 'name': 'ctest-vn-26977935', 'tenant_id': '6100fb297d234e5fbc292186c4fa9220', 'project_id': '6100fb297d234e5fbc292186c4fa9220', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32907526', 'ctest-vn-26977935'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 05:52:08,592 - DEBUG - Response for create_subnet : {'subnet': {'id': '1a959e34-d359-40a0-9f5b-e4f240a65b3b', 'name': '', 'tenant_id': '6100fb297d234e5fbc292186c4fa9220', 'network_id': '877c6bde-01f6-4eaf-9379-9ad2ecbba2b7', 'ip_version': 4, 'cidr': '209.75.21.192/26', 'allocation_pools': [{'start': '209.75.21.194', 'end': '209.75.21.254'}], 'gateway_ip': '209.75.21.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.75.21.194', 'tags': [], 'project_id': '6100fb297d234e5fbc292186c4fa9220'}}
2025-10-09 05:52:08,609 - INFO - Created VN ctest-vn-26977935
2025-10-09 05:52:08,661 - DEBUG - VN ctest-vn-26977935 UUID is 877c6bde-01f6-4eaf-9379-9ad2ecbba2b7
2025-10-09 05:52:08,949 - DEBUG - Response for create_network : {'network': {'id': 'f81a529f-de2c-4a2d-a39b-333e1d71d2ad', 'name': 'ctest-vn-39839078', 'tenant_id': '6100fb297d234e5fbc292186c4fa9220', 'project_id': '6100fb297d234e5fbc292186c4fa9220', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32907526', 'ctest-vn-39839078'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 05:52:09,156 - DEBUG - Response for create_subnet : {'subnet': {'id': '7b00e4a1-0cc8-4bac-b8c7-8fe8d69ea5b6', 'name': '', 'tenant_id': '6100fb297d234e5fbc292186c4fa9220', 'network_id': 'f81a529f-de2c-4a2d-a39b-333e1d71d2ad', 'ip_version': 4, 'cidr': '205.62.141.64/26', 'allocation_pools': [{'start': '205.62.141.66', 'end': '205.62.141.126'}], 'gateway_ip': '205.62.141.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.62.141.66', 'tags': [], 'project_id': '6100fb297d234e5fbc292186c4fa9220'}}
2025-10-09 05:52:09,175 - INFO - Created VN ctest-vn-39839078
2025-10-09 05:52:09,225 - DEBUG - VN ctest-vn-39839078 UUID is f81a529f-de2c-4a2d-a39b-333e1d71d2ad
2025-10-09 05:52:09,405 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32907526:ctest-vn-26977935, 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-32907526:ctest-vn-39839078, 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-09 05:52:09,702 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '877c6bde-01f6-4eaf-9379-9ad2ecbba2b7', 'name': 'ctest-vn-26977935', 'tenant_id': '6100fb297d234e5fbc292186c4fa9220', 'project_id': '6100fb297d234e5fbc292186c4fa9220', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1a959e34-d359-40a0-9f5b-e4f240a65b3b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32907526', 'ctest-vn-26977935'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32907526', 'ctest-policy-allow-all-48281824']], 'subnet_ipam': [{'subnet_cidr': '209.75.21.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 05:52:09,938 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f81a529f-de2c-4a2d-a39b-333e1d71d2ad', 'name': 'ctest-vn-39839078', 'tenant_id': '6100fb297d234e5fbc292186c4fa9220', 'project_id': '6100fb297d234e5fbc292186c4fa9220', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7b00e4a1-0cc8-4bac-b8c7-8fe8d69ea5b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32907526', 'ctest-vn-39839078'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32907526', 'ctest-policy-allow-all-48281824']], 'subnet_ipam': [{'subnet_cidr': '205.62.141.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 05:52:10,109 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-09 05:52:10,449 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-09 05:52:10,479 - DEBUG - Requesting: http://10.0.0.254:8082/domain/31bb2103-3d2c-49bd-bab1-511d5dd1d4b3
2025-10-09 05:52:10,494 - DEBUG - Requesting: http://10.0.0.254:8082/project/6100fb29-7d23-4e5f-bc29-2186c4fa9220
2025-10-09 05:52:10,566 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/877c6bde-01f6-4eaf-9379-9ad2ecbba2b7
2025-10-09 05:52:10,576 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/877c6bde-01f6-4eaf-9379-9ad2ecbba2b7
2025-10-09 05:52:10,584 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f71f66d3-dff1-4108-8cb7-b247dd83ee8b
2025-10-09 05:52:10,591 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f71f66d3-dff1-4108-8cb7-b247dd83ee8b
2025-10-09 05:52:10,597 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4779b86a-83fd-40da-a94f-1c534cdeacd6
2025-10-09 05:52:10,603 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 05:52:10,603 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/877c6bde-01f6-4eaf-9379-9ad2ecbba2b7
2025-10-09 05:52:10,611 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f71f66d3-dff1-4108-8cb7-b247dd83ee8b
2025-10-09 05:52:10,625 - INFO - Verified VN network id 11 for VN 877c6bde-01f6-4eaf-9379-9ad2ecbba2b7
2025-10-09 05:52:10,625 - INFO - Verifications in API Server for VN ctest-vn-26977935 passed
2025-10-09 05:52:10,625 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/877c6bde-01f6-4eaf-9379-9ad2ecbba2b7
2025-10-09 05:52:10,634 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f71f66d3-dff1-4108-8cb7-b247dd83ee8b
2025-10-09 05:52:10,641 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f71f66d3-dff1-4108-8cb7-b247dd83ee8b
2025-10-09 05:52:10,647 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4779b86a-83fd-40da-a94f-1c534cdeacd6
2025-10-09 05:52:10,658 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32907526:ctest-vn-26977935', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32907526', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9762796693492223663', 'uuid-lslong': '10626695026462925495'}, 'enable': 'true', 'created': '2025-10-09T05:52:08', 'last-modified': '2025-10-09T05:52:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.980619'}
2025-10-09 05:52:10,663 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 05:52:10,663 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26977935 passed
2025-10-09 05:52:10,664 - DEBUG - ====Verifying policy data for ctest-vn-26977935 in API_Server ======
2025-10-09 05:52:10,664 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-09 05:52:10,669 - DEBUG - Requesting: http://10.0.0.254:8082/domain/31bb2103-3d2c-49bd-bab1-511d5dd1d4b3
2025-10-09 05:52:10,681 - DEBUG - Requesting: http://10.0.0.254:8082/project/6100fb29-7d23-4e5f-bc29-2186c4fa9220
2025-10-09 05:52:10,751 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/877c6bde-01f6-4eaf-9379-9ad2ecbba2b7
2025-10-09 05:52:10,761 - DEBUG - ==>Verifying data for policy with id: 8016df6b-9673-47c2-a13d-586fbac1b2f9, fqn: ['default-domain', 'ctest-TestBasicPolicy-32907526', 'ctest-policy-allow-all-48281824']
2025-10-09 05:52:10,761 - INFO - VN ctest-vn-26977935 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 05:52:10,761 - DEBUG - Verifying the vn in opserver
2025-10-09 05:52:10,761 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32907526:ctest-vn-26977935 virtual network link through opserver 10.0.0.254
2025-10-09 05:52:10,761 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-09 05:52:11,095 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-09 05:52:11,151 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32907526:ctest-vn-26977935', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32907526:ctest-vn-26977935?flat'}
2025-10-09 05:52:11,151 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32907526:ctest-vn-26977935 is found in opserver
2025-10-09 05:52:11,160 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 05:52:11,165 - DEBUG - VRF ids for VN ctest-vn-26977935: {}
2025-10-09 05:52:11,165 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-09 05:52:11,171 - DEBUG - Requesting: http://10.0.0.254:8082/domain/31bb2103-3d2c-49bd-bab1-511d5dd1d4b3
2025-10-09 05:52:11,182 - DEBUG - Requesting: http://10.0.0.254:8082/project/6100fb29-7d23-4e5f-bc29-2186c4fa9220
2025-10-09 05:52:11,254 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f81a529f-de2c-4a2d-a39b-333e1d71d2ad
2025-10-09 05:52:11,266 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f81a529f-de2c-4a2d-a39b-333e1d71d2ad
2025-10-09 05:52:11,276 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d0b3b297-88f8-4228-9c53-63144ed07c86
2025-10-09 05:52:11,283 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d0b3b297-88f8-4228-9c53-63144ed07c86
2025-10-09 05:52:11,291 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ad86612b-68c4-4ed4-8d12-2ea7044b7a6b
2025-10-09 05:52:11,299 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 05:52:11,299 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f81a529f-de2c-4a2d-a39b-333e1d71d2ad
2025-10-09 05:52:11,308 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d0b3b297-88f8-4228-9c53-63144ed07c86
2025-10-09 05:52:11,324 - INFO - Verified VN network id 12 for VN f81a529f-de2c-4a2d-a39b-333e1d71d2ad
2025-10-09 05:52:11,324 - INFO - Verifications in API Server for VN ctest-vn-39839078 passed
2025-10-09 05:52:11,325 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f81a529f-de2c-4a2d-a39b-333e1d71d2ad
2025-10-09 05:52:11,335 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d0b3b297-88f8-4228-9c53-63144ed07c86
2025-10-09 05:52:11,342 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d0b3b297-88f8-4228-9c53-63144ed07c86
2025-10-09 05:52:11,348 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ad86612b-68c4-4ed4-8d12-2ea7044b7a6b
2025-10-09 05:52:11,361 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32907526:ctest-vn-39839078', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32907526', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17877692517381327405', 'uuid-lslong': '11789072791447392941'}, 'enable': 'true', 'created': '2025-10-09T05:52:08', 'last-modified': '2025-10-09T05:52:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.439867'}
2025-10-09 05:52:11,366 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 05:52:11,367 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39839078 passed
2025-10-09 05:52:11,367 - DEBUG - ====Verifying policy data for ctest-vn-39839078 in API_Server ======
2025-10-09 05:52:11,367 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-09 05:52:11,373 - DEBUG - Requesting: http://10.0.0.254:8082/domain/31bb2103-3d2c-49bd-bab1-511d5dd1d4b3
2025-10-09 05:52:11,385 - DEBUG - Requesting: http://10.0.0.254:8082/project/6100fb29-7d23-4e5f-bc29-2186c4fa9220
2025-10-09 05:52:11,457 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f81a529f-de2c-4a2d-a39b-333e1d71d2ad
2025-10-09 05:52:11,466 - DEBUG - ==>Verifying data for policy with id: 8016df6b-9673-47c2-a13d-586fbac1b2f9, fqn: ['default-domain', 'ctest-TestBasicPolicy-32907526', 'ctest-policy-allow-all-48281824']
2025-10-09 05:52:11,466 - INFO - VN ctest-vn-39839078 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 05:52:11,466 - DEBUG - Verifying the vn in opserver
2025-10-09 05:52:11,466 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32907526:ctest-vn-39839078 virtual network link through opserver 10.0.0.254
2025-10-09 05:52:11,466 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-09 05:52:11,476 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32907526:ctest-vn-39839078', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32907526:ctest-vn-39839078?flat'}
2025-10-09 05:52:11,477 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32907526:ctest-vn-39839078 is found in opserver
2025-10-09 05:52:11,487 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 05:52:11,493 - DEBUG - VRF ids for VN ctest-vn-39839078: {}
2025-10-09 05:52:11,556 - DEBUG - Services list from nova: [