2025-11-17 22:51:11,107 - INFO - Domain Default found not creating 2025-11-17 22:51:11,230 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-77398269 not found, creating it 2025-11-17 22:51:11,680 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-77398269, ID : ff54059f-d736-49dd-8954-7ffc80a0c574 2025-11-17 22:51:13,068 - INFO - ================================================================================ 2025-11-17 22:51:13,069 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-17 22:51:13,323 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-11-17 22:51:13,323 - INFO - Initial checks done. Running the testcase now 2025-11-17 22:51:13,323 - INFO - 2025-11-17 22:51:13,323 - INFO - ================================================================================ 2025-11-17 22:51:13,323 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-17 22:51:13,323 - 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 22:51:13,607 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-11-17 22:51:13,607 - INFO - Initial checks done. Running the testcase now 2025-11-17 22:51:13,607 - INFO - 2025-11-17 22:51:13,950 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77398269:ctest-vn4-38741311, 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-77398269:ctest-vn4-38741311, 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-77398269:ctest-vn4-38741311, 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-77398269:ctest-vn4-38741311, 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 22:51:14,431 - DEBUG - Response for create_network : {'network': {'id': '7802619e-29a4-4563-9e5b-4174751d6318', 'name': 'ctest-vn4-38741311', 'tenant_id': 'ff54059fd73649dd89547ffc80a0c574', 'project_id': 'ff54059fd73649dd89547ffc80a0c574', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77398269', 'ctest-vn4-38741311'], 'port_security_enabled': True, 'description': ''}} 2025-11-17 22:51:14,589 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d599135-53b0-47a4-8c8a-0bfd844b5e64', 'name': '', 'tenant_id': 'ff54059fd73649dd89547ffc80a0c574', 'network_id': '7802619e-29a4-4563-9e5b-4174751d6318', 'ip_version': 4, 'cidr': '18.61.57.0/26', 'allocation_pools': [{'start': '18.61.57.2', 'end': '18.61.57.62'}], 'gateway_ip': '18.61.57.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.61.57.2', 'tags': [], 'project_id': 'ff54059fd73649dd89547ffc80a0c574'}} 2025-11-17 22:51:14,756 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5db0596-b73c-49c9-8d4e-b427db1fb5c0', 'name': '', 'tenant_id': 'ff54059fd73649dd89547ffc80a0c574', 'network_id': '7802619e-29a4-4563-9e5b-4174751d6318', 'ip_version': 6, 'cidr': '2b18:6ac0:d934:514d:4391:412a::/96', 'allocation_pools': [{'start': '2b18:6ac0:d934:514d:4391:412a:0:2', 'end': '2b18:6ac0:d934:514d:4391:412a:ffff:fffe'}], 'gateway_ip': '2b18:6ac0:d934:514d:4391:412a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b18:6ac0:d934:514d:4391:412a:0:2', 'tags': [], 'project_id': 'ff54059fd73649dd89547ffc80a0c574'}} 2025-11-17 22:51:14,772 - INFO - Created VN ctest-vn4-38741311 2025-11-17 22:51:14,823 - DEBUG - VN ctest-vn4-38741311 UUID is 7802619e-29a4-4563-9e5b-4174751d6318 2025-11-17 22:51:14,994 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7802619e-29a4-4563-9e5b-4174751d6318', 'name': 'ctest-vn4-38741311', 'tenant_id': 'ff54059fd73649dd89547ffc80a0c574', 'project_id': 'ff54059fd73649dd89547ffc80a0c574', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5d599135-53b0-47a4-8c8a-0bfd844b5e64', 'd5db0596-b73c-49c9-8d4e-b427db1fb5c0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77398269', 'ctest-vn4-38741311'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77398269', 'ctest-policy1-17118940']], 'subnet_ipam': [{'subnet_cidr': '18.61.57.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b18:6ac0:d934:514d:4391:412a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-17 22:51:15,151 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-17 22:51:15,439 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-17 22:51:15,464 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a50f1eb8-b8ca-4482-80f5-20493ef9b91c 2025-11-17 22:51:15,474 - DEBUG - Requesting: http://10.0.0.33:8082/project/ff54059f-d736-49dd-8954-7ffc80a0c574 2025-11-17 22:51:15,539 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7802619e-29a4-4563-9e5b-4174751d6318 2025-11-17 22:51:15,552 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7802619e-29a4-4563-9e5b-4174751d6318 2025-11-17 22:51:15,560 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5a5945d6-a53d-42cd-a978-5e2c9ac0f5e7 2025-11-17 22:51:15,565 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5a5945d6-a53d-42cd-a978-5e2c9ac0f5e7 2025-11-17 22:51:15,570 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b1cfb180-f94d-4541-8970-922487ad9cae 2025-11-17 22:51:15,575 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-17 22:51:15,575 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7802619e-29a4-4563-9e5b-4174751d6318 2025-11-17 22:51:15,582 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5a5945d6-a53d-42cd-a978-5e2c9ac0f5e7 2025-11-17 22:51:15,592 - INFO - Verified VN network id 12 for VN 7802619e-29a4-4563-9e5b-4174751d6318 2025-11-17 22:51:15,592 - INFO - Verifications in API Server for VN ctest-vn4-38741311 passed 2025-11-17 22:51:15,592 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7802619e-29a4-4563-9e5b-4174751d6318 2025-11-17 22:51:15,599 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5a5945d6-a53d-42cd-a978-5e2c9ac0f5e7 2025-11-17 22:51:15,604 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5a5945d6-a53d-42cd-a978-5e2c9ac0f5e7 2025-11-17 22:51:15,609 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b1cfb180-f94d-4541-8970-922487ad9cae 2025-11-17 22:51:15,617 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77398269:ctest-vn4-38741311', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-77398269', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8647581566436132195', 'uuid-lslong': '11410786049310155544'}, 'enable': 'true', 'created': '2025-11-17T22:51:14', 'last-modified': '2025-11-17T22:51:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.648242'} 2025-11-17 22:51:15,623 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-17 22:51:15,623 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-38741311 passed 2025-11-17 22:51:15,623 - DEBUG - ====Verifying policy data for ctest-vn4-38741311 in API_Server ====== 2025-11-17 22:51:15,623 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-17 22:51:15,627 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a50f1eb8-b8ca-4482-80f5-20493ef9b91c 2025-11-17 22:51:15,634 - DEBUG - Requesting: http://10.0.0.33:8082/project/ff54059f-d736-49dd-8954-7ffc80a0c574 2025-11-17 22:51:15,699 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7802619e-29a4-4563-9e5b-4174751d6318 2025-11-17 22:51:15,708 - DEBUG - ==>Verifying data for policy with id: 2ee0c7f9-7d77-4325-90d9-96bb9866bcd2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77398269', 'ctest-policy1-17118940'] 2025-11-17 22:51:15,708 - INFO - VN ctest-vn4-38741311 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-17 22:51:15,708 - DEBUG - Verifying the vn in opserver 2025-11-17 22:51:15,708 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77398269:ctest-vn4-38741311 virtual network link through opserver 10.0.0.33 2025-11-17 22:51:15,709 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-17 22:51:15,997 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-17 22:51:16,046 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77398269:ctest-vn4-38741311', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77398269:ctest-vn4-38741311?flat'} 2025-11-17 22:51:16,046 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77398269:ctest-vn4-38741311 is found in opserver 2025-11-17 22:51:16,054 - DEBUG - Do not have enough data to verify VN in agent 2025-11-17 22:51:16,058 - DEBUG - VRF ids for VN ctest-vn4-38741311: {} 2025-11-17 22:51:16,059 - DEBUG - ====Verifying data for ctest-policy1-17118940 in API_Server ====== 2025-11-17 22:51:16,059 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-17 22:51:16,063 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a50f1eb8-b8ca-4482-80f5-20493ef9b91c 2025-11-17 22:51:16,072 - DEBUG - Requesting: http://10.0.0.33:8082/project/ff54059f-d736-49dd-8954-7ffc80a0c574 2025-11-17 22:51:16,135 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/2ee0c7f9-7d77-4325-90d9-96bb9866bcd2 2025-11-17 22:51:16,142 - INFO - Verified policy ctest-policy1-17118940 in API Server, Result: True 2025-11-17 22:51:16,142 - INFO - Done with setup and verification, moving onto test .. 2025-11-17 22:51:16,148 - INFO - Deleting VN ctest-vn4-38741311 2025-11-17 22:51:16,243 - DEBUG - Response for deleting network () 2025-11-17 22:51:16,244 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5a5945d6-a53d-42cd-a978-5e2c9ac0f5e7 2025-11-17 22:51:16,247 - DEBUG - Response Code: 404 2025-11-17 22:51:16,247 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-17 22:51:16,251 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a50f1eb8-b8ca-4482-80f5-20493ef9b91c 2025-11-17 22:51:16,307 - DEBUG - Requesting: http://10.0.0.33:8082/project/ff54059f-d736-49dd-8954-7ffc80a0c574 2025-11-17 22:51:16,372 - INFO - Validated that VN ctest-vn4-38741311 is not found in API Server 2025-11-17 22:51:16,380 - DEBUG - VN ctest-vn4-38741311 is not present in Agent 10.0.0.33 2025-11-17 22:51:16,380 - INFO - Validated that VN ctest-vn4-38741311 is not in any agent 2025-11-17 22:51:16,391 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-38741311 info 2025-11-17 22:51:16,409 - INFO - Deleted policy ctest-policy1-17118940 2025-11-17 22:51:16,571 - DEBUG - policy ctest-policy1-17118940 is not found in API Server 2025-11-17 22:51:16,823 - DEBUG - No XMPP flaps were noticed during the test