2026-03-23 02:36:47,520 - INFO - Domain Default found not creating 2026-03-23 02:36:47,718 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-72790704 not found, creating it 2026-03-23 02:36:48,278 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-72790704, ID : 3f69de82-e86b-475c-9a76-67df9cb00977 2026-03-23 02:36:49,916 - INFO - ================================================================================ 2026-03-23 02:36:49,917 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-23 02:36:51,192 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.18': '0', '10.20.0.14': '0'}, '10.0.0.65': {'10.20.0.18': '0', '10.20.0.14': '0'}} with 2026-03-23 02:36:51,192 - INFO - Initial checks done. Running the testcase now 2026-03-23 02:36:51,192 - INFO - 2026-03-23 02:36:51,192 - INFO - ================================================================================ 2026-03-23 02:36:51,193 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-23 02:36:51,193 - 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-03-23 02:36:52,482 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.18': '0', '10.20.0.14': '0'}, '10.0.0.65': {'10.20.0.18': '0', '10.20.0.14': '0'}} with 2026-03-23 02:36:52,482 - INFO - Initial checks done. Running the testcase now 2026-03-23 02:36:52,482 - INFO - 2026-03-23 02:36:52,853 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72790704:ctest-vn4-61908605, 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-72790704:ctest-vn4-61908605, 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-72790704:ctest-vn4-61908605, 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-72790704:ctest-vn4-61908605, 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-03-23 02:36:53,474 - DEBUG - Response for create_network : {'network': {'id': '4c973000-f340-46ff-9a11-fafc92c7c179', 'name': 'ctest-vn4-61908605', 'tenant_id': '3f69de82e86b475c9a7667df9cb00977', 'project_id': '3f69de82e86b475c9a7667df9cb00977', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72790704', 'ctest-vn4-61908605'], 'port_security_enabled': True, 'description': ''}} 2026-03-23 02:36:53,800 - DEBUG - Response for create_subnet : {'subnet': {'id': '84b9dbfc-2011-4e9b-925f-bdcb39557f2f', 'name': '', 'tenant_id': '3f69de82e86b475c9a7667df9cb00977', 'network_id': '4c973000-f340-46ff-9a11-fafc92c7c179', 'ip_version': 4, 'cidr': '110.73.192.128/26', 'allocation_pools': [{'start': '110.73.192.130', 'end': '110.73.192.190'}], 'gateway_ip': '110.73.192.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.73.192.130', 'tags': [], 'project_id': '3f69de82e86b475c9a7667df9cb00977'}} 2026-03-23 02:36:54,029 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b9e29c5-e107-48c5-ace0-52ce0ff9f306', 'name': '', 'tenant_id': '3f69de82e86b475c9a7667df9cb00977', 'network_id': '4c973000-f340-46ff-9a11-fafc92c7c179', 'ip_version': 6, 'cidr': '3d94:5722:5a8:1d4c:249a:32e::/96', 'allocation_pools': [{'start': '3d94:5722:5a8:1d4c:249a:32e:0:2', 'end': '3d94:5722:5a8:1d4c:249a:32e:ffff:fffe'}], 'gateway_ip': '3d94:5722:5a8:1d4c:249a:32e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d94:5722:5a8:1d4c:249a:32e:0:2', 'tags': [], 'project_id': '3f69de82e86b475c9a7667df9cb00977'}} 2026-03-23 02:36:54,056 - INFO - Created VN ctest-vn4-61908605 2026-03-23 02:36:54,067 - DEBUG - VN ctest-vn4-61908605 UUID is 4c973000-f340-46ff-9a11-fafc92c7c179 2026-03-23 02:36:54,288 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c973000-f340-46ff-9a11-fafc92c7c179', 'name': 'ctest-vn4-61908605', 'tenant_id': '3f69de82e86b475c9a7667df9cb00977', 'project_id': '3f69de82e86b475c9a7667df9cb00977', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['84b9dbfc-2011-4e9b-925f-bdcb39557f2f', '0b9e29c5-e107-48c5-ace0-52ce0ff9f306'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72790704', 'ctest-vn4-61908605'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72790704', 'ctest-policy1-75035661']], 'subnet_ipam': [{'subnet_cidr': '110.73.192.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d94:5722:5a8:1d4c:249a:32e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-23 02:36:54,381 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-23 02:36:54,700 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-23 02:36:54,739 - DEBUG - Requesting: http://10.0.0.27:8082/domain/54adab80-1c58-45eb-8fc6-565ee3803789 2026-03-23 02:36:54,757 - DEBUG - Requesting: http://10.0.0.27:8082/project/3f69de82-e86b-475c-9a76-67df9cb00977 2026-03-23 02:36:54,853 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4c973000-f340-46ff-9a11-fafc92c7c179 2026-03-23 02:36:54,869 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4c973000-f340-46ff-9a11-fafc92c7c179 2026-03-23 02:36:54,883 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/74699c70-c703-42a5-a293-7f1d579c29c4 2026-03-23 02:36:54,891 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/74699c70-c703-42a5-a293-7f1d579c29c4 2026-03-23 02:36:54,899 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/a87e9530-b22e-4b01-b659-a735e0bbc74e 2026-03-23 02:36:54,906 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-23 02:36:54,906 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4c973000-f340-46ff-9a11-fafc92c7c179 2026-03-23 02:36:54,915 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/74699c70-c703-42a5-a293-7f1d579c29c4 2026-03-23 02:36:54,930 - INFO - Verified VN network id 15 for VN 4c973000-f340-46ff-9a11-fafc92c7c179 2026-03-23 02:36:54,930 - INFO - Verifications in API Server for VN ctest-vn4-61908605 passed 2026-03-23 02:36:54,930 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4c973000-f340-46ff-9a11-fafc92c7c179 2026-03-23 02:36:54,940 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/74699c70-c703-42a5-a293-7f1d579c29c4 2026-03-23 02:36:54,949 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/74699c70-c703-42a5-a293-7f1d579c29c4 2026-03-23 02:36:54,956 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/a87e9530-b22e-4b01-b659-a735e0bbc74e 2026-03-23 02:36:54,970 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72790704:ctest-vn4-61908605', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-72790704', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5518932649005041407', 'uuid-lslong': '11101930519146250617'}, 'enable': 'true', 'created': '2026-03-23T02:36:53', 'last-modified': '2026-03-23T02:36:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.722900'} 2026-03-23 02:36:54,978 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-23 02:36:54,987 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72790704:ctest-vn4-61908605', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-72790704', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5518932649005041407', 'uuid-lslong': '11101930519146250617'}, 'enable': 'true', 'created': '2026-03-23T02:36:53', 'last-modified': '2026-03-23T02:36:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.737708'} 2026-03-23 02:36:54,995 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-23 02:36:55,001 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72790704:ctest-vn4-61908605', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-72790704', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5518932649005041407', 'uuid-lslong': '11101930519146250617'}, 'enable': 'true', 'created': '2026-03-23T02:36:53', 'last-modified': '2026-03-23T02:36:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.747156'} 2026-03-23 02:36:55,008 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-23 02:36:55,008 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-61908605 passed 2026-03-23 02:36:55,008 - DEBUG - ====Verifying policy data for ctest-vn4-61908605 in API_Server ====== 2026-03-23 02:36:55,010 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-23 02:36:55,017 - DEBUG - Requesting: http://10.0.0.27:8082/domain/54adab80-1c58-45eb-8fc6-565ee3803789 2026-03-23 02:36:55,029 - DEBUG - Requesting: http://10.0.0.27:8082/project/3f69de82-e86b-475c-9a76-67df9cb00977 2026-03-23 02:36:55,120 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4c973000-f340-46ff-9a11-fafc92c7c179 2026-03-23 02:36:55,131 - DEBUG - ==>Verifying data for policy with id: a14f98c4-bab7-4cff-ab6e-64f0800c9721, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72790704', 'ctest-policy1-75035661'] 2026-03-23 02:36:55,131 - INFO - VN ctest-vn4-61908605 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-23 02:36:55,131 - DEBUG - Verifying the vn in opserver 2026-03-23 02:36:55,131 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72790704:ctest-vn4-61908605 virtual network link through opserver 10.0.0.27 2026-03-23 02:36:55,131 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-03-23 02:36:55,444 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-03-23 02:36:55,519 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72790704:ctest-vn4-61908605', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72790704:ctest-vn4-61908605?flat'} 2026-03-23 02:36:55,519 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72790704:ctest-vn4-61908605 virtual network link through opserver 10.0.0.50 2026-03-23 02:36:55,519 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-03-23 02:36:55,830 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-03-23 02:36:55,901 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72790704:ctest-vn4-61908605', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72790704:ctest-vn4-61908605?flat'} 2026-03-23 02:36:55,901 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72790704:ctest-vn4-61908605 virtual network link through opserver 10.0.0.23 2026-03-23 02:36:55,901 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-03-23 02:36:56,211 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-03-23 02:36:56,285 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72790704:ctest-vn4-61908605', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72790704:ctest-vn4-61908605?flat'} 2026-03-23 02:36:56,286 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72790704:ctest-vn4-61908605 is found in opserver 2026-03-23 02:36:56,311 - DEBUG - Do not have enough data to verify VN in agent 2026-03-23 02:36:56,321 - DEBUG - VRF ids for VN ctest-vn4-61908605: {} 2026-03-23 02:36:56,321 - DEBUG - ====Verifying data for ctest-policy1-75035661 in API_Server ====== 2026-03-23 02:36:56,321 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-23 02:36:56,328 - DEBUG - Requesting: http://10.0.0.27:8082/domain/54adab80-1c58-45eb-8fc6-565ee3803789 2026-03-23 02:36:56,339 - DEBUG - Requesting: http://10.0.0.27:8082/project/3f69de82-e86b-475c-9a76-67df9cb00977 2026-03-23 02:36:56,429 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/a14f98c4-bab7-4cff-ab6e-64f0800c9721 2026-03-23 02:36:56,452 - INFO - Verified policy ctest-policy1-75035661 in API Server, Result: True 2026-03-23 02:36:56,452 - INFO - Done with setup and verification, moving onto test .. 2026-03-23 02:36:56,461 - INFO - Deleting VN ctest-vn4-61908605 2026-03-23 02:36:56,649 - DEBUG - Response for deleting network () 2026-03-23 02:36:56,650 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/74699c70-c703-42a5-a293-7f1d579c29c4 2026-03-23 02:36:56,657 - DEBUG - Response Code: 404 2026-03-23 02:36:56,658 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-23 02:36:56,667 - DEBUG - Requesting: http://10.0.0.27:8082/domain/54adab80-1c58-45eb-8fc6-565ee3803789 2026-03-23 02:36:56,679 - DEBUG - Requesting: http://10.0.0.27:8082/project/3f69de82-e86b-475c-9a76-67df9cb00977 2026-03-23 02:36:56,774 - INFO - Validated that VN ctest-vn4-61908605 is not found in API Server 2026-03-23 02:36:56,785 - DEBUG - VN ctest-vn4-61908605 is not present in Agent 10.0.0.249 2026-03-23 02:36:56,797 - DEBUG - VN ctest-vn4-61908605 is not present in Agent 10.0.0.65 2026-03-23 02:36:56,797 - INFO - Validated that VN ctest-vn4-61908605 is not in any agent 2026-03-23 02:36:56,827 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-61908605 info 2026-03-23 02:36:56,866 - INFO - Deleted policy ctest-policy1-75035661 2026-03-23 02:36:57,063 - DEBUG - policy ctest-policy1-75035661 is not found in API Server 2026-03-23 02:36:58,354 - DEBUG - No XMPP flaps were noticed during the test
2026-03-23 02:36:58,354 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-03-23 02:36:58,354 - INFO - -------------------------------------------------------------------------------- 2026-03-23 02:36:59,619 - DEBUG - No XMPP flaps were noticed during the test
2026-03-23 02:36:59,619 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2026-03-23 02:36:59,620 - INFO - -------------------------------------------------------------------------------- 2026-03-23 02:37:00,386 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-72790704, ID : 3f69de82-e86b-475c-9a76-67df9cb00977