2026-01-29 22:29:04,642 - INFO - Domain Default found not creating 2026-01-29 22:29:04,818 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-85196762 not found, creating it 2026-01-29 22:29:05,283 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-85196762, ID : 41061fa1-819c-4e8e-b94f-512bb0aba074 2026-01-29 22:29:06,744 - INFO - ================================================================================ 2026-01-29 22:29:06,745 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 22:29:07,002 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-01-29 22:29:07,002 - INFO - Initial checks done. Running the testcase now 2026-01-29 22:29:07,002 - INFO - 2026-01-29 22:29:07,003 - INFO - ================================================================================ 2026-01-29 22:29:07,003 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 22:29:07,003 - 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 22:29:07,291 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-01-29 22:29:07,291 - INFO - Initial checks done. Running the testcase now 2026-01-29 22:29:07,292 - INFO - 2026-01-29 22:29:07,655 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85196762:ctest-vn4-36319724, 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-85196762:ctest-vn4-36319724, 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-85196762:ctest-vn4-36319724, 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-85196762:ctest-vn4-36319724, 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 22:29:08,166 - DEBUG - Response for create_network : {'network': {'id': 'fed990e1-15d8-4779-80fa-ad4d168e4e90', 'name': 'ctest-vn4-36319724', 'tenant_id': '41061fa1819c4e8eb94f512bb0aba074', 'project_id': '41061fa1819c4e8eb94f512bb0aba074', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85196762', 'ctest-vn4-36319724'], 'port_security_enabled': True, 'description': ''}} 2026-01-29 22:29:08,383 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c4d9b66-b8f7-4c64-b184-d0135cbb477b', 'name': '', 'tenant_id': '41061fa1819c4e8eb94f512bb0aba074', 'network_id': 'fed990e1-15d8-4779-80fa-ad4d168e4e90', 'ip_version': 4, 'cidr': '46.184.48.64/26', 'allocation_pools': [{'start': '46.184.48.66', 'end': '46.184.48.126'}], 'gateway_ip': '46.184.48.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.184.48.66', 'tags': [], 'project_id': '41061fa1819c4e8eb94f512bb0aba074'}} 2026-01-29 22:29:08,551 - DEBUG - Response for create_subnet : {'subnet': {'id': '40d85158-f155-457f-b8b5-7a1e899ab2bb', 'name': '', 'tenant_id': '41061fa1819c4e8eb94f512bb0aba074', 'network_id': 'fed990e1-15d8-4779-80fa-ad4d168e4e90', 'ip_version': 6, 'cidr': '22dd:dfd5:4e54:2390:3863:aa8f::/96', 'allocation_pools': [{'start': '22dd:dfd5:4e54:2390:3863:aa8f:0:2', 'end': '22dd:dfd5:4e54:2390:3863:aa8f:ffff:fffe'}], 'gateway_ip': '22dd:dfd5:4e54:2390:3863:aa8f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22dd:dfd5:4e54:2390:3863:aa8f:0:2', 'tags': [], 'project_id': '41061fa1819c4e8eb94f512bb0aba074'}} 2026-01-29 22:29:08,569 - INFO - Created VN ctest-vn4-36319724 2026-01-29 22:29:08,618 - DEBUG - VN ctest-vn4-36319724 UUID is fed990e1-15d8-4779-80fa-ad4d168e4e90 2026-01-29 22:29:08,819 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fed990e1-15d8-4779-80fa-ad4d168e4e90', 'name': 'ctest-vn4-36319724', 'tenant_id': '41061fa1819c4e8eb94f512bb0aba074', 'project_id': '41061fa1819c4e8eb94f512bb0aba074', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c4d9b66-b8f7-4c64-b184-d0135cbb477b', '40d85158-f155-457f-b8b5-7a1e899ab2bb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85196762', 'ctest-vn4-36319724'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85196762', 'ctest-policy1-15203843']], 'subnet_ipam': [{'subnet_cidr': '46.184.48.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '22dd:dfd5:4e54:2390:3863:aa8f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-29 22:29:08,983 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-29 22:29:09,280 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-29 22:29:09,311 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5b6fd286-2383-48fe-a82a-afef3ddc1cfe 2026-01-29 22:29:09,322 - DEBUG - Requesting: http://10.0.0.22:8082/project/41061fa1-819c-4e8e-b94f-512bb0aba074 2026-01-29 22:29:09,399 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fed990e1-15d8-4779-80fa-ad4d168e4e90 2026-01-29 22:29:09,410 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fed990e1-15d8-4779-80fa-ad4d168e4e90 2026-01-29 22:29:09,418 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8bf944cc-35f7-47bd-90d0-a89fe3d45354 2026-01-29 22:29:09,423 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8bf944cc-35f7-47bd-90d0-a89fe3d45354 2026-01-29 22:29:09,428 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/969ba486-e5a9-4e51-9999-07f1e64d0e2a 2026-01-29 22:29:09,433 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 22:29:09,433 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fed990e1-15d8-4779-80fa-ad4d168e4e90 2026-01-29 22:29:09,442 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8bf944cc-35f7-47bd-90d0-a89fe3d45354 2026-01-29 22:29:09,453 - INFO - Verified VN network id 12 for VN fed990e1-15d8-4779-80fa-ad4d168e4e90 2026-01-29 22:29:09,453 - INFO - Verifications in API Server for VN ctest-vn4-36319724 passed 2026-01-29 22:29:09,453 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fed990e1-15d8-4779-80fa-ad4d168e4e90 2026-01-29 22:29:09,461 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8bf944cc-35f7-47bd-90d0-a89fe3d45354 2026-01-29 22:29:09,467 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8bf944cc-35f7-47bd-90d0-a89fe3d45354 2026-01-29 22:29:09,472 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/969ba486-e5a9-4e51-9999-07f1e64d0e2a 2026-01-29 22:29:09,482 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85196762:ctest-vn4-36319724', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85196762', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18363868251988445049', 'uuid-lslong': '9293931327634951824'}, 'enable': 'true', 'created': '2026-01-29T22:29:08', 'last-modified': '2026-01-29T22:29:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.686814'} 2026-01-29 22:29:09,488 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 22:29:09,488 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-36319724 passed 2026-01-29 22:29:09,488 - DEBUG - ====Verifying policy data for ctest-vn4-36319724 in API_Server ====== 2026-01-29 22:29:09,488 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-29 22:29:09,493 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5b6fd286-2383-48fe-a82a-afef3ddc1cfe 2026-01-29 22:29:09,503 - DEBUG - Requesting: http://10.0.0.22:8082/project/41061fa1-819c-4e8e-b94f-512bb0aba074 2026-01-29 22:29:09,568 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fed990e1-15d8-4779-80fa-ad4d168e4e90 2026-01-29 22:29:09,576 - DEBUG - ==>Verifying data for policy with id: 30d7755c-3edd-468b-929f-0ede86661d09, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85196762', 'ctest-policy1-15203843'] 2026-01-29 22:29:09,576 - INFO - VN ctest-vn4-36319724 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 22:29:09,577 - DEBUG - Verifying the vn in opserver 2026-01-29 22:29:09,577 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85196762:ctest-vn4-36319724 virtual network link through opserver 10.0.0.22 2026-01-29 22:29:09,577 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-29 22:29:09,874 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-29 22:29:09,933 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85196762:ctest-vn4-36319724', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85196762:ctest-vn4-36319724?flat'} 2026-01-29 22:29:09,934 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85196762:ctest-vn4-36319724 is found in opserver 2026-01-29 22:29:09,943 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 22:29:09,947 - DEBUG - VRF ids for VN ctest-vn4-36319724: {} 2026-01-29 22:29:09,947 - DEBUG - ====Verifying data for ctest-policy1-15203843 in API_Server ====== 2026-01-29 22:29:09,947 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-29 22:29:09,952 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5b6fd286-2383-48fe-a82a-afef3ddc1cfe 2026-01-29 22:29:09,962 - DEBUG - Requesting: http://10.0.0.22:8082/project/41061fa1-819c-4e8e-b94f-512bb0aba074 2026-01-29 22:29:10,028 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/30d7755c-3edd-468b-929f-0ede86661d09 2026-01-29 22:29:10,036 - INFO - Verified policy ctest-policy1-15203843 in API Server, Result: True 2026-01-29 22:29:10,036 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 22:29:10,043 - INFO - Deleting VN ctest-vn4-36319724 2026-01-29 22:29:10,147 - DEBUG - Response for deleting network () 2026-01-29 22:29:10,147 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8bf944cc-35f7-47bd-90d0-a89fe3d45354 2026-01-29 22:29:10,151 - DEBUG - Response Code: 404 2026-01-29 22:29:10,151 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-29 22:29:10,156 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5b6fd286-2383-48fe-a82a-afef3ddc1cfe 2026-01-29 22:29:10,207 - DEBUG - Requesting: http://10.0.0.22:8082/project/41061fa1-819c-4e8e-b94f-512bb0aba074 2026-01-29 22:29:10,278 - INFO - Validated that VN ctest-vn4-36319724 is not found in API Server 2026-01-29 22:29:10,288 - DEBUG - VN ctest-vn4-36319724 is not present in Agent 10.0.0.22 2026-01-29 22:29:10,288 - INFO - Validated that VN ctest-vn4-36319724 is not in any agent 2026-01-29 22:29:10,302 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-36319724 info 2026-01-29 22:29:10,329 - INFO - Deleted policy ctest-policy1-15203843 2026-01-29 22:29:10,486 - DEBUG - policy ctest-policy1-15203843 is not found in API Server 2026-01-29 22:29:10,740 - DEBUG - No XMPP flaps were noticed during the test
2026-01-29 22:29:10,740 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-01-29 22:29:10,740 - INFO - -------------------------------------------------------------------------------- 2026-01-29 22:29:11,033 - DEBUG - No XMPP flaps were noticed during the test
2026-01-29 22:29:11,033 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-01-29 22:29:11,034 - INFO - -------------------------------------------------------------------------------- 2026-01-29 22:29:11,723 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-85196762, ID : 41061fa1-819c-4e8e-b94f-512bb0aba074