2025-08-18 02:10:16,998 - INFO - Domain Default found not creating 2025-08-18 02:10:17,129 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71845879 not found, creating it 2025-08-18 02:10:17,565 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71845879, ID : 18baa1dc-90ec-4c29-aa1f-827e110a0d5b 2025-08-18 02:10:18,893 - INFO - ================================================================================ 2025-08-18 02:10:18,893 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-18 02:10:19,147 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2025-08-18 02:10:19,147 - INFO - Initial checks done. Running the testcase now 2025-08-18 02:10:19,147 - INFO - 2025-08-18 02:10:19,147 - INFO - ================================================================================ 2025-08-18 02:10:19,147 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-18 02:10:19,147 - 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-18 02:10:19,437 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2025-08-18 02:10:19,437 - INFO - Initial checks done. Running the testcase now 2025-08-18 02:10:19,437 - INFO - 2025-08-18 02:10:19,774 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71845879:ctest-vn4-99922947, 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-71845879:ctest-vn4-99922947, 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-71845879:ctest-vn4-99922947, 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-71845879:ctest-vn4-99922947, 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-18 02:10:20,281 - DEBUG - Response for create_network : {'network': {'id': 'afa774e1-4c37-4505-a787-e4b5a0ade67e', 'name': 'ctest-vn4-99922947', 'tenant_id': '18baa1dc90ec4c29aa1f827e110a0d5b', 'project_id': '18baa1dc90ec4c29aa1f827e110a0d5b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71845879', 'ctest-vn4-99922947'], 'port_security_enabled': True, 'description': ''}} 2025-08-18 02:10:20,454 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f928436-ee6b-445e-969b-b3b17b465451', 'name': '', 'tenant_id': '18baa1dc90ec4c29aa1f827e110a0d5b', 'network_id': 'afa774e1-4c37-4505-a787-e4b5a0ade67e', 'ip_version': 4, 'cidr': '156.243.185.192/26', 'allocation_pools': [{'start': '156.243.185.194', 'end': '156.243.185.254'}], 'gateway_ip': '156.243.185.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.243.185.194', 'tags': [], 'project_id': '18baa1dc90ec4c29aa1f827e110a0d5b'}} 2025-08-18 02:10:20,659 - DEBUG - Response for create_subnet : {'subnet': {'id': '0cf0a95f-9710-4d35-b265-f6509fa90ac5', 'name': '', 'tenant_id': '18baa1dc90ec4c29aa1f827e110a0d5b', 'network_id': 'afa774e1-4c37-4505-a787-e4b5a0ade67e', 'ip_version': 6, 'cidr': '2dd6:79fe:1322:22d1:853f:31d1::/96', 'allocation_pools': [{'start': '2dd6:79fe:1322:22d1:853f:31d1:0:2', 'end': '2dd6:79fe:1322:22d1:853f:31d1:ffff:fffe'}], 'gateway_ip': '2dd6:79fe:1322:22d1:853f:31d1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2dd6:79fe:1322:22d1:853f:31d1:0:2', 'tags': [], 'project_id': '18baa1dc90ec4c29aa1f827e110a0d5b'}} 2025-08-18 02:10:20,679 - INFO - Created VN ctest-vn4-99922947 2025-08-18 02:10:20,733 - DEBUG - VN ctest-vn4-99922947 UUID is afa774e1-4c37-4505-a787-e4b5a0ade67e 2025-08-18 02:10:20,941 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'afa774e1-4c37-4505-a787-e4b5a0ade67e', 'name': 'ctest-vn4-99922947', 'tenant_id': '18baa1dc90ec4c29aa1f827e110a0d5b', 'project_id': '18baa1dc90ec4c29aa1f827e110a0d5b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8f928436-ee6b-445e-969b-b3b17b465451', '0cf0a95f-9710-4d35-b265-f6509fa90ac5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71845879', 'ctest-vn4-99922947'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71845879', 'ctest-policy1-64770682']], 'subnet_ipam': [{'subnet_cidr': '156.243.185.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2dd6:79fe:1322:22d1:853f:31d1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-18 02:10:21,117 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-18 02:10:21,403 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-18 02:10:21,430 - DEBUG - Requesting: http://10.0.0.249:8082/domain/147fc761-229f-4d85-bbce-29d43b08f1a2 2025-08-18 02:10:21,442 - DEBUG - Requesting: http://10.0.0.249:8082/project/18baa1dc-90ec-4c29-aa1f-827e110a0d5b 2025-08-18 02:10:21,516 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/afa774e1-4c37-4505-a787-e4b5a0ade67e 2025-08-18 02:10:21,529 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/afa774e1-4c37-4505-a787-e4b5a0ade67e 2025-08-18 02:10:21,540 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/387947b1-d6c0-4037-b7a1-7728ebca5b1c 2025-08-18 02:10:21,547 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/387947b1-d6c0-4037-b7a1-7728ebca5b1c 2025-08-18 02:10:21,553 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0852a4fd-1720-474c-bb02-ba4a090816f9 2025-08-18 02:10:21,560 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 02:10:21,560 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/afa774e1-4c37-4505-a787-e4b5a0ade67e 2025-08-18 02:10:21,569 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/387947b1-d6c0-4037-b7a1-7728ebca5b1c 2025-08-18 02:10:21,583 - INFO - Verified VN network id 12 for VN afa774e1-4c37-4505-a787-e4b5a0ade67e 2025-08-18 02:10:21,583 - INFO - Verifications in API Server for VN ctest-vn4-99922947 passed 2025-08-18 02:10:21,583 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/afa774e1-4c37-4505-a787-e4b5a0ade67e 2025-08-18 02:10:21,593 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/387947b1-d6c0-4037-b7a1-7728ebca5b1c 2025-08-18 02:10:21,600 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/387947b1-d6c0-4037-b7a1-7728ebca5b1c 2025-08-18 02:10:21,606 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0852a4fd-1720-474c-bb02-ba4a090816f9 2025-08-18 02:10:21,617 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71845879:ctest-vn4-99922947', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71845879', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12657213788743222533', 'uuid-lslong': '12071868794925868670'}, 'enable': 'true', 'created': '2025-08-18T02:10:20', 'last-modified': '2025-08-18T02:10:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711079'} 2025-08-18 02:10:21,623 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 02:10:21,623 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-99922947 passed 2025-08-18 02:10:21,624 - DEBUG - ====Verifying policy data for ctest-vn4-99922947 in API_Server ====== 2025-08-18 02:10:21,624 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-18 02:10:21,629 - DEBUG - Requesting: http://10.0.0.249:8082/domain/147fc761-229f-4d85-bbce-29d43b08f1a2 2025-08-18 02:10:21,640 - DEBUG - Requesting: http://10.0.0.249:8082/project/18baa1dc-90ec-4c29-aa1f-827e110a0d5b 2025-08-18 02:10:21,710 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/afa774e1-4c37-4505-a787-e4b5a0ade67e 2025-08-18 02:10:21,720 - DEBUG - ==>Verifying data for policy with id: 6b575b84-7e71-4e1a-9f99-74ddd95b0fb9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71845879', 'ctest-policy1-64770682'] 2025-08-18 02:10:21,720 - INFO - VN ctest-vn4-99922947 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-18 02:10:21,720 - DEBUG - Verifying the vn in opserver 2025-08-18 02:10:21,720 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71845879:ctest-vn4-99922947 virtual network link through opserver 10.0.0.249 2025-08-18 02:10:21,721 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-18 02:10:22,009 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-18 02:10:22,071 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71845879:ctest-vn4-99922947', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71845879:ctest-vn4-99922947?flat'} 2025-08-18 02:10:22,071 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71845879:ctest-vn4-99922947 is found in opserver 2025-08-18 02:10:22,082 - DEBUG - Do not have enough data to verify VN in agent 2025-08-18 02:10:22,087 - DEBUG - VRF ids for VN ctest-vn4-99922947: {} 2025-08-18 02:10:22,087 - DEBUG - ====Verifying data for ctest-policy1-64770682 in API_Server ====== 2025-08-18 02:10:22,087 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-18 02:10:22,093 - DEBUG - Requesting: http://10.0.0.249:8082/domain/147fc761-229f-4d85-bbce-29d43b08f1a2 2025-08-18 02:10:22,104 - DEBUG - Requesting: http://10.0.0.249:8082/project/18baa1dc-90ec-4c29-aa1f-827e110a0d5b 2025-08-18 02:10:22,178 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/6b575b84-7e71-4e1a-9f99-74ddd95b0fb9 2025-08-18 02:10:22,190 - INFO - Verified policy ctest-policy1-64770682 in API Server, Result: True 2025-08-18 02:10:22,190 - INFO - Done with setup and verification, moving onto test .. 2025-08-18 02:10:22,198 - INFO - Deleting VN ctest-vn4-99922947 2025-08-18 02:10:22,319 - DEBUG - Response for deleting network () 2025-08-18 02:10:22,319 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/387947b1-d6c0-4037-b7a1-7728ebca5b1c 2025-08-18 02:10:22,324 - DEBUG - Response Code: 404 2025-08-18 02:10:22,324 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-18 02:10:22,328 - DEBUG - Requesting: http://10.0.0.249:8082/domain/147fc761-229f-4d85-bbce-29d43b08f1a2 2025-08-18 02:10:22,381 - DEBUG - Requesting: http://10.0.0.249:8082/project/18baa1dc-90ec-4c29-aa1f-827e110a0d5b 2025-08-18 02:10:22,447 - INFO - Validated that VN ctest-vn4-99922947 is not found in API Server 2025-08-18 02:10:22,457 - DEBUG - VN ctest-vn4-99922947 is not present in Agent 10.0.0.249 2025-08-18 02:10:22,457 - INFO - Validated that VN ctest-vn4-99922947 is not in any agent 2025-08-18 02:10:22,472 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-99922947 info 2025-08-18 02:10:22,496 - INFO - Deleted policy ctest-policy1-64770682 2025-08-18 02:10:22,661 - DEBUG - policy ctest-policy1-64770682 is not found in API Server 2025-08-18 02:10:22,914 - DEBUG - No XMPP flaps were noticed during the test