2026-03-04 17:39:38,963 - INFO - Domain Default found not creating 2026-03-04 17:39:39,111 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-16499111 not found, creating it 2026-03-04 17:39:39,559 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-16499111, ID : b09f83df-ee35-4314-a0aa-3c7ea2478358 2026-03-04 17:39:40,981 - INFO - ================================================================================ 2026-03-04 17:39:40,981 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-04 17:39:41,236 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2026-03-04 17:39:41,236 - INFO - Initial checks done. Running the testcase now 2026-03-04 17:39:41,237 - INFO - 2026-03-04 17:39:41,237 - INFO - ================================================================================ 2026-03-04 17:39:41,237 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-04 17:39:41,237 - 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-03-04 17:39:41,528 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2026-03-04 17:39:41,528 - INFO - Initial checks done. Running the testcase now 2026-03-04 17:39:41,528 - INFO - 2026-03-04 17:39:41,882 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16499111:ctest-vn4-55908804, 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-16499111:ctest-vn4-55908804, 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-16499111:ctest-vn4-55908804, 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-16499111:ctest-vn4-55908804, 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-03-04 17:39:42,373 - DEBUG - Response for create_network : {'network': {'id': '46386e39-86b9-4632-be3a-e555e4fdc770', 'name': 'ctest-vn4-55908804', 'tenant_id': 'b09f83dfee354314a0aa3c7ea2478358', 'project_id': 'b09f83dfee354314a0aa3c7ea2478358', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16499111', 'ctest-vn4-55908804'], 'port_security_enabled': True, 'description': ''}} 2026-03-04 17:39:42,574 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c543e4b-9699-43b2-a06b-ee1d6eed139c', 'name': '', 'tenant_id': 'b09f83dfee354314a0aa3c7ea2478358', 'network_id': '46386e39-86b9-4632-be3a-e555e4fdc770', 'ip_version': 4, 'cidr': '42.18.230.0/26', 'allocation_pools': [{'start': '42.18.230.2', 'end': '42.18.230.62'}], 'gateway_ip': '42.18.230.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.18.230.2', 'tags': [], 'project_id': 'b09f83dfee354314a0aa3c7ea2478358'}} 2026-03-04 17:39:42,779 - DEBUG - Response for create_subnet : {'subnet': {'id': '75e2907d-ce2b-4762-aa85-70b531e6a3cf', 'name': '', 'tenant_id': 'b09f83dfee354314a0aa3c7ea2478358', 'network_id': '46386e39-86b9-4632-be3a-e555e4fdc770', 'ip_version': 6, 'cidr': '256c:f9f4:d754:d47b:d3cb:2133::/96', 'allocation_pools': [{'start': '256c:f9f4:d754:d47b:d3cb:2133:0:2', 'end': '256c:f9f4:d754:d47b:d3cb:2133:ffff:fffe'}], 'gateway_ip': '256c:f9f4:d754:d47b:d3cb:2133:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '256c:f9f4:d754:d47b:d3cb:2133:0:2', 'tags': [], 'project_id': 'b09f83dfee354314a0aa3c7ea2478358'}} 2026-03-04 17:39:42,798 - INFO - Created VN ctest-vn4-55908804 2026-03-04 17:39:42,848 - DEBUG - VN ctest-vn4-55908804 UUID is 46386e39-86b9-4632-be3a-e555e4fdc770 2026-03-04 17:39:43,104 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '46386e39-86b9-4632-be3a-e555e4fdc770', 'name': 'ctest-vn4-55908804', 'tenant_id': 'b09f83dfee354314a0aa3c7ea2478358', 'project_id': 'b09f83dfee354314a0aa3c7ea2478358', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8c543e4b-9699-43b2-a06b-ee1d6eed139c', '75e2907d-ce2b-4762-aa85-70b531e6a3cf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16499111', 'ctest-vn4-55908804'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16499111', 'ctest-policy1-57467289']], 'subnet_ipam': [{'subnet_cidr': '42.18.230.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '256c:f9f4:d754:d47b:d3cb:2133::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-04 17:39:43,264 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-04 17:39:43,557 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-04 17:39:43,586 - DEBUG - Requesting: http://10.0.0.33:8082/domain/92eed5d6-8d29-4d71-8bbc-d9e02df5cf61 2026-03-04 17:39:43,596 - DEBUG - Requesting: http://10.0.0.33:8082/project/b09f83df-ee35-4314-a0aa-3c7ea2478358 2026-03-04 17:39:43,666 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/46386e39-86b9-4632-be3a-e555e4fdc770 2026-03-04 17:39:43,678 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/46386e39-86b9-4632-be3a-e555e4fdc770 2026-03-04 17:39:43,687 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4bc2bd2d-fb10-4732-a2ed-14293777c6d6 2026-03-04 17:39:43,693 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4bc2bd2d-fb10-4732-a2ed-14293777c6d6 2026-03-04 17:39:43,699 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5010bdac-a887-45d5-98a5-ca223e29d0cb 2026-03-04 17:39:43,704 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-04 17:39:43,705 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/46386e39-86b9-4632-be3a-e555e4fdc770 2026-03-04 17:39:43,712 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4bc2bd2d-fb10-4732-a2ed-14293777c6d6 2026-03-04 17:39:43,723 - INFO - Verified VN network id 11 for VN 46386e39-86b9-4632-be3a-e555e4fdc770 2026-03-04 17:39:43,723 - INFO - Verifications in API Server for VN ctest-vn4-55908804 passed 2026-03-04 17:39:43,724 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/46386e39-86b9-4632-be3a-e555e4fdc770 2026-03-04 17:39:43,732 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4bc2bd2d-fb10-4732-a2ed-14293777c6d6 2026-03-04 17:39:43,737 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4bc2bd2d-fb10-4732-a2ed-14293777c6d6 2026-03-04 17:39:43,742 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5010bdac-a887-45d5-98a5-ca223e29d0cb 2026-03-04 17:39:43,751 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16499111:ctest-vn4-55908804', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-16499111', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5059915374703232562', 'uuid-lslong': '13707520572932343664'}, 'enable': 'true', 'created': '2026-03-04T17:39:42', 'last-modified': '2026-03-04T17:39:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.675128'} 2026-03-04 17:39:43,756 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-04 17:39:43,756 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-55908804 passed 2026-03-04 17:39:43,756 - DEBUG - ====Verifying policy data for ctest-vn4-55908804 in API_Server ====== 2026-03-04 17:39:43,756 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-04 17:39:43,760 - DEBUG - Requesting: http://10.0.0.33:8082/domain/92eed5d6-8d29-4d71-8bbc-d9e02df5cf61 2026-03-04 17:39:43,769 - DEBUG - Requesting: http://10.0.0.33:8082/project/b09f83df-ee35-4314-a0aa-3c7ea2478358 2026-03-04 17:39:43,836 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/46386e39-86b9-4632-be3a-e555e4fdc770 2026-03-04 17:39:43,844 - DEBUG - ==>Verifying data for policy with id: fdc6cbb8-93f7-4b5a-9199-335d7bced7c3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16499111', 'ctest-policy1-57467289'] 2026-03-04 17:39:43,844 - INFO - VN ctest-vn4-55908804 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-04 17:39:43,845 - DEBUG - Verifying the vn in opserver 2026-03-04 17:39:43,845 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16499111:ctest-vn4-55908804 virtual network link through opserver 10.0.0.33 2026-03-04 17:39:43,845 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-04 17:39:44,136 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-04 17:39:44,191 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16499111:ctest-vn4-55908804', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16499111:ctest-vn4-55908804?flat'} 2026-03-04 17:39:44,191 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16499111:ctest-vn4-55908804 is found in opserver 2026-03-04 17:39:44,199 - DEBUG - Do not have enough data to verify VN in agent 2026-03-04 17:39:44,203 - DEBUG - VRF ids for VN ctest-vn4-55908804: {} 2026-03-04 17:39:44,203 - DEBUG - ====Verifying data for ctest-policy1-57467289 in API_Server ====== 2026-03-04 17:39:44,203 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-04 17:39:44,208 - DEBUG - Requesting: http://10.0.0.33:8082/domain/92eed5d6-8d29-4d71-8bbc-d9e02df5cf61 2026-03-04 17:39:44,217 - DEBUG - Requesting: http://10.0.0.33:8082/project/b09f83df-ee35-4314-a0aa-3c7ea2478358 2026-03-04 17:39:44,284 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/fdc6cbb8-93f7-4b5a-9199-335d7bced7c3 2026-03-04 17:39:44,292 - INFO - Verified policy ctest-policy1-57467289 in API Server, Result: True 2026-03-04 17:39:44,292 - INFO - Done with setup and verification, moving onto test .. 2026-03-04 17:39:44,298 - INFO - Deleting VN ctest-vn4-55908804 2026-03-04 17:39:44,393 - DEBUG - Response for deleting network () 2026-03-04 17:39:44,393 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4bc2bd2d-fb10-4732-a2ed-14293777c6d6 2026-03-04 17:39:44,397 - DEBUG - Response Code: 404 2026-03-04 17:39:44,398 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-04 17:39:44,402 - DEBUG - Requesting: http://10.0.0.33:8082/domain/92eed5d6-8d29-4d71-8bbc-d9e02df5cf61 2026-03-04 17:39:44,457 - DEBUG - Requesting: http://10.0.0.33:8082/project/b09f83df-ee35-4314-a0aa-3c7ea2478358 2026-03-04 17:39:44,525 - INFO - Validated that VN ctest-vn4-55908804 is not found in API Server 2026-03-04 17:39:44,533 - DEBUG - VN ctest-vn4-55908804 is not present in Agent 10.0.0.33 2026-03-04 17:39:44,533 - INFO - Validated that VN ctest-vn4-55908804 is not in any agent 2026-03-04 17:39:44,544 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-55908804 info 2026-03-04 17:39:44,563 - INFO - Deleted policy ctest-policy1-57467289 2026-03-04 17:39:44,724 - DEBUG - policy ctest-policy1-57467289 is not found in API Server 2026-03-04 17:39:44,977 - DEBUG - No XMPP flaps were noticed during the test