2025-10-31 03:09:15,271 - INFO - Domain Default found not creating 2025-10-31 03:09:15,409 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-47961580 not found, creating it 2025-10-31 03:09:15,832 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-47961580, ID : f8d12db3-97ea-4a63-acd5-8e8c4fd1519f 2025-10-31 03:09:17,288 - INFO - ================================================================================ 2025-10-31 03:09:17,288 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 03:09:17,540 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with 2025-10-31 03:09:17,540 - INFO - Initial checks done. Running the testcase now 2025-10-31 03:09:17,540 - INFO - 2025-10-31 03:09:17,540 - INFO - ================================================================================ 2025-10-31 03:09:17,540 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 03:09:17,540 - 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-31 03:09:17,827 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with 2025-10-31 03:09:17,827 - INFO - Initial checks done. Running the testcase now 2025-10-31 03:09:17,827 - INFO - 2025-10-31 03:09:18,170 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47961580:ctest-vn4-21938038, 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-47961580:ctest-vn4-21938038, 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-47961580:ctest-vn4-21938038, 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-47961580:ctest-vn4-21938038, 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-31 03:09:18,658 - DEBUG - Response for create_network : {'network': {'id': 'ccba3b28-9bc6-4c3f-968b-f56d4f887eaf', 'name': 'ctest-vn4-21938038', 'tenant_id': 'f8d12db397ea4a63acd58e8c4fd1519f', 'project_id': 'f8d12db397ea4a63acd58e8c4fd1519f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47961580', 'ctest-vn4-21938038'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 03:09:18,871 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4ef83c9-489f-4079-a537-00bdb91419dc', 'name': '', 'tenant_id': 'f8d12db397ea4a63acd58e8c4fd1519f', 'network_id': 'ccba3b28-9bc6-4c3f-968b-f56d4f887eaf', 'ip_version': 4, 'cidr': '149.208.132.0/26', 'allocation_pools': [{'start': '149.208.132.2', 'end': '149.208.132.62'}], 'gateway_ip': '149.208.132.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.208.132.2', 'tags': [], 'project_id': 'f8d12db397ea4a63acd58e8c4fd1519f'}} 2025-10-31 03:09:19,072 - DEBUG - Response for create_subnet : {'subnet': {'id': '8e05b978-41fd-43dd-9591-13901d2ba570', 'name': '', 'tenant_id': 'f8d12db397ea4a63acd58e8c4fd1519f', 'network_id': 'ccba3b28-9bc6-4c3f-968b-f56d4f887eaf', 'ip_version': 6, 'cidr': '3317:456c:2243:96bc:5d94:c735::/96', 'allocation_pools': [{'start': '3317:456c:2243:96bc:5d94:c735:0:2', 'end': '3317:456c:2243:96bc:5d94:c735:ffff:fffe'}], 'gateway_ip': '3317:456c:2243:96bc:5d94:c735:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3317:456c:2243:96bc:5d94:c735:0:2', 'tags': [], 'project_id': 'f8d12db397ea4a63acd58e8c4fd1519f'}} 2025-10-31 03:09:19,091 - INFO - Created VN ctest-vn4-21938038 2025-10-31 03:09:19,143 - DEBUG - VN ctest-vn4-21938038 UUID is ccba3b28-9bc6-4c3f-968b-f56d4f887eaf 2025-10-31 03:09:19,331 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ccba3b28-9bc6-4c3f-968b-f56d4f887eaf', 'name': 'ctest-vn4-21938038', 'tenant_id': 'f8d12db397ea4a63acd58e8c4fd1519f', 'project_id': 'f8d12db397ea4a63acd58e8c4fd1519f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4ef83c9-489f-4079-a537-00bdb91419dc', '8e05b978-41fd-43dd-9591-13901d2ba570'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47961580', 'ctest-vn4-21938038'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47961580', 'ctest-policy1-26927196']], 'subnet_ipam': [{'subnet_cidr': '149.208.132.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3317:456c:2243:96bc:5d94:c735::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 03:09:19,491 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-10-31 03:09:19,782 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-10-31 03:09:19,812 - DEBUG - Requesting: http://10.0.0.129:8082/domain/193a3df8-a9bc-4927-8f7d-dc6f3387865e 2025-10-31 03:09:19,823 - DEBUG - Requesting: http://10.0.0.129:8082/project/f8d12db3-97ea-4a63-acd5-8e8c4fd1519f 2025-10-31 03:09:19,892 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/ccba3b28-9bc6-4c3f-968b-f56d4f887eaf 2025-10-31 03:09:19,903 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/ccba3b28-9bc6-4c3f-968b-f56d4f887eaf 2025-10-31 03:09:19,912 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0db62a4c-6460-46b0-942d-48f0565a553e 2025-10-31 03:09:19,919 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0db62a4c-6460-46b0-942d-48f0565a553e 2025-10-31 03:09:19,925 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/7b75d843-3cd0-419d-a4fb-024c6a1de77a 2025-10-31 03:09:19,930 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 03:09:19,930 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/ccba3b28-9bc6-4c3f-968b-f56d4f887eaf 2025-10-31 03:09:19,941 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0db62a4c-6460-46b0-942d-48f0565a553e 2025-10-31 03:09:19,951 - INFO - Verified VN network id 12 for VN ccba3b28-9bc6-4c3f-968b-f56d4f887eaf 2025-10-31 03:09:19,952 - INFO - Verifications in API Server for VN ctest-vn4-21938038 passed 2025-10-31 03:09:19,952 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/ccba3b28-9bc6-4c3f-968b-f56d4f887eaf 2025-10-31 03:09:19,959 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0db62a4c-6460-46b0-942d-48f0565a553e 2025-10-31 03:09:19,965 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0db62a4c-6460-46b0-942d-48f0565a553e 2025-10-31 03:09:19,972 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/7b75d843-3cd0-419d-a4fb-024c6a1de77a 2025-10-31 03:09:19,982 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47961580:ctest-vn4-21938038', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-47961580', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14752168575003675711', 'uuid-lslong': '10848033977286557359'}, 'enable': 'true', 'created': '2025-10-31T03:09:18', 'last-modified': '2025-10-31T03:09:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.673929'} 2025-10-31 03:09:19,987 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 03:09:19,987 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-21938038 passed 2025-10-31 03:09:19,988 - DEBUG - ====Verifying policy data for ctest-vn4-21938038 in API_Server ====== 2025-10-31 03:09:19,988 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-10-31 03:09:19,993 - DEBUG - Requesting: http://10.0.0.129:8082/domain/193a3df8-a9bc-4927-8f7d-dc6f3387865e 2025-10-31 03:09:20,005 - DEBUG - Requesting: http://10.0.0.129:8082/project/f8d12db3-97ea-4a63-acd5-8e8c4fd1519f 2025-10-31 03:09:20,078 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/ccba3b28-9bc6-4c3f-968b-f56d4f887eaf 2025-10-31 03:09:20,088 - DEBUG - ==>Verifying data for policy with id: 6040f71f-40f4-47eb-b080-33e713a88f79, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47961580', 'ctest-policy1-26927196'] 2025-10-31 03:09:20,088 - INFO - VN ctest-vn4-21938038 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 03:09:20,088 - DEBUG - Verifying the vn in opserver 2025-10-31 03:09:20,088 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47961580:ctest-vn4-21938038 virtual network link through opserver 10.0.0.129 2025-10-31 03:09:20,088 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-10-31 03:09:20,379 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-10-31 03:09:20,436 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47961580:ctest-vn4-21938038', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47961580:ctest-vn4-21938038?flat'} 2025-10-31 03:09:20,436 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47961580:ctest-vn4-21938038 is found in opserver 2025-10-31 03:09:20,444 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 03:09:20,448 - DEBUG - VRF ids for VN ctest-vn4-21938038: {} 2025-10-31 03:09:20,448 - DEBUG - ====Verifying data for ctest-policy1-26927196 in API_Server ====== 2025-10-31 03:09:20,448 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-10-31 03:09:20,453 - DEBUG - Requesting: http://10.0.0.129:8082/domain/193a3df8-a9bc-4927-8f7d-dc6f3387865e 2025-10-31 03:09:20,463 - DEBUG - Requesting: http://10.0.0.129:8082/project/f8d12db3-97ea-4a63-acd5-8e8c4fd1519f 2025-10-31 03:09:20,540 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/6040f71f-40f4-47eb-b080-33e713a88f79 2025-10-31 03:09:20,549 - INFO - Verified policy ctest-policy1-26927196 in API Server, Result: True 2025-10-31 03:09:20,549 - INFO - Done with setup and verification, moving onto test .. 2025-10-31 03:09:20,557 - INFO - Deleting VN ctest-vn4-21938038 2025-10-31 03:09:20,697 - DEBUG - Response for deleting network () 2025-10-31 03:09:20,697 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/0db62a4c-6460-46b0-942d-48f0565a553e 2025-10-31 03:09:20,701 - DEBUG - Response Code: 404 2025-10-31 03:09:20,701 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-10-31 03:09:20,706 - DEBUG - Requesting: http://10.0.0.129:8082/domain/193a3df8-a9bc-4927-8f7d-dc6f3387865e 2025-10-31 03:09:20,755 - DEBUG - Requesting: http://10.0.0.129:8082/project/f8d12db3-97ea-4a63-acd5-8e8c4fd1519f 2025-10-31 03:09:20,825 - INFO - Validated that VN ctest-vn4-21938038 is not found in API Server 2025-10-31 03:09:20,834 - DEBUG - VN ctest-vn4-21938038 is not present in Agent 10.0.0.129 2025-10-31 03:09:20,834 - INFO - Validated that VN ctest-vn4-21938038 is not in any agent 2025-10-31 03:09:20,847 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-21938038 info 2025-10-31 03:09:20,867 - INFO - Deleted policy ctest-policy1-26927196 2025-10-31 03:09:21,031 - DEBUG - policy ctest-policy1-26927196 is not found in API Server 2025-10-31 03:09:21,283 - DEBUG - No XMPP flaps were noticed during the test 2025-10-31 03:09:21,283 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-31 03:09:21,283 - INFO - -------------------------------------------------------------------------------- 2025-10-31 03:09:21,572 - DEBUG - No XMPP flaps were noticed during the test 2025-10-31 03:09:21,572 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-31 03:09:21,573 - INFO - -------------------------------------------------------------------------------- 2025-10-31 03:09:22,244 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-47961580, ID : f8d12db3-97ea-4a63-acd5-8e8c4fd1519f