2026-05-29 15:06:49,312 - INFO - Domain Default found not creating 2026-05-29 15:06:49,492 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95762341 not found, creating it 2026-05-29 15:06:49,967 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95762341, ID : 681616ae-c022-4240-9665-75a102799d22 2026-05-29 15:06:51,495 - INFO - ================================================================================ 2026-05-29 15:06:51,495 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-29 15:06:51,750 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-05-29 15:06:51,750 - INFO - Initial checks done. Running the testcase now 2026-05-29 15:06:51,750 - INFO - 2026-05-29 15:06:51,750 - INFO - ================================================================================ 2026-05-29 15:06:51,750 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-29 15:06:51,750 - 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-05-29 15:06:52,054 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-05-29 15:06:52,054 - INFO - Initial checks done. Running the testcase now 2026-05-29 15:06:52,054 - INFO - 2026-05-29 15:06:52,426 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95762341:ctest-vn4-29162057, 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-95762341:ctest-vn4-29162057, 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-95762341:ctest-vn4-29162057, 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-95762341:ctest-vn4-29162057, 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-05-29 15:06:52,944 - DEBUG - Response for create_network : {'network': {'id': '86d10f2a-7484-4c6f-9d4b-84f74e9dd14b', 'name': 'ctest-vn4-29162057', 'tenant_id': '681616aec0224240966575a102799d22', 'project_id': '681616aec0224240966575a102799d22', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95762341', 'ctest-vn4-29162057'], 'port_security_enabled': True, 'description': ''}} 2026-05-29 15:06:53,149 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ed49a35-5eef-4c19-9d1c-e93db0d2a578', 'name': '', 'tenant_id': '681616aec0224240966575a102799d22', 'network_id': '86d10f2a-7484-4c6f-9d4b-84f74e9dd14b', 'ip_version': 4, 'cidr': '187.75.153.64/26', 'allocation_pools': [{'start': '187.75.153.66', 'end': '187.75.153.126'}], 'gateway_ip': '187.75.153.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.75.153.66', 'tags': [], 'project_id': '681616aec0224240966575a102799d22'}} 2026-05-29 15:06:53,319 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe5b3e3a-304f-4b80-a636-bb9433774281', 'name': '', 'tenant_id': '681616aec0224240966575a102799d22', 'network_id': '86d10f2a-7484-4c6f-9d4b-84f74e9dd14b', 'ip_version': 6, 'cidr': '3881:7a84:9ba7:eb92:f84d:1dcc::/96', 'allocation_pools': [{'start': '3881:7a84:9ba7:eb92:f84d:1dcc:0:2', 'end': '3881:7a84:9ba7:eb92:f84d:1dcc:ffff:fffe'}], 'gateway_ip': '3881:7a84:9ba7:eb92:f84d:1dcc:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3881:7a84:9ba7:eb92:f84d:1dcc:0:2', 'tags': [], 'project_id': '681616aec0224240966575a102799d22'}} 2026-05-29 15:06:53,344 - INFO - Created VN ctest-vn4-29162057 2026-05-29 15:06:53,397 - DEBUG - VN ctest-vn4-29162057 UUID is 86d10f2a-7484-4c6f-9d4b-84f74e9dd14b 2026-05-29 15:06:53,619 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '86d10f2a-7484-4c6f-9d4b-84f74e9dd14b', 'name': 'ctest-vn4-29162057', 'tenant_id': '681616aec0224240966575a102799d22', 'project_id': '681616aec0224240966575a102799d22', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5ed49a35-5eef-4c19-9d1c-e93db0d2a578', 'fe5b3e3a-304f-4b80-a636-bb9433774281'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95762341', 'ctest-vn4-29162057'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95762341', 'ctest-policy1-46987223']], 'subnet_ipam': [{'subnet_cidr': '187.75.153.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3881:7a84:9ba7:eb92:f84d:1dcc::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-29 15:06:53,777 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-29 15:06:54,089 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-29 15:06:54,126 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b78934c7-cc6b-44b5-bafa-a67d44955569 2026-05-29 15:06:54,140 - DEBUG - Requesting: http://10.0.0.33:8082/project/681616ae-c022-4240-9665-75a102799d22 2026-05-29 15:06:54,215 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/86d10f2a-7484-4c6f-9d4b-84f74e9dd14b 2026-05-29 15:06:54,230 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/86d10f2a-7484-4c6f-9d4b-84f74e9dd14b 2026-05-29 15:06:54,242 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0709984a-1e19-4219-86ed-31bc3030b4db 2026-05-29 15:06:54,251 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0709984a-1e19-4219-86ed-31bc3030b4db 2026-05-29 15:06:54,259 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6581cd48-1dc7-4a82-86d0-1c2c0762c69f 2026-05-29 15:06:54,267 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-29 15:06:54,268 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/86d10f2a-7484-4c6f-9d4b-84f74e9dd14b 2026-05-29 15:06:54,279 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0709984a-1e19-4219-86ed-31bc3030b4db 2026-05-29 15:06:54,296 - INFO - Verified VN network id 11 for VN 86d10f2a-7484-4c6f-9d4b-84f74e9dd14b 2026-05-29 15:06:54,296 - INFO - Verifications in API Server for VN ctest-vn4-29162057 passed 2026-05-29 15:06:54,296 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/86d10f2a-7484-4c6f-9d4b-84f74e9dd14b 2026-05-29 15:06:54,310 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0709984a-1e19-4219-86ed-31bc3030b4db 2026-05-29 15:06:54,318 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0709984a-1e19-4219-86ed-31bc3030b4db 2026-05-29 15:06:54,325 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6581cd48-1dc7-4a82-86d0-1c2c0762c69f 2026-05-29 15:06:54,337 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95762341:ctest-vn4-29162057', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95762341', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9714562546232740975', 'uuid-lslong': '11334299084918739275'}, 'enable': 'true', 'created': '2026-05-29T15:06:52', 'last-modified': '2026-05-29T15:06:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.744643'} 2026-05-29 15:06:54,344 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-29 15:06:54,344 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-29162057 passed 2026-05-29 15:06:54,344 - DEBUG - ====Verifying policy data for ctest-vn4-29162057 in API_Server ====== 2026-05-29 15:06:54,344 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-29 15:06:54,350 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b78934c7-cc6b-44b5-bafa-a67d44955569 2026-05-29 15:06:54,362 - DEBUG - Requesting: http://10.0.0.33:8082/project/681616ae-c022-4240-9665-75a102799d22 2026-05-29 15:06:54,436 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/86d10f2a-7484-4c6f-9d4b-84f74e9dd14b 2026-05-29 15:06:54,448 - DEBUG - ==>Verifying data for policy with id: 3b1a77bb-3262-4b08-924c-03e3c6940b2a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95762341', 'ctest-policy1-46987223'] 2026-05-29 15:06:54,448 - INFO - VN ctest-vn4-29162057 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-29 15:06:54,448 - DEBUG - Verifying the vn in opserver 2026-05-29 15:06:54,448 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95762341:ctest-vn4-29162057 virtual network link through opserver 10.0.0.33 2026-05-29 15:06:54,449 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-05-29 15:06:54,746 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-05-29 15:06:54,817 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95762341:ctest-vn4-29162057', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95762341:ctest-vn4-29162057?flat'} 2026-05-29 15:06:54,817 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95762341:ctest-vn4-29162057 is found in opserver 2026-05-29 15:06:54,828 - DEBUG - Do not have enough data to verify VN in agent 2026-05-29 15:06:54,833 - DEBUG - VRF ids for VN ctest-vn4-29162057: {} 2026-05-29 15:06:54,833 - DEBUG - ====Verifying data for ctest-policy1-46987223 in API_Server ====== 2026-05-29 15:06:54,833 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-29 15:06:54,839 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b78934c7-cc6b-44b5-bafa-a67d44955569 2026-05-29 15:06:54,851 - DEBUG - Requesting: http://10.0.0.33:8082/project/681616ae-c022-4240-9665-75a102799d22 2026-05-29 15:06:54,923 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/3b1a77bb-3262-4b08-924c-03e3c6940b2a 2026-05-29 15:06:54,933 - INFO - Verified policy ctest-policy1-46987223 in API Server, Result: True 2026-05-29 15:06:54,933 - INFO - Done with setup and verification, moving onto test .. 2026-05-29 15:06:54,941 - INFO - Deleting VN ctest-vn4-29162057 2026-05-29 15:06:55,077 - DEBUG - Response for deleting network () 2026-05-29 15:06:55,078 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0709984a-1e19-4219-86ed-31bc3030b4db 2026-05-29 15:06:55,084 - DEBUG - Response Code: 404 2026-05-29 15:06:55,085 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-29 15:06:55,092 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b78934c7-cc6b-44b5-bafa-a67d44955569 2026-05-29 15:06:55,147 - DEBUG - Requesting: http://10.0.0.33:8082/project/681616ae-c022-4240-9665-75a102799d22 2026-05-29 15:06:55,220 - INFO - Validated that VN ctest-vn4-29162057 is not found in API Server 2026-05-29 15:06:55,232 - DEBUG - VN ctest-vn4-29162057 is not present in Agent 10.0.0.33 2026-05-29 15:06:55,233 - INFO - Validated that VN ctest-vn4-29162057 is not in any agent 2026-05-29 15:06:55,249 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-29162057 info 2026-05-29 15:06:55,274 - INFO - Deleted policy ctest-policy1-46987223 2026-05-29 15:06:55,440 - DEBUG - policy ctest-policy1-46987223 is not found in API Server 2026-05-29 15:06:55,703 - DEBUG - No XMPP flaps were noticed during the test