2026-04-29 19:58:07,453 - INFO - Domain Default found not creating 2026-04-29 19:58:07,613 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71855792 not found, creating it 2026-04-29 19:58:08,056 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71855792, ID : 4eacc6aa-1a50-492f-a2cf-57e2e406f025 2026-04-29 19:58:09,627 - INFO - ================================================================================ 2026-04-29 19:58:09,627 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-29 19:58:09,886 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-29 19:58:09,886 - INFO - Initial checks done. Running the testcase now 2026-04-29 19:58:09,886 - INFO - 2026-04-29 19:58:09,886 - INFO - ================================================================================ 2026-04-29 19:58:09,886 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-29 19:58:09,886 - 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-29 19:58:10,174 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-29 19:58:10,174 - INFO - Initial checks done. Running the testcase now 2026-04-29 19:58:10,174 - INFO - 2026-04-29 19:58:10,491 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71855792:ctest-vn4-57452822, 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-71855792:ctest-vn4-57452822, 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-71855792:ctest-vn4-57452822, 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-71855792:ctest-vn4-57452822, 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-29 19:58:11,013 - DEBUG - Response for create_network : {'network': {'id': 'bfbffbc8-62b2-424a-b0fe-72a7afd894ac', 'name': 'ctest-vn4-57452822', 'tenant_id': '4eacc6aa1a50492fa2cf57e2e406f025', 'project_id': '4eacc6aa1a50492fa2cf57e2e406f025', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71855792', 'ctest-vn4-57452822'], 'port_security_enabled': True, 'description': ''}} 2026-04-29 19:58:11,222 - DEBUG - Response for create_subnet : {'subnet': {'id': '891ff7ae-3367-4df0-a2bf-af2c00082fda', 'name': '', 'tenant_id': '4eacc6aa1a50492fa2cf57e2e406f025', 'network_id': 'bfbffbc8-62b2-424a-b0fe-72a7afd894ac', 'ip_version': 4, 'cidr': '74.233.46.0/26', 'allocation_pools': [{'start': '74.233.46.2', 'end': '74.233.46.62'}], 'gateway_ip': '74.233.46.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.233.46.2', 'tags': [], 'project_id': '4eacc6aa1a50492fa2cf57e2e406f025'}} 2026-04-29 19:58:11,426 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce43072f-4f67-429a-abbb-6e21257e3f10', 'name': '', 'tenant_id': '4eacc6aa1a50492fa2cf57e2e406f025', 'network_id': 'bfbffbc8-62b2-424a-b0fe-72a7afd894ac', 'ip_version': 6, 'cidr': '3ac5:f177:6894:c6c3:45b:3998::/96', 'allocation_pools': [{'start': '3ac5:f177:6894:c6c3:45b:3998:0:2', 'end': '3ac5:f177:6894:c6c3:45b:3998:ffff:fffe'}], 'gateway_ip': '3ac5:f177:6894:c6c3:45b:3998:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ac5:f177:6894:c6c3:45b:3998:0:2', 'tags': [], 'project_id': '4eacc6aa1a50492fa2cf57e2e406f025'}} 2026-04-29 19:58:11,444 - INFO - Created VN ctest-vn4-57452822 2026-04-29 19:58:11,497 - DEBUG - VN ctest-vn4-57452822 UUID is bfbffbc8-62b2-424a-b0fe-72a7afd894ac 2026-04-29 19:58:11,685 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bfbffbc8-62b2-424a-b0fe-72a7afd894ac', 'name': 'ctest-vn4-57452822', 'tenant_id': '4eacc6aa1a50492fa2cf57e2e406f025', 'project_id': '4eacc6aa1a50492fa2cf57e2e406f025', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['891ff7ae-3367-4df0-a2bf-af2c00082fda', 'ce43072f-4f67-429a-abbb-6e21257e3f10'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71855792', 'ctest-vn4-57452822'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71855792', 'ctest-policy1-18218029']], 'subnet_ipam': [{'subnet_cidr': '74.233.46.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ac5:f177:6894:c6c3:45b:3998::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-29 19:58:11,845 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-29 19:58:12,138 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-29 19:58:12,170 - DEBUG - Requesting: http://10.0.0.38:8082/domain/be681d47-90d9-4701-b2ab-9f284526f161 2026-04-29 19:58:12,182 - DEBUG - Requesting: http://10.0.0.38:8082/project/4eacc6aa-1a50-492f-a2cf-57e2e406f025 2026-04-29 19:58:12,257 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bfbffbc8-62b2-424a-b0fe-72a7afd894ac 2026-04-29 19:58:12,267 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bfbffbc8-62b2-424a-b0fe-72a7afd894ac 2026-04-29 19:58:12,275 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80a213a4-1121-426a-9f0e-0bff82eaef5f 2026-04-29 19:58:12,281 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80a213a4-1121-426a-9f0e-0bff82eaef5f 2026-04-29 19:58:12,286 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2e4150b0-6ca3-4c95-b4ea-1570ff39ac76 2026-04-29 19:58:12,291 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-29 19:58:12,291 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bfbffbc8-62b2-424a-b0fe-72a7afd894ac 2026-04-29 19:58:12,298 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80a213a4-1121-426a-9f0e-0bff82eaef5f 2026-04-29 19:58:12,313 - INFO - Verified VN network id 11 for VN bfbffbc8-62b2-424a-b0fe-72a7afd894ac 2026-04-29 19:58:12,313 - INFO - Verifications in API Server for VN ctest-vn4-57452822 passed 2026-04-29 19:58:12,313 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bfbffbc8-62b2-424a-b0fe-72a7afd894ac 2026-04-29 19:58:12,322 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80a213a4-1121-426a-9f0e-0bff82eaef5f 2026-04-29 19:58:12,329 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80a213a4-1121-426a-9f0e-0bff82eaef5f 2026-04-29 19:58:12,336 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2e4150b0-6ca3-4c95-b4ea-1570ff39ac76 2026-04-29 19:58:12,346 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71855792:ctest-vn4-57452822', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71855792', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13817039019863851594', 'uuid-lslong': '12753757259295134892'}, 'enable': 'true', 'created': '2026-04-29T19:58:10', 'last-modified': '2026-04-29T19:58:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.687737'} 2026-04-29 19:58:12,353 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-29 19:58:12,353 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-57452822 passed 2026-04-29 19:58:12,353 - DEBUG - ====Verifying policy data for ctest-vn4-57452822 in API_Server ====== 2026-04-29 19:58:12,353 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-29 19:58:12,358 - DEBUG - Requesting: http://10.0.0.38:8082/domain/be681d47-90d9-4701-b2ab-9f284526f161 2026-04-29 19:58:12,368 - DEBUG - Requesting: http://10.0.0.38:8082/project/4eacc6aa-1a50-492f-a2cf-57e2e406f025 2026-04-29 19:58:12,435 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bfbffbc8-62b2-424a-b0fe-72a7afd894ac 2026-04-29 19:58:12,443 - DEBUG - ==>Verifying data for policy with id: a877f240-fe13-4b8b-afc2-852a5ef29798, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71855792', 'ctest-policy1-18218029'] 2026-04-29 19:58:12,443 - INFO - VN ctest-vn4-57452822 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-29 19:58:12,443 - DEBUG - Verifying the vn in opserver 2026-04-29 19:58:12,443 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71855792:ctest-vn4-57452822 virtual network link through opserver 10.0.0.38 2026-04-29 19:58:12,443 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-29 19:58:12,734 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-29 19:58:12,790 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71855792:ctest-vn4-57452822', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71855792:ctest-vn4-57452822?flat'} 2026-04-29 19:58:12,790 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71855792:ctest-vn4-57452822 is found in opserver 2026-04-29 19:58:12,799 - DEBUG - Do not have enough data to verify VN in agent 2026-04-29 19:58:12,804 - DEBUG - VRF ids for VN ctest-vn4-57452822: {} 2026-04-29 19:58:12,804 - DEBUG - ====Verifying data for ctest-policy1-18218029 in API_Server ====== 2026-04-29 19:58:12,805 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-29 19:58:12,809 - DEBUG - Requesting: http://10.0.0.38:8082/domain/be681d47-90d9-4701-b2ab-9f284526f161 2026-04-29 19:58:12,819 - DEBUG - Requesting: http://10.0.0.38:8082/project/4eacc6aa-1a50-492f-a2cf-57e2e406f025 2026-04-29 19:58:12,885 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/a877f240-fe13-4b8b-afc2-852a5ef29798 2026-04-29 19:58:12,894 - INFO - Verified policy ctest-policy1-18218029 in API Server, Result: True 2026-04-29 19:58:12,894 - INFO - Done with setup and verification, moving onto test .. 2026-04-29 19:58:12,901 - INFO - Deleting VN ctest-vn4-57452822 2026-04-29 19:58:13,019 - DEBUG - Response for deleting network () 2026-04-29 19:58:13,020 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/80a213a4-1121-426a-9f0e-0bff82eaef5f 2026-04-29 19:58:13,024 - DEBUG - Response Code: 404 2026-04-29 19:58:13,024 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-29 19:58:13,029 - DEBUG - Requesting: http://10.0.0.38:8082/domain/be681d47-90d9-4701-b2ab-9f284526f161 2026-04-29 19:58:13,081 - DEBUG - Requesting: http://10.0.0.38:8082/project/4eacc6aa-1a50-492f-a2cf-57e2e406f025 2026-04-29 19:58:13,149 - INFO - Validated that VN ctest-vn4-57452822 is not found in API Server 2026-04-29 19:58:13,157 - DEBUG - VN ctest-vn4-57452822 is not present in Agent 10.0.0.38 2026-04-29 19:58:13,157 - INFO - Validated that VN ctest-vn4-57452822 is not in any agent 2026-04-29 19:58:13,170 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-57452822 info 2026-04-29 19:58:13,193 - INFO - Deleted policy ctest-policy1-18218029 2026-04-29 19:58:13,356 - DEBUG - policy ctest-policy1-18218029 is not found in API Server 2026-04-29 19:58:13,609 - DEBUG - No XMPP flaps were noticed during the test
2026-04-29 19:58:13,610 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-29 19:58:13,610 - INFO - -------------------------------------------------------------------------------- 2026-04-29 19:58:13,902 - DEBUG - No XMPP flaps were noticed during the test
2026-04-29 19:58:13,902 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-29 19:58:13,902 - INFO - -------------------------------------------------------------------------------- 2026-04-29 19:58:14,597 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-71855792, ID : 4eacc6aa-1a50-492f-a2cf-57e2e406f025