2026-02-12 16:01:59,089 - INFO - Domain Default found not creating 2026-02-12 16:01:59,244 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-32660782 not found, creating it 2026-02-12 16:01:59,685 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-32660782, ID : 5c477478-5c5e-4c3b-bcdf-27b4781b679d 2026-02-12 16:02:01,228 - INFO - ================================================================================ 2026-02-12 16:02:01,228 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 16:02:01,495 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-12 16:02:01,495 - INFO - Initial checks done. Running the testcase now 2026-02-12 16:02:01,495 - INFO - 2026-02-12 16:02:01,495 - INFO - ================================================================================ 2026-02-12 16:02:01,495 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 16:02:01,495 - 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-12 16:02:01,776 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-12 16:02:01,776 - INFO - Initial checks done. Running the testcase now 2026-02-12 16:02:01,776 - INFO - 2026-02-12 16:02:02,144 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32660782:ctest-vn4-42591054, 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-32660782:ctest-vn4-42591054, 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-32660782:ctest-vn4-42591054, 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-32660782:ctest-vn4-42591054, 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-12 16:02:02,667 - DEBUG - Response for create_network : {'network': {'id': '1411ae44-2626-40fc-b493-cdab5806e04b', 'name': 'ctest-vn4-42591054', 'tenant_id': '5c4774785c5e4c3bbcdf27b4781b679d', 'project_id': '5c4774785c5e4c3bbcdf27b4781b679d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32660782', 'ctest-vn4-42591054'], 'port_security_enabled': True, 'description': ''}} 2026-02-12 16:02:02,850 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f2c873e-8407-405b-b1d4-30130e9b42fe', 'name': '', 'tenant_id': '5c4774785c5e4c3bbcdf27b4781b679d', 'network_id': '1411ae44-2626-40fc-b493-cdab5806e04b', 'ip_version': 4, 'cidr': '49.254.209.64/26', 'allocation_pools': [{'start': '49.254.209.66', 'end': '49.254.209.126'}], 'gateway_ip': '49.254.209.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.254.209.66', 'tags': [], 'project_id': '5c4774785c5e4c3bbcdf27b4781b679d'}} 2026-02-12 16:02:02,986 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f665503e-8bf8-4eaf-9600-c357f881bbc5', 'name': '', 'tenant_id': '5c4774785c5e4c3bbcdf27b4781b679d', 'network_id': '1411ae44-2626-40fc-b493-cdab5806e04b', 'ip_version': 6, 'cidr': '3781:9393:c844:175c:5128:7ac0::/96', 'allocation_pools': [{'start': '3781:9393:c844:175c:5128:7ac0:0:2', 'end': '3781:9393:c844:175c:5128:7ac0:ffff:fffe'}], 'gateway_ip': '3781:9393:c844:175c:5128:7ac0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3781:9393:c844:175c:5128:7ac0:0:2', 'tags': [], 'project_id': '5c4774785c5e4c3bbcdf27b4781b679d'}} 2026-02-12 16:02:03,004 - INFO - Created VN ctest-vn4-42591054 2026-02-12 16:02:03,054 - DEBUG - VN ctest-vn4-42591054 UUID is 1411ae44-2626-40fc-b493-cdab5806e04b 2026-02-12 16:02:03,251 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1411ae44-2626-40fc-b493-cdab5806e04b', 'name': 'ctest-vn4-42591054', 'tenant_id': '5c4774785c5e4c3bbcdf27b4781b679d', 'project_id': '5c4774785c5e4c3bbcdf27b4781b679d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7f2c873e-8407-405b-b1d4-30130e9b42fe', 'f665503e-8bf8-4eaf-9600-c357f881bbc5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32660782', 'ctest-vn4-42591054'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32660782', 'ctest-policy1-63215695']], 'subnet_ipam': [{'subnet_cidr': '49.254.209.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3781:9393:c844:175c:5128:7ac0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-12 16:02:03,414 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-12 16:02:03,744 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-12 16:02:03,775 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2b7e07f2-50e2-4c08-a327-6c1c0e25884b 2026-02-12 16:02:03,786 - DEBUG - Requesting: http://10.0.0.22:8082/project/5c477478-5c5e-4c3b-bcdf-27b4781b679d 2026-02-12 16:02:03,858 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1411ae44-2626-40fc-b493-cdab5806e04b 2026-02-12 16:02:03,870 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1411ae44-2626-40fc-b493-cdab5806e04b 2026-02-12 16:02:03,878 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/35cd2bcf-01c4-4637-951b-3aa1b889dc36 2026-02-12 16:02:03,884 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/35cd2bcf-01c4-4637-951b-3aa1b889dc36 2026-02-12 16:02:03,891 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9021ad68-1d3e-4e20-b898-287a4e62a810 2026-02-12 16:02:03,896 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 16:02:03,896 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1411ae44-2626-40fc-b493-cdab5806e04b 2026-02-12 16:02:03,904 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/35cd2bcf-01c4-4637-951b-3aa1b889dc36 2026-02-12 16:02:03,915 - INFO - Verified VN network id 10 for VN 1411ae44-2626-40fc-b493-cdab5806e04b 2026-02-12 16:02:03,915 - INFO - Verifications in API Server for VN ctest-vn4-42591054 passed 2026-02-12 16:02:03,915 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1411ae44-2626-40fc-b493-cdab5806e04b 2026-02-12 16:02:03,925 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/35cd2bcf-01c4-4637-951b-3aa1b889dc36 2026-02-12 16:02:03,931 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/35cd2bcf-01c4-4637-951b-3aa1b889dc36 2026-02-12 16:02:03,937 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9021ad68-1d3e-4e20-b898-287a4e62a810 2026-02-12 16:02:03,948 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32660782:ctest-vn4-42591054', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-32660782', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1446128563083690236', 'uuid-lslong': '13011969884203442251'}, 'enable': 'true', 'created': '2026-02-12T16:02:02', 'last-modified': '2026-02-12T16:02:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.722339'} 2026-02-12 16:02:03,955 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 16:02:03,955 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-42591054 passed 2026-02-12 16:02:03,955 - DEBUG - ====Verifying policy data for ctest-vn4-42591054 in API_Server ====== 2026-02-12 16:02:03,955 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-12 16:02:03,960 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2b7e07f2-50e2-4c08-a327-6c1c0e25884b 2026-02-12 16:02:03,970 - DEBUG - Requesting: http://10.0.0.22:8082/project/5c477478-5c5e-4c3b-bcdf-27b4781b679d 2026-02-12 16:02:04,043 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1411ae44-2626-40fc-b493-cdab5806e04b 2026-02-12 16:02:04,053 - DEBUG - ==>Verifying data for policy with id: 3f266e8d-84aa-4f21-ac45-0a6e8b9340ab, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32660782', 'ctest-policy1-63215695'] 2026-02-12 16:02:04,053 - INFO - VN ctest-vn4-42591054 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-12 16:02:04,053 - DEBUG - Verifying the vn in opserver 2026-02-12 16:02:04,053 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32660782:ctest-vn4-42591054 virtual network link through opserver 10.0.0.22 2026-02-12 16:02:04,053 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-12 16:02:04,348 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-12 16:02:04,421 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32660782:ctest-vn4-42591054', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32660782:ctest-vn4-42591054?flat'} 2026-02-12 16:02:04,421 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32660782:ctest-vn4-42591054 is found in opserver 2026-02-12 16:02:04,429 - DEBUG - Do not have enough data to verify VN in agent 2026-02-12 16:02:04,434 - DEBUG - VRF ids for VN ctest-vn4-42591054: {} 2026-02-12 16:02:04,434 - DEBUG - ====Verifying data for ctest-policy1-63215695 in API_Server ====== 2026-02-12 16:02:04,434 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-12 16:02:04,439 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2b7e07f2-50e2-4c08-a327-6c1c0e25884b 2026-02-12 16:02:04,449 - DEBUG - Requesting: http://10.0.0.22:8082/project/5c477478-5c5e-4c3b-bcdf-27b4781b679d 2026-02-12 16:02:04,514 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/3f266e8d-84aa-4f21-ac45-0a6e8b9340ab 2026-02-12 16:02:04,523 - INFO - Verified policy ctest-policy1-63215695 in API Server, Result: True 2026-02-12 16:02:04,523 - INFO - Done with setup and verification, moving onto test .. 2026-02-12 16:02:04,530 - INFO - Deleting VN ctest-vn4-42591054 2026-02-12 16:02:04,642 - DEBUG - Response for deleting network () 2026-02-12 16:02:04,642 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/35cd2bcf-01c4-4637-951b-3aa1b889dc36 2026-02-12 16:02:04,646 - DEBUG - Response Code: 404 2026-02-12 16:02:04,646 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-12 16:02:04,652 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2b7e07f2-50e2-4c08-a327-6c1c0e25884b 2026-02-12 16:02:04,703 - DEBUG - Requesting: http://10.0.0.22:8082/project/5c477478-5c5e-4c3b-bcdf-27b4781b679d 2026-02-12 16:02:04,768 - INFO - Validated that VN ctest-vn4-42591054 is not found in API Server 2026-02-12 16:02:04,777 - DEBUG - VN ctest-vn4-42591054 is not present in Agent 10.0.0.22 2026-02-12 16:02:04,777 - INFO - Validated that VN ctest-vn4-42591054 is not in any agent 2026-02-12 16:02:04,789 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-42591054 info 2026-02-12 16:02:04,814 - INFO - Deleted policy ctest-policy1-63215695 2026-02-12 16:02:04,970 - DEBUG - policy ctest-policy1-63215695 is not found in API Server 2026-02-12 16:02:05,223 - DEBUG - No XMPP flaps were noticed during the test 2026-02-12 16:02:05,223 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-12 16:02:05,223 - INFO - -------------------------------------------------------------------------------- 2026-02-12 16:02:05,511 - DEBUG - No XMPP flaps were noticed during the test 2026-02-12 16:02:05,511 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-12 16:02:05,511 - INFO - -------------------------------------------------------------------------------- 2026-02-12 16:02:06,221 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-32660782, ID : 5c477478-5c5e-4c3b-bcdf-27b4781b679d