2026-02-02 12:56:30,259 - INFO - Domain Default found not creating 2026-02-02 12:56:30,456 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-80694503 not found, creating it 2026-02-02 12:56:30,961 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-80694503, ID : 1cca1b72-b341-4c71-9b91-af99391b2f16 2026-02-02 12:56:32,893 - INFO - ================================================================================ 2026-02-02 12:56:32,893 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 12:56:33,165 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with 2026-02-02 12:56:33,165 - INFO - Initial checks done. Running the testcase now 2026-02-02 12:56:33,165 - INFO - 2026-02-02 12:56:33,165 - INFO - ================================================================================ 2026-02-02 12:56:33,165 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 12:56:33,165 - 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-02 12:56:33,461 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with 2026-02-02 12:56:33,461 - INFO - Initial checks done. Running the testcase now 2026-02-02 12:56:33,461 - INFO - 2026-02-02 12:56:33,812 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80694503:ctest-vn4-77448705, 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-80694503:ctest-vn4-77448705, 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-80694503:ctest-vn4-77448705, 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-80694503:ctest-vn4-77448705, 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-02 12:56:34,366 - DEBUG - Response for create_network : {'network': {'id': 'd3b72025-a3c4-47ae-b6c0-c78fc41a6ede', 'name': 'ctest-vn4-77448705', 'tenant_id': '1cca1b72b3414c719b91af99391b2f16', 'project_id': '1cca1b72b3414c719b91af99391b2f16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80694503', 'ctest-vn4-77448705'], 'port_security_enabled': True, 'description': ''}} 2026-02-02 12:56:34,539 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cac1f9df-66f5-47af-a562-79e34a628ed3', 'name': '', 'tenant_id': '1cca1b72b3414c719b91af99391b2f16', 'network_id': 'd3b72025-a3c4-47ae-b6c0-c78fc41a6ede', 'ip_version': 4, 'cidr': '202.61.30.0/26', 'allocation_pools': [{'start': '202.61.30.2', 'end': '202.61.30.62'}], 'gateway_ip': '202.61.30.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.61.30.2', 'tags': [], 'project_id': '1cca1b72b3414c719b91af99391b2f16'}} 2026-02-02 12:56:34,700 - DEBUG - Response for create_subnet : {'subnet': {'id': '067285df-2bc9-4e37-aebd-0ad8fb9eb79a', 'name': '', 'tenant_id': '1cca1b72b3414c719b91af99391b2f16', 'network_id': 'd3b72025-a3c4-47ae-b6c0-c78fc41a6ede', 'ip_version': 6, 'cidr': '3423:cea:def9:5f67:584c:9353::/96', 'allocation_pools': [{'start': '3423:cea:def9:5f67:584c:9353:0:2', 'end': '3423:cea:def9:5f67:584c:9353:ffff:fffe'}], 'gateway_ip': '3423:cea:def9:5f67:584c:9353:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3423:cea:def9:5f67:584c:9353:0:2', 'tags': [], 'project_id': '1cca1b72b3414c719b91af99391b2f16'}} 2026-02-02 12:56:34,723 - INFO - Created VN ctest-vn4-77448705 2026-02-02 12:56:34,775 - DEBUG - VN ctest-vn4-77448705 UUID is d3b72025-a3c4-47ae-b6c0-c78fc41a6ede 2026-02-02 12:56:34,993 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd3b72025-a3c4-47ae-b6c0-c78fc41a6ede', 'name': 'ctest-vn4-77448705', 'tenant_id': '1cca1b72b3414c719b91af99391b2f16', 'project_id': '1cca1b72b3414c719b91af99391b2f16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cac1f9df-66f5-47af-a562-79e34a628ed3', '067285df-2bc9-4e37-aebd-0ad8fb9eb79a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80694503', 'ctest-vn4-77448705'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80694503', 'ctest-policy1-15528160']], 'subnet_ipam': [{'subnet_cidr': '202.61.30.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3423:cea:def9:5f67:584c:9353::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-02 12:56:35,158 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-02 12:56:35,463 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-02 12:56:35,495 - DEBUG - Requesting: http://10.0.0.129:8082/domain/e8660c38-585c-4d05-9c60-2599c1ad8ea8 2026-02-02 12:56:35,508 - DEBUG - Requesting: http://10.0.0.129:8082/project/1cca1b72-b341-4c71-9b91-af99391b2f16 2026-02-02 12:56:35,582 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/d3b72025-a3c4-47ae-b6c0-c78fc41a6ede 2026-02-02 12:56:35,595 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/d3b72025-a3c4-47ae-b6c0-c78fc41a6ede 2026-02-02 12:56:35,605 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/387abddc-9b07-458e-8bf6-b802abc267b2 2026-02-02 12:56:35,613 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/387abddc-9b07-458e-8bf6-b802abc267b2 2026-02-02 12:56:35,619 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/6c29879a-9504-4738-84b2-de7708519b34 2026-02-02 12:56:35,626 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 12:56:35,626 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/d3b72025-a3c4-47ae-b6c0-c78fc41a6ede 2026-02-02 12:56:35,636 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/387abddc-9b07-458e-8bf6-b802abc267b2 2026-02-02 12:56:35,652 - INFO - Verified VN network id 10 for VN d3b72025-a3c4-47ae-b6c0-c78fc41a6ede 2026-02-02 12:56:35,652 - INFO - Verifications in API Server for VN ctest-vn4-77448705 passed 2026-02-02 12:56:35,652 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/d3b72025-a3c4-47ae-b6c0-c78fc41a6ede 2026-02-02 12:56:35,664 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/387abddc-9b07-458e-8bf6-b802abc267b2 2026-02-02 12:56:35,672 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/387abddc-9b07-458e-8bf6-b802abc267b2 2026-02-02 12:56:35,678 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/6c29879a-9504-4738-84b2-de7708519b34 2026-02-02 12:56:35,692 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80694503:ctest-vn4-77448705', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80694503', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15255697608774272942', 'uuid-lslong': '13168744730715647710'}, 'enable': 'true', 'created': '2026-02-02T12:56:34', 'last-modified': '2026-02-02T12:56:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.728256'} 2026-02-02 12:56:35,700 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 12:56:35,700 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-77448705 passed 2026-02-02 12:56:35,700 - DEBUG - ====Verifying policy data for ctest-vn4-77448705 in API_Server ====== 2026-02-02 12:56:35,701 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-02 12:56:35,707 - DEBUG - Requesting: http://10.0.0.129:8082/domain/e8660c38-585c-4d05-9c60-2599c1ad8ea8 2026-02-02 12:56:35,720 - DEBUG - Requesting: http://10.0.0.129:8082/project/1cca1b72-b341-4c71-9b91-af99391b2f16 2026-02-02 12:56:35,800 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/d3b72025-a3c4-47ae-b6c0-c78fc41a6ede 2026-02-02 12:56:35,811 - DEBUG - ==>Verifying data for policy with id: 60e0d26c-8670-493f-8af6-11af930bc40d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80694503', 'ctest-policy1-15528160'] 2026-02-02 12:56:35,811 - INFO - VN ctest-vn4-77448705 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-02 12:56:35,811 - DEBUG - Verifying the vn in opserver 2026-02-02 12:56:35,811 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80694503:ctest-vn4-77448705 virtual network link through opserver 10.0.0.129 2026-02-02 12:56:35,811 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-02 12:56:36,117 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-02 12:56:36,189 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80694503:ctest-vn4-77448705', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80694503:ctest-vn4-77448705?flat'} 2026-02-02 12:56:36,189 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80694503:ctest-vn4-77448705 is found in opserver 2026-02-02 12:56:36,200 - DEBUG - Do not have enough data to verify VN in agent 2026-02-02 12:56:36,204 - DEBUG - VRF ids for VN ctest-vn4-77448705: {} 2026-02-02 12:56:36,205 - DEBUG - ====Verifying data for ctest-policy1-15528160 in API_Server ====== 2026-02-02 12:56:36,205 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-02 12:56:36,211 - DEBUG - Requesting: http://10.0.0.129:8082/domain/e8660c38-585c-4d05-9c60-2599c1ad8ea8 2026-02-02 12:56:36,223 - DEBUG - Requesting: http://10.0.0.129:8082/project/1cca1b72-b341-4c71-9b91-af99391b2f16 2026-02-02 12:56:36,304 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/60e0d26c-8670-493f-8af6-11af930bc40d 2026-02-02 12:56:36,317 - INFO - Verified policy ctest-policy1-15528160 in API Server, Result: True 2026-02-02 12:56:36,317 - INFO - Done with setup and verification, moving onto test .. 2026-02-02 12:56:36,328 - INFO - Deleting VN ctest-vn4-77448705 2026-02-02 12:56:36,475 - DEBUG - Response for deleting network () 2026-02-02 12:56:36,476 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/387abddc-9b07-458e-8bf6-b802abc267b2 2026-02-02 12:56:36,481 - DEBUG - Response Code: 404 2026-02-02 12:56:36,482 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-02 12:56:36,488 - DEBUG - Requesting: http://10.0.0.129:8082/domain/e8660c38-585c-4d05-9c60-2599c1ad8ea8 2026-02-02 12:56:36,540 - DEBUG - Requesting: http://10.0.0.129:8082/project/1cca1b72-b341-4c71-9b91-af99391b2f16 2026-02-02 12:56:36,611 - INFO - Validated that VN ctest-vn4-77448705 is not found in API Server 2026-02-02 12:56:36,623 - DEBUG - VN ctest-vn4-77448705 is not present in Agent 10.0.0.129 2026-02-02 12:56:36,623 - INFO - Validated that VN ctest-vn4-77448705 is not in any agent 2026-02-02 12:56:36,636 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-77448705 info 2026-02-02 12:56:36,661 - INFO - Deleted policy ctest-policy1-15528160 2026-02-02 12:56:36,835 - DEBUG - policy ctest-policy1-15528160 is not found in API Server 2026-02-02 12:56:37,094 - DEBUG - No XMPP flaps were noticed during the test 2026-02-02 12:56:37,094 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-02 12:56:37,095 - INFO - -------------------------------------------------------------------------------- 2026-02-02 12:56:37,385 - DEBUG - No XMPP flaps were noticed during the test 2026-02-02 12:56:37,385 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-02 12:56:37,385 - INFO - -------------------------------------------------------------------------------- 2026-02-02 12:56:38,113 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-80694503, ID : 1cca1b72-b341-4c71-9b91-af99391b2f16