2026-07-18 15:44:30,294 - INFO - Domain Default found not creating 2026-07-18 15:44:30,492 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-88435539 not found, creating it 2026-07-18 15:44:31,010 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-88435539, ID : a17f162f-4214-4fa8-85b3-e687aa1f773b 2026-07-18 15:44:32,764 - INFO - ================================================================================ 2026-07-18 15:44:32,764 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-18 15:44:33,036 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2026-07-18 15:44:33,036 - INFO - Initial checks done. Running the testcase now 2026-07-18 15:44:33,036 - INFO - 2026-07-18 15:44:33,036 - INFO - ================================================================================ 2026-07-18 15:44:33,036 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-18 15:44:33,036 - 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-07-18 15:44:33,341 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2026-07-18 15:44:33,341 - INFO - Initial checks done. Running the testcase now 2026-07-18 15:44:33,341 - INFO - 2026-07-18 15:44:33,776 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88435539:ctest-vn4-62568549, 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-88435539:ctest-vn4-62568549, 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-88435539:ctest-vn4-62568549, 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-88435539:ctest-vn4-62568549, 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-07-18 15:44:34,330 - DEBUG - Response for create_network : {'network': {'id': 'df20403c-a45a-4ac3-885a-65c1a8afc7dc', 'name': 'ctest-vn4-62568549', 'tenant_id': 'a17f162f42144fa885b3e687aa1f773b', 'project_id': 'a17f162f42144fa885b3e687aa1f773b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88435539', 'ctest-vn4-62568549'], 'port_security_enabled': True, 'description': ''}} 2026-07-18 15:44:34,546 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2b03daf-a122-4107-9d5f-532797d297f5', 'name': '', 'tenant_id': 'a17f162f42144fa885b3e687aa1f773b', 'network_id': 'df20403c-a45a-4ac3-885a-65c1a8afc7dc', 'ip_version': 4, 'cidr': '132.147.148.64/26', 'allocation_pools': [{'start': '132.147.148.66', 'end': '132.147.148.126'}], 'gateway_ip': '132.147.148.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.147.148.66', 'tags': [], 'project_id': 'a17f162f42144fa885b3e687aa1f773b'}} 2026-07-18 15:44:34,716 - DEBUG - Response for create_subnet : {'subnet': {'id': '88d3f78a-4551-41d0-a001-b4e5b9ae727b', 'name': '', 'tenant_id': 'a17f162f42144fa885b3e687aa1f773b', 'network_id': 'df20403c-a45a-4ac3-885a-65c1a8afc7dc', 'ip_version': 6, 'cidr': '2e6d:81f3:e685:457d:16ea:9615::/96', 'allocation_pools': [{'start': '2e6d:81f3:e685:457d:16ea:9615:0:2', 'end': '2e6d:81f3:e685:457d:16ea:9615:ffff:fffe'}], 'gateway_ip': '2e6d:81f3:e685:457d:16ea:9615:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e6d:81f3:e685:457d:16ea:9615:0:2', 'tags': [], 'project_id': 'a17f162f42144fa885b3e687aa1f773b'}} 2026-07-18 15:44:34,736 - INFO - Created VN ctest-vn4-62568549 2026-07-18 15:44:34,787 - DEBUG - VN ctest-vn4-62568549 UUID is df20403c-a45a-4ac3-885a-65c1a8afc7dc 2026-07-18 15:44:35,004 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'df20403c-a45a-4ac3-885a-65c1a8afc7dc', 'name': 'ctest-vn4-62568549', 'tenant_id': 'a17f162f42144fa885b3e687aa1f773b', 'project_id': 'a17f162f42144fa885b3e687aa1f773b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d2b03daf-a122-4107-9d5f-532797d297f5', '88d3f78a-4551-41d0-a001-b4e5b9ae727b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88435539', 'ctest-vn4-62568549'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88435539', 'ctest-policy1-14268686']], 'subnet_ipam': [{'subnet_cidr': '132.147.148.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e6d:81f3:e685:457d:16ea:9615::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-18 15:44:35,179 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-07-18 15:44:35,548 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-07-18 15:44:35,578 - DEBUG - Requesting: http://10.0.0.22:8082/domain/57cf94c0-b0fc-4afc-b83e-cd5679560f9b 2026-07-18 15:44:35,592 - DEBUG - Requesting: http://10.0.0.22:8082/project/a17f162f-4214-4fa8-85b3-e687aa1f773b 2026-07-18 15:44:35,674 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/df20403c-a45a-4ac3-885a-65c1a8afc7dc 2026-07-18 15:44:35,690 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/df20403c-a45a-4ac3-885a-65c1a8afc7dc 2026-07-18 15:44:35,702 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/082a76ca-6a29-4b82-ae4a-6aa4851b0191 2026-07-18 15:44:35,712 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/082a76ca-6a29-4b82-ae4a-6aa4851b0191 2026-07-18 15:44:35,721 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/8ee97ec4-1fc3-493b-945f-51eead7c7a91 2026-07-18 15:44:35,728 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-18 15:44:35,728 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/df20403c-a45a-4ac3-885a-65c1a8afc7dc 2026-07-18 15:44:35,739 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/082a76ca-6a29-4b82-ae4a-6aa4851b0191 2026-07-18 15:44:35,755 - INFO - Verified VN network id 11 for VN df20403c-a45a-4ac3-885a-65c1a8afc7dc 2026-07-18 15:44:35,755 - INFO - Verifications in API Server for VN ctest-vn4-62568549 passed 2026-07-18 15:44:35,755 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/df20403c-a45a-4ac3-885a-65c1a8afc7dc 2026-07-18 15:44:35,765 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/082a76ca-6a29-4b82-ae4a-6aa4851b0191 2026-07-18 15:44:35,774 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/082a76ca-6a29-4b82-ae4a-6aa4851b0191 2026-07-18 15:44:35,782 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/8ee97ec4-1fc3-493b-945f-51eead7c7a91 2026-07-18 15:44:35,796 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88435539:ctest-vn4-62568549', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88435539', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16077921298912266947', 'uuid-lslong': '9825277419495344092'}, 'enable': 'true', 'created': '2026-07-18T15:44:34', 'last-modified': '2026-07-18T15:44:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.820582'} 2026-07-18 15:44:35,804 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-18 15:44:35,804 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-62568549 passed 2026-07-18 15:44:35,804 - DEBUG - ====Verifying policy data for ctest-vn4-62568549 in API_Server ====== 2026-07-18 15:44:35,804 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-07-18 15:44:35,812 - DEBUG - Requesting: http://10.0.0.22:8082/domain/57cf94c0-b0fc-4afc-b83e-cd5679560f9b 2026-07-18 15:44:35,824 - DEBUG - Requesting: http://10.0.0.22:8082/project/a17f162f-4214-4fa8-85b3-e687aa1f773b 2026-07-18 15:44:35,899 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/df20403c-a45a-4ac3-885a-65c1a8afc7dc 2026-07-18 15:44:35,912 - DEBUG - ==>Verifying data for policy with id: c1237583-ce20-4d3e-849f-b1218fd281cb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88435539', 'ctest-policy1-14268686'] 2026-07-18 15:44:35,913 - INFO - VN ctest-vn4-62568549 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-18 15:44:35,913 - DEBUG - Verifying the vn in opserver 2026-07-18 15:44:35,913 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88435539:ctest-vn4-62568549 virtual network link through opserver 10.0.0.22 2026-07-18 15:44:35,913 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-07-18 15:44:36,297 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-07-18 15:44:36,365 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88435539:ctest-vn4-62568549', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88435539:ctest-vn4-62568549?flat'} 2026-07-18 15:44:36,365 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88435539:ctest-vn4-62568549 is found in opserver 2026-07-18 15:44:36,374 - DEBUG - Do not have enough data to verify VN in agent 2026-07-18 15:44:36,379 - DEBUG - VRF ids for VN ctest-vn4-62568549: {} 2026-07-18 15:44:36,379 - DEBUG - ====Verifying data for ctest-policy1-14268686 in API_Server ====== 2026-07-18 15:44:36,379 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-07-18 15:44:36,386 - DEBUG - Requesting: http://10.0.0.22:8082/domain/57cf94c0-b0fc-4afc-b83e-cd5679560f9b 2026-07-18 15:44:36,399 - DEBUG - Requesting: http://10.0.0.22:8082/project/a17f162f-4214-4fa8-85b3-e687aa1f773b 2026-07-18 15:44:36,479 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/c1237583-ce20-4d3e-849f-b1218fd281cb 2026-07-18 15:44:36,488 - INFO - Verified policy ctest-policy1-14268686 in API Server, Result: True 2026-07-18 15:44:36,488 - INFO - Done with setup and verification, moving onto test .. 2026-07-18 15:44:36,498 - INFO - Deleting VN ctest-vn4-62568549 2026-07-18 15:44:36,631 - DEBUG - Response for deleting network () 2026-07-18 15:44:36,631 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/082a76ca-6a29-4b82-ae4a-6aa4851b0191 2026-07-18 15:44:36,638 - DEBUG - Response Code: 404 2026-07-18 15:44:36,638 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-07-18 15:44:36,647 - DEBUG - Requesting: http://10.0.0.22:8082/domain/57cf94c0-b0fc-4afc-b83e-cd5679560f9b 2026-07-18 15:44:36,702 - DEBUG - Requesting: http://10.0.0.22:8082/project/a17f162f-4214-4fa8-85b3-e687aa1f773b 2026-07-18 15:44:36,775 - INFO - Validated that VN ctest-vn4-62568549 is not found in API Server 2026-07-18 15:44:36,786 - DEBUG - VN ctest-vn4-62568549 is not present in Agent 10.0.0.22 2026-07-18 15:44:36,786 - INFO - Validated that VN ctest-vn4-62568549 is not in any agent 2026-07-18 15:44:36,799 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-62568549 info 2026-07-18 15:44:36,837 - INFO - Deleted policy ctest-policy1-14268686 2026-07-18 15:44:37,015 - DEBUG - policy ctest-policy1-14268686 is not found in API Server 2026-07-18 15:44:37,283 - DEBUG - No XMPP flaps were noticed during the test 2026-07-18 15:44:37,283 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-07-18 15:44:37,283 - INFO - -------------------------------------------------------------------------------- 2026-07-18 15:44:37,580 - DEBUG - No XMPP flaps were noticed during the test 2026-07-18 15:44:37,580 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-07-18 15:44:37,580 - INFO - -------------------------------------------------------------------------------- 2026-07-18 15:44:38,360 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-88435539, ID : a17f162f-4214-4fa8-85b3-e687aa1f773b