2025-11-10 20:14:31,192 - INFO - Domain Default found not creating 2025-11-10 20:14:31,517 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06440657 not found, creating it 2025-11-10 20:14:32,140 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06440657, ID : b40c01ab-d917-49a6-beea-08d1c55899d1 2025-11-10 20:14:34,163 - INFO - ================================================================================ 2025-11-10 20:14:34,163 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-10 20:14:34,464 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2025-11-10 20:14:34,465 - INFO - Initial checks done. Running the testcase now 2025-11-10 20:14:34,465 - INFO - 2025-11-10 20:14:34,465 - INFO - ================================================================================ 2025-11-10 20:14:34,465 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-10 20:14:34,465 - INFO - TEST DESCRIPTION : This tests the following scenarios. 1. Test to validate that policy removal will fail when it referenced with VN. 2. validate vn_policy data in api-s against quantum-vn data, when created and unbind policy from VN thru quantum APIs. 3. validate policy data in api-s against quantum-policy data, when created and deleted thru quantum APIs. 2025-11-10 20:14:34,820 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2025-11-10 20:14:34,821 - INFO - Initial checks done. Running the testcase now 2025-11-10 20:14:34,821 - INFO - 2025-11-10 20:14:35,289 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06440657:ctest-vn4-74489016, 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-TestBasicPolicyNegativeIpv4v6-06440657:ctest-vn4-74489016, 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, rule_sequence = None, rule_uuid = None, direction = <>, protocol = 58, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06440657:ctest-vn4-74489016, 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-TestBasicPolicyNegativeIpv4v6-06440657:ctest-vn4-74489016, 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-10 20:14:36,077 - DEBUG - Response for create_network : {'network': {'id': 'c50b0330-3f07-4633-82a9-ee13d9c7e6ac', 'name': 'ctest-vn4-74489016', 'tenant_id': 'b40c01abd91749a6beea08d1c55899d1', 'project_id': 'b40c01abd91749a6beea08d1c55899d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06440657', 'ctest-vn4-74489016'], 'port_security_enabled': True, 'description': ''}} 2025-11-10 20:14:36,332 - DEBUG - Response for create_subnet : {'subnet': {'id': '48a80f86-fc14-4215-8a25-90c299153de5', 'name': '', 'tenant_id': 'b40c01abd91749a6beea08d1c55899d1', 'network_id': 'c50b0330-3f07-4633-82a9-ee13d9c7e6ac', 'ip_version': 4, 'cidr': '78.130.252.0/26', 'allocation_pools': [{'start': '78.130.252.2', 'end': '78.130.252.62'}], 'gateway_ip': '78.130.252.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.130.252.2', 'tags': [], 'project_id': 'b40c01abd91749a6beea08d1c55899d1'}} 2025-11-10 20:14:36,549 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba5e70d7-e78d-434f-9c7a-076ddfdebb56', 'name': '', 'tenant_id': 'b40c01abd91749a6beea08d1c55899d1', 'network_id': 'c50b0330-3f07-4633-82a9-ee13d9c7e6ac', 'ip_version': 6, 'cidr': '2d2d:a1ac:7ef3:78b1:ebcd:b6e8::/96', 'allocation_pools': [{'start': '2d2d:a1ac:7ef3:78b1:ebcd:b6e8:0:2', 'end': '2d2d:a1ac:7ef3:78b1:ebcd:b6e8:ffff:fffe'}], 'gateway_ip': '2d2d:a1ac:7ef3:78b1:ebcd:b6e8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d2d:a1ac:7ef3:78b1:ebcd:b6e8:0:2', 'tags': [], 'project_id': 'b40c01abd91749a6beea08d1c55899d1'}} 2025-11-10 20:14:36,581 - INFO - Created VN ctest-vn4-74489016 2025-11-10 20:14:36,646 - DEBUG - VN ctest-vn4-74489016 UUID is c50b0330-3f07-4633-82a9-ee13d9c7e6ac 2025-11-10 20:14:37,000 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c50b0330-3f07-4633-82a9-ee13d9c7e6ac', 'name': 'ctest-vn4-74489016', 'tenant_id': 'b40c01abd91749a6beea08d1c55899d1', 'project_id': 'b40c01abd91749a6beea08d1c55899d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['48a80f86-fc14-4215-8a25-90c299153de5', 'ba5e70d7-e78d-434f-9c7a-076ddfdebb56'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06440657', 'ctest-vn4-74489016'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06440657', 'ctest-policy1-10769677']], 'subnet_ipam': [{'subnet_cidr': '78.130.252.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d2d:a1ac:7ef3:78b1:ebcd:b6e8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-10 20:14:37,182 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-10 20:14:37,495 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-10 20:14:37,563 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c247b962-9cd7-4221-b33c-2806de491c2c 2025-11-10 20:14:37,586 - DEBUG - Requesting: http://10.0.0.141:8082/project/b40c01ab-d917-49a6-beea-08d1c55899d1 2025-11-10 20:14:37,679 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c50b0330-3f07-4633-82a9-ee13d9c7e6ac 2025-11-10 20:14:37,709 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c50b0330-3f07-4633-82a9-ee13d9c7e6ac 2025-11-10 20:14:37,732 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/88892cfd-576c-40a0-87dc-7544b6b9aa76 2025-11-10 20:14:37,751 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/88892cfd-576c-40a0-87dc-7544b6b9aa76 2025-11-10 20:14:37,762 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/114f0812-9521-4434-bbf4-f9809f8c2460 2025-11-10 20:14:37,775 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 20:14:37,776 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c50b0330-3f07-4633-82a9-ee13d9c7e6ac 2025-11-10 20:14:37,792 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/88892cfd-576c-40a0-87dc-7544b6b9aa76 2025-11-10 20:14:37,811 - INFO - Verified VN network id 11 for VN c50b0330-3f07-4633-82a9-ee13d9c7e6ac 2025-11-10 20:14:37,811 - INFO - Verifications in API Server for VN ctest-vn4-74489016 passed 2025-11-10 20:14:37,811 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c50b0330-3f07-4633-82a9-ee13d9c7e6ac 2025-11-10 20:14:37,830 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/88892cfd-576c-40a0-87dc-7544b6b9aa76 2025-11-10 20:14:37,839 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/88892cfd-576c-40a0-87dc-7544b6b9aa76 2025-11-10 20:14:37,848 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/114f0812-9521-4434-bbf4-f9809f8c2460 2025-11-10 20:14:37,866 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06440657:ctest-vn4-74489016', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06440657', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14198445755966375475', 'uuid-lslong': '9415318265020278444'}, 'enable': 'true', 'created': '2025-11-10T20:14:36', 'last-modified': '2025-11-10T20:14:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.907674'} 2025-11-10 20:14:37,878 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 20:14:37,878 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-74489016 passed 2025-11-10 20:14:37,879 - DEBUG - ====Verifying policy data for ctest-vn4-74489016 in API_Server ====== 2025-11-10 20:14:37,879 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-10 20:14:37,889 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c247b962-9cd7-4221-b33c-2806de491c2c 2025-11-10 20:14:37,909 - DEBUG - Requesting: http://10.0.0.141:8082/project/b40c01ab-d917-49a6-beea-08d1c55899d1 2025-11-10 20:14:38,008 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c50b0330-3f07-4633-82a9-ee13d9c7e6ac 2025-11-10 20:14:38,030 - DEBUG - ==>Verifying data for policy with id: b7dbb63e-d91e-4ad0-8552-da3d9dbad3e1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06440657', 'ctest-policy1-10769677'] 2025-11-10 20:14:38,030 - INFO - VN ctest-vn4-74489016 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-10 20:14:38,030 - DEBUG - Verifying the vn in opserver 2025-11-10 20:14:38,030 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06440657:ctest-vn4-74489016 virtual network link through opserver 10.0.0.141 2025-11-10 20:14:38,031 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-11-10 20:14:38,355 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-11-10 20:14:38,426 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06440657:ctest-vn4-74489016', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06440657:ctest-vn4-74489016?flat'} 2025-11-10 20:14:38,426 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06440657:ctest-vn4-74489016 is found in opserver 2025-11-10 20:14:38,456 - DEBUG - Do not have enough data to verify VN in agent 2025-11-10 20:14:38,470 - DEBUG - VRF ids for VN ctest-vn4-74489016: {} 2025-11-10 20:14:38,471 - DEBUG - ====Verifying data for ctest-policy1-10769677 in API_Server ====== 2025-11-10 20:14:38,471 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-10 20:14:38,481 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c247b962-9cd7-4221-b33c-2806de491c2c 2025-11-10 20:14:38,507 - DEBUG - Requesting: http://10.0.0.141:8082/project/b40c01ab-d917-49a6-beea-08d1c55899d1 2025-11-10 20:14:38,601 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/b7dbb63e-d91e-4ad0-8552-da3d9dbad3e1 2025-11-10 20:14:38,613 - INFO - Verified policy ctest-policy1-10769677 in API Server, Result: True 2025-11-10 20:14:38,613 - INFO - Done with setup and verification, moving onto test .. 2025-11-10 20:14:38,626 - INFO - Deleting VN ctest-vn4-74489016 2025-11-10 20:14:38,814 - DEBUG - Response for deleting network () 2025-11-10 20:14:38,814 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/88892cfd-576c-40a0-87dc-7544b6b9aa76 2025-11-10 20:14:38,819 - DEBUG - Response Code: 404 2025-11-10 20:14:38,819 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-10 20:14:38,824 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c247b962-9cd7-4221-b33c-2806de491c2c 2025-11-10 20:14:38,880 - DEBUG - Requesting: http://10.0.0.141:8082/project/b40c01ab-d917-49a6-beea-08d1c55899d1 2025-11-10 20:14:38,958 - INFO - Validated that VN ctest-vn4-74489016 is not found in API Server 2025-11-10 20:14:38,970 - DEBUG - VN ctest-vn4-74489016 is not present in Agent 10.0.0.141 2025-11-10 20:14:38,970 - INFO - Validated that VN ctest-vn4-74489016 is not in any agent 2025-11-10 20:14:38,990 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-74489016 info 2025-11-10 20:14:39,035 - INFO - Deleted policy ctest-policy1-10769677 2025-11-10 20:14:39,214 - DEBUG - policy ctest-policy1-10769677 is not found in API Server 2025-11-10 20:14:39,515 - DEBUG - No XMPP flaps were noticed during the test