2026-03-06 18:03:16,375 - INFO - Domain Default found not creating 2026-03-06 18:03:16,532 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-10680423 not found, creating it 2026-03-06 18:03:16,995 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-10680423, ID : af144086-4532-41e1-8cc2-87e74e372ecf 2026-03-06 18:03:18,488 - INFO - ================================================================================ 2026-03-06 18:03:18,488 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-06 18:03:18,742 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-03-06 18:03:18,742 - INFO - Initial checks done. Running the testcase now 2026-03-06 18:03:18,742 - INFO - 2026-03-06 18:03:18,742 - INFO - ================================================================================ 2026-03-06 18:03:18,742 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-06 18:03:18,743 - 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-03-06 18:03:19,034 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-03-06 18:03:19,034 - INFO - Initial checks done. Running the testcase now 2026-03-06 18:03:19,034 - INFO - 2026-03-06 18:03:19,394 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10680423:ctest-vn4-94582281, 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-10680423:ctest-vn4-94582281, 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-10680423:ctest-vn4-94582281, 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-10680423:ctest-vn4-94582281, 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-03-06 18:03:19,903 - DEBUG - Response for create_network : {'network': {'id': '65725daa-09d4-465a-8dfc-b09f4280219b', 'name': 'ctest-vn4-94582281', 'tenant_id': 'af144086453241e18cc287e74e372ecf', 'project_id': 'af144086453241e18cc287e74e372ecf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10680423', 'ctest-vn4-94582281'], 'port_security_enabled': True, 'description': ''}} 2026-03-06 18:03:20,105 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c2368a8a-02da-4837-9acf-a867a5711add', 'name': '', 'tenant_id': 'af144086453241e18cc287e74e372ecf', 'network_id': '65725daa-09d4-465a-8dfc-b09f4280219b', 'ip_version': 4, 'cidr': '64.28.218.64/26', 'allocation_pools': [{'start': '64.28.218.66', 'end': '64.28.218.126'}], 'gateway_ip': '64.28.218.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.28.218.66', 'tags': [], 'project_id': 'af144086453241e18cc287e74e372ecf'}} 2026-03-06 18:03:20,281 - DEBUG - Response for create_subnet : {'subnet': {'id': '7064c64d-4635-4765-8459-7950a1e121d7', 'name': '', 'tenant_id': 'af144086453241e18cc287e74e372ecf', 'network_id': '65725daa-09d4-465a-8dfc-b09f4280219b', 'ip_version': 6, 'cidr': '2497:1ab2:9b47:1f95:4cc9:608a::/96', 'allocation_pools': [{'start': '2497:1ab2:9b47:1f95:4cc9:608a:0:2', 'end': '2497:1ab2:9b47:1f95:4cc9:608a:ffff:fffe'}], 'gateway_ip': '2497:1ab2:9b47:1f95:4cc9:608a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2497:1ab2:9b47:1f95:4cc9:608a:0:2', 'tags': [], 'project_id': 'af144086453241e18cc287e74e372ecf'}} 2026-03-06 18:03:20,300 - INFO - Created VN ctest-vn4-94582281 2026-03-06 18:03:20,353 - DEBUG - VN ctest-vn4-94582281 UUID is 65725daa-09d4-465a-8dfc-b09f4280219b 2026-03-06 18:03:20,555 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '65725daa-09d4-465a-8dfc-b09f4280219b', 'name': 'ctest-vn4-94582281', 'tenant_id': 'af144086453241e18cc287e74e372ecf', 'project_id': 'af144086453241e18cc287e74e372ecf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c2368a8a-02da-4837-9acf-a867a5711add', '7064c64d-4635-4765-8459-7950a1e121d7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10680423', 'ctest-vn4-94582281'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10680423', 'ctest-policy1-45589198']], 'subnet_ipam': [{'subnet_cidr': '64.28.218.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2497:1ab2:9b47:1f95:4cc9:608a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-06 18:03:20,713 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-06 18:03:21,008 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-06 18:03:21,040 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a39951c1-0db6-4056-9521-5aa285c4687d 2026-03-06 18:03:21,053 - DEBUG - Requesting: http://10.0.0.38:8082/project/af144086-4532-41e1-8cc2-87e74e372ecf 2026-03-06 18:03:21,124 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/65725daa-09d4-465a-8dfc-b09f4280219b 2026-03-06 18:03:21,135 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/65725daa-09d4-465a-8dfc-b09f4280219b 2026-03-06 18:03:21,145 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/25766968-43c4-4205-9b8e-c6df202399bf 2026-03-06 18:03:21,153 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/25766968-43c4-4205-9b8e-c6df202399bf 2026-03-06 18:03:21,160 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2688ff4d-4130-4a66-9ad2-c3a35de7c452 2026-03-06 18:03:21,166 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-06 18:03:21,166 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/65725daa-09d4-465a-8dfc-b09f4280219b 2026-03-06 18:03:21,175 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/25766968-43c4-4205-9b8e-c6df202399bf 2026-03-06 18:03:21,189 - INFO - Verified VN network id 11 for VN 65725daa-09d4-465a-8dfc-b09f4280219b 2026-03-06 18:03:21,189 - INFO - Verifications in API Server for VN ctest-vn4-94582281 passed 2026-03-06 18:03:21,189 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/65725daa-09d4-465a-8dfc-b09f4280219b 2026-03-06 18:03:21,200 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/25766968-43c4-4205-9b8e-c6df202399bf 2026-03-06 18:03:21,206 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/25766968-43c4-4205-9b8e-c6df202399bf 2026-03-06 18:03:21,212 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2688ff4d-4130-4a66-9ad2-c3a35de7c452 2026-03-06 18:03:21,223 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10680423:ctest-vn4-94582281', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-10680423', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7310008130066466394', 'uuid-lslong': '10231246651540906395'}, 'enable': 'true', 'created': '2026-03-06T18:03:19', 'last-modified': '2026-03-06T18:03:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.701691'} 2026-03-06 18:03:21,231 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-06 18:03:21,231 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-94582281 passed 2026-03-06 18:03:21,231 - DEBUG - ====Verifying policy data for ctest-vn4-94582281 in API_Server ====== 2026-03-06 18:03:21,231 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-06 18:03:21,237 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a39951c1-0db6-4056-9521-5aa285c4687d 2026-03-06 18:03:21,249 - DEBUG - Requesting: http://10.0.0.38:8082/project/af144086-4532-41e1-8cc2-87e74e372ecf 2026-03-06 18:03:21,319 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/65725daa-09d4-465a-8dfc-b09f4280219b 2026-03-06 18:03:21,328 - DEBUG - ==>Verifying data for policy with id: b8ac017f-423a-452b-b582-c820009a0f90, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10680423', 'ctest-policy1-45589198'] 2026-03-06 18:03:21,328 - INFO - VN ctest-vn4-94582281 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-06 18:03:21,328 - DEBUG - Verifying the vn in opserver 2026-03-06 18:03:21,328 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10680423:ctest-vn4-94582281 virtual network link through opserver 10.0.0.38 2026-03-06 18:03:21,328 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-06 18:03:21,624 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-06 18:03:21,688 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10680423:ctest-vn4-94582281', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10680423:ctest-vn4-94582281?flat'} 2026-03-06 18:03:21,688 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10680423:ctest-vn4-94582281 is found in opserver 2026-03-06 18:03:21,698 - DEBUG - Do not have enough data to verify VN in agent 2026-03-06 18:03:21,703 - DEBUG - VRF ids for VN ctest-vn4-94582281: {} 2026-03-06 18:03:21,703 - DEBUG - ====Verifying data for ctest-policy1-45589198 in API_Server ====== 2026-03-06 18:03:21,703 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-06 18:03:21,708 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a39951c1-0db6-4056-9521-5aa285c4687d 2026-03-06 18:03:21,721 - DEBUG - Requesting: http://10.0.0.38:8082/project/af144086-4532-41e1-8cc2-87e74e372ecf 2026-03-06 18:03:21,795 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/b8ac017f-423a-452b-b582-c820009a0f90 2026-03-06 18:03:21,804 - INFO - Verified policy ctest-policy1-45589198 in API Server, Result: True 2026-03-06 18:03:21,804 - INFO - Done with setup and verification, moving onto test .. 2026-03-06 18:03:21,811 - INFO - Deleting VN ctest-vn4-94582281 2026-03-06 18:03:21,920 - DEBUG - Response for deleting network () 2026-03-06 18:03:21,920 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/25766968-43c4-4205-9b8e-c6df202399bf 2026-03-06 18:03:21,925 - DEBUG - Response Code: 404 2026-03-06 18:03:21,925 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-06 18:03:21,931 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a39951c1-0db6-4056-9521-5aa285c4687d 2026-03-06 18:03:21,986 - DEBUG - Requesting: http://10.0.0.38:8082/project/af144086-4532-41e1-8cc2-87e74e372ecf 2026-03-06 18:03:22,056 - INFO - Validated that VN ctest-vn4-94582281 is not found in API Server 2026-03-06 18:03:22,064 - DEBUG - VN ctest-vn4-94582281 is not present in Agent 10.0.0.38 2026-03-06 18:03:22,064 - INFO - Validated that VN ctest-vn4-94582281 is not in any agent 2026-03-06 18:03:22,079 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-94582281 info 2026-03-06 18:03:22,104 - INFO - Deleted policy ctest-policy1-45589198 2026-03-06 18:03:22,261 - DEBUG - policy ctest-policy1-45589198 is not found in API Server 2026-03-06 18:03:22,514 - DEBUG - No XMPP flaps were noticed during the test 2026-03-06 18:03:22,514 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-06 18:03:22,514 - INFO - -------------------------------------------------------------------------------- 2026-03-06 18:03:22,802 - DEBUG - No XMPP flaps were noticed during the test 2026-03-06 18:03:22,802 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-06 18:03:22,802 - INFO - -------------------------------------------------------------------------------- 2026-03-06 18:03:23,493 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-10680423, ID : af144086-4532-41e1-8cc2-87e74e372ecf