2026-01-06 05:35:25,397 - INFO - Domain Default found not creating 2026-01-06 05:35:25,588 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-46684776 not found, creating it 2026-01-06 05:35:26,084 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-46684776, ID : 4aed2033-5442-4cb5-86bf-11b41eb03347 2026-01-06 05:35:27,712 - INFO - ================================================================================ 2026-01-06 05:35:27,712 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-06 05:35:27,970 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-01-06 05:35:27,970 - INFO - Initial checks done. Running the testcase now 2026-01-06 05:35:27,970 - INFO - 2026-01-06 05:35:27,970 - INFO - ================================================================================ 2026-01-06 05:35:27,970 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-06 05:35:27,970 - 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-01-06 05:35:28,256 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-01-06 05:35:28,256 - INFO - Initial checks done. Running the testcase now 2026-01-06 05:35:28,257 - INFO - 2026-01-06 05:35:28,653 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46684776:ctest-vn4-78530081, 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-46684776:ctest-vn4-78530081, 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-46684776:ctest-vn4-78530081, 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-46684776:ctest-vn4-78530081, 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-01-06 05:35:29,161 - DEBUG - Response for create_network : {'network': {'id': '1206a26d-cc5b-4a24-91a6-8d1590d10815', 'name': 'ctest-vn4-78530081', 'tenant_id': '4aed203354424cb586bf11b41eb03347', 'project_id': '4aed203354424cb586bf11b41eb03347', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46684776', 'ctest-vn4-78530081'], 'port_security_enabled': True, 'description': ''}} 2026-01-06 05:35:29,383 - DEBUG - Response for create_subnet : {'subnet': {'id': '1767405b-da16-45fd-b9e5-00bb4ddd433a', 'name': '', 'tenant_id': '4aed203354424cb586bf11b41eb03347', 'network_id': '1206a26d-cc5b-4a24-91a6-8d1590d10815', 'ip_version': 4, 'cidr': '137.190.37.128/26', 'allocation_pools': [{'start': '137.190.37.130', 'end': '137.190.37.190'}], 'gateway_ip': '137.190.37.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.190.37.130', 'tags': [], 'project_id': '4aed203354424cb586bf11b41eb03347'}} 2026-01-06 05:35:29,609 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd4a35ba-ca34-4689-b49a-3d21501d0f82', 'name': '', 'tenant_id': '4aed203354424cb586bf11b41eb03347', 'network_id': '1206a26d-cc5b-4a24-91a6-8d1590d10815', 'ip_version': 6, 'cidr': '296e:608b:90e1:b18d:d29a:65fc::/96', 'allocation_pools': [{'start': '296e:608b:90e1:b18d:d29a:65fc:0:2', 'end': '296e:608b:90e1:b18d:d29a:65fc:ffff:fffe'}], 'gateway_ip': '296e:608b:90e1:b18d:d29a:65fc:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '296e:608b:90e1:b18d:d29a:65fc:0:2', 'tags': [], 'project_id': '4aed203354424cb586bf11b41eb03347'}} 2026-01-06 05:35:29,630 - INFO - Created VN ctest-vn4-78530081 2026-01-06 05:35:29,684 - DEBUG - VN ctest-vn4-78530081 UUID is 1206a26d-cc5b-4a24-91a6-8d1590d10815 2026-01-06 05:35:29,894 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1206a26d-cc5b-4a24-91a6-8d1590d10815', 'name': 'ctest-vn4-78530081', 'tenant_id': '4aed203354424cb586bf11b41eb03347', 'project_id': '4aed203354424cb586bf11b41eb03347', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1767405b-da16-45fd-b9e5-00bb4ddd433a', 'fd4a35ba-ca34-4689-b49a-3d21501d0f82'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46684776', 'ctest-vn4-78530081'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46684776', 'ctest-policy1-14854369']], 'subnet_ipam': [{'subnet_cidr': '137.190.37.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '296e:608b:90e1:b18d:d29a:65fc::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-06 05:35:30,064 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-06 05:35:30,406 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-06 05:35:30,445 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6f3eaf00-10f9-4e8d-8820-73da42f9f275 2026-01-06 05:35:30,457 - DEBUG - Requesting: http://10.0.0.50:8082/project/4aed2033-5442-4cb5-86bf-11b41eb03347 2026-01-06 05:35:30,530 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1206a26d-cc5b-4a24-91a6-8d1590d10815 2026-01-06 05:35:30,545 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1206a26d-cc5b-4a24-91a6-8d1590d10815 2026-01-06 05:35:30,555 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3f9da9ec-7d39-4e04-9dca-029e9f8556b8 2026-01-06 05:35:30,562 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3f9da9ec-7d39-4e04-9dca-029e9f8556b8 2026-01-06 05:35:30,569 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a2016209-8ee9-4438-8569-823ee5dc52bb 2026-01-06 05:35:30,575 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-06 05:35:30,575 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1206a26d-cc5b-4a24-91a6-8d1590d10815 2026-01-06 05:35:30,584 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3f9da9ec-7d39-4e04-9dca-029e9f8556b8 2026-01-06 05:35:30,600 - INFO - Verified VN network id 11 for VN 1206a26d-cc5b-4a24-91a6-8d1590d10815 2026-01-06 05:35:30,600 - INFO - Verifications in API Server for VN ctest-vn4-78530081 passed 2026-01-06 05:35:30,600 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1206a26d-cc5b-4a24-91a6-8d1590d10815 2026-01-06 05:35:30,610 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3f9da9ec-7d39-4e04-9dca-029e9f8556b8 2026-01-06 05:35:30,617 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3f9da9ec-7d39-4e04-9dca-029e9f8556b8 2026-01-06 05:35:30,624 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a2016209-8ee9-4438-8569-823ee5dc52bb 2026-01-06 05:35:30,636 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46684776:ctest-vn4-78530081', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-46684776', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1298904135006636580', 'uuid-lslong': '10495231105396967445'}, 'enable': 'true', 'created': '2026-01-06T05:35:29', 'last-modified': '2026-01-06T05:35:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.761947'} 2026-01-06 05:35:30,642 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-06 05:35:30,642 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-78530081 passed 2026-01-06 05:35:30,642 - DEBUG - ====Verifying policy data for ctest-vn4-78530081 in API_Server ====== 2026-01-06 05:35:30,642 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-06 05:35:30,648 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6f3eaf00-10f9-4e8d-8820-73da42f9f275 2026-01-06 05:35:30,659 - DEBUG - Requesting: http://10.0.0.50:8082/project/4aed2033-5442-4cb5-86bf-11b41eb03347 2026-01-06 05:35:30,730 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1206a26d-cc5b-4a24-91a6-8d1590d10815 2026-01-06 05:35:30,742 - DEBUG - ==>Verifying data for policy with id: 5dbcf9f8-ecf1-4383-b15a-cb065e6c6582, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46684776', 'ctest-policy1-14854369'] 2026-01-06 05:35:30,742 - INFO - VN ctest-vn4-78530081 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-06 05:35:30,742 - DEBUG - Verifying the vn in opserver 2026-01-06 05:35:30,742 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46684776:ctest-vn4-78530081 virtual network link through opserver 10.0.0.50 2026-01-06 05:35:30,742 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-06 05:35:31,077 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-06 05:35:31,153 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46684776:ctest-vn4-78530081', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46684776:ctest-vn4-78530081?flat'} 2026-01-06 05:35:31,153 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46684776:ctest-vn4-78530081 is found in opserver 2026-01-06 05:35:31,164 - DEBUG - Do not have enough data to verify VN in agent 2026-01-06 05:35:31,169 - DEBUG - VRF ids for VN ctest-vn4-78530081: {} 2026-01-06 05:35:31,169 - DEBUG - ====Verifying data for ctest-policy1-14854369 in API_Server ====== 2026-01-06 05:35:31,169 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-06 05:35:31,175 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6f3eaf00-10f9-4e8d-8820-73da42f9f275 2026-01-06 05:35:31,189 - DEBUG - Requesting: http://10.0.0.50:8082/project/4aed2033-5442-4cb5-86bf-11b41eb03347 2026-01-06 05:35:31,260 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/5dbcf9f8-ecf1-4383-b15a-cb065e6c6582 2026-01-06 05:35:31,269 - INFO - Verified policy ctest-policy1-14854369 in API Server, Result: True 2026-01-06 05:35:31,269 - INFO - Done with setup and verification, moving onto test .. 2026-01-06 05:35:31,277 - INFO - Deleting VN ctest-vn4-78530081 2026-01-06 05:35:31,393 - DEBUG - Response for deleting network () 2026-01-06 05:35:31,393 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3f9da9ec-7d39-4e04-9dca-029e9f8556b8 2026-01-06 05:35:31,399 - DEBUG - Response Code: 404 2026-01-06 05:35:31,399 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-06 05:35:31,405 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6f3eaf00-10f9-4e8d-8820-73da42f9f275 2026-01-06 05:35:31,461 - DEBUG - Requesting: http://10.0.0.50:8082/project/4aed2033-5442-4cb5-86bf-11b41eb03347 2026-01-06 05:35:31,540 - INFO - Validated that VN ctest-vn4-78530081 is not found in API Server 2026-01-06 05:35:31,550 - DEBUG - VN ctest-vn4-78530081 is not present in Agent 10.0.0.50 2026-01-06 05:35:31,550 - INFO - Validated that VN ctest-vn4-78530081 is not in any agent 2026-01-06 05:35:31,565 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-78530081 info 2026-01-06 05:35:31,592 - INFO - Deleted policy ctest-policy1-14854369 2026-01-06 05:35:31,759 - DEBUG - policy ctest-policy1-14854369 is not found in API Server 2026-01-06 05:35:32,026 - DEBUG - No XMPP flaps were noticed during the test