2025-10-24 09:53:35,134 - INFO - Domain Default found not creating 2025-10-24 09:53:35,273 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-64111606 not found, creating it 2025-10-24 09:53:35,710 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-64111606, ID : 30db77c2-bb82-4e0a-a213-841352c96df7 2025-10-24 09:53:37,078 - INFO - ================================================================================ 2025-10-24 09:53:37,078 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-24 09:53:37,331 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-10-24 09:53:37,331 - INFO - Initial checks done. Running the testcase now 2025-10-24 09:53:37,331 - INFO - 2025-10-24 09:53:37,331 - INFO - ================================================================================ 2025-10-24 09:53:37,331 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-24 09:53:37,331 - 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-24 09:53:37,626 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-10-24 09:53:37,627 - INFO - Initial checks done. Running the testcase now 2025-10-24 09:53:37,627 - INFO - 2025-10-24 09:53:37,965 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64111606:ctest-vn4-50459706, 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-64111606:ctest-vn4-50459706, 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-64111606:ctest-vn4-50459706, 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-64111606:ctest-vn4-50459706, 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-24 09:53:38,461 - DEBUG - Response for create_network : {'network': {'id': '960ccd4d-c443-4619-98ad-f8ce639de5e5', 'name': 'ctest-vn4-50459706', 'tenant_id': '30db77c2bb824e0aa213841352c96df7', 'project_id': '30db77c2bb824e0aa213841352c96df7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64111606', 'ctest-vn4-50459706'], 'port_security_enabled': True, 'description': ''}} 2025-10-24 09:53:38,647 - DEBUG - Response for create_subnet : {'subnet': {'id': '07007ecc-6c8e-4d5d-959e-55ff17b0ffbe', 'name': '', 'tenant_id': '30db77c2bb824e0aa213841352c96df7', 'network_id': '960ccd4d-c443-4619-98ad-f8ce639de5e5', 'ip_version': 4, 'cidr': '218.196.70.0/26', 'allocation_pools': [{'start': '218.196.70.2', 'end': '218.196.70.62'}], 'gateway_ip': '218.196.70.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.196.70.2', 'tags': [], 'project_id': '30db77c2bb824e0aa213841352c96df7'}} 2025-10-24 09:53:38,817 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba1716c8-4c35-45b2-87c8-80bfb91ba57e', 'name': '', 'tenant_id': '30db77c2bb824e0aa213841352c96df7', 'network_id': '960ccd4d-c443-4619-98ad-f8ce639de5e5', 'ip_version': 6, 'cidr': '3c0d:8431:91fc:d99b:8ab4:4730::/96', 'allocation_pools': [{'start': '3c0d:8431:91fc:d99b:8ab4:4730:0:2', 'end': '3c0d:8431:91fc:d99b:8ab4:4730:ffff:fffe'}], 'gateway_ip': '3c0d:8431:91fc:d99b:8ab4:4730:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c0d:8431:91fc:d99b:8ab4:4730:0:2', 'tags': [], 'project_id': '30db77c2bb824e0aa213841352c96df7'}} 2025-10-24 09:53:38,839 - INFO - Created VN ctest-vn4-50459706 2025-10-24 09:53:38,890 - DEBUG - VN ctest-vn4-50459706 UUID is 960ccd4d-c443-4619-98ad-f8ce639de5e5 2025-10-24 09:53:39,077 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '960ccd4d-c443-4619-98ad-f8ce639de5e5', 'name': 'ctest-vn4-50459706', 'tenant_id': '30db77c2bb824e0aa213841352c96df7', 'project_id': '30db77c2bb824e0aa213841352c96df7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['07007ecc-6c8e-4d5d-959e-55ff17b0ffbe', 'ba1716c8-4c35-45b2-87c8-80bfb91ba57e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64111606', 'ctest-vn4-50459706'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64111606', 'ctest-policy1-67689852']], 'subnet_ipam': [{'subnet_cidr': '218.196.70.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c0d:8431:91fc:d99b:8ab4:4730::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-24 09:53:39,235 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-24 09:53:39,524 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-24 09:53:39,550 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d5a3a1f4-6255-4557-809e-1505926c114f 2025-10-24 09:53:39,561 - DEBUG - Requesting: http://10.0.0.33:8082/project/30db77c2-bb82-4e0a-a213-841352c96df7 2025-10-24 09:53:39,633 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/960ccd4d-c443-4619-98ad-f8ce639de5e5 2025-10-24 09:53:39,644 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/960ccd4d-c443-4619-98ad-f8ce639de5e5 2025-10-24 09:53:39,653 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/08084073-ffbd-4c37-93d9-2e049940e5b9 2025-10-24 09:53:39,659 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/08084073-ffbd-4c37-93d9-2e049940e5b9 2025-10-24 09:53:39,665 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/61520789-f7e0-4565-9e3b-3afb75eea0b8 2025-10-24 09:53:39,671 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-24 09:53:39,671 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/960ccd4d-c443-4619-98ad-f8ce639de5e5 2025-10-24 09:53:39,679 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/08084073-ffbd-4c37-93d9-2e049940e5b9 2025-10-24 09:53:39,692 - INFO - Verified VN network id 10 for VN 960ccd4d-c443-4619-98ad-f8ce639de5e5 2025-10-24 09:53:39,692 - INFO - Verifications in API Server for VN ctest-vn4-50459706 passed 2025-10-24 09:53:39,693 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/960ccd4d-c443-4619-98ad-f8ce639de5e5 2025-10-24 09:53:39,701 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/08084073-ffbd-4c37-93d9-2e049940e5b9 2025-10-24 09:53:39,708 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/08084073-ffbd-4c37-93d9-2e049940e5b9 2025-10-24 09:53:39,714 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/61520789-f7e0-4565-9e3b-3afb75eea0b8 2025-10-24 09:53:39,725 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64111606:ctest-vn4-50459706', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-64111606', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10812242539298637337', 'uuid-lslong': '11001723030054233573'}, 'enable': 'true', 'created': '2025-10-24T09:53:38', 'last-modified': '2025-10-24T09:53:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.669376'} 2025-10-24 09:53:39,733 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-24 09:53:39,733 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-50459706 passed 2025-10-24 09:53:39,733 - DEBUG - ====Verifying policy data for ctest-vn4-50459706 in API_Server ====== 2025-10-24 09:53:39,733 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-24 09:53:39,739 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d5a3a1f4-6255-4557-809e-1505926c114f 2025-10-24 09:53:39,752 - DEBUG - Requesting: http://10.0.0.33:8082/project/30db77c2-bb82-4e0a-a213-841352c96df7 2025-10-24 09:53:39,819 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/960ccd4d-c443-4619-98ad-f8ce639de5e5 2025-10-24 09:53:39,828 - DEBUG - ==>Verifying data for policy with id: 0a40e1a7-0b8f-4bfb-b378-aa49f46f5862, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64111606', 'ctest-policy1-67689852'] 2025-10-24 09:53:39,828 - INFO - VN ctest-vn4-50459706 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-24 09:53:39,828 - DEBUG - Verifying the vn in opserver 2025-10-24 09:53:39,828 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64111606:ctest-vn4-50459706 virtual network link through opserver 10.0.0.33 2025-10-24 09:53:39,828 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-24 09:53:40,118 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-24 09:53:40,172 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64111606:ctest-vn4-50459706', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64111606:ctest-vn4-50459706?flat'} 2025-10-24 09:53:40,172 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64111606:ctest-vn4-50459706 is found in opserver 2025-10-24 09:53:40,181 - DEBUG - Do not have enough data to verify VN in agent 2025-10-24 09:53:40,185 - DEBUG - VRF ids for VN ctest-vn4-50459706: {} 2025-10-24 09:53:40,186 - DEBUG - ====Verifying data for ctest-policy1-67689852 in API_Server ====== 2025-10-24 09:53:40,186 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-24 09:53:40,191 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d5a3a1f4-6255-4557-809e-1505926c114f 2025-10-24 09:53:40,204 - DEBUG - Requesting: http://10.0.0.33:8082/project/30db77c2-bb82-4e0a-a213-841352c96df7 2025-10-24 09:53:40,271 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/0a40e1a7-0b8f-4bfb-b378-aa49f46f5862 2025-10-24 09:53:40,279 - INFO - Verified policy ctest-policy1-67689852 in API Server, Result: True 2025-10-24 09:53:40,280 - INFO - Done with setup and verification, moving onto test .. 2025-10-24 09:53:40,286 - INFO - Deleting VN ctest-vn4-50459706 2025-10-24 09:53:40,394 - DEBUG - Response for deleting network () 2025-10-24 09:53:40,394 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/08084073-ffbd-4c37-93d9-2e049940e5b9 2025-10-24 09:53:40,399 - DEBUG - Response Code: 404 2025-10-24 09:53:40,399 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-24 09:53:40,404 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d5a3a1f4-6255-4557-809e-1505926c114f 2025-10-24 09:53:40,459 - DEBUG - Requesting: http://10.0.0.33:8082/project/30db77c2-bb82-4e0a-a213-841352c96df7 2025-10-24 09:53:40,527 - INFO - Validated that VN ctest-vn4-50459706 is not found in API Server 2025-10-24 09:53:40,536 - DEBUG - VN ctest-vn4-50459706 is not present in Agent 10.0.0.33 2025-10-24 09:53:40,536 - INFO - Validated that VN ctest-vn4-50459706 is not in any agent 2025-10-24 09:53:40,552 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-50459706 info 2025-10-24 09:53:40,574 - INFO - Deleted policy ctest-policy1-67689852 2025-10-24 09:53:40,742 - DEBUG - policy ctest-policy1-67689852 is not found in API Server 2025-10-24 09:53:40,995 - DEBUG - No XMPP flaps were noticed during the test 2025-10-24 09:53:40,995 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-10-24 09:53:40,995 - INFO - -------------------------------------------------------------------------------- 2025-10-24 09:53:41,287 - DEBUG - No XMPP flaps were noticed during the test 2025-10-24 09:53:41,287 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-24 09:53:41,287 - INFO - -------------------------------------------------------------------------------- 2025-10-24 09:53:41,928 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-64111606, ID : 30db77c2-bb82-4e0a-a213-841352c96df7