2025-11-15 10:30:26,799 - INFO - Domain Default found not creating 2025-11-15 10:30:27,132 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-22614774 not found, creating it 2025-11-15 10:30:27,782 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-22614774, ID : 93abbda7-a481-432e-9818-055876479771 2025-11-15 10:30:29,870 - INFO - ================================================================================ 2025-11-15 10:30:29,871 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-15 10:30:30,195 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-15 10:30:30,196 - INFO - Initial checks done. Running the testcase now 2025-11-15 10:30:30,196 - INFO - 2025-11-15 10:30:30,196 - INFO - ================================================================================ 2025-11-15 10:30:30,196 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-15 10:30:30,197 - 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-11-15 10:30:30,522 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-15 10:30:30,522 - INFO - Initial checks done. Running the testcase now 2025-11-15 10:30:30,523 - INFO - 2025-11-15 10:30:30,981 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22614774:ctest-vn4-95670255, 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-22614774:ctest-vn4-95670255, 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-22614774:ctest-vn4-95670255, 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-22614774:ctest-vn4-95670255, 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-11-15 10:30:31,760 - DEBUG - Response for create_network : {'network': {'id': '6cafe925-95c1-44e9-b94d-f4e5e9d3f39a', 'name': 'ctest-vn4-95670255', 'tenant_id': '93abbda7a481432e9818055876479771', 'project_id': '93abbda7a481432e9818055876479771', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22614774', 'ctest-vn4-95670255'], 'port_security_enabled': True, 'description': ''}} 2025-11-15 10:30:32,032 - DEBUG - Response for create_subnet : {'subnet': {'id': '0499880c-ca09-446f-9c92-d156c5ec38f1', 'name': '', 'tenant_id': '93abbda7a481432e9818055876479771', 'network_id': '6cafe925-95c1-44e9-b94d-f4e5e9d3f39a', 'ip_version': 4, 'cidr': '155.246.188.64/26', 'allocation_pools': [{'start': '155.246.188.66', 'end': '155.246.188.126'}], 'gateway_ip': '155.246.188.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.246.188.66', 'tags': [], 'project_id': '93abbda7a481432e9818055876479771'}} 2025-11-15 10:30:32,267 - DEBUG - Response for create_subnet : {'subnet': {'id': '875fa4c5-565d-4ac5-8642-edc75b743c9a', 'name': '', 'tenant_id': '93abbda7a481432e9818055876479771', 'network_id': '6cafe925-95c1-44e9-b94d-f4e5e9d3f39a', 'ip_version': 6, 'cidr': '3836:7be6:6d28:c214:d43b:67d9::/96', 'allocation_pools': [{'start': '3836:7be6:6d28:c214:d43b:67d9:0:2', 'end': '3836:7be6:6d28:c214:d43b:67d9:ffff:fffe'}], 'gateway_ip': '3836:7be6:6d28:c214:d43b:67d9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3836:7be6:6d28:c214:d43b:67d9:0:2', 'tags': [], 'project_id': '93abbda7a481432e9818055876479771'}} 2025-11-15 10:30:32,296 - INFO - Created VN ctest-vn4-95670255 2025-11-15 10:30:32,353 - DEBUG - VN ctest-vn4-95670255 UUID is 6cafe925-95c1-44e9-b94d-f4e5e9d3f39a 2025-11-15 10:30:32,606 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6cafe925-95c1-44e9-b94d-f4e5e9d3f39a', 'name': 'ctest-vn4-95670255', 'tenant_id': '93abbda7a481432e9818055876479771', 'project_id': '93abbda7a481432e9818055876479771', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0499880c-ca09-446f-9c92-d156c5ec38f1', '875fa4c5-565d-4ac5-8642-edc75b743c9a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22614774', 'ctest-vn4-95670255'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22614774', 'ctest-policy1-58381786']], 'subnet_ipam': [{'subnet_cidr': '155.246.188.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3836:7be6:6d28:c214:d43b:67d9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-15 10:30:32,793 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-15 10:30:33,091 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-15 10:30:33,130 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1b4e8b25-59df-4c37-be71-c1664cee9893 2025-11-15 10:30:33,160 - DEBUG - Requesting: http://10.0.0.50:8082/project/93abbda7-a481-432e-9818-055876479771 2025-11-15 10:30:33,264 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6cafe925-95c1-44e9-b94d-f4e5e9d3f39a 2025-11-15 10:30:33,289 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6cafe925-95c1-44e9-b94d-f4e5e9d3f39a 2025-11-15 10:30:33,311 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ed321213-3fd0-4fbb-8548-29bf6c6ddc07 2025-11-15 10:30:33,328 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ed321213-3fd0-4fbb-8548-29bf6c6ddc07 2025-11-15 10:30:33,339 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fe396d57-b9fa-4c24-b3f3-cfb13dd9c14a 2025-11-15 10:30:33,349 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-15 10:30:33,350 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6cafe925-95c1-44e9-b94d-f4e5e9d3f39a 2025-11-15 10:30:33,363 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ed321213-3fd0-4fbb-8548-29bf6c6ddc07 2025-11-15 10:30:33,387 - INFO - Verified VN network id 11 for VN 6cafe925-95c1-44e9-b94d-f4e5e9d3f39a 2025-11-15 10:30:33,387 - INFO - Verifications in API Server for VN ctest-vn4-95670255 passed 2025-11-15 10:30:33,387 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6cafe925-95c1-44e9-b94d-f4e5e9d3f39a 2025-11-15 10:30:33,405 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ed321213-3fd0-4fbb-8548-29bf6c6ddc07 2025-11-15 10:30:33,417 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ed321213-3fd0-4fbb-8548-29bf6c6ddc07 2025-11-15 10:30:33,431 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fe396d57-b9fa-4c24-b3f3-cfb13dd9c14a 2025-11-15 10:30:33,451 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22614774:ctest-vn4-95670255', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-22614774', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7831734624656114921', 'uuid-lslong': '13352597738531058586'}, 'enable': 'true', 'created': '2025-11-15T10:30:31', 'last-modified': '2025-11-15T10:30:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.871599'} 2025-11-15 10:30:33,461 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-15 10:30:33,461 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-95670255 passed 2025-11-15 10:30:33,461 - DEBUG - ====Verifying policy data for ctest-vn4-95670255 in API_Server ====== 2025-11-15 10:30:33,461 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-15 10:30:33,472 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1b4e8b25-59df-4c37-be71-c1664cee9893 2025-11-15 10:30:33,495 - DEBUG - Requesting: http://10.0.0.50:8082/project/93abbda7-a481-432e-9818-055876479771 2025-11-15 10:30:33,604 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6cafe925-95c1-44e9-b94d-f4e5e9d3f39a 2025-11-15 10:30:33,634 - DEBUG - ==>Verifying data for policy with id: 6a242625-d580-4c3b-bb6f-65d45e22a10d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22614774', 'ctest-policy1-58381786'] 2025-11-15 10:30:33,634 - INFO - VN ctest-vn4-95670255 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-15 10:30:33,634 - DEBUG - Verifying the vn in opserver 2025-11-15 10:30:33,634 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22614774:ctest-vn4-95670255 virtual network link through opserver 10.0.0.50 2025-11-15 10:30:33,635 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-15 10:30:33,943 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-15 10:30:34,050 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22614774:ctest-vn4-95670255', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22614774:ctest-vn4-95670255?flat'} 2025-11-15 10:30:34,050 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22614774:ctest-vn4-95670255 is found in opserver 2025-11-15 10:30:34,065 - DEBUG - Do not have enough data to verify VN in agent 2025-11-15 10:30:34,073 - DEBUG - VRF ids for VN ctest-vn4-95670255: {} 2025-11-15 10:30:34,075 - DEBUG - ====Verifying data for ctest-policy1-58381786 in API_Server ====== 2025-11-15 10:30:34,075 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-15 10:30:34,087 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1b4e8b25-59df-4c37-be71-c1664cee9893 2025-11-15 10:30:34,110 - DEBUG - Requesting: http://10.0.0.50:8082/project/93abbda7-a481-432e-9818-055876479771 2025-11-15 10:30:34,195 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/6a242625-d580-4c3b-bb6f-65d45e22a10d 2025-11-15 10:30:34,207 - INFO - Verified policy ctest-policy1-58381786 in API Server, Result: True 2025-11-15 10:30:34,207 - INFO - Done with setup and verification, moving onto test .. 2025-11-15 10:30:34,217 - INFO - Deleting VN ctest-vn4-95670255 2025-11-15 10:30:34,360 - DEBUG - Response for deleting network () 2025-11-15 10:30:34,360 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ed321213-3fd0-4fbb-8548-29bf6c6ddc07 2025-11-15 10:30:34,365 - DEBUG - Response Code: 404 2025-11-15 10:30:34,365 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-15 10:30:34,370 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1b4e8b25-59df-4c37-be71-c1664cee9893 2025-11-15 10:30:34,427 - DEBUG - Requesting: http://10.0.0.50:8082/project/93abbda7-a481-432e-9818-055876479771 2025-11-15 10:30:34,520 - INFO - Validated that VN ctest-vn4-95670255 is not found in API Server 2025-11-15 10:30:34,536 - DEBUG - VN ctest-vn4-95670255 is not present in Agent 10.0.0.50 2025-11-15 10:30:34,536 - INFO - Validated that VN ctest-vn4-95670255 is not in any agent 2025-11-15 10:30:34,562 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-95670255 info 2025-11-15 10:30:34,598 - INFO - Deleted policy ctest-policy1-58381786 2025-11-15 10:30:34,778 - DEBUG - policy ctest-policy1-58381786 is not found in API Server 2025-11-15 10:30:35,077 - DEBUG - No XMPP flaps were noticed during the test 2025-11-15 10:30:35,077 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-11-15 10:30:35,077 - INFO - -------------------------------------------------------------------------------- 2025-11-15 10:30:35,394 - DEBUG - No XMPP flaps were noticed during the test 2025-11-15 10:30:35,394 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06] 2025-11-15 10:30:35,394 - INFO - -------------------------------------------------------------------------------- 2025-11-15 10:30:36,326 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-22614774, ID : 93abbda7-a481-432e-9818-055876479771