2026-01-29 13:18:17,737 - INFO - Domain Default found not creating 2026-01-29 13:18:17,908 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-33600027 not found, creating it 2026-01-29 13:18:18,359 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-33600027, ID : c2202fae-7e3e-4809-b152-feb09095bdca 2026-01-29 13:18:19,889 - INFO - ================================================================================ 2026-01-29 13:18:19,889 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 13:18:20,149 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.25': '0'}} with 2026-01-29 13:18:20,149 - INFO - Initial checks done. Running the testcase now 2026-01-29 13:18:20,149 - INFO - 2026-01-29 13:18:20,149 - INFO - ================================================================================ 2026-01-29 13:18:20,149 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 13:18:20,149 - 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-01-29 13:18:20,442 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.25': '0'}} with 2026-01-29 13:18:20,442 - INFO - Initial checks done. Running the testcase now 2026-01-29 13:18:20,442 - INFO - 2026-01-29 13:18:20,808 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33600027:ctest-vn4-51959737, 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-33600027:ctest-vn4-51959737, 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-33600027:ctest-vn4-51959737, 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-33600027:ctest-vn4-51959737, 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-01-29 13:18:21,330 - DEBUG - Response for create_network : {'network': {'id': '89d050dc-8eee-4d22-b60d-913c87c0e3a9', 'name': 'ctest-vn4-51959737', 'tenant_id': 'c2202fae7e3e4809b152feb09095bdca', 'project_id': 'c2202fae7e3e4809b152feb09095bdca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33600027', 'ctest-vn4-51959737'], 'port_security_enabled': True, 'description': ''}} 2026-01-29 13:18:21,525 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f921865-0002-442d-b2de-23421e3a0648', 'name': '', 'tenant_id': 'c2202fae7e3e4809b152feb09095bdca', 'network_id': '89d050dc-8eee-4d22-b60d-913c87c0e3a9', 'ip_version': 4, 'cidr': '42.235.14.192/26', 'allocation_pools': [{'start': '42.235.14.194', 'end': '42.235.14.254'}], 'gateway_ip': '42.235.14.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.235.14.194', 'tags': [], 'project_id': 'c2202fae7e3e4809b152feb09095bdca'}} 2026-01-29 13:18:21,714 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7d7ff03-4eaa-41e7-9848-25518c81f2a6', 'name': '', 'tenant_id': 'c2202fae7e3e4809b152feb09095bdca', 'network_id': '89d050dc-8eee-4d22-b60d-913c87c0e3a9', 'ip_version': 6, 'cidr': '2fdc:588c:11a5:3ec5:4a0b:4306::/96', 'allocation_pools': [{'start': '2fdc:588c:11a5:3ec5:4a0b:4306:0:2', 'end': '2fdc:588c:11a5:3ec5:4a0b:4306:ffff:fffe'}], 'gateway_ip': '2fdc:588c:11a5:3ec5:4a0b:4306:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2fdc:588c:11a5:3ec5:4a0b:4306:0:2', 'tags': [], 'project_id': 'c2202fae7e3e4809b152feb09095bdca'}} 2026-01-29 13:18:21,737 - INFO - Created VN ctest-vn4-51959737 2026-01-29 13:18:21,792 - DEBUG - VN ctest-vn4-51959737 UUID is 89d050dc-8eee-4d22-b60d-913c87c0e3a9 2026-01-29 13:18:21,989 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '89d050dc-8eee-4d22-b60d-913c87c0e3a9', 'name': 'ctest-vn4-51959737', 'tenant_id': 'c2202fae7e3e4809b152feb09095bdca', 'project_id': 'c2202fae7e3e4809b152feb09095bdca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2f921865-0002-442d-b2de-23421e3a0648', 'd7d7ff03-4eaa-41e7-9848-25518c81f2a6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33600027', 'ctest-vn4-51959737'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33600027', 'ctest-policy1-56176150']], 'subnet_ipam': [{'subnet_cidr': '42.235.14.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2fdc:588c:11a5:3ec5:4a0b:4306::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-29 13:18:22,216 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-01-29 13:18:22,509 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-01-29 13:18:22,542 - DEBUG - Requesting: http://10.0.0.130:8082/domain/11b59336-287a-4cc0-abf2-5866395b3d55 2026-01-29 13:18:22,555 - DEBUG - Requesting: http://10.0.0.130:8082/project/c2202fae-7e3e-4809-b152-feb09095bdca 2026-01-29 13:18:22,629 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/89d050dc-8eee-4d22-b60d-913c87c0e3a9 2026-01-29 13:18:22,640 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/89d050dc-8eee-4d22-b60d-913c87c0e3a9 2026-01-29 13:18:22,651 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3d9f2884-e24c-41f1-97f7-b6a606abe524 2026-01-29 13:18:22,658 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3d9f2884-e24c-41f1-97f7-b6a606abe524 2026-01-29 13:18:22,664 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/ead17c63-6f3e-4cc2-8f76-bc552b780b84 2026-01-29 13:18:22,671 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 13:18:22,671 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/89d050dc-8eee-4d22-b60d-913c87c0e3a9 2026-01-29 13:18:22,681 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3d9f2884-e24c-41f1-97f7-b6a606abe524 2026-01-29 13:18:22,696 - INFO - Verified VN network id 11 for VN 89d050dc-8eee-4d22-b60d-913c87c0e3a9 2026-01-29 13:18:22,696 - INFO - Verifications in API Server for VN ctest-vn4-51959737 passed 2026-01-29 13:18:22,696 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/89d050dc-8eee-4d22-b60d-913c87c0e3a9 2026-01-29 13:18:22,707 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3d9f2884-e24c-41f1-97f7-b6a606abe524 2026-01-29 13:18:22,714 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3d9f2884-e24c-41f1-97f7-b6a606abe524 2026-01-29 13:18:22,722 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/ead17c63-6f3e-4cc2-8f76-bc552b780b84 2026-01-29 13:18:22,736 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33600027:ctest-vn4-51959737', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33600027', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9930526086572952866', 'uuid-lslong': '13118300978761753513'}, 'enable': 'true', 'created': '2026-01-29T13:18:21', 'last-modified': '2026-01-29T13:18:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.770090'} 2026-01-29 13:18:22,743 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 13:18:22,743 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-51959737 passed 2026-01-29 13:18:22,743 - DEBUG - ====Verifying policy data for ctest-vn4-51959737 in API_Server ====== 2026-01-29 13:18:22,743 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-01-29 13:18:22,749 - DEBUG - Requesting: http://10.0.0.130:8082/domain/11b59336-287a-4cc0-abf2-5866395b3d55 2026-01-29 13:18:22,761 - DEBUG - Requesting: http://10.0.0.130:8082/project/c2202fae-7e3e-4809-b152-feb09095bdca 2026-01-29 13:18:22,835 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/89d050dc-8eee-4d22-b60d-913c87c0e3a9 2026-01-29 13:18:22,845 - DEBUG - ==>Verifying data for policy with id: 1ca345a9-0e75-49bc-9d56-4359c51af7ea, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33600027', 'ctest-policy1-56176150'] 2026-01-29 13:18:22,845 - INFO - VN ctest-vn4-51959737 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 13:18:22,845 - DEBUG - Verifying the vn in opserver 2026-01-29 13:18:22,845 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33600027:ctest-vn4-51959737 virtual network link through opserver 10.0.0.130 2026-01-29 13:18:22,846 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-01-29 13:18:23,144 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-01-29 13:18:23,219 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33600027:ctest-vn4-51959737', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33600027:ctest-vn4-51959737?flat'} 2026-01-29 13:18:23,219 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33600027:ctest-vn4-51959737 is found in opserver 2026-01-29 13:18:23,230 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 13:18:23,235 - DEBUG - VRF ids for VN ctest-vn4-51959737: {} 2026-01-29 13:18:23,235 - DEBUG - ====Verifying data for ctest-policy1-56176150 in API_Server ====== 2026-01-29 13:18:23,235 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-01-29 13:18:23,242 - DEBUG - Requesting: http://10.0.0.130:8082/domain/11b59336-287a-4cc0-abf2-5866395b3d55 2026-01-29 13:18:23,252 - DEBUG - Requesting: http://10.0.0.130:8082/project/c2202fae-7e3e-4809-b152-feb09095bdca 2026-01-29 13:18:23,325 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/1ca345a9-0e75-49bc-9d56-4359c51af7ea 2026-01-29 13:18:23,335 - INFO - Verified policy ctest-policy1-56176150 in API Server, Result: True 2026-01-29 13:18:23,335 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 13:18:23,343 - INFO - Deleting VN ctest-vn4-51959737 2026-01-29 13:18:23,458 - DEBUG - Response for deleting network () 2026-01-29 13:18:23,458 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3d9f2884-e24c-41f1-97f7-b6a606abe524 2026-01-29 13:18:23,463 - DEBUG - Response Code: 404 2026-01-29 13:18:23,463 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-01-29 13:18:23,468 - DEBUG - Requesting: http://10.0.0.130:8082/domain/11b59336-287a-4cc0-abf2-5866395b3d55 2026-01-29 13:18:23,522 - DEBUG - Requesting: http://10.0.0.130:8082/project/c2202fae-7e3e-4809-b152-feb09095bdca 2026-01-29 13:18:23,588 - INFO - Validated that VN ctest-vn4-51959737 is not found in API Server 2026-01-29 13:18:23,598 - DEBUG - VN ctest-vn4-51959737 is not present in Agent 10.0.0.130 2026-01-29 13:18:23,599 - INFO - Validated that VN ctest-vn4-51959737 is not in any agent 2026-01-29 13:18:23,613 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-51959737 info 2026-01-29 13:18:23,634 - INFO - Deleted policy ctest-policy1-56176150 2026-01-29 13:18:23,800 - DEBUG - policy ctest-policy1-56176150 is not found in API Server 2026-01-29 13:18:24,059 - DEBUG - No XMPP flaps were noticed during the test
2026-01-29 13:18:24,059 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-29 13:18:24,059 - INFO - -------------------------------------------------------------------------------- 2026-01-29 13:18:24,357 - DEBUG - No XMPP flaps were noticed during the test
2026-01-29 13:18:24,357 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-01-29 13:18:24,357 - INFO - -------------------------------------------------------------------------------- 2026-01-29 13:18:25,054 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-33600027, ID : c2202fae-7e3e-4809-b152-feb09095bdca