2026-07-30 11:47:45,680 - INFO - Domain Default found not creating 2026-07-30 11:47:45,864 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87359261 not found, creating it 2026-07-30 11:47:46,386 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87359261, ID : 93165cf3-8461-4137-b4c5-6bd0ccf2c447 2026-07-30 11:47:47,990 - INFO - ================================================================================ 2026-07-30 11:47:47,991 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-30 11:47:48,265 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-07-30 11:47:48,265 - INFO - Initial checks done. Running the testcase now 2026-07-30 11:47:48,265 - INFO - 2026-07-30 11:47:48,265 - INFO - ================================================================================ 2026-07-30 11:47:48,265 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-30 11:47:48,265 - 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. 2026-07-30 11:47:48,560 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-07-30 11:47:48,560 - INFO - Initial checks done. Running the testcase now 2026-07-30 11:47:48,560 - INFO - 2026-07-30 11:47:48,959 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87359261:ctest-vn4-76831402, 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-87359261:ctest-vn4-76831402, 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-87359261:ctest-vn4-76831402, 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-87359261:ctest-vn4-76831402, 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] 2026-07-30 11:47:49,529 - DEBUG - Response for create_network : {'network': {'id': 'e1ebfb44-8f7e-4379-86f2-656a35077c4c', 'name': 'ctest-vn4-76831402', 'tenant_id': '93165cf384614137b4c56bd0ccf2c447', 'project_id': '93165cf384614137b4c56bd0ccf2c447', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87359261', 'ctest-vn4-76831402'], 'port_security_enabled': True, 'description': ''}} 2026-07-30 11:47:49,724 - DEBUG - Response for create_subnet : {'subnet': {'id': '107c0895-e594-484b-8213-7b480146fe3e', 'name': '', 'tenant_id': '93165cf384614137b4c56bd0ccf2c447', 'network_id': 'e1ebfb44-8f7e-4379-86f2-656a35077c4c', 'ip_version': 4, 'cidr': '134.22.93.192/26', 'allocation_pools': [{'start': '134.22.93.194', 'end': '134.22.93.254'}], 'gateway_ip': '134.22.93.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.22.93.194', 'tags': [], 'project_id': '93165cf384614137b4c56bd0ccf2c447'}} 2026-07-30 11:47:49,887 - DEBUG - Response for create_subnet : {'subnet': {'id': '7490a2f2-5721-45ce-b71f-56bfd980b964', 'name': '', 'tenant_id': '93165cf384614137b4c56bd0ccf2c447', 'network_id': 'e1ebfb44-8f7e-4379-86f2-656a35077c4c', 'ip_version': 6, 'cidr': '31ca:18d3:16b:a71e:62c2:1b17::/96', 'allocation_pools': [{'start': '31ca:18d3:16b:a71e:62c2:1b17:0:2', 'end': '31ca:18d3:16b:a71e:62c2:1b17:ffff:fffe'}], 'gateway_ip': '31ca:18d3:16b:a71e:62c2:1b17:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31ca:18d3:16b:a71e:62c2:1b17:0:2', 'tags': [], 'project_id': '93165cf384614137b4c56bd0ccf2c447'}} 2026-07-30 11:47:49,910 - INFO - Created VN ctest-vn4-76831402 2026-07-30 11:47:49,962 - DEBUG - VN ctest-vn4-76831402 UUID is e1ebfb44-8f7e-4379-86f2-656a35077c4c 2026-07-30 11:47:50,208 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e1ebfb44-8f7e-4379-86f2-656a35077c4c', 'name': 'ctest-vn4-76831402', 'tenant_id': '93165cf384614137b4c56bd0ccf2c447', 'project_id': '93165cf384614137b4c56bd0ccf2c447', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['107c0895-e594-484b-8213-7b480146fe3e', '7490a2f2-5721-45ce-b71f-56bfd980b964'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87359261', 'ctest-vn4-76831402'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87359261', 'ctest-policy1-79032652']], 'subnet_ipam': [{'subnet_cidr': '134.22.93.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '31ca:18d3:16b:a71e:62c2:1b17::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-30 11:47:50,382 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-07-30 11:47:50,724 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-07-30 11:47:50,757 - DEBUG - Requesting: http://10.0.0.177:8082/domain/65285694-cfd7-4d2e-b025-d0a97f937084 2026-07-30 11:47:50,771 - DEBUG - Requesting: http://10.0.0.177:8082/project/93165cf3-8461-4137-b4c5-6bd0ccf2c447 2026-07-30 11:47:50,853 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/e1ebfb44-8f7e-4379-86f2-656a35077c4c 2026-07-30 11:47:50,869 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/e1ebfb44-8f7e-4379-86f2-656a35077c4c 2026-07-30 11:47:50,881 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/5a8e7895-959c-45c1-a4bc-adb866967fdd 2026-07-30 11:47:50,890 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/5a8e7895-959c-45c1-a4bc-adb866967fdd 2026-07-30 11:47:50,900 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/fc7d7d67-4953-4001-8c1a-993238ee9639 2026-07-30 11:47:50,909 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-30 11:47:50,909 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/e1ebfb44-8f7e-4379-86f2-656a35077c4c 2026-07-30 11:47:50,920 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/5a8e7895-959c-45c1-a4bc-adb866967fdd 2026-07-30 11:47:50,938 - INFO - Verified VN network id 11 for VN e1ebfb44-8f7e-4379-86f2-656a35077c4c 2026-07-30 11:47:50,938 - INFO - Verifications in API Server for VN ctest-vn4-76831402 passed 2026-07-30 11:47:50,938 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/e1ebfb44-8f7e-4379-86f2-656a35077c4c 2026-07-30 11:47:50,949 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/5a8e7895-959c-45c1-a4bc-adb866967fdd 2026-07-30 11:47:50,961 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/5a8e7895-959c-45c1-a4bc-adb866967fdd 2026-07-30 11:47:50,970 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/fc7d7d67-4953-4001-8c1a-993238ee9639 2026-07-30 11:47:50,986 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87359261:ctest-vn4-76831402', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87359261', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16279381549944554361', 'uuid-lslong': '9723946052276943948'}, 'enable': 'true', 'created': '2026-07-30T11:47:49', 'last-modified': '2026-07-30T11:47:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.824218'} 2026-07-30 11:47:50,994 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-30 11:47:50,994 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-76831402 passed 2026-07-30 11:47:50,995 - DEBUG - ====Verifying policy data for ctest-vn4-76831402 in API_Server ====== 2026-07-30 11:47:50,995 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-07-30 11:47:51,002 - DEBUG - Requesting: http://10.0.0.177:8082/domain/65285694-cfd7-4d2e-b025-d0a97f937084 2026-07-30 11:47:51,016 - DEBUG - Requesting: http://10.0.0.177:8082/project/93165cf3-8461-4137-b4c5-6bd0ccf2c447 2026-07-30 11:47:51,102 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/e1ebfb44-8f7e-4379-86f2-656a35077c4c 2026-07-30 11:47:51,113 - DEBUG - ==>Verifying data for policy with id: 437fb116-97ae-42ea-adf4-d384de2251d2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87359261', 'ctest-policy1-79032652'] 2026-07-30 11:47:51,113 - INFO - VN ctest-vn4-76831402 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-30 11:47:51,114 - DEBUG - Verifying the vn in opserver 2026-07-30 11:47:51,114 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87359261:ctest-vn4-76831402 virtual network link through opserver 10.0.0.177 2026-07-30 11:47:51,114 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-07-30 11:47:51,452 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-07-30 11:47:51,525 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87359261:ctest-vn4-76831402', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87359261:ctest-vn4-76831402?flat'} 2026-07-30 11:47:51,525 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87359261:ctest-vn4-76831402 is found in opserver 2026-07-30 11:47:51,541 - DEBUG - Do not have enough data to verify VN in agent 2026-07-30 11:47:51,547 - DEBUG - VRF ids for VN ctest-vn4-76831402: {} 2026-07-30 11:47:51,548 - DEBUG - ====Verifying data for ctest-policy1-79032652 in API_Server ====== 2026-07-30 11:47:51,548 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-07-30 11:47:51,555 - DEBUG - Requesting: http://10.0.0.177:8082/domain/65285694-cfd7-4d2e-b025-d0a97f937084 2026-07-30 11:47:51,568 - DEBUG - Requesting: http://10.0.0.177:8082/project/93165cf3-8461-4137-b4c5-6bd0ccf2c447 2026-07-30 11:47:51,651 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/437fb116-97ae-42ea-adf4-d384de2251d2 2026-07-30 11:47:51,662 - INFO - Verified policy ctest-policy1-79032652 in API Server, Result: True 2026-07-30 11:47:51,662 - INFO - Done with setup and verification, moving onto test .. 2026-07-30 11:47:51,671 - INFO - Deleting VN ctest-vn4-76831402 2026-07-30 11:47:51,834 - DEBUG - Response for deleting network () 2026-07-30 11:47:51,834 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/5a8e7895-959c-45c1-a4bc-adb866967fdd 2026-07-30 11:47:51,841 - DEBUG - Response Code: 404 2026-07-30 11:47:51,842 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-07-30 11:47:51,850 - DEBUG - Requesting: http://10.0.0.177:8082/domain/65285694-cfd7-4d2e-b025-d0a97f937084 2026-07-30 11:47:51,912 - DEBUG - Requesting: http://10.0.0.177:8082/project/93165cf3-8461-4137-b4c5-6bd0ccf2c447 2026-07-30 11:47:51,990 - INFO - Validated that VN ctest-vn4-76831402 is not found in API Server 2026-07-30 11:47:52,001 - DEBUG - VN ctest-vn4-76831402 is not present in Agent 10.0.0.177 2026-07-30 11:47:52,001 - INFO - Validated that VN ctest-vn4-76831402 is not in any agent 2026-07-30 11:47:52,021 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-76831402 info 2026-07-30 11:47:52,051 - INFO - Deleted policy ctest-policy1-79032652 2026-07-30 11:47:52,230 - DEBUG - policy ctest-policy1-79032652 is not found in API Server 2026-07-30 11:47:52,489 - DEBUG - No XMPP flaps were noticed during the test 2026-07-30 11:47:52,489 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-07-30 11:47:52,489 - INFO - -------------------------------------------------------------------------------- 2026-07-30 11:47:52,795 - DEBUG - No XMPP flaps were noticed during the test 2026-07-30 11:47:52,795 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-07-30 11:47:52,795 - INFO - -------------------------------------------------------------------------------- 2026-07-30 11:47:53,537 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-87359261, ID : 93165cf3-8461-4137-b4c5-6bd0ccf2c447