2025-08-11 15:29:54,245 - INFO - Domain Default found not creating 2025-08-11 15:29:54,362 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-92686959 not found, creating it 2025-08-11 15:29:54,812 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-92686959, ID : cac440c3-e931-4a8e-a4e6-20cce73f2ec8 2025-08-11 15:29:56,112 - INFO - ================================================================================ 2025-08-11 15:29:56,112 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 15:29:56,373 - DEBUG - Nothing to compare xmpp stats {'10.0.0.128': {'10.0.0.128': '0'}} with 2025-08-11 15:29:56,373 - INFO - Initial checks done. Running the testcase now 2025-08-11 15:29:56,373 - INFO - 2025-08-11 15:29:56,373 - INFO - ================================================================================ 2025-08-11 15:29:56,373 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 15:29:56,373 - 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-08-11 15:29:56,664 - DEBUG - Nothing to compare xmpp stats {'10.0.0.128': {'10.0.0.128': '0'}} with 2025-08-11 15:29:56,664 - INFO - Initial checks done. Running the testcase now 2025-08-11 15:29:56,664 - INFO - 2025-08-11 15:29:57,005 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92686959:ctest-vn4-62543689, 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-92686959:ctest-vn4-62543689, 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-92686959:ctest-vn4-62543689, 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-92686959:ctest-vn4-62543689, 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-08-11 15:29:57,625 - DEBUG - Response for create_network : {'network': {'id': 'ed52bd17-c68a-4c4a-ab82-12ca003c74ce', 'name': 'ctest-vn4-62543689', 'tenant_id': 'cac440c3e9314a8ea4e620cce73f2ec8', 'project_id': 'cac440c3e9314a8ea4e620cce73f2ec8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92686959', 'ctest-vn4-62543689'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 15:29:57,799 - DEBUG - Response for create_subnet : {'subnet': {'id': '7a3ee565-13e1-4c07-ab7c-b7caf7fac3a2', 'name': '', 'tenant_id': 'cac440c3e9314a8ea4e620cce73f2ec8', 'network_id': 'ed52bd17-c68a-4c4a-ab82-12ca003c74ce', 'ip_version': 4, 'cidr': '88.140.217.128/26', 'allocation_pools': [{'start': '88.140.217.130', 'end': '88.140.217.190'}], 'gateway_ip': '88.140.217.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.140.217.130', 'tags': [], 'project_id': 'cac440c3e9314a8ea4e620cce73f2ec8'}} 2025-08-11 15:29:57,934 - DEBUG - Response for create_subnet : {'subnet': {'id': '093b26ed-a7df-409f-aae2-e4ae7f22dcf0', 'name': '', 'tenant_id': 'cac440c3e9314a8ea4e620cce73f2ec8', 'network_id': 'ed52bd17-c68a-4c4a-ab82-12ca003c74ce', 'ip_version': 6, 'cidr': '2f27:6b6a:6163:5d6e:47d4:3812::/96', 'allocation_pools': [{'start': '2f27:6b6a:6163:5d6e:47d4:3812:0:2', 'end': '2f27:6b6a:6163:5d6e:47d4:3812:ffff:fffe'}], 'gateway_ip': '2f27:6b6a:6163:5d6e:47d4:3812:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f27:6b6a:6163:5d6e:47d4:3812:0:2', 'tags': [], 'project_id': 'cac440c3e9314a8ea4e620cce73f2ec8'}} 2025-08-11 15:29:57,952 - INFO - Created VN ctest-vn4-62543689 2025-08-11 15:29:58,000 - DEBUG - VN ctest-vn4-62543689 UUID is ed52bd17-c68a-4c4a-ab82-12ca003c74ce 2025-08-11 15:29:58,173 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ed52bd17-c68a-4c4a-ab82-12ca003c74ce', 'name': 'ctest-vn4-62543689', 'tenant_id': 'cac440c3e9314a8ea4e620cce73f2ec8', 'project_id': 'cac440c3e9314a8ea4e620cce73f2ec8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7a3ee565-13e1-4c07-ab7c-b7caf7fac3a2', '093b26ed-a7df-409f-aae2-e4ae7f22dcf0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92686959', 'ctest-vn4-62543689'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92686959', 'ctest-policy1-08276283']], 'subnet_ipam': [{'subnet_cidr': '88.140.217.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f27:6b6a:6163:5d6e:47d4:3812::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 15:29:58,328 - DEBUG - Requesting: http://10.0.0.128:8082/domains 2025-08-11 15:29:58,613 - DEBUG - Requesting: http://10.0.0.128:8082/domains 2025-08-11 15:29:58,636 - DEBUG - Requesting: http://10.0.0.128:8082/domain/c0da02fa-8c67-478d-8037-01d49286901b 2025-08-11 15:29:58,648 - DEBUG - Requesting: http://10.0.0.128:8082/project/cac440c3-e931-4a8e-a4e6-20cce73f2ec8 2025-08-11 15:29:58,716 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/ed52bd17-c68a-4c4a-ab82-12ca003c74ce 2025-08-11 15:29:58,725 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/ed52bd17-c68a-4c4a-ab82-12ca003c74ce 2025-08-11 15:29:58,732 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/c962b423-99b1-4cef-aaae-95e378a30d1d 2025-08-11 15:29:58,737 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/c962b423-99b1-4cef-aaae-95e378a30d1d 2025-08-11 15:29:58,741 - DEBUG - Requesting: http://10.0.0.128:8082/route-target/06325299-f850-480d-bcaa-aaaa43062c17 2025-08-11 15:29:58,749 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 15:29:58,749 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/ed52bd17-c68a-4c4a-ab82-12ca003c74ce 2025-08-11 15:29:58,756 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/c962b423-99b1-4cef-aaae-95e378a30d1d 2025-08-11 15:29:58,765 - INFO - Verified VN network id 11 for VN ed52bd17-c68a-4c4a-ab82-12ca003c74ce 2025-08-11 15:29:58,766 - INFO - Verifications in API Server for VN ctest-vn4-62543689 passed 2025-08-11 15:29:58,766 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/ed52bd17-c68a-4c4a-ab82-12ca003c74ce 2025-08-11 15:29:58,774 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/c962b423-99b1-4cef-aaae-95e378a30d1d 2025-08-11 15:29:58,780 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/c962b423-99b1-4cef-aaae-95e378a30d1d 2025-08-11 15:29:58,785 - DEBUG - Requesting: http://10.0.0.128:8082/route-target/06325299-f850-480d-bcaa-aaaa43062c17 2025-08-11 15:29:58,796 - DEBUG - Control-node 10.0.0.128 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92686959:ctest-vn4-62543689', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-92686959', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17100938644892044362', 'uuid-lslong': '12358460986254718158'}, 'enable': 'true', 'created': '2025-08-11T15:29:57', 'last-modified': '2025-08-11T15:29:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.652041'} 2025-08-11 15:29:58,801 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 15:29:58,801 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-62543689 passed 2025-08-11 15:29:58,801 - DEBUG - ====Verifying policy data for ctest-vn4-62543689 in API_Server ====== 2025-08-11 15:29:58,801 - DEBUG - Requesting: http://10.0.0.128:8082/domains 2025-08-11 15:29:58,805 - DEBUG - Requesting: http://10.0.0.128:8082/domain/c0da02fa-8c67-478d-8037-01d49286901b 2025-08-11 15:29:58,812 - DEBUG - Requesting: http://10.0.0.128:8082/project/cac440c3-e931-4a8e-a4e6-20cce73f2ec8 2025-08-11 15:29:58,877 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/ed52bd17-c68a-4c4a-ab82-12ca003c74ce 2025-08-11 15:29:58,888 - DEBUG - ==>Verifying data for policy with id: 4a12a837-959f-4154-9eb6-ebf55c7d058c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92686959', 'ctest-policy1-08276283'] 2025-08-11 15:29:58,888 - INFO - VN ctest-vn4-62543689 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 15:29:58,888 - DEBUG - Verifying the vn in opserver 2025-08-11 15:29:58,888 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92686959:ctest-vn4-62543689 virtual network link through opserver 10.0.0.128 2025-08-11 15:29:58,888 - DEBUG - Requesting: http://10.0.0.128:8081/analytics/uves/virtual-networks 2025-08-11 15:29:59,176 - DEBUG - Requesting: http://10.0.0.128:8081/analytics/uves/virtual-networks 2025-08-11 15:29:59,221 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92686959:ctest-vn4-62543689', 'href': 'http://10.0.0.128:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92686959:ctest-vn4-62543689?flat'} 2025-08-11 15:29:59,221 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92686959:ctest-vn4-62543689 is found in opserver 2025-08-11 15:29:59,229 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 15:29:59,232 - DEBUG - VRF ids for VN ctest-vn4-62543689: {} 2025-08-11 15:29:59,233 - DEBUG - ====Verifying data for ctest-policy1-08276283 in API_Server ====== 2025-08-11 15:29:59,233 - DEBUG - Requesting: http://10.0.0.128:8082/domains 2025-08-11 15:29:59,237 - DEBUG - Requesting: http://10.0.0.128:8082/domain/c0da02fa-8c67-478d-8037-01d49286901b 2025-08-11 15:29:59,245 - DEBUG - Requesting: http://10.0.0.128:8082/project/cac440c3-e931-4a8e-a4e6-20cce73f2ec8 2025-08-11 15:29:59,317 - DEBUG - Requesting: http://10.0.0.128:8082/network-policy/4a12a837-959f-4154-9eb6-ebf55c7d058c 2025-08-11 15:29:59,326 - INFO - Verified policy ctest-policy1-08276283 in API Server, Result: True 2025-08-11 15:29:59,326 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 15:29:59,334 - INFO - Deleting VN ctest-vn4-62543689 2025-08-11 15:29:59,448 - DEBUG - Response for deleting network () 2025-08-11 15:29:59,448 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/c962b423-99b1-4cef-aaae-95e378a30d1d 2025-08-11 15:29:59,451 - DEBUG - Response Code: 404 2025-08-11 15:29:59,451 - DEBUG - Requesting: http://10.0.0.128:8082/domains 2025-08-11 15:29:59,456 - DEBUG - Requesting: http://10.0.0.128:8082/domain/c0da02fa-8c67-478d-8037-01d49286901b 2025-08-11 15:29:59,503 - DEBUG - Requesting: http://10.0.0.128:8082/project/cac440c3-e931-4a8e-a4e6-20cce73f2ec8 2025-08-11 15:29:59,567 - INFO - Validated that VN ctest-vn4-62543689 is not found in API Server 2025-08-11 15:29:59,575 - DEBUG - VN ctest-vn4-62543689 is not present in Agent 10.0.0.128 2025-08-11 15:29:59,575 - INFO - Validated that VN ctest-vn4-62543689 is not in any agent 2025-08-11 15:29:59,586 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-62543689 info 2025-08-11 15:29:59,606 - INFO - Deleted policy ctest-policy1-08276283 2025-08-11 15:29:59,764 - DEBUG - policy ctest-policy1-08276283 is not found in API Server 2025-08-11 15:30:00,020 - DEBUG - No XMPP flaps were noticed during the test 2025-08-11 15:30:00,020 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-11 15:30:00,020 - INFO - -------------------------------------------------------------------------------- 2025-08-11 15:30:00,312 - DEBUG - No XMPP flaps were noticed during the test 2025-08-11 15:30:00,312 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-11 15:30:00,312 - INFO - -------------------------------------------------------------------------------- 2025-08-11 15:30:00,954 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-92686959, ID : cac440c3-e931-4a8e-a4e6-20cce73f2ec8