2025-11-17 17:27:55,289 - INFO - Domain Default found not creating 2025-11-17 17:27:55,506 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-53752533 not found, creating it 2025-11-17 17:27:56,400 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-53752533, ID : b8ffb4f9-540c-4de0-873e-9b46c0b95c6b 2025-11-17 17:27:58,631 - INFO - ================================================================================ 2025-11-17 17:27:58,632 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-17 17:27:58,949 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-11-17 17:27:58,949 - INFO - Initial checks done. Running the testcase now 2025-11-17 17:27:58,949 - INFO - 2025-11-17 17:27:58,949 - INFO - ================================================================================ 2025-11-17 17:27:58,949 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-17 17:27:58,950 - 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-11-17 17:27:59,301 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-11-17 17:27:59,301 - INFO - Initial checks done. Running the testcase now 2025-11-17 17:27:59,301 - INFO - 2025-11-17 17:27:59,745 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53752533:ctest-vn4-21388163, 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-53752533:ctest-vn4-21388163, 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-53752533:ctest-vn4-21388163, 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-53752533:ctest-vn4-21388163, 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-11-17 17:28:00,430 - DEBUG - Response for create_network : {'network': {'id': '69225fc9-c88e-4b11-88e6-5ffe941d76ff', 'name': 'ctest-vn4-21388163', 'tenant_id': 'b8ffb4f9540c4de0873e9b46c0b95c6b', 'project_id': 'b8ffb4f9540c4de0873e9b46c0b95c6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53752533', 'ctest-vn4-21388163'], 'port_security_enabled': True, 'description': ''}} 2025-11-17 17:28:00,589 - DEBUG - Response for create_subnet : {'subnet': {'id': '01a451de-1333-4ba7-a490-a1159a82b605', 'name': '', 'tenant_id': 'b8ffb4f9540c4de0873e9b46c0b95c6b', 'network_id': '69225fc9-c88e-4b11-88e6-5ffe941d76ff', 'ip_version': 4, 'cidr': '41.107.122.64/26', 'allocation_pools': [{'start': '41.107.122.66', 'end': '41.107.122.126'}], 'gateway_ip': '41.107.122.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.107.122.66', 'tags': [], 'project_id': 'b8ffb4f9540c4de0873e9b46c0b95c6b'}} 2025-11-17 17:28:00,827 - DEBUG - Response for create_subnet : {'subnet': {'id': '53f8eb6d-748d-476f-8fb0-b0b1df8cc47b', 'name': '', 'tenant_id': 'b8ffb4f9540c4de0873e9b46c0b95c6b', 'network_id': '69225fc9-c88e-4b11-88e6-5ffe941d76ff', 'ip_version': 6, 'cidr': '3815:7d30:9f28:2b3e:eb95:ae26::/96', 'allocation_pools': [{'start': '3815:7d30:9f28:2b3e:eb95:ae26:0:2', 'end': '3815:7d30:9f28:2b3e:eb95:ae26:ffff:fffe'}], 'gateway_ip': '3815:7d30:9f28:2b3e:eb95:ae26:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3815:7d30:9f28:2b3e:eb95:ae26:0:2', 'tags': [], 'project_id': 'b8ffb4f9540c4de0873e9b46c0b95c6b'}} 2025-11-17 17:28:00,855 - INFO - Created VN ctest-vn4-21388163 2025-11-17 17:28:00,916 - DEBUG - VN ctest-vn4-21388163 UUID is 69225fc9-c88e-4b11-88e6-5ffe941d76ff 2025-11-17 17:28:01,226 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '69225fc9-c88e-4b11-88e6-5ffe941d76ff', 'name': 'ctest-vn4-21388163', 'tenant_id': 'b8ffb4f9540c4de0873e9b46c0b95c6b', 'project_id': 'b8ffb4f9540c4de0873e9b46c0b95c6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['01a451de-1333-4ba7-a490-a1159a82b605', '53f8eb6d-748d-476f-8fb0-b0b1df8cc47b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53752533', 'ctest-vn4-21388163'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53752533', 'ctest-policy1-89821564']], 'subnet_ipam': [{'subnet_cidr': '41.107.122.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3815:7d30:9f28:2b3e:eb95:ae26::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-17 17:28:01,411 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-17 17:28:01,731 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-17 17:28:01,774 - DEBUG - Requesting: http://10.0.0.33:8082/domain/dfdb72f9-dbcf-4451-8659-a6d3fc88ce2f 2025-11-17 17:28:01,795 - DEBUG - Requesting: http://10.0.0.33:8082/project/b8ffb4f9-540c-4de0-873e-9b46c0b95c6b 2025-11-17 17:28:01,891 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/69225fc9-c88e-4b11-88e6-5ffe941d76ff 2025-11-17 17:28:01,909 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/69225fc9-c88e-4b11-88e6-5ffe941d76ff 2025-11-17 17:28:01,928 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f8926303-0d7f-4cbf-bef8-fe4c263ebead 2025-11-17 17:28:01,939 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f8926303-0d7f-4cbf-bef8-fe4c263ebead 2025-11-17 17:28:01,949 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/bb790195-e03b-46f5-b708-81af477559e6 2025-11-17 17:28:01,959 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-17 17:28:01,959 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/69225fc9-c88e-4b11-88e6-5ffe941d76ff 2025-11-17 17:28:01,979 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f8926303-0d7f-4cbf-bef8-fe4c263ebead 2025-11-17 17:28:02,006 - INFO - Verified VN network id 11 for VN 69225fc9-c88e-4b11-88e6-5ffe941d76ff 2025-11-17 17:28:02,006 - INFO - Verifications in API Server for VN ctest-vn4-21388163 passed 2025-11-17 17:28:02,006 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/69225fc9-c88e-4b11-88e6-5ffe941d76ff 2025-11-17 17:28:02,025 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f8926303-0d7f-4cbf-bef8-fe4c263ebead 2025-11-17 17:28:02,037 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f8926303-0d7f-4cbf-bef8-fe4c263ebead 2025-11-17 17:28:02,048 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/bb790195-e03b-46f5-b708-81af477559e6 2025-11-17 17:28:02,066 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53752533:ctest-vn4-21388163', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-53752533', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7575722843448429329', 'uuid-lslong': '9864677580812941055'}, 'enable': 'true', 'created': '2025-11-17T17:28:00', 'last-modified': '2025-11-17T17:28:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.871869'} 2025-11-17 17:28:02,076 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-17 17:28:02,076 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-21388163 passed 2025-11-17 17:28:02,076 - DEBUG - ====Verifying policy data for ctest-vn4-21388163 in API_Server ====== 2025-11-17 17:28:02,076 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-17 17:28:02,085 - DEBUG - Requesting: http://10.0.0.33:8082/domain/dfdb72f9-dbcf-4451-8659-a6d3fc88ce2f 2025-11-17 17:28:02,101 - DEBUG - Requesting: http://10.0.0.33:8082/project/b8ffb4f9-540c-4de0-873e-9b46c0b95c6b 2025-11-17 17:28:02,207 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/69225fc9-c88e-4b11-88e6-5ffe941d76ff 2025-11-17 17:28:02,225 - DEBUG - ==>Verifying data for policy with id: 15ec4d4f-ef4a-43d8-a4b9-dd17d1444895, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53752533', 'ctest-policy1-89821564'] 2025-11-17 17:28:02,225 - INFO - VN ctest-vn4-21388163 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-17 17:28:02,225 - DEBUG - Verifying the vn in opserver 2025-11-17 17:28:02,226 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53752533:ctest-vn4-21388163 virtual network link through opserver 10.0.0.33 2025-11-17 17:28:02,226 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-17 17:28:02,546 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-17 17:28:02,632 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53752533:ctest-vn4-21388163', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53752533:ctest-vn4-21388163?flat'} 2025-11-17 17:28:02,632 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53752533:ctest-vn4-21388163 is found in opserver 2025-11-17 17:28:02,647 - DEBUG - Do not have enough data to verify VN in agent 2025-11-17 17:28:02,654 - DEBUG - VRF ids for VN ctest-vn4-21388163: {} 2025-11-17 17:28:02,654 - DEBUG - ====Verifying data for ctest-policy1-89821564 in API_Server ====== 2025-11-17 17:28:02,654 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-17 17:28:02,662 - DEBUG - Requesting: http://10.0.0.33:8082/domain/dfdb72f9-dbcf-4451-8659-a6d3fc88ce2f 2025-11-17 17:28:02,673 - DEBUG - Requesting: http://10.0.0.33:8082/project/b8ffb4f9-540c-4de0-873e-9b46c0b95c6b 2025-11-17 17:28:02,771 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/15ec4d4f-ef4a-43d8-a4b9-dd17d1444895 2025-11-17 17:28:02,788 - INFO - Verified policy ctest-policy1-89821564 in API Server, Result: True 2025-11-17 17:28:02,788 - INFO - Done with setup and verification, moving onto test .. 2025-11-17 17:28:02,801 - INFO - Deleting VN ctest-vn4-21388163 2025-11-17 17:28:02,963 - DEBUG - Response for deleting network () 2025-11-17 17:28:02,963 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f8926303-0d7f-4cbf-bef8-fe4c263ebead 2025-11-17 17:28:02,969 - DEBUG - Response Code: 404 2025-11-17 17:28:02,969 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-17 17:28:02,976 - DEBUG - Requesting: http://10.0.0.33:8082/domain/dfdb72f9-dbcf-4451-8659-a6d3fc88ce2f 2025-11-17 17:28:03,028 - DEBUG - Requesting: http://10.0.0.33:8082/project/b8ffb4f9-540c-4de0-873e-9b46c0b95c6b 2025-11-17 17:28:03,115 - INFO - Validated that VN ctest-vn4-21388163 is not found in API Server 2025-11-17 17:28:03,128 - DEBUG - VN ctest-vn4-21388163 is not present in Agent 10.0.0.33 2025-11-17 17:28:03,128 - INFO - Validated that VN ctest-vn4-21388163 is not in any agent 2025-11-17 17:28:03,147 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-21388163 info 2025-11-17 17:28:03,182 - INFO - Deleted policy ctest-policy1-89821564 2025-11-17 17:28:03,370 - DEBUG - policy ctest-policy1-89821564 is not found in API Server 2025-11-17 17:28:03,679 - DEBUG - No XMPP flaps were noticed during the test