2026-04-16 22:44:16,778 - INFO - Domain Default found not creating 2026-04-16 22:44:16,930 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-41354594 not found, creating it 2026-04-16 22:44:17,376 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-41354594, ID : 0deedac9-3bdf-4e76-841f-d9a9c56a1e0f 2026-04-16 22:44:19,133 - INFO - ================================================================================ 2026-04-16 22:44:19,134 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-16 22:44:19,389 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-04-16 22:44:19,389 - INFO - Initial checks done. Running the testcase now 2026-04-16 22:44:19,389 - INFO - 2026-04-16 22:44:19,389 - INFO - ================================================================================ 2026-04-16 22:44:19,389 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-16 22:44:19,389 - 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-16 22:44:19,677 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-04-16 22:44:19,677 - INFO - Initial checks done. Running the testcase now 2026-04-16 22:44:19,677 - INFO - 2026-04-16 22:44:19,999 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41354594:ctest-vn4-36816528, 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-41354594:ctest-vn4-36816528, 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-41354594:ctest-vn4-36816528, 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-41354594:ctest-vn4-36816528, 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-16 22:44:20,506 - DEBUG - Response for create_network : {'network': {'id': '8ad218cf-07a0-4d67-a1fd-c8e21b982341', 'name': 'ctest-vn4-36816528', 'tenant_id': '0deedac93bdf4e76841fd9a9c56a1e0f', 'project_id': '0deedac93bdf4e76841fd9a9c56a1e0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41354594', 'ctest-vn4-36816528'], 'port_security_enabled': True, 'description': ''}} 2026-04-16 22:44:20,709 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ee16a271-ecdb-4318-a19b-6d4bfb17b1ef', 'name': '', 'tenant_id': '0deedac93bdf4e76841fd9a9c56a1e0f', 'network_id': '8ad218cf-07a0-4d67-a1fd-c8e21b982341', 'ip_version': 4, 'cidr': '14.218.194.192/26', 'allocation_pools': [{'start': '14.218.194.194', 'end': '14.218.194.254'}], 'gateway_ip': '14.218.194.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.218.194.194', 'tags': [], 'project_id': '0deedac93bdf4e76841fd9a9c56a1e0f'}} 2026-04-16 22:44:20,899 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd83c44f0-3585-4bb9-ab74-b578157f897c', 'name': '', 'tenant_id': '0deedac93bdf4e76841fd9a9c56a1e0f', 'network_id': '8ad218cf-07a0-4d67-a1fd-c8e21b982341', 'ip_version': 6, 'cidr': '2678:e4d1:947c:7bf1:2e76:bf73::/96', 'allocation_pools': [{'start': '2678:e4d1:947c:7bf1:2e76:bf73:0:2', 'end': '2678:e4d1:947c:7bf1:2e76:bf73:ffff:fffe'}], 'gateway_ip': '2678:e4d1:947c:7bf1:2e76:bf73:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2678:e4d1:947c:7bf1:2e76:bf73:0:2', 'tags': [], 'project_id': '0deedac93bdf4e76841fd9a9c56a1e0f'}} 2026-04-16 22:44:20,917 - INFO - Created VN ctest-vn4-36816528 2026-04-16 22:44:20,972 - DEBUG - VN ctest-vn4-36816528 UUID is 8ad218cf-07a0-4d67-a1fd-c8e21b982341 2026-04-16 22:44:21,165 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8ad218cf-07a0-4d67-a1fd-c8e21b982341', 'name': 'ctest-vn4-36816528', 'tenant_id': '0deedac93bdf4e76841fd9a9c56a1e0f', 'project_id': '0deedac93bdf4e76841fd9a9c56a1e0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ee16a271-ecdb-4318-a19b-6d4bfb17b1ef', 'd83c44f0-3585-4bb9-ab74-b578157f897c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41354594', 'ctest-vn4-36816528'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41354594', 'ctest-policy1-32522571']], 'subnet_ipam': [{'subnet_cidr': '14.218.194.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2678:e4d1:947c:7bf1:2e76:bf73::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-16 22:44:21,328 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-16 22:44:21,618 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-16 22:44:21,649 - DEBUG - Requesting: http://10.0.0.22:8082/domain/77199670-2829-4c32-a70b-3f3872e3ae90 2026-04-16 22:44:21,663 - DEBUG - Requesting: http://10.0.0.22:8082/project/0deedac9-3bdf-4e76-841f-d9a9c56a1e0f 2026-04-16 22:44:21,735 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8ad218cf-07a0-4d67-a1fd-c8e21b982341 2026-04-16 22:44:21,746 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8ad218cf-07a0-4d67-a1fd-c8e21b982341 2026-04-16 22:44:21,756 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a7074eff-4721-4c1a-a215-e18e6747f1bc 2026-04-16 22:44:21,763 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a7074eff-4721-4c1a-a215-e18e6747f1bc 2026-04-16 22:44:21,770 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9d5b1426-1f7e-4ccb-9b06-9e69dc104d50 2026-04-16 22:44:21,777 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-16 22:44:21,778 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8ad218cf-07a0-4d67-a1fd-c8e21b982341 2026-04-16 22:44:21,788 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a7074eff-4721-4c1a-a215-e18e6747f1bc 2026-04-16 22:44:21,802 - INFO - Verified VN network id 11 for VN 8ad218cf-07a0-4d67-a1fd-c8e21b982341 2026-04-16 22:44:21,803 - INFO - Verifications in API Server for VN ctest-vn4-36816528 passed 2026-04-16 22:44:21,803 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8ad218cf-07a0-4d67-a1fd-c8e21b982341 2026-04-16 22:44:21,814 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a7074eff-4721-4c1a-a215-e18e6747f1bc 2026-04-16 22:44:21,821 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a7074eff-4721-4c1a-a215-e18e6747f1bc 2026-04-16 22:44:21,829 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9d5b1426-1f7e-4ccb-9b06-9e69dc104d50 2026-04-16 22:44:21,841 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41354594:ctest-vn4-36816528', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-41354594', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10003084999808535911', 'uuid-lslong': '11672706682665313089'}, 'enable': 'true', 'created': '2026-04-16T22:44:20', 'last-modified': '2026-04-16T22:44:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.706158'} 2026-04-16 22:44:21,846 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-16 22:44:21,846 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-36816528 passed 2026-04-16 22:44:21,846 - DEBUG - ====Verifying policy data for ctest-vn4-36816528 in API_Server ====== 2026-04-16 22:44:21,846 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-16 22:44:21,851 - DEBUG - Requesting: http://10.0.0.22:8082/domain/77199670-2829-4c32-a70b-3f3872e3ae90 2026-04-16 22:44:21,860 - DEBUG - Requesting: http://10.0.0.22:8082/project/0deedac9-3bdf-4e76-841f-d9a9c56a1e0f 2026-04-16 22:44:21,929 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8ad218cf-07a0-4d67-a1fd-c8e21b982341 2026-04-16 22:44:21,938 - DEBUG - ==>Verifying data for policy with id: 4a08c49d-86a5-4ac8-ab61-6a1a1fd1e436, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41354594', 'ctest-policy1-32522571'] 2026-04-16 22:44:21,938 - INFO - VN ctest-vn4-36816528 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-16 22:44:21,938 - DEBUG - Verifying the vn in opserver 2026-04-16 22:44:21,938 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41354594:ctest-vn4-36816528 virtual network link through opserver 10.0.0.22 2026-04-16 22:44:21,938 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-04-16 22:44:22,227 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-04-16 22:44:22,279 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41354594:ctest-vn4-36816528', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41354594:ctest-vn4-36816528?flat'} 2026-04-16 22:44:22,279 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41354594:ctest-vn4-36816528 is found in opserver 2026-04-16 22:44:22,288 - DEBUG - Do not have enough data to verify VN in agent 2026-04-16 22:44:22,292 - DEBUG - VRF ids for VN ctest-vn4-36816528: {} 2026-04-16 22:44:22,292 - DEBUG - ====Verifying data for ctest-policy1-32522571 in API_Server ====== 2026-04-16 22:44:22,292 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-16 22:44:22,297 - DEBUG - Requesting: http://10.0.0.22:8082/domain/77199670-2829-4c32-a70b-3f3872e3ae90 2026-04-16 22:44:22,308 - DEBUG - Requesting: http://10.0.0.22:8082/project/0deedac9-3bdf-4e76-841f-d9a9c56a1e0f 2026-04-16 22:44:22,375 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/4a08c49d-86a5-4ac8-ab61-6a1a1fd1e436 2026-04-16 22:44:22,384 - INFO - Verified policy ctest-policy1-32522571 in API Server, Result: True 2026-04-16 22:44:22,384 - INFO - Done with setup and verification, moving onto test .. 2026-04-16 22:44:22,392 - INFO - Deleting VN ctest-vn4-36816528 2026-04-16 22:44:22,500 - DEBUG - Response for deleting network () 2026-04-16 22:44:22,500 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a7074eff-4721-4c1a-a215-e18e6747f1bc 2026-04-16 22:44:22,504 - DEBUG - Response Code: 404 2026-04-16 22:44:22,504 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-16 22:44:22,508 - DEBUG - Requesting: http://10.0.0.22:8082/domain/77199670-2829-4c32-a70b-3f3872e3ae90 2026-04-16 22:44:22,560 - DEBUG - Requesting: http://10.0.0.22:8082/project/0deedac9-3bdf-4e76-841f-d9a9c56a1e0f 2026-04-16 22:44:22,627 - INFO - Validated that VN ctest-vn4-36816528 is not found in API Server 2026-04-16 22:44:22,636 - DEBUG - VN ctest-vn4-36816528 is not present in Agent 10.0.0.22 2026-04-16 22:44:22,636 - INFO - Validated that VN ctest-vn4-36816528 is not in any agent 2026-04-16 22:44:22,649 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-36816528 info 2026-04-16 22:44:22,670 - INFO - Deleted policy ctest-policy1-32522571 2026-04-16 22:44:22,835 - DEBUG - policy ctest-policy1-32522571 is not found in API Server 2026-04-16 22:44:23,091 - DEBUG - No XMPP flaps were noticed during the test
2026-04-16 22:44:23,092 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-16 22:44:23,092 - INFO - -------------------------------------------------------------------------------- 2026-04-16 22:44:23,380 - DEBUG - No XMPP flaps were noticed during the test
2026-04-16 22:44:23,380 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-16 22:44:23,380 - INFO - -------------------------------------------------------------------------------- 2026-04-16 22:44:24,070 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-41354594, ID : 0deedac9-3bdf-4e76-841f-d9a9c56a1e0f