2026-01-20 19:09:31,055 - INFO - Domain Default found not creating 2026-01-20 19:09:31,256 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-80708647 not found, creating it 2026-01-20 19:09:31,739 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-80708647, ID : d31f7a13-268b-44a6-be60-9d966ab6000a 2026-01-20 19:09:33,385 - INFO - ================================================================================ 2026-01-20 19:09:33,385 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-20 19:09:33,641 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-01-20 19:09:33,642 - INFO - Initial checks done. Running the testcase now 2026-01-20 19:09:33,642 - INFO - 2026-01-20 19:09:33,642 - INFO - ================================================================================ 2026-01-20 19:09:33,642 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-20 19:09:33,642 - 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-20 19:09:33,944 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-01-20 19:09:33,944 - INFO - Initial checks done. Running the testcase now 2026-01-20 19:09:33,944 - INFO - 2026-01-20 19:09:34,342 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80708647:ctest-vn4-19883885, 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-80708647:ctest-vn4-19883885, 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-80708647:ctest-vn4-19883885, 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-80708647:ctest-vn4-19883885, 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-20 19:09:34,891 - DEBUG - Response for create_network : {'network': {'id': '25cd250b-14b9-4d98-94fd-c8699c42fe27', 'name': 'ctest-vn4-19883885', 'tenant_id': 'd31f7a13268b44a6be609d966ab6000a', 'project_id': 'd31f7a13268b44a6be609d966ab6000a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80708647', 'ctest-vn4-19883885'], 'port_security_enabled': True, 'description': ''}} 2026-01-20 19:09:35,088 - DEBUG - Response for create_subnet : {'subnet': {'id': '1947f60a-1f4b-42f3-9274-cdb8895094e9', 'name': '', 'tenant_id': 'd31f7a13268b44a6be609d966ab6000a', 'network_id': '25cd250b-14b9-4d98-94fd-c8699c42fe27', 'ip_version': 4, 'cidr': '47.73.136.128/26', 'allocation_pools': [{'start': '47.73.136.130', 'end': '47.73.136.190'}], 'gateway_ip': '47.73.136.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.73.136.130', 'tags': [], 'project_id': 'd31f7a13268b44a6be609d966ab6000a'}} 2026-01-20 19:09:35,344 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cacd910d-12d1-4d30-a10f-f08fc4d8c95c', 'name': '', 'tenant_id': 'd31f7a13268b44a6be609d966ab6000a', 'network_id': '25cd250b-14b9-4d98-94fd-c8699c42fe27', 'ip_version': 6, 'cidr': '227c:53f1:b0e6:5d81:e4ba:20a0::/96', 'allocation_pools': [{'start': '227c:53f1:b0e6:5d81:e4ba:20a0:0:2', 'end': '227c:53f1:b0e6:5d81:e4ba:20a0:ffff:fffe'}], 'gateway_ip': '227c:53f1:b0e6:5d81:e4ba:20a0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '227c:53f1:b0e6:5d81:e4ba:20a0:0:2', 'tags': [], 'project_id': 'd31f7a13268b44a6be609d966ab6000a'}} 2026-01-20 19:09:35,364 - INFO - Created VN ctest-vn4-19883885 2026-01-20 19:09:35,416 - DEBUG - VN ctest-vn4-19883885 UUID is 25cd250b-14b9-4d98-94fd-c8699c42fe27 2026-01-20 19:09:35,621 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '25cd250b-14b9-4d98-94fd-c8699c42fe27', 'name': 'ctest-vn4-19883885', 'tenant_id': 'd31f7a13268b44a6be609d966ab6000a', 'project_id': 'd31f7a13268b44a6be609d966ab6000a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1947f60a-1f4b-42f3-9274-cdb8895094e9', 'cacd910d-12d1-4d30-a10f-f08fc4d8c95c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80708647', 'ctest-vn4-19883885'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80708647', 'ctest-policy1-89616424']], 'subnet_ipam': [{'subnet_cidr': '47.73.136.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '227c:53f1:b0e6:5d81:e4ba:20a0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-20 19:09:35,788 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-20 19:09:36,122 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-20 19:09:36,154 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2b5864c4-38c7-4d5b-ac84-039c5cb39ec8 2026-01-20 19:09:36,169 - DEBUG - Requesting: http://10.0.0.38:8082/project/d31f7a13-268b-44a6-be60-9d966ab6000a 2026-01-20 19:09:36,238 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/25cd250b-14b9-4d98-94fd-c8699c42fe27 2026-01-20 19:09:36,250 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/25cd250b-14b9-4d98-94fd-c8699c42fe27 2026-01-20 19:09:36,260 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a191cbc-c2dc-445d-a247-f8428a609451 2026-01-20 19:09:36,267 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a191cbc-c2dc-445d-a247-f8428a609451 2026-01-20 19:09:36,274 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e52b32c6-ccde-4634-9de4-ff102fc0ccea 2026-01-20 19:09:36,280 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-20 19:09:36,280 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/25cd250b-14b9-4d98-94fd-c8699c42fe27 2026-01-20 19:09:36,290 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a191cbc-c2dc-445d-a247-f8428a609451 2026-01-20 19:09:36,302 - INFO - Verified VN network id 11 for VN 25cd250b-14b9-4d98-94fd-c8699c42fe27 2026-01-20 19:09:36,302 - INFO - Verifications in API Server for VN ctest-vn4-19883885 passed 2026-01-20 19:09:36,303 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/25cd250b-14b9-4d98-94fd-c8699c42fe27 2026-01-20 19:09:36,311 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a191cbc-c2dc-445d-a247-f8428a609451 2026-01-20 19:09:36,317 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a191cbc-c2dc-445d-a247-f8428a609451 2026-01-20 19:09:36,323 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e52b32c6-ccde-4634-9de4-ff102fc0ccea 2026-01-20 19:09:36,334 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80708647:ctest-vn4-19883885', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80708647', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2723874079151574424', 'uuid-lslong': '10735957442639887911'}, 'enable': 'true', 'created': '2026-01-20T19:09:34', 'last-modified': '2026-01-20T19:09:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.735561'} 2026-01-20 19:09:36,340 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-20 19:09:36,341 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-19883885 passed 2026-01-20 19:09:36,341 - DEBUG - ====Verifying policy data for ctest-vn4-19883885 in API_Server ====== 2026-01-20 19:09:36,341 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-20 19:09:36,346 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2b5864c4-38c7-4d5b-ac84-039c5cb39ec8 2026-01-20 19:09:36,357 - DEBUG - Requesting: http://10.0.0.38:8082/project/d31f7a13-268b-44a6-be60-9d966ab6000a 2026-01-20 19:09:36,427 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/25cd250b-14b9-4d98-94fd-c8699c42fe27 2026-01-20 19:09:36,437 - DEBUG - ==>Verifying data for policy with id: 003c068c-5ab9-4c46-bea7-12ae39d0dc11, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80708647', 'ctest-policy1-89616424'] 2026-01-20 19:09:36,437 - INFO - VN ctest-vn4-19883885 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-20 19:09:36,438 - DEBUG - Verifying the vn in opserver 2026-01-20 19:09:36,438 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80708647:ctest-vn4-19883885 virtual network link through opserver 10.0.0.38 2026-01-20 19:09:36,438 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-20 19:09:36,771 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-20 19:09:36,837 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80708647:ctest-vn4-19883885', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80708647:ctest-vn4-19883885?flat'} 2026-01-20 19:09:36,837 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80708647:ctest-vn4-19883885 is found in opserver 2026-01-20 19:09:36,847 - DEBUG - Do not have enough data to verify VN in agent 2026-01-20 19:09:36,852 - DEBUG - VRF ids for VN ctest-vn4-19883885: {} 2026-01-20 19:09:36,852 - DEBUG - ====Verifying data for ctest-policy1-89616424 in API_Server ====== 2026-01-20 19:09:36,852 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-20 19:09:36,859 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2b5864c4-38c7-4d5b-ac84-039c5cb39ec8 2026-01-20 19:09:36,870 - DEBUG - Requesting: http://10.0.0.38:8082/project/d31f7a13-268b-44a6-be60-9d966ab6000a 2026-01-20 19:09:36,944 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/003c068c-5ab9-4c46-bea7-12ae39d0dc11 2026-01-20 19:09:36,955 - INFO - Verified policy ctest-policy1-89616424 in API Server, Result: True 2026-01-20 19:09:36,955 - INFO - Done with setup and verification, moving onto test .. 2026-01-20 19:09:36,964 - INFO - Deleting VN ctest-vn4-19883885 2026-01-20 19:09:37,091 - DEBUG - Response for deleting network () 2026-01-20 19:09:37,091 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a191cbc-c2dc-445d-a247-f8428a609451 2026-01-20 19:09:37,096 - DEBUG - Response Code: 404 2026-01-20 19:09:37,097 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-20 19:09:37,102 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2b5864c4-38c7-4d5b-ac84-039c5cb39ec8 2026-01-20 19:09:37,161 - DEBUG - Requesting: http://10.0.0.38:8082/project/d31f7a13-268b-44a6-be60-9d966ab6000a 2026-01-20 19:09:37,236 - INFO - Validated that VN ctest-vn4-19883885 is not found in API Server 2026-01-20 19:09:37,247 - DEBUG - VN ctest-vn4-19883885 is not present in Agent 10.0.0.38 2026-01-20 19:09:37,247 - INFO - Validated that VN ctest-vn4-19883885 is not in any agent 2026-01-20 19:09:37,264 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-19883885 info 2026-01-20 19:09:37,296 - INFO - Deleted policy ctest-policy1-89616424 2026-01-20 19:09:37,463 - DEBUG - policy ctest-policy1-89616424 is not found in API Server 2026-01-20 19:09:37,718 - DEBUG - No XMPP flaps were noticed during the test