2026-04-06 02:00:48,482 - INFO - Domain Default found not creating 2026-04-06 02:00:48,644 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-88714308 not found, creating it 2026-04-06 02:00:49,077 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-88714308, ID : a2c28cec-e45d-4a9b-8551-14f84592165a 2026-04-06 02:00:50,459 - INFO - ================================================================================ 2026-04-06 02:00:50,459 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-06 02:00:50,711 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with 2026-04-06 02:00:50,711 - INFO - Initial checks done. Running the testcase now 2026-04-06 02:00:50,711 - INFO - 2026-04-06 02:00:50,711 - INFO - ================================================================================ 2026-04-06 02:00:50,711 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-06 02:00:50,711 - 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-06 02:00:50,995 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with 2026-04-06 02:00:50,995 - INFO - Initial checks done. Running the testcase now 2026-04-06 02:00:50,995 - INFO - 2026-04-06 02:00:51,339 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88714308:ctest-vn4-58032136, 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-88714308:ctest-vn4-58032136, 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-88714308:ctest-vn4-58032136, 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-88714308:ctest-vn4-58032136, 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-06 02:00:51,810 - DEBUG - Response for create_network : {'network': {'id': 'e1fb77db-0ce0-4485-9556-dde0f8a15dcf', 'name': 'ctest-vn4-58032136', 'tenant_id': 'a2c28cece45d4a9b855114f84592165a', 'project_id': 'a2c28cece45d4a9b855114f84592165a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88714308', 'ctest-vn4-58032136'], 'port_security_enabled': True, 'description': ''}} 2026-04-06 02:00:51,983 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a89497e1-6741-45c5-b289-30aca114e41a', 'name': '', 'tenant_id': 'a2c28cece45d4a9b855114f84592165a', 'network_id': 'e1fb77db-0ce0-4485-9556-dde0f8a15dcf', 'ip_version': 4, 'cidr': '9.73.7.0/26', 'allocation_pools': [{'start': '9.73.7.2', 'end': '9.73.7.62'}], 'gateway_ip': '9.73.7.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.73.7.2', 'tags': [], 'project_id': 'a2c28cece45d4a9b855114f84592165a'}} 2026-04-06 02:00:52,183 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c91918cd-4f99-4876-ba9d-ad91968db36a', 'name': '', 'tenant_id': 'a2c28cece45d4a9b855114f84592165a', 'network_id': 'e1fb77db-0ce0-4485-9556-dde0f8a15dcf', 'ip_version': 6, 'cidr': '2bcd:8a46:6312:80e9:51e3:7851::/96', 'allocation_pools': [{'start': '2bcd:8a46:6312:80e9:51e3:7851:0:2', 'end': '2bcd:8a46:6312:80e9:51e3:7851:ffff:fffe'}], 'gateway_ip': '2bcd:8a46:6312:80e9:51e3:7851:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2bcd:8a46:6312:80e9:51e3:7851:0:2', 'tags': [], 'project_id': 'a2c28cece45d4a9b855114f84592165a'}} 2026-04-06 02:00:52,201 - INFO - Created VN ctest-vn4-58032136 2026-04-06 02:00:52,251 - DEBUG - VN ctest-vn4-58032136 UUID is e1fb77db-0ce0-4485-9556-dde0f8a15dcf 2026-04-06 02:00:52,415 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e1fb77db-0ce0-4485-9556-dde0f8a15dcf', 'name': 'ctest-vn4-58032136', 'tenant_id': 'a2c28cece45d4a9b855114f84592165a', 'project_id': 'a2c28cece45d4a9b855114f84592165a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a89497e1-6741-45c5-b289-30aca114e41a', 'c91918cd-4f99-4876-ba9d-ad91968db36a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88714308', 'ctest-vn4-58032136'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88714308', 'ctest-policy1-36191848']], 'subnet_ipam': [{'subnet_cidr': '9.73.7.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2bcd:8a46:6312:80e9:51e3:7851::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-06 02:00:52,579 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-04-06 02:00:52,868 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-04-06 02:00:52,894 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c79f5fa3-9a9e-4a26-8d0b-3ffd4838e570 2026-04-06 02:00:52,905 - DEBUG - Requesting: http://10.0.0.41:8082/project/a2c28cec-e45d-4a9b-8551-14f84592165a 2026-04-06 02:00:52,968 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e1fb77db-0ce0-4485-9556-dde0f8a15dcf 2026-04-06 02:00:52,977 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e1fb77db-0ce0-4485-9556-dde0f8a15dcf 2026-04-06 02:00:52,985 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/33298682-7328-4986-91d3-5ace4d976a25 2026-04-06 02:00:52,990 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/33298682-7328-4986-91d3-5ace4d976a25 2026-04-06 02:00:52,995 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/12ee1ffc-daf2-41bb-972f-a1af3d32a459 2026-04-06 02:00:53,000 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-06 02:00:53,000 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e1fb77db-0ce0-4485-9556-dde0f8a15dcf 2026-04-06 02:00:53,006 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/33298682-7328-4986-91d3-5ace4d976a25 2026-04-06 02:00:53,016 - INFO - Verified VN network id 12 for VN e1fb77db-0ce0-4485-9556-dde0f8a15dcf 2026-04-06 02:00:53,016 - INFO - Verifications in API Server for VN ctest-vn4-58032136 passed 2026-04-06 02:00:53,016 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e1fb77db-0ce0-4485-9556-dde0f8a15dcf 2026-04-06 02:00:53,023 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/33298682-7328-4986-91d3-5ace4d976a25 2026-04-06 02:00:53,028 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/33298682-7328-4986-91d3-5ace4d976a25 2026-04-06 02:00:53,032 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/12ee1ffc-daf2-41bb-972f-a1af3d32a459 2026-04-06 02:00:53,041 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88714308:ctest-vn4-58032136', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88714308', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16283740660385727621', 'uuid-lslong': '10761032317962116559'}, 'enable': 'true', 'created': '2026-04-06T02:00:51', 'last-modified': '2026-04-06T02:00:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.640511'} 2026-04-06 02:00:53,045 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-06 02:00:53,045 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-58032136 passed 2026-04-06 02:00:53,045 - DEBUG - ====Verifying policy data for ctest-vn4-58032136 in API_Server ====== 2026-04-06 02:00:53,045 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-04-06 02:00:53,049 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c79f5fa3-9a9e-4a26-8d0b-3ffd4838e570 2026-04-06 02:00:53,057 - DEBUG - Requesting: http://10.0.0.41:8082/project/a2c28cec-e45d-4a9b-8551-14f84592165a 2026-04-06 02:00:53,119 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e1fb77db-0ce0-4485-9556-dde0f8a15dcf 2026-04-06 02:00:53,127 - DEBUG - ==>Verifying data for policy with id: b1d55834-679f-4dc9-b24a-d80d3e02a8fe, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88714308', 'ctest-policy1-36191848'] 2026-04-06 02:00:53,127 - INFO - VN ctest-vn4-58032136 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-06 02:00:53,127 - DEBUG - Verifying the vn in opserver 2026-04-06 02:00:53,127 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88714308:ctest-vn4-58032136 virtual network link through opserver 10.0.0.41 2026-04-06 02:00:53,127 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-04-06 02:00:53,414 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-04-06 02:00:53,465 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88714308:ctest-vn4-58032136', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88714308:ctest-vn4-58032136?flat'} 2026-04-06 02:00:53,465 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88714308:ctest-vn4-58032136 is found in opserver 2026-04-06 02:00:53,474 - DEBUG - Do not have enough data to verify VN in agent 2026-04-06 02:00:53,478 - DEBUG - VRF ids for VN ctest-vn4-58032136: {} 2026-04-06 02:00:53,478 - DEBUG - ====Verifying data for ctest-policy1-36191848 in API_Server ====== 2026-04-06 02:00:53,478 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-04-06 02:00:53,482 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c79f5fa3-9a9e-4a26-8d0b-3ffd4838e570 2026-04-06 02:00:53,491 - DEBUG - Requesting: http://10.0.0.41:8082/project/a2c28cec-e45d-4a9b-8551-14f84592165a 2026-04-06 02:00:53,559 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/b1d55834-679f-4dc9-b24a-d80d3e02a8fe 2026-04-06 02:00:53,568 - INFO - Verified policy ctest-policy1-36191848 in API Server, Result: True 2026-04-06 02:00:53,568 - INFO - Done with setup and verification, moving onto test .. 2026-04-06 02:00:53,575 - INFO - Deleting VN ctest-vn4-58032136 2026-04-06 02:00:53,678 - DEBUG - Response for deleting network () 2026-04-06 02:00:53,678 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/33298682-7328-4986-91d3-5ace4d976a25 2026-04-06 02:00:53,683 - DEBUG - Response Code: 404 2026-04-06 02:00:53,683 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-04-06 02:00:53,687 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c79f5fa3-9a9e-4a26-8d0b-3ffd4838e570 2026-04-06 02:00:53,739 - DEBUG - Requesting: http://10.0.0.41:8082/project/a2c28cec-e45d-4a9b-8551-14f84592165a 2026-04-06 02:00:53,809 - INFO - Validated that VN ctest-vn4-58032136 is not found in API Server 2026-04-06 02:00:53,818 - DEBUG - VN ctest-vn4-58032136 is not present in Agent 10.0.0.41 2026-04-06 02:00:53,818 - INFO - Validated that VN ctest-vn4-58032136 is not in any agent 2026-04-06 02:00:53,831 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-58032136 info 2026-04-06 02:00:53,853 - INFO - Deleted policy ctest-policy1-36191848 2026-04-06 02:00:54,010 - DEBUG - policy ctest-policy1-36191848 is not found in API Server 2026-04-06 02:00:54,263 - DEBUG - No XMPP flaps were noticed during the test