2026-04-21 15:56:04,870 - INFO - Domain Default found not creating 2026-04-21 15:56:05,097 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-91597111 not found, creating it 2026-04-21 15:56:05,603 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-91597111, ID : 675b645c-1c28-4cab-9b39-1d3434de0306 2026-04-21 15:56:07,430 - INFO - ================================================================================ 2026-04-21 15:56:07,430 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-21 15:56:07,712 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-21 15:56:07,713 - INFO - Initial checks done. Running the testcase now 2026-04-21 15:56:07,713 - INFO - 2026-04-21 15:56:07,713 - INFO - ================================================================================ 2026-04-21 15:56:07,713 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-21 15:56:07,713 - 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-21 15:56:07,994 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-21 15:56:07,995 - INFO - Initial checks done. Running the testcase now 2026-04-21 15:56:07,995 - INFO - 2026-04-21 15:56:08,431 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91597111:ctest-vn4-88644167, 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-91597111:ctest-vn4-88644167, 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-91597111:ctest-vn4-88644167, 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-91597111:ctest-vn4-88644167, 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-21 15:56:09,020 - DEBUG - Response for create_network : {'network': {'id': 'a257c0cd-404c-4c1e-a779-1ef617f6ffce', 'name': 'ctest-vn4-88644167', 'tenant_id': '675b645c1c284cab9b391d3434de0306', 'project_id': '675b645c1c284cab9b391d3434de0306', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91597111', 'ctest-vn4-88644167'], 'port_security_enabled': True, 'description': ''}} 2026-04-21 15:56:09,231 - DEBUG - Response for create_subnet : {'subnet': {'id': '5cc9dabd-30c0-4819-aed5-053941b6d972', 'name': '', 'tenant_id': '675b645c1c284cab9b391d3434de0306', 'network_id': 'a257c0cd-404c-4c1e-a779-1ef617f6ffce', 'ip_version': 4, 'cidr': '220.204.153.128/26', 'allocation_pools': [{'start': '220.204.153.130', 'end': '220.204.153.190'}], 'gateway_ip': '220.204.153.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.204.153.130', 'tags': [], 'project_id': '675b645c1c284cab9b391d3434de0306'}} 2026-04-21 15:56:09,447 - DEBUG - Response for create_subnet : {'subnet': {'id': '2fd14467-0fca-4764-8b45-b4e240d3dc4e', 'name': '', 'tenant_id': '675b645c1c284cab9b391d3434de0306', 'network_id': 'a257c0cd-404c-4c1e-a779-1ef617f6ffce', 'ip_version': 6, 'cidr': '24cc:b4dc:7024:7717:d73e:165::/96', 'allocation_pools': [{'start': '24cc:b4dc:7024:7717:d73e:165:0:2', 'end': '24cc:b4dc:7024:7717:d73e:165:ffff:fffe'}], 'gateway_ip': '24cc:b4dc:7024:7717:d73e:165:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24cc:b4dc:7024:7717:d73e:165:0:2', 'tags': [], 'project_id': '675b645c1c284cab9b391d3434de0306'}} 2026-04-21 15:56:09,476 - INFO - Created VN ctest-vn4-88644167 2026-04-21 15:56:09,532 - DEBUG - VN ctest-vn4-88644167 UUID is a257c0cd-404c-4c1e-a779-1ef617f6ffce 2026-04-21 15:56:09,807 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a257c0cd-404c-4c1e-a779-1ef617f6ffce', 'name': 'ctest-vn4-88644167', 'tenant_id': '675b645c1c284cab9b391d3434de0306', 'project_id': '675b645c1c284cab9b391d3434de0306', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5cc9dabd-30c0-4819-aed5-053941b6d972', '2fd14467-0fca-4764-8b45-b4e240d3dc4e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91597111', 'ctest-vn4-88644167'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91597111', 'ctest-policy1-44496202']], 'subnet_ipam': [{'subnet_cidr': '220.204.153.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '24cc:b4dc:7024:7717:d73e:165::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-21 15:56:09,984 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-21 15:56:10,292 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-21 15:56:10,364 - DEBUG - Requesting: http://10.0.0.50:8082/domain/64a8b1d0-f638-4af0-ab1c-2a6a12ac0064 2026-04-21 15:56:10,378 - DEBUG - Requesting: http://10.0.0.50:8082/project/675b645c-1c28-4cab-9b39-1d3434de0306 2026-04-21 15:56:10,526 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a257c0cd-404c-4c1e-a779-1ef617f6ffce 2026-04-21 15:56:10,558 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a257c0cd-404c-4c1e-a779-1ef617f6ffce 2026-04-21 15:56:10,572 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/57c2a75a-5dbc-4c56-b10e-0db51a17235c 2026-04-21 15:56:10,605 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/57c2a75a-5dbc-4c56-b10e-0db51a17235c 2026-04-21 15:56:10,615 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5c37044c-bc50-4e35-95c3-3a64a0d2405a 2026-04-21 15:56:10,628 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-21 15:56:10,628 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a257c0cd-404c-4c1e-a779-1ef617f6ffce 2026-04-21 15:56:10,649 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/57c2a75a-5dbc-4c56-b10e-0db51a17235c 2026-04-21 15:56:10,672 - INFO - Verified VN network id 11 for VN a257c0cd-404c-4c1e-a779-1ef617f6ffce 2026-04-21 15:56:10,672 - INFO - Verifications in API Server for VN ctest-vn4-88644167 passed 2026-04-21 15:56:10,673 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a257c0cd-404c-4c1e-a779-1ef617f6ffce 2026-04-21 15:56:10,686 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/57c2a75a-5dbc-4c56-b10e-0db51a17235c 2026-04-21 15:56:10,696 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/57c2a75a-5dbc-4c56-b10e-0db51a17235c 2026-04-21 15:56:10,720 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5c37044c-bc50-4e35-95c3-3a64a0d2405a 2026-04-21 15:56:10,740 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91597111:ctest-vn4-88644167', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-91597111', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11698030544897723422', 'uuid-lslong': '12067710718828806094'}, 'enable': 'true', 'created': '2026-04-21T15:56:08', 'last-modified': '2026-04-21T15:56:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.969858'} 2026-04-21 15:56:10,747 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-21 15:56:10,747 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88644167 passed 2026-04-21 15:56:10,747 - DEBUG - ====Verifying policy data for ctest-vn4-88644167 in API_Server ====== 2026-04-21 15:56:10,747 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-21 15:56:10,757 - DEBUG - Requesting: http://10.0.0.50:8082/domain/64a8b1d0-f638-4af0-ab1c-2a6a12ac0064 2026-04-21 15:56:10,825 - DEBUG - Requesting: http://10.0.0.50:8082/project/675b645c-1c28-4cab-9b39-1d3434de0306 2026-04-21 15:56:10,986 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a257c0cd-404c-4c1e-a779-1ef617f6ffce 2026-04-21 15:56:11,001 - DEBUG - ==>Verifying data for policy with id: 4dc59571-c1c2-4d0d-b40b-33a23c3d13b6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91597111', 'ctest-policy1-44496202'] 2026-04-21 15:56:11,001 - INFO - VN ctest-vn4-88644167 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-21 15:56:11,001 - DEBUG - Verifying the vn in opserver 2026-04-21 15:56:11,001 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91597111:ctest-vn4-88644167 virtual network link through opserver 10.0.0.50 2026-04-21 15:56:11,002 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-21 15:56:11,423 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-21 15:56:11,506 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91597111:ctest-vn4-88644167', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91597111:ctest-vn4-88644167?flat'} 2026-04-21 15:56:11,506 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91597111:ctest-vn4-88644167 is found in opserver 2026-04-21 15:56:11,518 - DEBUG - Do not have enough data to verify VN in agent 2026-04-21 15:56:11,524 - DEBUG - VRF ids for VN ctest-vn4-88644167: {} 2026-04-21 15:56:11,524 - DEBUG - ====Verifying data for ctest-policy1-44496202 in API_Server ====== 2026-04-21 15:56:11,524 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-21 15:56:11,532 - DEBUG - Requesting: http://10.0.0.50:8082/domain/64a8b1d0-f638-4af0-ab1c-2a6a12ac0064 2026-04-21 15:56:11,547 - DEBUG - Requesting: http://10.0.0.50:8082/project/675b645c-1c28-4cab-9b39-1d3434de0306 2026-04-21 15:56:11,631 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/4dc59571-c1c2-4d0d-b40b-33a23c3d13b6 2026-04-21 15:56:11,647 - INFO - Verified policy ctest-policy1-44496202 in API Server, Result: True 2026-04-21 15:56:11,648 - INFO - Done with setup and verification, moving onto test .. 2026-04-21 15:56:11,659 - INFO - Deleting VN ctest-vn4-88644167 2026-04-21 15:56:11,836 - DEBUG - Response for deleting network () 2026-04-21 15:56:11,836 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/57c2a75a-5dbc-4c56-b10e-0db51a17235c 2026-04-21 15:56:11,855 - DEBUG - Response Code: 404 2026-04-21 15:56:11,855 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-21 15:56:11,863 - DEBUG - Requesting: http://10.0.0.50:8082/domain/64a8b1d0-f638-4af0-ab1c-2a6a12ac0064 2026-04-21 15:56:11,888 - DEBUG - Requesting: http://10.0.0.50:8082/project/675b645c-1c28-4cab-9b39-1d3434de0306 2026-04-21 15:56:11,977 - INFO - Validated that VN ctest-vn4-88644167 is not found in API Server 2026-04-21 15:56:11,993 - DEBUG - VN ctest-vn4-88644167 is not present in Agent 10.0.0.50 2026-04-21 15:56:11,993 - INFO - Validated that VN ctest-vn4-88644167 is not in any agent 2026-04-21 15:56:12,017 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88644167 info 2026-04-21 15:56:12,053 - INFO - Deleted policy ctest-policy1-44496202 2026-04-21 15:56:12,248 - DEBUG - policy ctest-policy1-44496202 is not found in API Server 2026-04-21 15:56:12,524 - DEBUG - No XMPP flaps were noticed during the test
2026-04-21 15:56:12,524 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-04-21 15:56:12,524 - INFO - -------------------------------------------------------------------------------- 2026-04-21 15:56:12,823 - DEBUG - No XMPP flaps were noticed during the test
2026-04-21 15:56:12,823 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-04-21 15:56:12,824 - INFO - -------------------------------------------------------------------------------- 2026-04-21 15:56:13,558 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-91597111, ID : 675b645c-1c28-4cab-9b39-1d3434de0306