2025-12-29 11:30:48,221 - INFO - Domain Default found not creating 2025-12-29 11:30:48,414 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-73607657 not found, creating it 2025-12-29 11:30:48,896 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-73607657, ID : 32167616-78a7-4215-b8cd-259e7223906a 2025-12-29 11:30:50,393 - INFO - ================================================================================ 2025-12-29 11:30:50,393 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-29 11:30:50,649 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-29 11:30:50,649 - INFO - Initial checks done. Running the testcase now 2025-12-29 11:30:50,649 - INFO - 2025-12-29 11:30:50,649 - INFO - ================================================================================ 2025-12-29 11:30:50,649 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-29 11:30:50,649 - 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-12-29 11:30:50,941 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-29 11:30:50,941 - INFO - Initial checks done. Running the testcase now 2025-12-29 11:30:50,941 - INFO - 2025-12-29 11:30:51,295 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73607657:ctest-vn4-04767927, 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-73607657:ctest-vn4-04767927, 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-73607657:ctest-vn4-04767927, 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-73607657:ctest-vn4-04767927, 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-12-29 11:30:51,801 - DEBUG - Response for create_network : {'network': {'id': '213cd21f-a5da-4272-b6c4-7568ed04ab4e', 'name': 'ctest-vn4-04767927', 'tenant_id': '3216761678a74215b8cd259e7223906a', 'project_id': '3216761678a74215b8cd259e7223906a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73607657', 'ctest-vn4-04767927'], 'port_security_enabled': True, 'description': ''}} 2025-12-29 11:30:51,977 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ac22f043-cb14-467c-b07b-0268924672a3', 'name': '', 'tenant_id': '3216761678a74215b8cd259e7223906a', 'network_id': '213cd21f-a5da-4272-b6c4-7568ed04ab4e', 'ip_version': 4, 'cidr': '90.63.141.128/26', 'allocation_pools': [{'start': '90.63.141.130', 'end': '90.63.141.190'}], 'gateway_ip': '90.63.141.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.63.141.130', 'tags': [], 'project_id': '3216761678a74215b8cd259e7223906a'}} 2025-12-29 11:30:52,149 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8fca0ac-510c-4d99-aed8-433c5065655d', 'name': '', 'tenant_id': '3216761678a74215b8cd259e7223906a', 'network_id': '213cd21f-a5da-4272-b6c4-7568ed04ab4e', 'ip_version': 6, 'cidr': '34e1:7d0d:3079:c051:e332:f223::/96', 'allocation_pools': [{'start': '34e1:7d0d:3079:c051:e332:f223:0:2', 'end': '34e1:7d0d:3079:c051:e332:f223:ffff:fffe'}], 'gateway_ip': '34e1:7d0d:3079:c051:e332:f223:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34e1:7d0d:3079:c051:e332:f223:0:2', 'tags': [], 'project_id': '3216761678a74215b8cd259e7223906a'}} 2025-12-29 11:30:52,171 - INFO - Created VN ctest-vn4-04767927 2025-12-29 11:30:52,224 - DEBUG - VN ctest-vn4-04767927 UUID is 213cd21f-a5da-4272-b6c4-7568ed04ab4e 2025-12-29 11:30:52,442 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '213cd21f-a5da-4272-b6c4-7568ed04ab4e', 'name': 'ctest-vn4-04767927', 'tenant_id': '3216761678a74215b8cd259e7223906a', 'project_id': '3216761678a74215b8cd259e7223906a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ac22f043-cb14-467c-b07b-0268924672a3', 'f8fca0ac-510c-4d99-aed8-433c5065655d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73607657', 'ctest-vn4-04767927'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73607657', 'ctest-policy1-24909111']], 'subnet_ipam': [{'subnet_cidr': '90.63.141.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34e1:7d0d:3079:c051:e332:f223::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-29 11:30:52,600 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-29 11:30:52,902 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-29 11:30:52,937 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a4495567-ec69-4337-801c-32dd22fea583 2025-12-29 11:30:52,951 - DEBUG - Requesting: http://10.0.0.38:8082/project/32167616-78a7-4215-b8cd-259e7223906a 2025-12-29 11:30:53,026 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/213cd21f-a5da-4272-b6c4-7568ed04ab4e 2025-12-29 11:30:53,038 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/213cd21f-a5da-4272-b6c4-7568ed04ab4e 2025-12-29 11:30:53,048 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0cc0c3c5-718b-49ad-b719-95611e75afa1 2025-12-29 11:30:53,055 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0cc0c3c5-718b-49ad-b719-95611e75afa1 2025-12-29 11:30:53,062 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ba4e83e4-7a60-436b-a77c-06ea93cbce2f 2025-12-29 11:30:53,068 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-29 11:30:53,068 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/213cd21f-a5da-4272-b6c4-7568ed04ab4e 2025-12-29 11:30:53,077 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0cc0c3c5-718b-49ad-b719-95611e75afa1 2025-12-29 11:30:53,091 - INFO - Verified VN network id 11 for VN 213cd21f-a5da-4272-b6c4-7568ed04ab4e 2025-12-29 11:30:53,091 - INFO - Verifications in API Server for VN ctest-vn4-04767927 passed 2025-12-29 11:30:53,091 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/213cd21f-a5da-4272-b6c4-7568ed04ab4e 2025-12-29 11:30:53,101 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0cc0c3c5-718b-49ad-b719-95611e75afa1 2025-12-29 11:30:53,109 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0cc0c3c5-718b-49ad-b719-95611e75afa1 2025-12-29 11:30:53,116 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ba4e83e4-7a60-436b-a77c-06ea93cbce2f 2025-12-29 11:30:53,130 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73607657:ctest-vn4-04767927', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-73607657', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2395020135222624882', 'uuid-lslong': '13169780303851727694'}, 'enable': 'true', 'created': '2025-12-29T11:30:51', 'last-modified': '2025-12-29T11:30:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.717990'} 2025-12-29 11:30:53,136 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-29 11:30:53,136 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-04767927 passed 2025-12-29 11:30:53,136 - DEBUG - ====Verifying policy data for ctest-vn4-04767927 in API_Server ====== 2025-12-29 11:30:53,137 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-29 11:30:53,143 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a4495567-ec69-4337-801c-32dd22fea583 2025-12-29 11:30:53,153 - DEBUG - Requesting: http://10.0.0.38:8082/project/32167616-78a7-4215-b8cd-259e7223906a 2025-12-29 11:30:53,238 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/213cd21f-a5da-4272-b6c4-7568ed04ab4e 2025-12-29 11:30:53,249 - DEBUG - ==>Verifying data for policy with id: c04c4c9b-a4a4-4487-9c43-f3f98c768f44, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73607657', 'ctest-policy1-24909111'] 2025-12-29 11:30:53,249 - INFO - VN ctest-vn4-04767927 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-29 11:30:53,249 - DEBUG - Verifying the vn in opserver 2025-12-29 11:30:53,249 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73607657:ctest-vn4-04767927 virtual network link through opserver 10.0.0.38 2025-12-29 11:30:53,249 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-29 11:30:53,545 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-29 11:30:53,613 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73607657:ctest-vn4-04767927', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73607657:ctest-vn4-04767927?flat'} 2025-12-29 11:30:53,613 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73607657:ctest-vn4-04767927 is found in opserver 2025-12-29 11:30:53,624 - DEBUG - Do not have enough data to verify VN in agent 2025-12-29 11:30:53,628 - DEBUG - VRF ids for VN ctest-vn4-04767927: {} 2025-12-29 11:30:53,628 - DEBUG - ====Verifying data for ctest-policy1-24909111 in API_Server ====== 2025-12-29 11:30:53,629 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-29 11:30:53,635 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a4495567-ec69-4337-801c-32dd22fea583 2025-12-29 11:30:53,648 - DEBUG - Requesting: http://10.0.0.38:8082/project/32167616-78a7-4215-b8cd-259e7223906a 2025-12-29 11:30:53,722 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/c04c4c9b-a4a4-4487-9c43-f3f98c768f44 2025-12-29 11:30:53,732 - INFO - Verified policy ctest-policy1-24909111 in API Server, Result: True 2025-12-29 11:30:53,732 - INFO - Done with setup and verification, moving onto test .. 2025-12-29 11:30:53,741 - INFO - Deleting VN ctest-vn4-04767927 2025-12-29 11:30:53,869 - DEBUG - Response for deleting network () 2025-12-29 11:30:53,869 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0cc0c3c5-718b-49ad-b719-95611e75afa1 2025-12-29 11:30:53,874 - DEBUG - Response Code: 404 2025-12-29 11:30:53,874 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-29 11:30:53,879 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a4495567-ec69-4337-801c-32dd22fea583 2025-12-29 11:30:53,933 - DEBUG - Requesting: http://10.0.0.38:8082/project/32167616-78a7-4215-b8cd-259e7223906a 2025-12-29 11:30:54,001 - INFO - Validated that VN ctest-vn4-04767927 is not found in API Server 2025-12-29 11:30:54,011 - DEBUG - VN ctest-vn4-04767927 is not present in Agent 10.0.0.38 2025-12-29 11:30:54,011 - INFO - Validated that VN ctest-vn4-04767927 is not in any agent 2025-12-29 11:30:54,025 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-04767927 info 2025-12-29 11:30:54,048 - INFO - Deleted policy ctest-policy1-24909111 2025-12-29 11:30:54,216 - DEBUG - policy ctest-policy1-24909111 is not found in API Server 2025-12-29 11:30:54,478 - DEBUG - No XMPP flaps were noticed during the test