2025-10-17 21:54:22,930 - INFO - Domain Default found not creating
2025-10-17 21:54:23,259 - INFO - Project ctest-TestBasicPolicy-42877657 not found, creating it
2025-10-17 21:54:23,990 - INFO - Created Project:ctest-TestBasicPolicy-42877657, ID : 8abeef87-e083-47b5-b4d5-66105b5ae62b
2025-10-17 21:54:26,069 - INFO - ================================================================================
2025-10-17 21:54:26,069 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-17 21:54:26,069 - 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-17 21:54:26,391 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-10-17 21:54:26,392 - INFO - Initial checks done. Running the testcase now
2025-10-17 21:54:26,392 - INFO -
2025-10-17 21:54:27,259 - DEBUG - Response for create_network : {'network': {'id': 'b98d0dfb-eb0d-4109-aa7d-62ac72af6a9b', 'name': 'ctest-vn-08665281', 'tenant_id': '8abeef87e08347b5b4d566105b5ae62b', 'project_id': '8abeef87e08347b5b4d566105b5ae62b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42877657', 'ctest-vn-08665281'], 'port_security_enabled': True, 'description': ''}}
2025-10-17 21:54:27,479 - DEBUG - Response for create_subnet : {'subnet': {'id': '98899359-5cc3-4c6e-882b-3a55a2efd527', 'name': '', 'tenant_id': '8abeef87e08347b5b4d566105b5ae62b', 'network_id': 'b98d0dfb-eb0d-4109-aa7d-62ac72af6a9b', 'ip_version': 4, 'cidr': '152.146.97.192/26', 'allocation_pools': [{'start': '152.146.97.194', 'end': '152.146.97.254'}], 'gateway_ip': '152.146.97.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.146.97.194', 'tags': [], 'project_id': '8abeef87e08347b5b4d566105b5ae62b'}}
2025-10-17 21:54:27,510 - INFO - Created VN ctest-vn-08665281
2025-10-17 21:54:27,565 - DEBUG - VN ctest-vn-08665281 UUID is b98d0dfb-eb0d-4109-aa7d-62ac72af6a9b
2025-10-17 21:54:27,948 - DEBUG - Response for create_network : {'network': {'id': '637c14c3-dd0b-4ee8-84f6-6d3d3f08810e', 'name': 'ctest-vn-22490729', 'tenant_id': '8abeef87e08347b5b4d566105b5ae62b', 'project_id': '8abeef87e08347b5b4d566105b5ae62b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42877657', 'ctest-vn-22490729'], 'port_security_enabled': True, 'description': ''}}
2025-10-17 21:54:28,113 - DEBUG - Response for create_subnet : {'subnet': {'id': '275817b3-507f-4707-9a97-51ff471114a1', 'name': '', 'tenant_id': '8abeef87e08347b5b4d566105b5ae62b', 'network_id': '637c14c3-dd0b-4ee8-84f6-6d3d3f08810e', 'ip_version': 4, 'cidr': '15.126.17.128/26', 'allocation_pools': [{'start': '15.126.17.130', 'end': '15.126.17.190'}], 'gateway_ip': '15.126.17.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.126.17.130', 'tags': [], 'project_id': '8abeef87e08347b5b4d566105b5ae62b'}}
2025-10-17 21:54:28,135 - INFO - Created VN ctest-vn-22490729
2025-10-17 21:54:28,189 - DEBUG - VN ctest-vn-22490729 UUID is 637c14c3-dd0b-4ee8-84f6-6d3d3f08810e
2025-10-17 21:54:28,352 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-08665281, 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-42877657:ctest-vn-22490729, 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-17 21:54:28,791 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b98d0dfb-eb0d-4109-aa7d-62ac72af6a9b', 'name': 'ctest-vn-08665281', 'tenant_id': '8abeef87e08347b5b4d566105b5ae62b', 'project_id': '8abeef87e08347b5b4d566105b5ae62b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['98899359-5cc3-4c6e-882b-3a55a2efd527'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42877657', 'ctest-vn-08665281'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42877657', 'ctest-policy-allow-all-81990789']], 'subnet_ipam': [{'subnet_cidr': '152.146.97.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-17 21:54:29,095 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '637c14c3-dd0b-4ee8-84f6-6d3d3f08810e', 'name': 'ctest-vn-22490729', 'tenant_id': '8abeef87e08347b5b4d566105b5ae62b', 'project_id': '8abeef87e08347b5b4d566105b5ae62b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['275817b3-507f-4707-9a97-51ff471114a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42877657', 'ctest-vn-22490729'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42877657', 'ctest-policy-allow-all-81990789']], 'subnet_ipam': [{'subnet_cidr': '15.126.17.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-17 21:54:29,245 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-17 21:54:29,591 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-17 21:54:29,631 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba5d61e4-1a45-4a91-a549-836bcc11d9d2
2025-10-17 21:54:29,653 - DEBUG - Requesting: http://10.0.0.254:8082/project/8abeef87-e083-47b5-b4d5-66105b5ae62b
2025-10-17 21:54:29,745 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b98d0dfb-eb0d-4109-aa7d-62ac72af6a9b
2025-10-17 21:54:29,772 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b98d0dfb-eb0d-4109-aa7d-62ac72af6a9b
2025-10-17 21:54:29,790 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c2d4166-0920-4c79-8268-fe9bf4fe25e3
2025-10-17 21:54:29,806 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c2d4166-0920-4c79-8268-fe9bf4fe25e3
2025-10-17 21:54:29,822 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/48bd32be-1b04-4d70-ad74-8040195a5705
2025-10-17 21:54:29,835 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-17 21:54:29,836 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b98d0dfb-eb0d-4109-aa7d-62ac72af6a9b
2025-10-17 21:54:29,855 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c2d4166-0920-4c79-8268-fe9bf4fe25e3
2025-10-17 21:54:29,884 - INFO - Verified VN network id 11 for VN b98d0dfb-eb0d-4109-aa7d-62ac72af6a9b
2025-10-17 21:54:29,884 - INFO - Verifications in API Server for VN ctest-vn-08665281 passed
2025-10-17 21:54:29,884 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b98d0dfb-eb0d-4109-aa7d-62ac72af6a9b
2025-10-17 21:54:29,903 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c2d4166-0920-4c79-8268-fe9bf4fe25e3
2025-10-17 21:54:29,916 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c2d4166-0920-4c79-8268-fe9bf4fe25e3
2025-10-17 21:54:29,928 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/48bd32be-1b04-4d70-ad74-8040195a5705
2025-10-17 21:54:29,950 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-08665281', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42877657', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13370358244364337417', 'uuid-lslong': '12285083851334576795'}, 'enable': 'true', 'created': '2025-10-17T21:54:27', 'last-modified': '2025-10-17T21:54:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.204769'}
2025-10-17 21:54:29,961 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-17 21:54:29,961 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08665281 passed
2025-10-17 21:54:29,961 - DEBUG - ====Verifying policy data for ctest-vn-08665281 in API_Server ======
2025-10-17 21:54:29,961 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-17 21:54:29,971 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba5d61e4-1a45-4a91-a549-836bcc11d9d2
2025-10-17 21:54:29,996 - DEBUG - Requesting: http://10.0.0.254:8082/project/8abeef87-e083-47b5-b4d5-66105b5ae62b
2025-10-17 21:54:30,091 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b98d0dfb-eb0d-4109-aa7d-62ac72af6a9b
2025-10-17 21:54:30,111 - DEBUG - ==>Verifying data for policy with id: de89e353-a5be-425d-8fad-b47578294ad4, fqn: ['default-domain', 'ctest-TestBasicPolicy-42877657', 'ctest-policy-allow-all-81990789']
2025-10-17 21:54:30,111 - INFO - VN ctest-vn-08665281 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-17 21:54:30,111 - DEBUG - Verifying the vn in opserver
2025-10-17 21:54:30,111 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-08665281 virtual network link through opserver 10.0.0.254
2025-10-17 21:54:30,112 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-17 21:54:30,439 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-17 21:54:30,569 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-08665281', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-08665281?flat'}
2025-10-17 21:54:30,569 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-08665281 is found in opserver
2025-10-17 21:54:30,596 - DEBUG - Do not have enough data to verify VN in agent
2025-10-17 21:54:30,606 - DEBUG - VRF ids for VN ctest-vn-08665281: {}
2025-10-17 21:54:30,606 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-17 21:54:30,617 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba5d61e4-1a45-4a91-a549-836bcc11d9d2
2025-10-17 21:54:30,642 - DEBUG - Requesting: http://10.0.0.254:8082/project/8abeef87-e083-47b5-b4d5-66105b5ae62b
2025-10-17 21:54:30,763 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/637c14c3-dd0b-4ee8-84f6-6d3d3f08810e
2025-10-17 21:54:30,800 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/637c14c3-dd0b-4ee8-84f6-6d3d3f08810e
2025-10-17 21:54:30,821 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/82ced197-07a6-47d1-9794-ea8f9b12bef7
2025-10-17 21:54:30,834 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/82ced197-07a6-47d1-9794-ea8f9b12bef7
2025-10-17 21:54:30,847 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9b3ecdf9-4fb6-4492-86f0-e0908d29b223
2025-10-17 21:54:30,860 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-17 21:54:30,860 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/637c14c3-dd0b-4ee8-84f6-6d3d3f08810e
2025-10-17 21:54:30,879 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/82ced197-07a6-47d1-9794-ea8f9b12bef7
2025-10-17 21:54:30,904 - INFO - Verified VN network id 12 for VN 637c14c3-dd0b-4ee8-84f6-6d3d3f08810e
2025-10-17 21:54:30,904 - INFO - Verifications in API Server for VN ctest-vn-22490729 passed
2025-10-17 21:54:30,904 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/637c14c3-dd0b-4ee8-84f6-6d3d3f08810e
2025-10-17 21:54:30,923 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/82ced197-07a6-47d1-9794-ea8f9b12bef7
2025-10-17 21:54:30,939 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/82ced197-07a6-47d1-9794-ea8f9b12bef7
2025-10-17 21:54:30,951 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9b3ecdf9-4fb6-4492-86f0-e0908d29b223
2025-10-17 21:54:30,972 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-22490729', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42877657', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7168627538326671080', 'uuid-lslong': '9580965367095263502'}, 'enable': 'true', 'created': '2025-10-17T21:54:27', 'last-modified': '2025-10-17T21:54:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.913333'}
2025-10-17 21:54:30,981 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-17 21:54:30,982 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22490729 passed
2025-10-17 21:54:30,982 - DEBUG - ====Verifying policy data for ctest-vn-22490729 in API_Server ======
2025-10-17 21:54:30,982 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-17 21:54:30,992 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba5d61e4-1a45-4a91-a549-836bcc11d9d2
2025-10-17 21:54:31,013 - DEBUG - Requesting: http://10.0.0.254:8082/project/8abeef87-e083-47b5-b4d5-66105b5ae62b
2025-10-17 21:54:31,118 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/637c14c3-dd0b-4ee8-84f6-6d3d3f08810e
2025-10-17 21:54:31,152 - DEBUG - ==>Verifying data for policy with id: de89e353-a5be-425d-8fad-b47578294ad4, fqn: ['default-domain', 'ctest-TestBasicPolicy-42877657', 'ctest-policy-allow-all-81990789']
2025-10-17 21:54:31,152 - INFO - VN ctest-vn-22490729 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-17 21:54:31,152 - DEBUG - Verifying the vn in opserver
2025-10-17 21:54:31,152 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-22490729 virtual network link through opserver 10.0.0.254
2025-10-17 21:54:31,152 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-17 21:54:31,171 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-22490729', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-22490729?flat'}
2025-10-17 21:54:31,171 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42877657:ctest-vn-22490729 is found in opserver
2025-10-17 21:54:31,191 - DEBUG - Do not have enough data to verify VN in agent
2025-10-17 21:54:31,199 - DEBUG - VRF ids for VN ctest-vn-22490729: {}
2025-10-17 21:54:31,332 - DEBUG - Services list from nova: [