2025-10-13 12:52:18,186 - INFO - Domain Default found not creating 2025-10-13 12:52:18,321 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-18125334 not found, creating it 2025-10-13 12:52:18,745 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-18125334, ID : 296962da-1c2e-472e-bbe0-a66ff0c90956 2025-10-13 12:52:20,209 - INFO - ================================================================================ 2025-10-13 12:52:20,210 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-13 12:52:20,470 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.193': '0'}} with 2025-10-13 12:52:20,470 - INFO - Initial checks done. Running the testcase now 2025-10-13 12:52:20,470 - INFO - 2025-10-13 12:52:20,470 - INFO - ================================================================================ 2025-10-13 12:52:20,470 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-13 12:52:20,470 - 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. 2025-10-13 12:52:20,762 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.193': '0'}} with 2025-10-13 12:52:20,762 - INFO - Initial checks done. Running the testcase now 2025-10-13 12:52:20,762 - INFO - 2025-10-13 12:52:21,108 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18125334:ctest-vn4-56439953, 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-18125334:ctest-vn4-56439953, 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-18125334:ctest-vn4-56439953, 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-18125334:ctest-vn4-56439953, 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] 2025-10-13 12:52:21,600 - DEBUG - Response for create_network : {'network': {'id': '8f72bf51-62d7-4ef8-9cca-795fefc01d78', 'name': 'ctest-vn4-56439953', 'tenant_id': '296962da1c2e472ebbe0a66ff0c90956', 'project_id': '296962da1c2e472ebbe0a66ff0c90956', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18125334', 'ctest-vn4-56439953'], 'port_security_enabled': True, 'description': ''}} 2025-10-13 12:52:21,799 - DEBUG - Response for create_subnet : {'subnet': {'id': '51db5722-aade-4cc6-9abb-65a58df7f30d', 'name': '', 'tenant_id': '296962da1c2e472ebbe0a66ff0c90956', 'network_id': '8f72bf51-62d7-4ef8-9cca-795fefc01d78', 'ip_version': 4, 'cidr': '62.68.139.192/26', 'allocation_pools': [{'start': '62.68.139.194', 'end': '62.68.139.254'}], 'gateway_ip': '62.68.139.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.68.139.194', 'tags': [], 'project_id': '296962da1c2e472ebbe0a66ff0c90956'}} 2025-10-13 12:52:21,942 - DEBUG - Response for create_subnet : {'subnet': {'id': '71886c0d-314d-4cd3-ba3c-8993023ef773', 'name': '', 'tenant_id': '296962da1c2e472ebbe0a66ff0c90956', 'network_id': '8f72bf51-62d7-4ef8-9cca-795fefc01d78', 'ip_version': 6, 'cidr': '3d3a:5d1d:59be:50e4:599d:cb45::/96', 'allocation_pools': [{'start': '3d3a:5d1d:59be:50e4:599d:cb45:0:2', 'end': '3d3a:5d1d:59be:50e4:599d:cb45:ffff:fffe'}], 'gateway_ip': '3d3a:5d1d:59be:50e4:599d:cb45:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d3a:5d1d:59be:50e4:599d:cb45:0:2', 'tags': [], 'project_id': '296962da1c2e472ebbe0a66ff0c90956'}} 2025-10-13 12:52:21,966 - INFO - Created VN ctest-vn4-56439953 2025-10-13 12:52:22,017 - DEBUG - VN ctest-vn4-56439953 UUID is 8f72bf51-62d7-4ef8-9cca-795fefc01d78 2025-10-13 12:52:22,201 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8f72bf51-62d7-4ef8-9cca-795fefc01d78', 'name': 'ctest-vn4-56439953', 'tenant_id': '296962da1c2e472ebbe0a66ff0c90956', 'project_id': '296962da1c2e472ebbe0a66ff0c90956', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51db5722-aade-4cc6-9abb-65a58df7f30d', '71886c0d-314d-4cd3-ba3c-8993023ef773'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18125334', 'ctest-vn4-56439953'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18125334', 'ctest-policy1-11063594']], 'subnet_ipam': [{'subnet_cidr': '62.68.139.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d3a:5d1d:59be:50e4:599d:cb45::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-13 12:52:22,361 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-13 12:52:22,652 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-13 12:52:22,681 - DEBUG - Requesting: http://10.0.0.137:8082/domain/f7637674-1c0c-4068-a8eb-a862b87635f7 2025-10-13 12:52:22,696 - DEBUG - Requesting: http://10.0.0.137:8082/project/296962da-1c2e-472e-bbe0-a66ff0c90956 2025-10-13 12:52:22,774 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/8f72bf51-62d7-4ef8-9cca-795fefc01d78 2025-10-13 12:52:22,784 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/8f72bf51-62d7-4ef8-9cca-795fefc01d78 2025-10-13 12:52:22,793 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/355d160c-140c-41de-9a3b-16f9b25ef0b7 2025-10-13 12:52:22,798 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/355d160c-140c-41de-9a3b-16f9b25ef0b7 2025-10-13 12:52:22,804 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/c696a9f0-452c-4539-9647-98cc84c08ad1 2025-10-13 12:52:22,809 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-13 12:52:22,809 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/8f72bf51-62d7-4ef8-9cca-795fefc01d78 2025-10-13 12:52:22,827 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/355d160c-140c-41de-9a3b-16f9b25ef0b7 2025-10-13 12:52:22,840 - INFO - Verified VN network id 12 for VN 8f72bf51-62d7-4ef8-9cca-795fefc01d78 2025-10-13 12:52:22,841 - INFO - Verifications in API Server for VN ctest-vn4-56439953 passed 2025-10-13 12:52:22,841 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/8f72bf51-62d7-4ef8-9cca-795fefc01d78 2025-10-13 12:52:22,851 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/355d160c-140c-41de-9a3b-16f9b25ef0b7 2025-10-13 12:52:22,859 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/355d160c-140c-41de-9a3b-16f9b25ef0b7 2025-10-13 12:52:22,873 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/c696a9f0-452c-4539-9647-98cc84c08ad1 2025-10-13 12:52:22,883 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18125334:ctest-vn4-56439953', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-18125334', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10336534451040243448', 'uuid-lslong': '11297976068163509624'}, 'enable': 'true', 'created': '2025-10-13T12:52:21', 'last-modified': '2025-10-13T12:52:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.707556'} 2025-10-13 12:52:22,889 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-13 12:52:22,889 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-56439953 passed 2025-10-13 12:52:22,889 - DEBUG - ====Verifying policy data for ctest-vn4-56439953 in API_Server ====== 2025-10-13 12:52:22,889 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-13 12:52:22,895 - DEBUG - Requesting: http://10.0.0.137:8082/domain/f7637674-1c0c-4068-a8eb-a862b87635f7 2025-10-13 12:52:22,905 - DEBUG - Requesting: http://10.0.0.137:8082/project/296962da-1c2e-472e-bbe0-a66ff0c90956 2025-10-13 12:52:22,973 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/8f72bf51-62d7-4ef8-9cca-795fefc01d78 2025-10-13 12:52:22,984 - DEBUG - ==>Verifying data for policy with id: 1a1caffe-d24a-41e5-bbf4-ca40d2f62cf8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18125334', 'ctest-policy1-11063594'] 2025-10-13 12:52:22,984 - INFO - VN ctest-vn4-56439953 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-13 12:52:22,984 - DEBUG - Verifying the vn in opserver 2025-10-13 12:52:22,984 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18125334:ctest-vn4-56439953 virtual network link through opserver 10.0.0.137 2025-10-13 12:52:22,984 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-10-13 12:52:23,274 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-10-13 12:52:23,324 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18125334:ctest-vn4-56439953', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18125334:ctest-vn4-56439953?flat'} 2025-10-13 12:52:23,324 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18125334:ctest-vn4-56439953 is found in opserver 2025-10-13 12:52:23,332 - DEBUG - Do not have enough data to verify VN in agent 2025-10-13 12:52:23,336 - DEBUG - VRF ids for VN ctest-vn4-56439953: {} 2025-10-13 12:52:23,337 - DEBUG - ====Verifying data for ctest-policy1-11063594 in API_Server ====== 2025-10-13 12:52:23,337 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-13 12:52:23,341 - DEBUG - Requesting: http://10.0.0.137:8082/domain/f7637674-1c0c-4068-a8eb-a862b87635f7 2025-10-13 12:52:23,350 - DEBUG - Requesting: http://10.0.0.137:8082/project/296962da-1c2e-472e-bbe0-a66ff0c90956 2025-10-13 12:52:23,414 - DEBUG - Requesting: http://10.0.0.137:8082/network-policy/1a1caffe-d24a-41e5-bbf4-ca40d2f62cf8 2025-10-13 12:52:23,422 - INFO - Verified policy ctest-policy1-11063594 in API Server, Result: True 2025-10-13 12:52:23,422 - INFO - Done with setup and verification, moving onto test .. 2025-10-13 12:52:23,429 - INFO - Deleting VN ctest-vn4-56439953 2025-10-13 12:52:23,526 - DEBUG - Response for deleting network () 2025-10-13 12:52:23,526 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/355d160c-140c-41de-9a3b-16f9b25ef0b7 2025-10-13 12:52:23,530 - DEBUG - Response Code: 404 2025-10-13 12:52:23,530 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-13 12:52:23,535 - DEBUG - Requesting: http://10.0.0.137:8082/domain/f7637674-1c0c-4068-a8eb-a862b87635f7 2025-10-13 12:52:23,585 - DEBUG - Requesting: http://10.0.0.137:8082/project/296962da-1c2e-472e-bbe0-a66ff0c90956 2025-10-13 12:52:23,653 - INFO - Validated that VN ctest-vn4-56439953 is not found in API Server 2025-10-13 12:52:23,662 - DEBUG - VN ctest-vn4-56439953 is not present in Agent 10.0.0.137 2025-10-13 12:52:23,662 - INFO - Validated that VN ctest-vn4-56439953 is not in any agent 2025-10-13 12:52:23,675 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-56439953 info 2025-10-13 12:52:23,696 - INFO - Deleted policy ctest-policy1-11063594 2025-10-13 12:52:23,860 - DEBUG - policy ctest-policy1-11063594 is not found in API Server 2025-10-13 12:52:24,118 - DEBUG - No XMPP flaps were noticed during the test