2026-04-29 19:05:26,182 - INFO - Domain Default found not creating 2026-04-29 19:05:26,370 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35107566 not found, creating it 2026-04-29 19:05:26,844 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35107566, ID : 70d221ac-ebf7-41b1-bcb3-c8b33bb9ffbb 2026-04-29 19:05:28,386 - INFO - ================================================================================ 2026-04-29 19:05:28,386 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-29 19:05:28,641 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-04-29 19:05:28,641 - INFO - Initial checks done. Running the testcase now 2026-04-29 19:05:28,641 - INFO - 2026-04-29 19:05:28,641 - INFO - ================================================================================ 2026-04-29 19:05:28,641 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-29 19:05:28,642 - 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-04-29 19:05:28,932 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-04-29 19:05:28,933 - INFO - Initial checks done. Running the testcase now 2026-04-29 19:05:28,933 - INFO - 2026-04-29 19:05:29,294 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35107566:ctest-vn4-39795064, 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-35107566:ctest-vn4-39795064, 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-35107566:ctest-vn4-39795064, 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-35107566:ctest-vn4-39795064, 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-04-29 19:05:29,818 - DEBUG - Response for create_network : {'network': {'id': '6c402629-f664-40ab-b833-68c97c47f20d', 'name': 'ctest-vn4-39795064', 'tenant_id': '70d221acebf741b1bcb3c8b33bb9ffbb', 'project_id': '70d221acebf741b1bcb3c8b33bb9ffbb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35107566', 'ctest-vn4-39795064'], 'port_security_enabled': True, 'description': ''}} 2026-04-29 19:05:29,999 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f945dc11-2a2e-4fd1-a5ab-eece02f2ef3a', 'name': '', 'tenant_id': '70d221acebf741b1bcb3c8b33bb9ffbb', 'network_id': '6c402629-f664-40ab-b833-68c97c47f20d', 'ip_version': 4, 'cidr': '192.101.203.0/26', 'allocation_pools': [{'start': '192.101.203.2', 'end': '192.101.203.62'}], 'gateway_ip': '192.101.203.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.101.203.2', 'tags': [], 'project_id': '70d221acebf741b1bcb3c8b33bb9ffbb'}} 2026-04-29 19:05:30,197 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca01084a-f5e3-46e7-bdfe-51f4f2187733', 'name': '', 'tenant_id': '70d221acebf741b1bcb3c8b33bb9ffbb', 'network_id': '6c402629-f664-40ab-b833-68c97c47f20d', 'ip_version': 6, 'cidr': '3bcf:57c5:58fe:655a:5393:18f0::/96', 'allocation_pools': [{'start': '3bcf:57c5:58fe:655a:5393:18f0:0:2', 'end': '3bcf:57c5:58fe:655a:5393:18f0:ffff:fffe'}], 'gateway_ip': '3bcf:57c5:58fe:655a:5393:18f0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3bcf:57c5:58fe:655a:5393:18f0:0:2', 'tags': [], 'project_id': '70d221acebf741b1bcb3c8b33bb9ffbb'}} 2026-04-29 19:05:30,219 - INFO - Created VN ctest-vn4-39795064 2026-04-29 19:05:30,271 - DEBUG - VN ctest-vn4-39795064 UUID is 6c402629-f664-40ab-b833-68c97c47f20d 2026-04-29 19:05:30,481 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c402629-f664-40ab-b833-68c97c47f20d', 'name': 'ctest-vn4-39795064', 'tenant_id': '70d221acebf741b1bcb3c8b33bb9ffbb', 'project_id': '70d221acebf741b1bcb3c8b33bb9ffbb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f945dc11-2a2e-4fd1-a5ab-eece02f2ef3a', 'ca01084a-f5e3-46e7-bdfe-51f4f2187733'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35107566', 'ctest-vn4-39795064'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35107566', 'ctest-policy1-44216503']], 'subnet_ipam': [{'subnet_cidr': '192.101.203.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3bcf:57c5:58fe:655a:5393:18f0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-29 19:05:30,647 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-29 19:05:30,940 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-29 19:05:30,972 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4b692a26-661f-4c94-8dde-fb666bc77973 2026-04-29 19:05:30,984 - DEBUG - Requesting: http://10.0.0.249:8082/project/70d221ac-ebf7-41b1-bcb3-c8b33bb9ffbb 2026-04-29 19:05:31,055 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6c402629-f664-40ab-b833-68c97c47f20d 2026-04-29 19:05:31,067 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6c402629-f664-40ab-b833-68c97c47f20d 2026-04-29 19:05:31,077 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9c87105d-7e36-4150-9707-f8fd972cfa73 2026-04-29 19:05:31,084 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9c87105d-7e36-4150-9707-f8fd972cfa73 2026-04-29 19:05:31,091 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/fcd83444-a1da-49aa-8b6c-e427968fed64 2026-04-29 19:05:31,098 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-29 19:05:31,098 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6c402629-f664-40ab-b833-68c97c47f20d 2026-04-29 19:05:31,108 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9c87105d-7e36-4150-9707-f8fd972cfa73 2026-04-29 19:05:31,122 - INFO - Verified VN network id 11 for VN 6c402629-f664-40ab-b833-68c97c47f20d 2026-04-29 19:05:31,123 - INFO - Verifications in API Server for VN ctest-vn4-39795064 passed 2026-04-29 19:05:31,123 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6c402629-f664-40ab-b833-68c97c47f20d 2026-04-29 19:05:31,132 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9c87105d-7e36-4150-9707-f8fd972cfa73 2026-04-29 19:05:31,140 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9c87105d-7e36-4150-9707-f8fd972cfa73 2026-04-29 19:05:31,146 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/fcd83444-a1da-49aa-8b6c-e427968fed64 2026-04-29 19:05:31,160 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35107566:ctest-vn4-39795064', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35107566', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7800276516274978987', 'uuid-lslong': '13273067741373788685'}, 'enable': 'true', 'created': '2026-04-29T19:05:29', 'last-modified': '2026-04-29T19:05:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.713984'} 2026-04-29 19:05:31,167 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-29 19:05:31,167 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-39795064 passed 2026-04-29 19:05:31,167 - DEBUG - ====Verifying policy data for ctest-vn4-39795064 in API_Server ====== 2026-04-29 19:05:31,167 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-29 19:05:31,173 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4b692a26-661f-4c94-8dde-fb666bc77973 2026-04-29 19:05:31,185 - DEBUG - Requesting: http://10.0.0.249:8082/project/70d221ac-ebf7-41b1-bcb3-c8b33bb9ffbb 2026-04-29 19:05:31,253 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6c402629-f664-40ab-b833-68c97c47f20d 2026-04-29 19:05:31,262 - DEBUG - ==>Verifying data for policy with id: b0c2e1dd-14fe-4d22-97f3-26f101ad2af7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35107566', 'ctest-policy1-44216503'] 2026-04-29 19:05:31,262 - INFO - VN ctest-vn4-39795064 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-29 19:05:31,262 - DEBUG - Verifying the vn in opserver 2026-04-29 19:05:31,262 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35107566:ctest-vn4-39795064 virtual network link through opserver 10.0.0.249 2026-04-29 19:05:31,262 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-29 19:05:31,558 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-29 19:05:31,622 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35107566:ctest-vn4-39795064', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35107566:ctest-vn4-39795064?flat'} 2026-04-29 19:05:31,622 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35107566:ctest-vn4-39795064 is found in opserver 2026-04-29 19:05:31,632 - DEBUG - Do not have enough data to verify VN in agent 2026-04-29 19:05:31,637 - DEBUG - VRF ids for VN ctest-vn4-39795064: {} 2026-04-29 19:05:31,637 - DEBUG - ====Verifying data for ctest-policy1-44216503 in API_Server ====== 2026-04-29 19:05:31,637 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-29 19:05:31,642 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4b692a26-661f-4c94-8dde-fb666bc77973 2026-04-29 19:05:31,655 - DEBUG - Requesting: http://10.0.0.249:8082/project/70d221ac-ebf7-41b1-bcb3-c8b33bb9ffbb 2026-04-29 19:05:31,726 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/b0c2e1dd-14fe-4d22-97f3-26f101ad2af7 2026-04-29 19:05:31,736 - INFO - Verified policy ctest-policy1-44216503 in API Server, Result: True 2026-04-29 19:05:31,736 - INFO - Done with setup and verification, moving onto test .. 2026-04-29 19:05:31,744 - INFO - Deleting VN ctest-vn4-39795064 2026-04-29 19:05:31,870 - DEBUG - Response for deleting network () 2026-04-29 19:05:31,870 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9c87105d-7e36-4150-9707-f8fd972cfa73 2026-04-29 19:05:31,875 - DEBUG - Response Code: 404 2026-04-29 19:05:31,876 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-29 19:05:31,881 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4b692a26-661f-4c94-8dde-fb666bc77973 2026-04-29 19:05:31,941 - DEBUG - Requesting: http://10.0.0.249:8082/project/70d221ac-ebf7-41b1-bcb3-c8b33bb9ffbb 2026-04-29 19:05:32,015 - INFO - Validated that VN ctest-vn4-39795064 is not found in API Server 2026-04-29 19:05:32,037 - DEBUG - VN ctest-vn4-39795064 is not present in Agent 10.0.0.249 2026-04-29 19:05:32,037 - INFO - Validated that VN ctest-vn4-39795064 is not in any agent 2026-04-29 19:05:32,051 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-39795064 info 2026-04-29 19:05:32,076 - INFO - Deleted policy ctest-policy1-44216503 2026-04-29 19:05:32,239 - DEBUG - policy ctest-policy1-44216503 is not found in API Server 2026-04-29 19:05:32,493 - DEBUG - No XMPP flaps were noticed during the test
2026-04-29 19:05:32,493 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-29 19:05:32,493 - INFO - -------------------------------------------------------------------------------- 2026-04-29 19:05:32,785 - DEBUG - No XMPP flaps were noticed during the test
2026-04-29 19:05:32,785 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-29 19:05:32,785 - INFO - -------------------------------------------------------------------------------- 2026-04-29 19:05:33,487 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-35107566, ID : 70d221ac-ebf7-41b1-bcb3-c8b33bb9ffbb