2026-11-12 14:54:09,618 - INFO - Domain Default found not creating 2026-11-12 14:54:10,046 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-91803434 not found, creating it 2026-11-12 14:54:10,525 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-91803434, ID : d44b49ed-8e63-458e-a81a-4483758dbf62 2026-11-12 14:54:12,465 - INFO - ================================================================================ 2026-11-12 14:54:12,465 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-12 14:54:12,729 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.25': '0'}} with 2026-11-12 14:54:12,730 - INFO - Initial checks done. Running the testcase now 2026-11-12 14:54:12,730 - INFO - 2026-11-12 14:54:12,730 - INFO - ================================================================================ 2026-11-12 14:54:12,730 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-12 14:54:12,730 - 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-11-12 14:54:13,031 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.25': '0'}} with 2026-11-12 14:54:13,031 - INFO - Initial checks done. Running the testcase now 2026-11-12 14:54:13,031 - INFO - 2026-11-12 14:54:13,460 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91803434:ctest-vn4-20229153, 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-91803434:ctest-vn4-20229153, 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-91803434:ctest-vn4-20229153, 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-91803434:ctest-vn4-20229153, 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-11-12 14:54:14,204 - DEBUG - Response for create_network : {'network': {'id': 'f47fc754-5b80-4060-9221-7db6a1d37885', 'name': 'ctest-vn4-20229153', 'tenant_id': 'd44b49ed8e63458ea81a4483758dbf62', 'project_id': 'd44b49ed8e63458ea81a4483758dbf62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91803434', 'ctest-vn4-20229153'], 'port_security_enabled': True, 'description': ''}} 2026-11-12 14:54:14,446 - DEBUG - Response for create_subnet : {'subnet': {'id': '987897ac-2272-41f7-b4d4-9bd2dfc0a5b2', 'name': '', 'tenant_id': 'd44b49ed8e63458ea81a4483758dbf62', 'network_id': 'f47fc754-5b80-4060-9221-7db6a1d37885', 'ip_version': 4, 'cidr': '173.159.33.192/26', 'allocation_pools': [{'start': '173.159.33.194', 'end': '173.159.33.254'}], 'gateway_ip': '173.159.33.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.159.33.194', 'tags': [], 'project_id': 'd44b49ed8e63458ea81a4483758dbf62'}} 2026-11-12 14:54:14,599 - DEBUG - Response for create_subnet : {'subnet': {'id': '44a20b2f-2ce6-44bc-8079-07fb389579f3', 'name': '', 'tenant_id': 'd44b49ed8e63458ea81a4483758dbf62', 'network_id': 'f47fc754-5b80-4060-9221-7db6a1d37885', 'ip_version': 6, 'cidr': '3054:da1a:a8a1:194e:d99c:1ff2::/96', 'allocation_pools': [{'start': '3054:da1a:a8a1:194e:d99c:1ff2:0:2', 'end': '3054:da1a:a8a1:194e:d99c:1ff2:ffff:fffe'}], 'gateway_ip': '3054:da1a:a8a1:194e:d99c:1ff2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3054:da1a:a8a1:194e:d99c:1ff2:0:2', 'tags': [], 'project_id': 'd44b49ed8e63458ea81a4483758dbf62'}} 2026-11-12 14:54:14,624 - INFO - Created VN ctest-vn4-20229153 2026-11-12 14:54:14,678 - DEBUG - VN ctest-vn4-20229153 UUID is f47fc754-5b80-4060-9221-7db6a1d37885 2026-11-12 14:54:14,972 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f47fc754-5b80-4060-9221-7db6a1d37885', 'name': 'ctest-vn4-20229153', 'tenant_id': 'd44b49ed8e63458ea81a4483758dbf62', 'project_id': 'd44b49ed8e63458ea81a4483758dbf62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['987897ac-2272-41f7-b4d4-9bd2dfc0a5b2', '44a20b2f-2ce6-44bc-8079-07fb389579f3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91803434', 'ctest-vn4-20229153'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91803434', 'ctest-policy1-29165051']], 'subnet_ipam': [{'subnet_cidr': '173.159.33.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3054:da1a:a8a1:194e:d99c:1ff2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-12 14:54:15,149 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-12 14:54:15,592 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-12 14:54:15,623 - DEBUG - Requesting: http://10.0.0.177:8082/domain/885a8c83-1f55-4cd6-b1c5-723e652b78b1 2026-11-12 14:54:15,638 - DEBUG - Requesting: http://10.0.0.177:8082/project/d44b49ed-8e63-458e-a81a-4483758dbf62 2026-11-12 14:54:15,723 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/f47fc754-5b80-4060-9221-7db6a1d37885 2026-11-12 14:54:15,774 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/f47fc754-5b80-4060-9221-7db6a1d37885 2026-11-12 14:54:15,808 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/befcaeef-b739-4078-ba25-6b7005caf604 2026-11-12 14:54:15,818 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/befcaeef-b739-4078-ba25-6b7005caf604 2026-11-12 14:54:15,826 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/dccd7922-d473-4238-9400-975dceecd8fd 2026-11-12 14:54:15,840 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-12 14:54:15,841 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/f47fc754-5b80-4060-9221-7db6a1d37885 2026-11-12 14:54:15,853 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/befcaeef-b739-4078-ba25-6b7005caf604 2026-11-12 14:54:15,872 - INFO - Verified VN network id 10 for VN f47fc754-5b80-4060-9221-7db6a1d37885 2026-11-12 14:54:15,872 - INFO - Verifications in API Server for VN ctest-vn4-20229153 passed 2026-11-12 14:54:15,872 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/f47fc754-5b80-4060-9221-7db6a1d37885 2026-11-12 14:54:15,885 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/befcaeef-b739-4078-ba25-6b7005caf604 2026-11-12 14:54:15,893 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/befcaeef-b739-4078-ba25-6b7005caf604 2026-11-12 14:54:15,902 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/dccd7922-d473-4238-9400-975dceecd8fd 2026-11-12 14:54:15,918 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91803434:ctest-vn4-20229153', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-91803434', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17618019432422981728', 'uuid-lslong': '10529835627121440901'}, 'enable': 'true', 'created': '2026-11-12T14:54:14', 'last-modified': '2026-11-12T14:54:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.994828'} 2026-11-12 14:54:15,925 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-12 14:54:15,925 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-20229153 passed 2026-11-12 14:54:15,925 - DEBUG - ====Verifying policy data for ctest-vn4-20229153 in API_Server ====== 2026-11-12 14:54:15,925 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-12 14:54:15,931 - DEBUG - Requesting: http://10.0.0.177:8082/domain/885a8c83-1f55-4cd6-b1c5-723e652b78b1 2026-11-12 14:54:15,943 - DEBUG - Requesting: http://10.0.0.177:8082/project/d44b49ed-8e63-458e-a81a-4483758dbf62 2026-11-12 14:54:16,019 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/f47fc754-5b80-4060-9221-7db6a1d37885 2026-11-12 14:54:16,029 - DEBUG - ==>Verifying data for policy with id: 044eb1fd-108a-48e3-8f89-ea3941aae9ea, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91803434', 'ctest-policy1-29165051'] 2026-11-12 14:54:16,029 - INFO - VN ctest-vn4-20229153 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-12 14:54:16,029 - DEBUG - Verifying the vn in opserver 2026-11-12 14:54:16,029 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91803434:ctest-vn4-20229153 virtual network link through opserver 10.0.0.177 2026-11-12 14:54:16,029 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-11-12 14:54:16,396 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-11-12 14:54:16,454 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91803434:ctest-vn4-20229153', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91803434:ctest-vn4-20229153?flat'} 2026-11-12 14:54:16,454 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91803434:ctest-vn4-20229153 is found in opserver 2026-11-12 14:54:16,467 - DEBUG - Do not have enough data to verify VN in agent 2026-11-12 14:54:16,471 - DEBUG - VRF ids for VN ctest-vn4-20229153: {} 2026-11-12 14:54:16,472 - DEBUG - ====Verifying data for ctest-policy1-29165051 in API_Server ====== 2026-11-12 14:54:16,472 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-12 14:54:16,480 - DEBUG - Requesting: http://10.0.0.177:8082/domain/885a8c83-1f55-4cd6-b1c5-723e652b78b1 2026-11-12 14:54:16,493 - DEBUG - Requesting: http://10.0.0.177:8082/project/d44b49ed-8e63-458e-a81a-4483758dbf62 2026-11-12 14:54:16,561 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/044eb1fd-108a-48e3-8f89-ea3941aae9ea 2026-11-12 14:54:16,571 - INFO - Verified policy ctest-policy1-29165051 in API Server, Result: True 2026-11-12 14:54:16,571 - INFO - Done with setup and verification, moving onto test .. 2026-11-12 14:54:16,580 - INFO - Deleting VN ctest-vn4-20229153 2026-11-12 14:54:16,722 - DEBUG - Response for deleting network () 2026-11-12 14:54:16,722 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/befcaeef-b739-4078-ba25-6b7005caf604 2026-11-12 14:54:16,728 - DEBUG - Response Code: 404 2026-11-12 14:54:16,728 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-12 14:54:16,734 - DEBUG - Requesting: http://10.0.0.177:8082/domain/885a8c83-1f55-4cd6-b1c5-723e652b78b1 2026-11-12 14:54:16,790 - DEBUG - Requesting: http://10.0.0.177:8082/project/d44b49ed-8e63-458e-a81a-4483758dbf62 2026-11-12 14:54:16,864 - INFO - Validated that VN ctest-vn4-20229153 is not found in API Server 2026-11-12 14:54:16,876 - DEBUG - VN ctest-vn4-20229153 is not present in Agent 10.0.0.177 2026-11-12 14:54:16,876 - INFO - Validated that VN ctest-vn4-20229153 is not in any agent 2026-11-12 14:54:16,901 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-20229153 info 2026-11-12 14:54:17,047 - INFO - Deleted policy ctest-policy1-29165051 2026-11-12 14:54:17,265 - DEBUG - policy ctest-policy1-29165051 is not found in API Server 2026-11-12 14:54:17,527 - DEBUG - No XMPP flaps were noticed during the test
2026-11-12 14:54:17,527 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-11-12 14:54:17,527 - INFO - -------------------------------------------------------------------------------- 2026-11-12 14:54:17,819 - DEBUG - No XMPP flaps were noticed during the test
2026-11-12 14:54:17,819 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-11-12 14:54:17,819 - INFO - -------------------------------------------------------------------------------- 2026-11-12 14:54:18,710 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-91803434, ID : d44b49ed-8e63-458e-a81a-4483758dbf62