2026-10-26 14:50:31,776 - INFO - Domain Default found not creating 2026-10-26 14:50:32,025 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-37401074 not found, creating it 2026-10-26 14:50:32,585 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-37401074, ID : 860f3166-a1bf-4eb4-8826-c7bd712af2c7 2026-10-26 14:50:34,624 - INFO - ================================================================================ 2026-10-26 14:50:34,625 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-26 14:50:34,905 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2026-10-26 14:50:34,905 - INFO - Initial checks done. Running the testcase now 2026-10-26 14:50:34,905 - INFO - 2026-10-26 14:50:34,905 - INFO - ================================================================================ 2026-10-26 14:50:34,905 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-26 14:50:34,905 - 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-10-26 14:50:35,201 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2026-10-26 14:50:35,201 - INFO - Initial checks done. Running the testcase now 2026-10-26 14:50:35,201 - INFO - 2026-10-26 14:50:35,655 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37401074:ctest-vn4-07793422, 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-37401074:ctest-vn4-07793422, 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-37401074:ctest-vn4-07793422, 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-37401074:ctest-vn4-07793422, 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-10-26 14:50:36,281 - DEBUG - Response for create_network : {'network': {'id': '041f5553-9e58-4ccc-a63d-096b7621d973', 'name': 'ctest-vn4-07793422', 'tenant_id': '860f3166a1bf4eb48826c7bd712af2c7', 'project_id': '860f3166a1bf4eb48826c7bd712af2c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37401074', 'ctest-vn4-07793422'], 'port_security_enabled': True, 'description': ''}} 2026-10-26 14:50:36,535 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5daac96-1f3a-4d66-b3c1-c7ed5e6205f6', 'name': '', 'tenant_id': '860f3166a1bf4eb48826c7bd712af2c7', 'network_id': '041f5553-9e58-4ccc-a63d-096b7621d973', 'ip_version': 4, 'cidr': '15.191.36.0/26', 'allocation_pools': [{'start': '15.191.36.2', 'end': '15.191.36.62'}], 'gateway_ip': '15.191.36.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.191.36.2', 'tags': [], 'project_id': '860f3166a1bf4eb48826c7bd712af2c7'}} 2026-10-26 14:50:36,747 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7b969df-caa6-4d3e-85bb-9d3d4f3b41ae', 'name': '', 'tenant_id': '860f3166a1bf4eb48826c7bd712af2c7', 'network_id': '041f5553-9e58-4ccc-a63d-096b7621d973', 'ip_version': 6, 'cidr': '2a18:1d37:5700:433b:cfd4:de7d::/96', 'allocation_pools': [{'start': '2a18:1d37:5700:433b:cfd4:de7d:0:2', 'end': '2a18:1d37:5700:433b:cfd4:de7d:ffff:fffe'}], 'gateway_ip': '2a18:1d37:5700:433b:cfd4:de7d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a18:1d37:5700:433b:cfd4:de7d:0:2', 'tags': [], 'project_id': '860f3166a1bf4eb48826c7bd712af2c7'}} 2026-10-26 14:50:36,771 - INFO - Created VN ctest-vn4-07793422 2026-10-26 14:50:36,827 - DEBUG - VN ctest-vn4-07793422 UUID is 041f5553-9e58-4ccc-a63d-096b7621d973 2026-10-26 14:50:37,098 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '041f5553-9e58-4ccc-a63d-096b7621d973', 'name': 'ctest-vn4-07793422', 'tenant_id': '860f3166a1bf4eb48826c7bd712af2c7', 'project_id': '860f3166a1bf4eb48826c7bd712af2c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['d5daac96-1f3a-4d66-b3c1-c7ed5e6205f6', 'f7b969df-caa6-4d3e-85bb-9d3d4f3b41ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37401074', 'ctest-vn4-07793422'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37401074', 'ctest-policy1-12998311']], 'subnet_ipam': [{'subnet_cidr': '15.191.36.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a18:1d37:5700:433b:cfd4:de7d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-26 14:50:37,263 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-26 14:50:37,668 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-26 14:50:37,699 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e291b5af-3f0f-463e-9ce9-038a05513fec 2026-10-26 14:50:37,718 - DEBUG - Requesting: http://10.0.0.38:8082/project/860f3166-a1bf-4eb4-8826-c7bd712af2c7 2026-10-26 14:50:37,812 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/041f5553-9e58-4ccc-a63d-096b7621d973 2026-10-26 14:50:37,831 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/041f5553-9e58-4ccc-a63d-096b7621d973 2026-10-26 14:50:37,847 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0555a0d0-b84f-45f4-be56-500aa43db366 2026-10-26 14:50:37,858 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0555a0d0-b84f-45f4-be56-500aa43db366 2026-10-26 14:50:37,870 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0f12b6ab-bfe3-436f-b14e-96d69055307a 2026-10-26 14:50:37,880 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-26 14:50:37,880 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/041f5553-9e58-4ccc-a63d-096b7621d973 2026-10-26 14:50:37,897 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0555a0d0-b84f-45f4-be56-500aa43db366 2026-10-26 14:50:37,918 - INFO - Verified VN network id 12 for VN 041f5553-9e58-4ccc-a63d-096b7621d973 2026-10-26 14:50:37,918 - INFO - Verifications in API Server for VN ctest-vn4-07793422 passed 2026-10-26 14:50:37,918 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/041f5553-9e58-4ccc-a63d-096b7621d973 2026-10-26 14:50:37,934 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0555a0d0-b84f-45f4-be56-500aa43db366 2026-10-26 14:50:37,944 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0555a0d0-b84f-45f4-be56-500aa43db366 2026-10-26 14:50:37,952 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0f12b6ab-bfe3-436f-b14e-96d69055307a 2026-10-26 14:50:37,973 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37401074:ctest-vn4-07793422', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-37401074', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '297049918056975564', 'uuid-lslong': '11978740941023467891'}, 'enable': 'true', 'created': '2026-10-26T14:50:36', 'last-modified': '2026-10-26T14:50:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.917967'} 2026-10-26 14:50:37,983 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-26 14:50:37,983 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-07793422 passed 2026-10-26 14:50:37,984 - DEBUG - ====Verifying policy data for ctest-vn4-07793422 in API_Server ====== 2026-10-26 14:50:37,984 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-26 14:50:37,991 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e291b5af-3f0f-463e-9ce9-038a05513fec 2026-10-26 14:50:38,006 - DEBUG - Requesting: http://10.0.0.38:8082/project/860f3166-a1bf-4eb4-8826-c7bd712af2c7 2026-10-26 14:50:38,092 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/041f5553-9e58-4ccc-a63d-096b7621d973 2026-10-26 14:50:38,105 - DEBUG - ==>Verifying data for policy with id: 171d3ebd-8b67-4d5e-81a5-b57ec6cc8e27, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37401074', 'ctest-policy1-12998311'] 2026-10-26 14:50:38,105 - INFO - VN ctest-vn4-07793422 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-26 14:50:38,105 - DEBUG - Verifying the vn in opserver 2026-10-26 14:50:38,105 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37401074:ctest-vn4-07793422 virtual network link through opserver 10.0.0.38 2026-10-26 14:50:38,105 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-26 14:50:38,491 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-26 14:50:38,557 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37401074:ctest-vn4-07793422', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37401074:ctest-vn4-07793422?flat'} 2026-10-26 14:50:38,557 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37401074:ctest-vn4-07793422 is found in opserver 2026-10-26 14:50:38,573 - DEBUG - Do not have enough data to verify VN in agent 2026-10-26 14:50:38,581 - DEBUG - VRF ids for VN ctest-vn4-07793422: {} 2026-10-26 14:50:38,582 - DEBUG - ====Verifying data for ctest-policy1-12998311 in API_Server ====== 2026-10-26 14:50:38,582 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-26 14:50:38,590 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e291b5af-3f0f-463e-9ce9-038a05513fec 2026-10-26 14:50:38,603 - DEBUG - Requesting: http://10.0.0.38:8082/project/860f3166-a1bf-4eb4-8826-c7bd712af2c7 2026-10-26 14:50:38,688 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/171d3ebd-8b67-4d5e-81a5-b57ec6cc8e27 2026-10-26 14:50:38,703 - INFO - Verified policy ctest-policy1-12998311 in API Server, Result: True 2026-10-26 14:50:38,703 - INFO - Done with setup and verification, moving onto test .. 2026-10-26 14:50:38,714 - INFO - Deleting VN ctest-vn4-07793422 2026-10-26 14:50:38,895 - DEBUG - Response for deleting network () 2026-10-26 14:50:38,896 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0555a0d0-b84f-45f4-be56-500aa43db366 2026-10-26 14:50:38,903 - DEBUG - Response Code: 404 2026-10-26 14:50:38,903 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-26 14:50:38,910 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e291b5af-3f0f-463e-9ce9-038a05513fec 2026-10-26 14:50:38,970 - DEBUG - Requesting: http://10.0.0.38:8082/project/860f3166-a1bf-4eb4-8826-c7bd712af2c7 2026-10-26 14:50:39,054 - INFO - Validated that VN ctest-vn4-07793422 is not found in API Server 2026-10-26 14:50:39,071 - DEBUG - VN ctest-vn4-07793422 is not present in Agent 10.0.0.38 2026-10-26 14:50:39,071 - INFO - Validated that VN ctest-vn4-07793422 is not in any agent 2026-10-26 14:50:39,096 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-07793422 info 2026-10-26 14:50:39,139 - INFO - Deleted policy ctest-policy1-12998311 2026-10-26 14:50:39,319 - DEBUG - policy ctest-policy1-12998311 is not found in API Server 2026-10-26 14:50:39,598 - DEBUG - No XMPP flaps were noticed during the test