2026-05-04 02:22:46,292 - INFO - Domain Default found not creating 2026-05-04 02:22:46,484 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-29920900 not found, creating it 2026-05-04 02:22:46,941 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-29920900, ID : fa4f5b1f-1241-4e28-bda1-c1358dfb9ae6 2026-05-04 02:22:48,590 - INFO - ================================================================================ 2026-05-04 02:22:48,590 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-04 02:22:48,843 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.25': '0'}} with 2026-05-04 02:22:48,843 - INFO - Initial checks done. Running the testcase now 2026-05-04 02:22:48,843 - INFO - 2026-05-04 02:22:48,843 - INFO - ================================================================================ 2026-05-04 02:22:48,843 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-04 02:22:48,843 - 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-05-04 02:22:49,134 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.25': '0'}} with 2026-05-04 02:22:49,134 - INFO - Initial checks done. Running the testcase now 2026-05-04 02:22:49,134 - INFO - 2026-05-04 02:22:49,521 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29920900:ctest-vn4-92021275, 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-29920900:ctest-vn4-92021275, 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-29920900:ctest-vn4-92021275, 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-29920900:ctest-vn4-92021275, 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-05-04 02:22:50,060 - DEBUG - Response for create_network : {'network': {'id': 'b47f7f8e-445f-47a7-b32f-3ada8c60b8f1', 'name': 'ctest-vn4-92021275', 'tenant_id': 'fa4f5b1f12414e28bda1c1358dfb9ae6', 'project_id': 'fa4f5b1f12414e28bda1c1358dfb9ae6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29920900', 'ctest-vn4-92021275'], 'port_security_enabled': True, 'description': ''}} 2026-05-04 02:22:50,276 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd77ff6f3-d4ce-4b9d-a58a-24a8c2f75f00', 'name': '', 'tenant_id': 'fa4f5b1f12414e28bda1c1358dfb9ae6', 'network_id': 'b47f7f8e-445f-47a7-b32f-3ada8c60b8f1', 'ip_version': 4, 'cidr': '73.173.16.0/26', 'allocation_pools': [{'start': '73.173.16.2', 'end': '73.173.16.62'}], 'gateway_ip': '73.173.16.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.173.16.2', 'tags': [], 'project_id': 'fa4f5b1f12414e28bda1c1358dfb9ae6'}} 2026-05-04 02:22:50,474 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c350e551-71bc-441a-bcc4-5796f88ac98d', 'name': '', 'tenant_id': 'fa4f5b1f12414e28bda1c1358dfb9ae6', 'network_id': 'b47f7f8e-445f-47a7-b32f-3ada8c60b8f1', 'ip_version': 6, 'cidr': '253c:764:a24:45f4:b9d5:3d83::/96', 'allocation_pools': [{'start': '253c:764:a24:45f4:b9d5:3d83:0:2', 'end': '253c:764:a24:45f4:b9d5:3d83:ffff:fffe'}], 'gateway_ip': '253c:764:a24:45f4:b9d5:3d83:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '253c:764:a24:45f4:b9d5:3d83:0:2', 'tags': [], 'project_id': 'fa4f5b1f12414e28bda1c1358dfb9ae6'}} 2026-05-04 02:22:50,501 - INFO - Created VN ctest-vn4-92021275 2026-05-04 02:22:50,557 - DEBUG - VN ctest-vn4-92021275 UUID is b47f7f8e-445f-47a7-b32f-3ada8c60b8f1 2026-05-04 02:22:50,782 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b47f7f8e-445f-47a7-b32f-3ada8c60b8f1', 'name': 'ctest-vn4-92021275', 'tenant_id': 'fa4f5b1f12414e28bda1c1358dfb9ae6', 'project_id': 'fa4f5b1f12414e28bda1c1358dfb9ae6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d77ff6f3-d4ce-4b9d-a58a-24a8c2f75f00', 'c350e551-71bc-441a-bcc4-5796f88ac98d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29920900', 'ctest-vn4-92021275'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29920900', 'ctest-policy1-15471320']], 'subnet_ipam': [{'subnet_cidr': '73.173.16.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '253c:764:a24:45f4:b9d5:3d83::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-04 02:22:50,941 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-05-04 02:22:51,252 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-05-04 02:22:51,284 - DEBUG - Requesting: http://10.0.0.241:8082/domain/703d9330-93d3-4cc6-99b7-f483421b6d7e 2026-05-04 02:22:51,296 - DEBUG - Requesting: http://10.0.0.241:8082/project/fa4f5b1f-1241-4e28-bda1-c1358dfb9ae6 2026-05-04 02:22:51,372 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/b47f7f8e-445f-47a7-b32f-3ada8c60b8f1 2026-05-04 02:22:51,384 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/b47f7f8e-445f-47a7-b32f-3ada8c60b8f1 2026-05-04 02:22:51,394 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/ee81bf3a-7ea2-4baf-8791-e3698d5d5a0f 2026-05-04 02:22:51,401 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/ee81bf3a-7ea2-4baf-8791-e3698d5d5a0f 2026-05-04 02:22:51,409 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/e6dc4367-41e0-422e-8f72-d94ad62cdab1 2026-05-04 02:22:51,416 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-04 02:22:51,416 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/b47f7f8e-445f-47a7-b32f-3ada8c60b8f1 2026-05-04 02:22:51,426 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/ee81bf3a-7ea2-4baf-8791-e3698d5d5a0f 2026-05-04 02:22:51,440 - INFO - Verified VN network id 11 for VN b47f7f8e-445f-47a7-b32f-3ada8c60b8f1 2026-05-04 02:22:51,440 - INFO - Verifications in API Server for VN ctest-vn4-92021275 passed 2026-05-04 02:22:51,440 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/b47f7f8e-445f-47a7-b32f-3ada8c60b8f1 2026-05-04 02:22:51,450 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/ee81bf3a-7ea2-4baf-8791-e3698d5d5a0f 2026-05-04 02:22:51,458 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/ee81bf3a-7ea2-4baf-8791-e3698d5d5a0f 2026-05-04 02:22:51,468 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/e6dc4367-41e0-422e-8f72-d94ad62cdab1 2026-05-04 02:22:51,481 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29920900:ctest-vn4-92021275', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-29920900', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13006254497878460327', 'uuid-lslong': '12911603367026931953'}, 'enable': 'true', 'created': '2026-05-04T02:22:50', 'last-modified': '2026-05-04T02:22:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.736006'} 2026-05-04 02:22:51,487 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-04 02:22:51,487 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-92021275 passed 2026-05-04 02:22:51,487 - DEBUG - ====Verifying policy data for ctest-vn4-92021275 in API_Server ====== 2026-05-04 02:22:51,487 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-05-04 02:22:51,493 - DEBUG - Requesting: http://10.0.0.241:8082/domain/703d9330-93d3-4cc6-99b7-f483421b6d7e 2026-05-04 02:22:51,505 - DEBUG - Requesting: http://10.0.0.241:8082/project/fa4f5b1f-1241-4e28-bda1-c1358dfb9ae6 2026-05-04 02:22:51,575 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/b47f7f8e-445f-47a7-b32f-3ada8c60b8f1 2026-05-04 02:22:51,584 - DEBUG - ==>Verifying data for policy with id: 1d092dcf-d061-4911-938c-d62babfa2c7d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29920900', 'ctest-policy1-15471320'] 2026-05-04 02:22:51,585 - INFO - VN ctest-vn4-92021275 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-04 02:22:51,585 - DEBUG - Verifying the vn in opserver 2026-05-04 02:22:51,585 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29920900:ctest-vn4-92021275 virtual network link through opserver 10.0.0.241 2026-05-04 02:22:51,585 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-05-04 02:22:51,894 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-05-04 02:22:51,957 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29920900:ctest-vn4-92021275', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29920900:ctest-vn4-92021275?flat'} 2026-05-04 02:22:51,957 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29920900:ctest-vn4-92021275 is found in opserver 2026-05-04 02:22:51,966 - DEBUG - Do not have enough data to verify VN in agent 2026-05-04 02:22:51,971 - DEBUG - VRF ids for VN ctest-vn4-92021275: {} 2026-05-04 02:22:51,971 - DEBUG - ====Verifying data for ctest-policy1-15471320 in API_Server ====== 2026-05-04 02:22:51,972 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-05-04 02:22:51,976 - DEBUG - Requesting: http://10.0.0.241:8082/domain/703d9330-93d3-4cc6-99b7-f483421b6d7e 2026-05-04 02:22:51,986 - DEBUG - Requesting: http://10.0.0.241:8082/project/fa4f5b1f-1241-4e28-bda1-c1358dfb9ae6 2026-05-04 02:22:52,059 - DEBUG - Requesting: http://10.0.0.241:8082/network-policy/1d092dcf-d061-4911-938c-d62babfa2c7d 2026-05-04 02:22:52,068 - INFO - Verified policy ctest-policy1-15471320 in API Server, Result: True 2026-05-04 02:22:52,068 - INFO - Done with setup and verification, moving onto test .. 2026-05-04 02:22:52,076 - INFO - Deleting VN ctest-vn4-92021275 2026-05-04 02:22:52,197 - DEBUG - Response for deleting network () 2026-05-04 02:22:52,197 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/ee81bf3a-7ea2-4baf-8791-e3698d5d5a0f 2026-05-04 02:22:52,202 - DEBUG - Response Code: 404 2026-05-04 02:22:52,202 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-05-04 02:22:52,207 - DEBUG - Requesting: http://10.0.0.241:8082/domain/703d9330-93d3-4cc6-99b7-f483421b6d7e 2026-05-04 02:22:52,258 - DEBUG - Requesting: http://10.0.0.241:8082/project/fa4f5b1f-1241-4e28-bda1-c1358dfb9ae6 2026-05-04 02:22:52,328 - INFO - Validated that VN ctest-vn4-92021275 is not found in API Server 2026-05-04 02:22:52,337 - DEBUG - VN ctest-vn4-92021275 is not present in Agent 10.0.0.241 2026-05-04 02:22:52,337 - INFO - Validated that VN ctest-vn4-92021275 is not in any agent 2026-05-04 02:22:52,352 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-92021275 info 2026-05-04 02:22:52,378 - INFO - Deleted policy ctest-policy1-15471320 2026-05-04 02:22:52,545 - DEBUG - policy ctest-policy1-15471320 is not found in API Server 2026-05-04 02:22:52,806 - DEBUG - No XMPP flaps were noticed during the test
2026-05-04 02:22:52,806 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-05-04 02:22:52,806 - INFO - -------------------------------------------------------------------------------- 2026-05-04 02:22:53,098 - DEBUG - No XMPP flaps were noticed during the test
2026-05-04 02:22:53,098 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-05-04 02:22:53,098 - INFO - -------------------------------------------------------------------------------- 2026-05-04 02:22:53,822 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-29920900, ID : fa4f5b1f-1241-4e28-bda1-c1358dfb9ae6