2025-08-15 08:15:50,147 - INFO - Domain Default found not creating 2025-08-15 08:15:50,286 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-09694246 not found, creating it 2025-08-15 08:15:50,739 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-09694246, ID : 40829886-205a-4d27-b0ec-ed02d31fd123 2025-08-15 08:15:52,254 - INFO - ================================================================================ 2025-08-15 08:15:52,254 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-15 08:15:52,510 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2025-08-15 08:15:52,510 - INFO - Initial checks done. Running the testcase now 2025-08-15 08:15:52,510 - INFO - 2025-08-15 08:15:52,510 - INFO - ================================================================================ 2025-08-15 08:15:52,510 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-15 08:15:52,510 - 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-15 08:15:52,806 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2025-08-15 08:15:52,806 - INFO - Initial checks done. Running the testcase now 2025-08-15 08:15:52,806 - INFO - 2025-08-15 08:15:53,193 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09694246:ctest-vn4-23196798, 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-09694246:ctest-vn4-23196798, 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-09694246:ctest-vn4-23196798, 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-09694246:ctest-vn4-23196798, 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-15 08:15:53,702 - DEBUG - Response for create_network : {'network': {'id': 'dcb77524-7197-4308-bbc6-86c386a4fcda', 'name': 'ctest-vn4-23196798', 'tenant_id': '40829886205a4d27b0eced02d31fd123', 'project_id': '40829886205a4d27b0eced02d31fd123', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09694246', 'ctest-vn4-23196798'], 'port_security_enabled': True, 'description': ''}} 2025-08-15 08:15:53,902 - DEBUG - Response for create_subnet : {'subnet': {'id': '1a580c28-eadf-4319-808c-d4aa32bf14a4', 'name': '', 'tenant_id': '40829886205a4d27b0eced02d31fd123', 'network_id': 'dcb77524-7197-4308-bbc6-86c386a4fcda', 'ip_version': 4, 'cidr': '206.222.158.0/26', 'allocation_pools': [{'start': '206.222.158.2', 'end': '206.222.158.62'}], 'gateway_ip': '206.222.158.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.222.158.2', 'tags': [], 'project_id': '40829886205a4d27b0eced02d31fd123'}} 2025-08-15 08:15:54,089 - DEBUG - Response for create_subnet : {'subnet': {'id': '3034114a-96d3-489f-b027-2dd47bbd3cc9', 'name': '', 'tenant_id': '40829886205a4d27b0eced02d31fd123', 'network_id': 'dcb77524-7197-4308-bbc6-86c386a4fcda', 'ip_version': 6, 'cidr': '2241:2dd:a37d:cc21:2853:e37b::/96', 'allocation_pools': [{'start': '2241:2dd:a37d:cc21:2853:e37b:0:2', 'end': '2241:2dd:a37d:cc21:2853:e37b:ffff:fffe'}], 'gateway_ip': '2241:2dd:a37d:cc21:2853:e37b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2241:2dd:a37d:cc21:2853:e37b:0:2', 'tags': [], 'project_id': '40829886205a4d27b0eced02d31fd123'}} 2025-08-15 08:15:54,114 - INFO - Created VN ctest-vn4-23196798 2025-08-15 08:15:54,172 - DEBUG - VN ctest-vn4-23196798 UUID is dcb77524-7197-4308-bbc6-86c386a4fcda 2025-08-15 08:15:54,382 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dcb77524-7197-4308-bbc6-86c386a4fcda', 'name': 'ctest-vn4-23196798', 'tenant_id': '40829886205a4d27b0eced02d31fd123', 'project_id': '40829886205a4d27b0eced02d31fd123', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1a580c28-eadf-4319-808c-d4aa32bf14a4', '3034114a-96d3-489f-b027-2dd47bbd3cc9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09694246', 'ctest-vn4-23196798'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09694246', 'ctest-policy1-42383462']], 'subnet_ipam': [{'subnet_cidr': '206.222.158.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2241:2dd:a37d:cc21:2853:e37b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-15 08:15:54,548 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-15 08:15:54,877 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-15 08:15:54,904 - DEBUG - Requesting: http://10.0.0.19:8082/domain/cc066c09-3141-41f8-a8ed-11d50408a64d 2025-08-15 08:15:54,916 - DEBUG - Requesting: http://10.0.0.19:8082/project/40829886-205a-4d27-b0ec-ed02d31fd123 2025-08-15 08:15:54,995 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dcb77524-7197-4308-bbc6-86c386a4fcda 2025-08-15 08:15:55,007 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dcb77524-7197-4308-bbc6-86c386a4fcda 2025-08-15 08:15:55,017 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/0ff45afe-97a9-4c5e-85fb-28417dcf7c2e 2025-08-15 08:15:55,024 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/0ff45afe-97a9-4c5e-85fb-28417dcf7c2e 2025-08-15 08:15:55,031 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/6ae7798f-f480-496e-a832-2c918ec2be65 2025-08-15 08:15:55,037 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-15 08:15:55,037 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dcb77524-7197-4308-bbc6-86c386a4fcda 2025-08-15 08:15:55,047 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/0ff45afe-97a9-4c5e-85fb-28417dcf7c2e 2025-08-15 08:15:55,060 - INFO - Verified VN network id 12 for VN dcb77524-7197-4308-bbc6-86c386a4fcda 2025-08-15 08:15:55,061 - INFO - Verifications in API Server for VN ctest-vn4-23196798 passed 2025-08-15 08:15:55,061 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dcb77524-7197-4308-bbc6-86c386a4fcda 2025-08-15 08:15:55,072 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/0ff45afe-97a9-4c5e-85fb-28417dcf7c2e 2025-08-15 08:15:55,078 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/0ff45afe-97a9-4c5e-85fb-28417dcf7c2e 2025-08-15 08:15:55,084 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/6ae7798f-f480-496e-a832-2c918ec2be65 2025-08-15 08:15:55,097 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09694246:ctest-vn4-23196798', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-09694246', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15904309408467206920', 'uuid-lslong': '13530650304816938202'}, 'enable': 'true', 'created': '2025-08-15T08:15:53', 'last-modified': '2025-08-15T08:15:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.746276'} 2025-08-15 08:15:55,104 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-15 08:15:55,104 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-23196798 passed 2025-08-15 08:15:55,104 - DEBUG - ====Verifying policy data for ctest-vn4-23196798 in API_Server ====== 2025-08-15 08:15:55,104 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-15 08:15:55,110 - DEBUG - Requesting: http://10.0.0.19:8082/domain/cc066c09-3141-41f8-a8ed-11d50408a64d 2025-08-15 08:15:55,121 - DEBUG - Requesting: http://10.0.0.19:8082/project/40829886-205a-4d27-b0ec-ed02d31fd123 2025-08-15 08:15:55,194 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dcb77524-7197-4308-bbc6-86c386a4fcda 2025-08-15 08:15:55,205 - DEBUG - ==>Verifying data for policy with id: 29b74ba0-8fd3-425e-ae7c-334b4c27c5ad, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09694246', 'ctest-policy1-42383462'] 2025-08-15 08:15:55,205 - INFO - VN ctest-vn4-23196798 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-15 08:15:55,205 - DEBUG - Verifying the vn in opserver 2025-08-15 08:15:55,205 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09694246:ctest-vn4-23196798 virtual network link through opserver 10.0.0.19 2025-08-15 08:15:55,205 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-15 08:15:55,534 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-15 08:15:55,588 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09694246:ctest-vn4-23196798', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09694246:ctest-vn4-23196798?flat'} 2025-08-15 08:15:55,588 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09694246:ctest-vn4-23196798 is found in opserver 2025-08-15 08:15:55,599 - DEBUG - Do not have enough data to verify VN in agent 2025-08-15 08:15:55,604 - DEBUG - VRF ids for VN ctest-vn4-23196798: {} 2025-08-15 08:15:55,605 - DEBUG - ====Verifying data for ctest-policy1-42383462 in API_Server ====== 2025-08-15 08:15:55,605 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-15 08:15:55,610 - DEBUG - Requesting: http://10.0.0.19:8082/domain/cc066c09-3141-41f8-a8ed-11d50408a64d 2025-08-15 08:15:55,622 - DEBUG - Requesting: http://10.0.0.19:8082/project/40829886-205a-4d27-b0ec-ed02d31fd123 2025-08-15 08:15:55,691 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/29b74ba0-8fd3-425e-ae7c-334b4c27c5ad 2025-08-15 08:15:55,703 - INFO - Verified policy ctest-policy1-42383462 in API Server, Result: True 2025-08-15 08:15:55,703 - INFO - Done with setup and verification, moving onto test .. 2025-08-15 08:15:55,711 - INFO - Deleting VN ctest-vn4-23196798 2025-08-15 08:15:55,828 - DEBUG - Response for deleting network () 2025-08-15 08:15:55,828 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/0ff45afe-97a9-4c5e-85fb-28417dcf7c2e 2025-08-15 08:15:55,833 - DEBUG - Response Code: 404 2025-08-15 08:15:55,833 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-15 08:15:55,838 - DEBUG - Requesting: http://10.0.0.19:8082/domain/cc066c09-3141-41f8-a8ed-11d50408a64d 2025-08-15 08:15:55,893 - DEBUG - Requesting: http://10.0.0.19:8082/project/40829886-205a-4d27-b0ec-ed02d31fd123 2025-08-15 08:15:55,966 - INFO - Validated that VN ctest-vn4-23196798 is not found in API Server 2025-08-15 08:15:55,977 - DEBUG - VN ctest-vn4-23196798 is not present in Agent 10.0.0.19 2025-08-15 08:15:55,977 - INFO - Validated that VN ctest-vn4-23196798 is not in any agent 2025-08-15 08:15:55,993 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-23196798 info 2025-08-15 08:15:56,018 - INFO - Deleted policy ctest-policy1-42383462 2025-08-15 08:15:56,192 - DEBUG - policy ctest-policy1-42383462 is not found in API Server 2025-08-15 08:15:56,446 - DEBUG - No XMPP flaps were noticed during the test