2026-04-03 17:15:02,996 - INFO - Domain Default found not creating 2026-04-03 17:15:03,162 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-92428421 not found, creating it 2026-04-03 17:15:03,639 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-92428421, ID : b6f13e7b-cc30-42df-9882-92f72fc96b85 2026-04-03 17:15:05,127 - INFO - ================================================================================ 2026-04-03 17:15:05,127 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-03 17:15:05,382 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.129': '0'}} with 2026-04-03 17:15:05,382 - INFO - Initial checks done. Running the testcase now 2026-04-03 17:15:05,383 - INFO - 2026-04-03 17:15:05,383 - INFO - ================================================================================ 2026-04-03 17:15:05,383 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-03 17:15:05,383 - 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-04-03 17:15:05,676 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.129': '0'}} with 2026-04-03 17:15:05,676 - INFO - Initial checks done. Running the testcase now 2026-04-03 17:15:05,676 - INFO - 2026-04-03 17:15:06,048 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92428421:ctest-vn4-74041836, 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-92428421:ctest-vn4-74041836, 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-92428421:ctest-vn4-74041836, 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-92428421:ctest-vn4-74041836, 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-04-03 17:15:06,547 - DEBUG - Response for create_network : {'network': {'id': '1ae41d3a-1515-447b-b409-3bb8f8299d4c', 'name': 'ctest-vn4-74041836', 'tenant_id': 'b6f13e7bcc3042df988292f72fc96b85', 'project_id': 'b6f13e7bcc3042df988292f72fc96b85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92428421', 'ctest-vn4-74041836'], 'port_security_enabled': True, 'description': ''}} 2026-04-03 17:15:06,739 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b9f576ce-05b7-4551-8eb4-1b4c4241e2a5', 'name': '', 'tenant_id': 'b6f13e7bcc3042df988292f72fc96b85', 'network_id': '1ae41d3a-1515-447b-b409-3bb8f8299d4c', 'ip_version': 4, 'cidr': '47.230.41.0/26', 'allocation_pools': [{'start': '47.230.41.2', 'end': '47.230.41.62'}], 'gateway_ip': '47.230.41.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.230.41.2', 'tags': [], 'project_id': 'b6f13e7bcc3042df988292f72fc96b85'}} 2026-04-03 17:15:06,911 - DEBUG - Response for create_subnet : {'subnet': {'id': '1cca29cf-6dc5-42b5-9b6c-a955b67b1898', 'name': '', 'tenant_id': 'b6f13e7bcc3042df988292f72fc96b85', 'network_id': '1ae41d3a-1515-447b-b409-3bb8f8299d4c', 'ip_version': 6, 'cidr': '33ae:958:5e3:f724:9b4d:f3e3::/96', 'allocation_pools': [{'start': '33ae:958:5e3:f724:9b4d:f3e3:0:2', 'end': '33ae:958:5e3:f724:9b4d:f3e3:ffff:fffe'}], 'gateway_ip': '33ae:958:5e3:f724:9b4d:f3e3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33ae:958:5e3:f724:9b4d:f3e3:0:2', 'tags': [], 'project_id': 'b6f13e7bcc3042df988292f72fc96b85'}} 2026-04-03 17:15:06,932 - INFO - Created VN ctest-vn4-74041836 2026-04-03 17:15:06,984 - DEBUG - VN ctest-vn4-74041836 UUID is 1ae41d3a-1515-447b-b409-3bb8f8299d4c 2026-04-03 17:15:07,180 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1ae41d3a-1515-447b-b409-3bb8f8299d4c', 'name': 'ctest-vn4-74041836', 'tenant_id': 'b6f13e7bcc3042df988292f72fc96b85', 'project_id': 'b6f13e7bcc3042df988292f72fc96b85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b9f576ce-05b7-4551-8eb4-1b4c4241e2a5', '1cca29cf-6dc5-42b5-9b6c-a955b67b1898'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92428421', 'ctest-vn4-74041836'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92428421', 'ctest-policy1-85164080']], 'subnet_ipam': [{'subnet_cidr': '47.230.41.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '33ae:958:5e3:f724:9b4d:f3e3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-03 17:15:07,336 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-04-03 17:15:07,640 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-04-03 17:15:07,672 - DEBUG - Requesting: http://10.0.0.242:8082/domain/9d345874-e433-4419-856a-65500a81fabb 2026-04-03 17:15:07,684 - DEBUG - Requesting: http://10.0.0.242:8082/project/b6f13e7b-cc30-42df-9882-92f72fc96b85 2026-04-03 17:15:07,766 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1ae41d3a-1515-447b-b409-3bb8f8299d4c 2026-04-03 17:15:07,776 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1ae41d3a-1515-447b-b409-3bb8f8299d4c 2026-04-03 17:15:07,784 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/da72cae0-51c2-4c2e-99f7-097a35b1d87e 2026-04-03 17:15:07,791 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/da72cae0-51c2-4c2e-99f7-097a35b1d87e 2026-04-03 17:15:07,797 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/5f7cd8ef-bc69-4634-adf7-62fa3b4c848c 2026-04-03 17:15:07,803 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-03 17:15:07,803 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1ae41d3a-1515-447b-b409-3bb8f8299d4c 2026-04-03 17:15:07,812 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/da72cae0-51c2-4c2e-99f7-097a35b1d87e 2026-04-03 17:15:07,825 - INFO - Verified VN network id 10 for VN 1ae41d3a-1515-447b-b409-3bb8f8299d4c 2026-04-03 17:15:07,825 - INFO - Verifications in API Server for VN ctest-vn4-74041836 passed 2026-04-03 17:15:07,825 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1ae41d3a-1515-447b-b409-3bb8f8299d4c 2026-04-03 17:15:07,834 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/da72cae0-51c2-4c2e-99f7-097a35b1d87e 2026-04-03 17:15:07,842 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/da72cae0-51c2-4c2e-99f7-097a35b1d87e 2026-04-03 17:15:07,850 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/5f7cd8ef-bc69-4634-adf7-62fa3b4c848c 2026-04-03 17:15:07,863 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92428421:ctest-vn4-74041836', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-92428421', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1937705874975179899', 'uuid-lslong': '12972965867240922444'}, 'enable': 'true', 'created': '2026-04-03T17:15:06', 'last-modified': '2026-04-03T17:15:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.704715'} 2026-04-03 17:15:07,870 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-03 17:15:07,870 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-74041836 passed 2026-04-03 17:15:07,870 - DEBUG - ====Verifying policy data for ctest-vn4-74041836 in API_Server ====== 2026-04-03 17:15:07,870 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-04-03 17:15:07,875 - DEBUG - Requesting: http://10.0.0.242:8082/domain/9d345874-e433-4419-856a-65500a81fabb 2026-04-03 17:15:07,885 - DEBUG - Requesting: http://10.0.0.242:8082/project/b6f13e7b-cc30-42df-9882-92f72fc96b85 2026-04-03 17:15:07,963 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1ae41d3a-1515-447b-b409-3bb8f8299d4c 2026-04-03 17:15:07,973 - DEBUG - ==>Verifying data for policy with id: 71dc5a61-eb3d-4fb6-8892-aebc74aa9fae, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92428421', 'ctest-policy1-85164080'] 2026-04-03 17:15:07,973 - INFO - VN ctest-vn4-74041836 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-03 17:15:07,973 - DEBUG - Verifying the vn in opserver 2026-04-03 17:15:07,973 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92428421:ctest-vn4-74041836 virtual network link through opserver 10.0.0.242 2026-04-03 17:15:07,973 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-04-03 17:15:08,268 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-04-03 17:15:08,323 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92428421:ctest-vn4-74041836', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92428421:ctest-vn4-74041836?flat'} 2026-04-03 17:15:08,324 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92428421:ctest-vn4-74041836 is found in opserver 2026-04-03 17:15:08,332 - DEBUG - Do not have enough data to verify VN in agent 2026-04-03 17:15:08,337 - DEBUG - VRF ids for VN ctest-vn4-74041836: {} 2026-04-03 17:15:08,337 - DEBUG - ====Verifying data for ctest-policy1-85164080 in API_Server ====== 2026-04-03 17:15:08,338 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-04-03 17:15:08,343 - DEBUG - Requesting: http://10.0.0.242:8082/domain/9d345874-e433-4419-856a-65500a81fabb 2026-04-03 17:15:08,353 - DEBUG - Requesting: http://10.0.0.242:8082/project/b6f13e7b-cc30-42df-9882-92f72fc96b85 2026-04-03 17:15:08,429 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/71dc5a61-eb3d-4fb6-8892-aebc74aa9fae 2026-04-03 17:15:08,440 - INFO - Verified policy ctest-policy1-85164080 in API Server, Result: True 2026-04-03 17:15:08,440 - INFO - Done with setup and verification, moving onto test .. 2026-04-03 17:15:08,448 - INFO - Deleting VN ctest-vn4-74041836 2026-04-03 17:15:08,586 - DEBUG - Response for deleting network () 2026-04-03 17:15:08,586 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/da72cae0-51c2-4c2e-99f7-097a35b1d87e 2026-04-03 17:15:08,591 - DEBUG - Response Code: 404 2026-04-03 17:15:08,591 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-04-03 17:15:08,596 - DEBUG - Requesting: http://10.0.0.242:8082/domain/9d345874-e433-4419-856a-65500a81fabb 2026-04-03 17:15:08,650 - DEBUG - Requesting: http://10.0.0.242:8082/project/b6f13e7b-cc30-42df-9882-92f72fc96b85 2026-04-03 17:15:08,724 - INFO - Validated that VN ctest-vn4-74041836 is not found in API Server 2026-04-03 17:15:08,733 - DEBUG - VN ctest-vn4-74041836 is not present in Agent 10.0.0.242 2026-04-03 17:15:08,733 - INFO - Validated that VN ctest-vn4-74041836 is not in any agent 2026-04-03 17:15:08,748 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-74041836 info 2026-04-03 17:15:08,776 - INFO - Deleted policy ctest-policy1-85164080 2026-04-03 17:15:08,948 - DEBUG - policy ctest-policy1-85164080 is not found in API Server 2026-04-03 17:15:09,202 - DEBUG - No XMPP flaps were noticed during the test