2025-12-18 20:53:21,981 - INFO - Domain Default found not creating 2025-12-18 20:53:22,160 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-77372204 not found, creating it 2025-12-18 20:53:22,641 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-77372204, ID : 369e9f05-0a77-41f1-ae97-f617a736db8a 2025-12-18 20:53:24,147 - INFO - ================================================================================ 2025-12-18 20:53:24,147 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-18 20:53:24,413 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-12-18 20:53:24,413 - INFO - Initial checks done. Running the testcase now 2025-12-18 20:53:24,413 - INFO - 2025-12-18 20:53:24,413 - INFO - ================================================================================ 2025-12-18 20:53:24,413 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-18 20:53:24,413 - 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-12-18 20:53:24,702 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-12-18 20:53:24,702 - INFO - Initial checks done. Running the testcase now 2025-12-18 20:53:24,702 - INFO - 2025-12-18 20:53:25,067 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77372204:ctest-vn4-67890749, 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-77372204:ctest-vn4-67890749, 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-77372204:ctest-vn4-67890749, 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-77372204:ctest-vn4-67890749, 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-12-18 20:53:25,863 - DEBUG - Response for create_network : {'network': {'id': '3da7ffff-78d7-4205-889f-625515574e6d', 'name': 'ctest-vn4-67890749', 'tenant_id': '369e9f050a7741f1ae97f617a736db8a', 'project_id': '369e9f050a7741f1ae97f617a736db8a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77372204', 'ctest-vn4-67890749'], 'port_security_enabled': True, 'description': ''}} 2025-12-18 20:53:26,038 - DEBUG - Response for create_subnet : {'subnet': {'id': '62445393-908d-4ede-aacf-dc7cf7e6795c', 'name': '', 'tenant_id': '369e9f050a7741f1ae97f617a736db8a', 'network_id': '3da7ffff-78d7-4205-889f-625515574e6d', 'ip_version': 4, 'cidr': '129.94.98.0/26', 'allocation_pools': [{'start': '129.94.98.2', 'end': '129.94.98.62'}], 'gateway_ip': '129.94.98.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.94.98.2', 'tags': [], 'project_id': '369e9f050a7741f1ae97f617a736db8a'}} 2025-12-18 20:53:26,257 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad16cc6c-5ebe-4f42-9618-748a9452ed1f', 'name': '', 'tenant_id': '369e9f050a7741f1ae97f617a736db8a', 'network_id': '3da7ffff-78d7-4205-889f-625515574e6d', 'ip_version': 6, 'cidr': '35e1:bccf:8c5a:eb77:7c21:9c51::/96', 'allocation_pools': [{'start': '35e1:bccf:8c5a:eb77:7c21:9c51:0:2', 'end': '35e1:bccf:8c5a:eb77:7c21:9c51:ffff:fffe'}], 'gateway_ip': '35e1:bccf:8c5a:eb77:7c21:9c51:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35e1:bccf:8c5a:eb77:7c21:9c51:0:2', 'tags': [], 'project_id': '369e9f050a7741f1ae97f617a736db8a'}} 2025-12-18 20:53:26,283 - INFO - Created VN ctest-vn4-67890749 2025-12-18 20:53:26,337 - DEBUG - VN ctest-vn4-67890749 UUID is 3da7ffff-78d7-4205-889f-625515574e6d 2025-12-18 20:53:26,529 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3da7ffff-78d7-4205-889f-625515574e6d', 'name': 'ctest-vn4-67890749', 'tenant_id': '369e9f050a7741f1ae97f617a736db8a', 'project_id': '369e9f050a7741f1ae97f617a736db8a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['62445393-908d-4ede-aacf-dc7cf7e6795c', 'ad16cc6c-5ebe-4f42-9618-748a9452ed1f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77372204', 'ctest-vn4-67890749'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77372204', 'ctest-policy1-47965883']], 'subnet_ipam': [{'subnet_cidr': '129.94.98.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '35e1:bccf:8c5a:eb77:7c21:9c51::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-18 20:53:26,693 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-18 20:53:26,987 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-18 20:53:27,052 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f4a81b16-a41d-4778-a812-69361b3c910b 2025-12-18 20:53:27,064 - DEBUG - Requesting: http://10.0.0.38:8082/project/369e9f05-0a77-41f1-ae97-f617a736db8a 2025-12-18 20:53:27,138 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3da7ffff-78d7-4205-889f-625515574e6d 2025-12-18 20:53:27,150 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3da7ffff-78d7-4205-889f-625515574e6d 2025-12-18 20:53:27,162 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c25b4f7-cc69-47b5-9616-ae6ec94e3c5b 2025-12-18 20:53:27,170 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c25b4f7-cc69-47b5-9616-ae6ec94e3c5b 2025-12-18 20:53:27,178 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/38a0e171-dba2-4392-8431-a9c1e80515e3 2025-12-18 20:53:27,185 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-18 20:53:27,185 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3da7ffff-78d7-4205-889f-625515574e6d 2025-12-18 20:53:27,195 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c25b4f7-cc69-47b5-9616-ae6ec94e3c5b 2025-12-18 20:53:27,211 - INFO - Verified VN network id 10 for VN 3da7ffff-78d7-4205-889f-625515574e6d 2025-12-18 20:53:27,211 - INFO - Verifications in API Server for VN ctest-vn4-67890749 passed 2025-12-18 20:53:27,211 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3da7ffff-78d7-4205-889f-625515574e6d 2025-12-18 20:53:27,220 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c25b4f7-cc69-47b5-9616-ae6ec94e3c5b 2025-12-18 20:53:27,226 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c25b4f7-cc69-47b5-9616-ae6ec94e3c5b 2025-12-18 20:53:27,232 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/38a0e171-dba2-4392-8431-a9c1e80515e3 2025-12-18 20:53:27,245 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77372204:ctest-vn4-67890749', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-77372204', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4442801030133400069', 'uuid-lslong': '9844695428024979053'}, 'enable': 'true', 'created': '2025-12-18T20:53:25', 'last-modified': '2025-12-18T20:53:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.741559'} 2025-12-18 20:53:27,250 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-18 20:53:27,250 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-67890749 passed 2025-12-18 20:53:27,250 - DEBUG - ====Verifying policy data for ctest-vn4-67890749 in API_Server ====== 2025-12-18 20:53:27,251 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-18 20:53:27,256 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f4a81b16-a41d-4778-a812-69361b3c910b 2025-12-18 20:53:27,267 - DEBUG - Requesting: http://10.0.0.38:8082/project/369e9f05-0a77-41f1-ae97-f617a736db8a 2025-12-18 20:53:27,338 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3da7ffff-78d7-4205-889f-625515574e6d 2025-12-18 20:53:27,348 - DEBUG - ==>Verifying data for policy with id: 4afea0b9-a9ee-492f-8d45-11c1b78f9650, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77372204', 'ctest-policy1-47965883'] 2025-12-18 20:53:27,348 - INFO - VN ctest-vn4-67890749 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-18 20:53:27,348 - DEBUG - Verifying the vn in opserver 2025-12-18 20:53:27,348 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77372204:ctest-vn4-67890749 virtual network link through opserver 10.0.0.38 2025-12-18 20:53:27,348 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-18 20:53:27,661 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-18 20:53:27,734 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77372204:ctest-vn4-67890749', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77372204:ctest-vn4-67890749?flat'} 2025-12-18 20:53:27,734 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77372204:ctest-vn4-67890749 is found in opserver 2025-12-18 20:53:27,744 - DEBUG - Do not have enough data to verify VN in agent 2025-12-18 20:53:27,749 - DEBUG - VRF ids for VN ctest-vn4-67890749: {} 2025-12-18 20:53:27,750 - DEBUG - ====Verifying data for ctest-policy1-47965883 in API_Server ====== 2025-12-18 20:53:27,750 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-18 20:53:27,758 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f4a81b16-a41d-4778-a812-69361b3c910b 2025-12-18 20:53:27,770 - DEBUG - Requesting: http://10.0.0.38:8082/project/369e9f05-0a77-41f1-ae97-f617a736db8a 2025-12-18 20:53:27,853 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/4afea0b9-a9ee-492f-8d45-11c1b78f9650 2025-12-18 20:53:27,864 - INFO - Verified policy ctest-policy1-47965883 in API Server, Result: True 2025-12-18 20:53:27,865 - INFO - Done with setup and verification, moving onto test .. 2025-12-18 20:53:27,873 - INFO - Deleting VN ctest-vn4-67890749 2025-12-18 20:53:28,012 - DEBUG - Response for deleting network () 2025-12-18 20:53:28,012 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c25b4f7-cc69-47b5-9616-ae6ec94e3c5b 2025-12-18 20:53:28,017 - DEBUG - Response Code: 404 2025-12-18 20:53:28,017 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-18 20:53:28,023 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f4a81b16-a41d-4778-a812-69361b3c910b 2025-12-18 20:53:28,074 - DEBUG - Requesting: http://10.0.0.38:8082/project/369e9f05-0a77-41f1-ae97-f617a736db8a 2025-12-18 20:53:28,144 - INFO - Validated that VN ctest-vn4-67890749 is not found in API Server 2025-12-18 20:53:28,153 - DEBUG - VN ctest-vn4-67890749 is not present in Agent 10.0.0.38 2025-12-18 20:53:28,153 - INFO - Validated that VN ctest-vn4-67890749 is not in any agent 2025-12-18 20:53:28,166 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-67890749 info 2025-12-18 20:53:28,190 - INFO - Deleted policy ctest-policy1-47965883 2025-12-18 20:53:28,357 - DEBUG - policy ctest-policy1-47965883 is not found in API Server 2025-12-18 20:53:28,609 - DEBUG - No XMPP flaps were noticed during the test
2025-12-18 20:53:28,610 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-18 20:53:28,610 - INFO - -------------------------------------------------------------------------------- 2025-12-18 20:53:28,906 - DEBUG - No XMPP flaps were noticed during the test
2025-12-18 20:53:28,906 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-18 20:53:28,906 - INFO - -------------------------------------------------------------------------------- 2025-12-18 20:53:29,634 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-77372204, ID : 369e9f05-0a77-41f1-ae97-f617a736db8a