2025-09-15 11:26:51,999 - INFO - Domain Default found not creating 2025-09-15 11:26:52,136 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-92088386 not found, creating it 2025-09-15 11:26:52,595 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-92088386, ID : ec5e4561-04f0-4f60-b7a7-394f9775f812 2025-09-15 11:26:54,030 - INFO - ================================================================================ 2025-09-15 11:26:54,030 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-15 11:26:54,293 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-09-15 11:26:54,293 - INFO - Initial checks done. Running the testcase now 2025-09-15 11:26:54,293 - INFO - 2025-09-15 11:26:54,293 - INFO - ================================================================================ 2025-09-15 11:26:54,293 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-15 11:26:54,293 - 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-09-15 11:26:54,590 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-09-15 11:26:54,590 - INFO - Initial checks done. Running the testcase now 2025-09-15 11:26:54,590 - INFO - 2025-09-15 11:26:54,939 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92088386:ctest-vn4-94842376, 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-92088386:ctest-vn4-94842376, 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-92088386:ctest-vn4-94842376, 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-92088386:ctest-vn4-94842376, 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-09-15 11:26:55,444 - DEBUG - Response for create_network : {'network': {'id': '3b1c3ebc-1a43-4583-b0d3-afebd054442e', 'name': 'ctest-vn4-94842376', 'tenant_id': 'ec5e456104f04f60b7a7394f9775f812', 'project_id': 'ec5e456104f04f60b7a7394f9775f812', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92088386', 'ctest-vn4-94842376'], 'port_security_enabled': True, 'description': ''}} 2025-09-15 11:26:55,599 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a76ea2ed-541c-4e19-997b-bf0b7e25d664', 'name': '', 'tenant_id': 'ec5e456104f04f60b7a7394f9775f812', 'network_id': '3b1c3ebc-1a43-4583-b0d3-afebd054442e', 'ip_version': 4, 'cidr': '138.144.219.0/26', 'allocation_pools': [{'start': '138.144.219.2', 'end': '138.144.219.62'}], 'gateway_ip': '138.144.219.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.144.219.2', 'tags': [], 'project_id': 'ec5e456104f04f60b7a7394f9775f812'}} 2025-09-15 11:26:55,792 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a00d2059-537a-4319-80bf-34eceb49cc57', 'name': '', 'tenant_id': 'ec5e456104f04f60b7a7394f9775f812', 'network_id': '3b1c3ebc-1a43-4583-b0d3-afebd054442e', 'ip_version': 6, 'cidr': '3b8b:1a0b:706c:1aca:8fd2:11fa::/96', 'allocation_pools': [{'start': '3b8b:1a0b:706c:1aca:8fd2:11fa:0:2', 'end': '3b8b:1a0b:706c:1aca:8fd2:11fa:ffff:fffe'}], 'gateway_ip': '3b8b:1a0b:706c:1aca:8fd2:11fa:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b8b:1a0b:706c:1aca:8fd2:11fa:0:2', 'tags': [], 'project_id': 'ec5e456104f04f60b7a7394f9775f812'}} 2025-09-15 11:26:55,812 - INFO - Created VN ctest-vn4-94842376 2025-09-15 11:26:55,864 - DEBUG - VN ctest-vn4-94842376 UUID is 3b1c3ebc-1a43-4583-b0d3-afebd054442e 2025-09-15 11:26:56,070 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3b1c3ebc-1a43-4583-b0d3-afebd054442e', 'name': 'ctest-vn4-94842376', 'tenant_id': 'ec5e456104f04f60b7a7394f9775f812', 'project_id': 'ec5e456104f04f60b7a7394f9775f812', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a76ea2ed-541c-4e19-997b-bf0b7e25d664', 'a00d2059-537a-4319-80bf-34eceb49cc57'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92088386', 'ctest-vn4-94842376'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92088386', 'ctest-policy1-00124786']], 'subnet_ipam': [{'subnet_cidr': '138.144.219.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b8b:1a0b:706c:1aca:8fd2:11fa::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-15 11:26:56,237 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-09-15 11:26:56,529 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-09-15 11:26:56,559 - DEBUG - Requesting: http://10.0.0.242:8082/domain/95733b59-5db3-40c1-8907-b12429d7c0e9 2025-09-15 11:26:56,570 - DEBUG - Requesting: http://10.0.0.242:8082/project/ec5e4561-04f0-4f60-b7a7-394f9775f812 2025-09-15 11:26:56,639 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3b1c3ebc-1a43-4583-b0d3-afebd054442e 2025-09-15 11:26:56,651 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3b1c3ebc-1a43-4583-b0d3-afebd054442e 2025-09-15 11:26:56,659 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e0f32481-449a-415c-97c0-22fcda5fee54 2025-09-15 11:26:56,667 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e0f32481-449a-415c-97c0-22fcda5fee54 2025-09-15 11:26:56,673 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/5eb720ed-c681-439d-b37d-9c79ddc74ce2 2025-09-15 11:26:56,679 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 11:26:56,679 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3b1c3ebc-1a43-4583-b0d3-afebd054442e 2025-09-15 11:26:56,688 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e0f32481-449a-415c-97c0-22fcda5fee54 2025-09-15 11:26:56,703 - INFO - Verified VN network id 11 for VN 3b1c3ebc-1a43-4583-b0d3-afebd054442e 2025-09-15 11:26:56,703 - INFO - Verifications in API Server for VN ctest-vn4-94842376 passed 2025-09-15 11:26:56,703 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3b1c3ebc-1a43-4583-b0d3-afebd054442e 2025-09-15 11:26:56,714 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e0f32481-449a-415c-97c0-22fcda5fee54 2025-09-15 11:26:56,721 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e0f32481-449a-415c-97c0-22fcda5fee54 2025-09-15 11:26:56,728 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/5eb720ed-c681-439d-b37d-9c79ddc74ce2 2025-09-15 11:26:56,750 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92088386:ctest-vn4-94842376', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-92088386', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4259348325201036675', 'uuid-lslong': '12741721198108623918'}, 'enable': 'true', 'created': '2025-09-15T11:26:55', 'last-modified': '2025-09-15T11:26:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.707785'} 2025-09-15 11:26:56,756 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 11:26:56,756 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-94842376 passed 2025-09-15 11:26:56,756 - DEBUG - ====Verifying policy data for ctest-vn4-94842376 in API_Server ====== 2025-09-15 11:26:56,756 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-09-15 11:26:56,762 - DEBUG - Requesting: http://10.0.0.242:8082/domain/95733b59-5db3-40c1-8907-b12429d7c0e9 2025-09-15 11:26:56,772 - DEBUG - Requesting: http://10.0.0.242:8082/project/ec5e4561-04f0-4f60-b7a7-394f9775f812 2025-09-15 11:26:56,846 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3b1c3ebc-1a43-4583-b0d3-afebd054442e 2025-09-15 11:26:56,855 - DEBUG - ==>Verifying data for policy with id: e70bbc29-19b2-42a5-b2c1-b6ed0c3dafcd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92088386', 'ctest-policy1-00124786'] 2025-09-15 11:26:56,856 - INFO - VN ctest-vn4-94842376 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-15 11:26:56,856 - DEBUG - Verifying the vn in opserver 2025-09-15 11:26:56,856 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92088386:ctest-vn4-94842376 virtual network link through opserver 10.0.0.242 2025-09-15 11:26:56,856 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-09-15 11:26:57,146 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-09-15 11:26:57,207 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92088386:ctest-vn4-94842376', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92088386:ctest-vn4-94842376?flat'} 2025-09-15 11:26:57,207 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92088386:ctest-vn4-94842376 is found in opserver 2025-09-15 11:26:57,217 - DEBUG - Do not have enough data to verify VN in agent 2025-09-15 11:26:57,222 - DEBUG - VRF ids for VN ctest-vn4-94842376: {} 2025-09-15 11:26:57,222 - DEBUG - ====Verifying data for ctest-policy1-00124786 in API_Server ====== 2025-09-15 11:26:57,222 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-09-15 11:26:57,228 - DEBUG - Requesting: http://10.0.0.242:8082/domain/95733b59-5db3-40c1-8907-b12429d7c0e9 2025-09-15 11:26:57,239 - DEBUG - Requesting: http://10.0.0.242:8082/project/ec5e4561-04f0-4f60-b7a7-394f9775f812 2025-09-15 11:26:57,314 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/e70bbc29-19b2-42a5-b2c1-b6ed0c3dafcd 2025-09-15 11:26:57,324 - INFO - Verified policy ctest-policy1-00124786 in API Server, Result: True 2025-09-15 11:26:57,324 - INFO - Done with setup and verification, moving onto test .. 2025-09-15 11:26:57,334 - INFO - Deleting VN ctest-vn4-94842376 2025-09-15 11:26:57,486 - DEBUG - Response for deleting network () 2025-09-15 11:26:57,486 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e0f32481-449a-415c-97c0-22fcda5fee54 2025-09-15 11:26:57,491 - DEBUG - Response Code: 404 2025-09-15 11:26:57,491 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-09-15 11:26:57,496 - DEBUG - Requesting: http://10.0.0.242:8082/domain/95733b59-5db3-40c1-8907-b12429d7c0e9 2025-09-15 11:26:57,549 - DEBUG - Requesting: http://10.0.0.242:8082/project/ec5e4561-04f0-4f60-b7a7-394f9775f812 2025-09-15 11:26:57,620 - INFO - Validated that VN ctest-vn4-94842376 is not found in API Server 2025-09-15 11:26:57,629 - DEBUG - VN ctest-vn4-94842376 is not present in Agent 10.0.0.242 2025-09-15 11:26:57,629 - INFO - Validated that VN ctest-vn4-94842376 is not in any agent 2025-09-15 11:26:57,642 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-94842376 info 2025-09-15 11:26:57,677 - INFO - Deleted policy ctest-policy1-00124786 2025-09-15 11:26:57,852 - DEBUG - policy ctest-policy1-00124786 is not found in API Server 2025-09-15 11:26:58,111 - DEBUG - No XMPP flaps were noticed during the test 2025-09-15 11:26:58,111 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-15 11:26:58,111 - INFO - -------------------------------------------------------------------------------- 2025-09-15 11:26:58,398 - DEBUG - No XMPP flaps were noticed during the test 2025-09-15 11:26:58,398 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-15 11:26:58,399 - INFO - -------------------------------------------------------------------------------- 2025-09-15 11:26:59,087 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-92088386, ID : ec5e4561-04f0-4f60-b7a7-394f9775f812