2026-02-02 08:57:03,706 - INFO - Domain Default found not creating 2026-02-02 08:57:03,859 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-70886018 not found, creating it 2026-02-02 08:57:04,295 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-70886018, ID : 21dedc84-6691-4565-9f7e-e5abd617dd9b 2026-02-02 08:57:05,733 - INFO - ================================================================================ 2026-02-02 08:57:05,733 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 08:57:05,990 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with 2026-02-02 08:57:05,990 - INFO - Initial checks done. Running the testcase now 2026-02-02 08:57:05,990 - INFO - 2026-02-02 08:57:05,990 - INFO - ================================================================================ 2026-02-02 08:57:05,990 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 08:57:05,991 - 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. 2026-02-02 08:57:06,277 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with 2026-02-02 08:57:06,277 - INFO - Initial checks done. Running the testcase now 2026-02-02 08:57:06,277 - INFO - 2026-02-02 08:57:06,632 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70886018:ctest-vn4-55939113, 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-70886018:ctest-vn4-55939113, 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-70886018:ctest-vn4-55939113, 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-70886018:ctest-vn4-55939113, 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] 2026-02-02 08:57:07,119 - DEBUG - Response for create_network : {'network': {'id': '69fdd809-7688-43fe-b4c9-a3f67a81afdb', 'name': 'ctest-vn4-55939113', 'tenant_id': '21dedc84669145659f7ee5abd617dd9b', 'project_id': '21dedc84669145659f7ee5abd617dd9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70886018', 'ctest-vn4-55939113'], 'port_security_enabled': True, 'description': ''}} 2026-02-02 08:57:07,308 - DEBUG - Response for create_subnet : {'subnet': {'id': '535a551a-5341-4422-8356-9ad96b53bb43', 'name': '', 'tenant_id': '21dedc84669145659f7ee5abd617dd9b', 'network_id': '69fdd809-7688-43fe-b4c9-a3f67a81afdb', 'ip_version': 4, 'cidr': '66.167.92.192/26', 'allocation_pools': [{'start': '66.167.92.194', 'end': '66.167.92.254'}], 'gateway_ip': '66.167.92.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.167.92.194', 'tags': [], 'project_id': '21dedc84669145659f7ee5abd617dd9b'}} 2026-02-02 08:57:07,492 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a91f1b5-c0e0-4566-85ca-c1ab9aed0bd9', 'name': '', 'tenant_id': '21dedc84669145659f7ee5abd617dd9b', 'network_id': '69fdd809-7688-43fe-b4c9-a3f67a81afdb', 'ip_version': 6, 'cidr': '315e:4bf3:cc76:1dc8:200a:6c53::/96', 'allocation_pools': [{'start': '315e:4bf3:cc76:1dc8:200a:6c53:0:2', 'end': '315e:4bf3:cc76:1dc8:200a:6c53:ffff:fffe'}], 'gateway_ip': '315e:4bf3:cc76:1dc8:200a:6c53:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '315e:4bf3:cc76:1dc8:200a:6c53:0:2', 'tags': [], 'project_id': '21dedc84669145659f7ee5abd617dd9b'}} 2026-02-02 08:57:07,514 - INFO - Created VN ctest-vn4-55939113 2026-02-02 08:57:07,564 - DEBUG - VN ctest-vn4-55939113 UUID is 69fdd809-7688-43fe-b4c9-a3f67a81afdb 2026-02-02 08:57:07,751 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '69fdd809-7688-43fe-b4c9-a3f67a81afdb', 'name': 'ctest-vn4-55939113', 'tenant_id': '21dedc84669145659f7ee5abd617dd9b', 'project_id': '21dedc84669145659f7ee5abd617dd9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['535a551a-5341-4422-8356-9ad96b53bb43', '5a91f1b5-c0e0-4566-85ca-c1ab9aed0bd9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70886018', 'ctest-vn4-55939113'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70886018', 'ctest-policy1-13548560']], 'subnet_ipam': [{'subnet_cidr': '66.167.92.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '315e:4bf3:cc76:1dc8:200a:6c53::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-02 08:57:07,912 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-02 08:57:08,205 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-02 08:57:08,238 - DEBUG - Requesting: http://10.0.0.129:8082/domain/aaa9de63-b438-46cb-ab88-49aef5bedbdf 2026-02-02 08:57:08,249 - DEBUG - Requesting: http://10.0.0.129:8082/project/21dedc84-6691-4565-9f7e-e5abd617dd9b 2026-02-02 08:57:08,315 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/69fdd809-7688-43fe-b4c9-a3f67a81afdb 2026-02-02 08:57:08,325 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/69fdd809-7688-43fe-b4c9-a3f67a81afdb 2026-02-02 08:57:08,334 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a609ebc7-fb5a-4a80-a0a0-b74444700be8 2026-02-02 08:57:08,339 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a609ebc7-fb5a-4a80-a0a0-b74444700be8 2026-02-02 08:57:08,345 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/000174a4-6c0c-4dc8-b0ed-9bf182a00812 2026-02-02 08:57:08,350 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 08:57:08,350 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/69fdd809-7688-43fe-b4c9-a3f67a81afdb 2026-02-02 08:57:08,359 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a609ebc7-fb5a-4a80-a0a0-b74444700be8 2026-02-02 08:57:08,371 - INFO - Verified VN network id 11 for VN 69fdd809-7688-43fe-b4c9-a3f67a81afdb 2026-02-02 08:57:08,371 - INFO - Verifications in API Server for VN ctest-vn4-55939113 passed 2026-02-02 08:57:08,371 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/69fdd809-7688-43fe-b4c9-a3f67a81afdb 2026-02-02 08:57:08,379 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a609ebc7-fb5a-4a80-a0a0-b74444700be8 2026-02-02 08:57:08,385 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a609ebc7-fb5a-4a80-a0a0-b74444700be8 2026-02-02 08:57:08,391 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/000174a4-6c0c-4dc8-b0ed-9bf182a00812 2026-02-02 08:57:08,401 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70886018:ctest-vn4-55939113', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-70886018', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7637498078245176318', 'uuid-lslong': '13027123676158472155'}, 'enable': 'true', 'created': '2026-02-02T08:57:07', 'last-modified': '2026-02-02T08:57:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.674633'} 2026-02-02 08:57:08,407 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 08:57:08,407 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-55939113 passed 2026-02-02 08:57:08,407 - DEBUG - ====Verifying policy data for ctest-vn4-55939113 in API_Server ====== 2026-02-02 08:57:08,407 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-02 08:57:08,412 - DEBUG - Requesting: http://10.0.0.129:8082/domain/aaa9de63-b438-46cb-ab88-49aef5bedbdf 2026-02-02 08:57:08,421 - DEBUG - Requesting: http://10.0.0.129:8082/project/21dedc84-6691-4565-9f7e-e5abd617dd9b 2026-02-02 08:57:08,487 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/69fdd809-7688-43fe-b4c9-a3f67a81afdb 2026-02-02 08:57:08,497 - DEBUG - ==>Verifying data for policy with id: e1092cf3-88eb-440a-88f2-297def5e1fb2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70886018', 'ctest-policy1-13548560'] 2026-02-02 08:57:08,497 - INFO - VN ctest-vn4-55939113 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-02 08:57:08,497 - DEBUG - Verifying the vn in opserver 2026-02-02 08:57:08,497 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70886018:ctest-vn4-55939113 virtual network link through opserver 10.0.0.129 2026-02-02 08:57:08,498 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-02 08:57:08,792 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-02 08:57:08,848 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70886018:ctest-vn4-55939113', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70886018:ctest-vn4-55939113?flat'} 2026-02-02 08:57:08,848 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70886018:ctest-vn4-55939113 is found in opserver 2026-02-02 08:57:08,857 - DEBUG - Do not have enough data to verify VN in agent 2026-02-02 08:57:08,861 - DEBUG - VRF ids for VN ctest-vn4-55939113: {} 2026-02-02 08:57:08,861 - DEBUG - ====Verifying data for ctest-policy1-13548560 in API_Server ====== 2026-02-02 08:57:08,862 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-02 08:57:08,866 - DEBUG - Requesting: http://10.0.0.129:8082/domain/aaa9de63-b438-46cb-ab88-49aef5bedbdf 2026-02-02 08:57:08,875 - DEBUG - Requesting: http://10.0.0.129:8082/project/21dedc84-6691-4565-9f7e-e5abd617dd9b 2026-02-02 08:57:08,943 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/e1092cf3-88eb-440a-88f2-297def5e1fb2 2026-02-02 08:57:08,951 - INFO - Verified policy ctest-policy1-13548560 in API Server, Result: True 2026-02-02 08:57:08,951 - INFO - Done with setup and verification, moving onto test .. 2026-02-02 08:57:08,958 - INFO - Deleting VN ctest-vn4-55939113 2026-02-02 08:57:09,070 - DEBUG - Response for deleting network () 2026-02-02 08:57:09,070 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a609ebc7-fb5a-4a80-a0a0-b74444700be8 2026-02-02 08:57:09,075 - DEBUG - Response Code: 404 2026-02-02 08:57:09,075 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-02 08:57:09,080 - DEBUG - Requesting: http://10.0.0.129:8082/domain/aaa9de63-b438-46cb-ab88-49aef5bedbdf 2026-02-02 08:57:09,133 - DEBUG - Requesting: http://10.0.0.129:8082/project/21dedc84-6691-4565-9f7e-e5abd617dd9b 2026-02-02 08:57:09,205 - INFO - Validated that VN ctest-vn4-55939113 is not found in API Server 2026-02-02 08:57:09,213 - DEBUG - VN ctest-vn4-55939113 is not present in Agent 10.0.0.129 2026-02-02 08:57:09,213 - INFO - Validated that VN ctest-vn4-55939113 is not in any agent 2026-02-02 08:57:09,226 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-55939113 info 2026-02-02 08:57:09,247 - INFO - Deleted policy ctest-policy1-13548560 2026-02-02 08:57:09,408 - DEBUG - policy ctest-policy1-13548560 is not found in API Server 2026-02-02 08:57:09,664 - DEBUG - No XMPP flaps were noticed during the test