2026-01-15 18:18:43,040 - INFO - Domain Default found not creating 2026-01-15 18:18:43,193 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-64971184 not found, creating it 2026-01-15 18:18:43,635 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-64971184, ID : 59e1382b-1e65-41c3-9100-7fb39407deed 2026-01-15 18:18:45,068 - INFO - ================================================================================ 2026-01-15 18:18:45,069 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-15 18:18:45,324 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2026-01-15 18:18:45,324 - INFO - Initial checks done. Running the testcase now 2026-01-15 18:18:45,324 - INFO - 2026-01-15 18:18:45,324 - INFO - ================================================================================ 2026-01-15 18:18:45,324 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-15 18:18:45,324 - 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-01-15 18:18:45,614 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2026-01-15 18:18:45,614 - INFO - Initial checks done. Running the testcase now 2026-01-15 18:18:45,614 - INFO - 2026-01-15 18:18:45,959 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64971184:ctest-vn4-48724701, 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-64971184:ctest-vn4-48724701, 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-64971184:ctest-vn4-48724701, 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-64971184:ctest-vn4-48724701, 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-01-15 18:18:46,466 - DEBUG - Response for create_network : {'network': {'id': 'd51c6dd5-cd81-43d4-bf4f-405b4f75ffb0', 'name': 'ctest-vn4-48724701', 'tenant_id': '59e1382b1e6541c391007fb39407deed', 'project_id': '59e1382b1e6541c391007fb39407deed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64971184', 'ctest-vn4-48724701'], 'port_security_enabled': True, 'description': ''}} 2026-01-15 18:18:46,680 - DEBUG - Response for create_subnet : {'subnet': {'id': '653c897d-38e2-4a72-84ec-8f1f2565cae9', 'name': '', 'tenant_id': '59e1382b1e6541c391007fb39407deed', 'network_id': 'd51c6dd5-cd81-43d4-bf4f-405b4f75ffb0', 'ip_version': 4, 'cidr': '179.6.229.64/26', 'allocation_pools': [{'start': '179.6.229.66', 'end': '179.6.229.126'}], 'gateway_ip': '179.6.229.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.6.229.66', 'tags': [], 'project_id': '59e1382b1e6541c391007fb39407deed'}} 2026-01-15 18:18:46,827 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c99ee11-b210-46f0-a3d2-488590be3ece', 'name': '', 'tenant_id': '59e1382b1e6541c391007fb39407deed', 'network_id': 'd51c6dd5-cd81-43d4-bf4f-405b4f75ffb0', 'ip_version': 6, 'cidr': '21f8:329c:a7a:bb77:bec8:c0ab::/96', 'allocation_pools': [{'start': '21f8:329c:a7a:bb77:bec8:c0ab:0:2', 'end': '21f8:329c:a7a:bb77:bec8:c0ab:ffff:fffe'}], 'gateway_ip': '21f8:329c:a7a:bb77:bec8:c0ab:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21f8:329c:a7a:bb77:bec8:c0ab:0:2', 'tags': [], 'project_id': '59e1382b1e6541c391007fb39407deed'}} 2026-01-15 18:18:46,846 - INFO - Created VN ctest-vn4-48724701 2026-01-15 18:18:46,897 - DEBUG - VN ctest-vn4-48724701 UUID is d51c6dd5-cd81-43d4-bf4f-405b4f75ffb0 2026-01-15 18:18:47,077 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd51c6dd5-cd81-43d4-bf4f-405b4f75ffb0', 'name': 'ctest-vn4-48724701', 'tenant_id': '59e1382b1e6541c391007fb39407deed', 'project_id': '59e1382b1e6541c391007fb39407deed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['653c897d-38e2-4a72-84ec-8f1f2565cae9', '0c99ee11-b210-46f0-a3d2-488590be3ece'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64971184', 'ctest-vn4-48724701'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64971184', 'ctest-policy1-48767487']], 'subnet_ipam': [{'subnet_cidr': '179.6.229.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21f8:329c:a7a:bb77:bec8:c0ab::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-15 18:18:47,245 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-15 18:18:47,546 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-15 18:18:47,575 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ffe2492d-5aab-4c9c-8cd9-28c3d4c8db2f 2026-01-15 18:18:47,587 - DEBUG - Requesting: http://10.0.0.50:8082/project/59e1382b-1e65-41c3-9100-7fb39407deed 2026-01-15 18:18:47,654 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d51c6dd5-cd81-43d4-bf4f-405b4f75ffb0 2026-01-15 18:18:47,666 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d51c6dd5-cd81-43d4-bf4f-405b4f75ffb0 2026-01-15 18:18:47,676 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eaa11903-4281-45a4-968b-ca531ed553ca 2026-01-15 18:18:47,683 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eaa11903-4281-45a4-968b-ca531ed553ca 2026-01-15 18:18:47,689 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2ed770a9-deaa-4c5c-a304-6a36de53b01c 2026-01-15 18:18:47,694 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-15 18:18:47,695 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d51c6dd5-cd81-43d4-bf4f-405b4f75ffb0 2026-01-15 18:18:47,702 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eaa11903-4281-45a4-968b-ca531ed553ca 2026-01-15 18:18:47,714 - INFO - Verified VN network id 9 for VN d51c6dd5-cd81-43d4-bf4f-405b4f75ffb0 2026-01-15 18:18:47,714 - INFO - Verifications in API Server for VN ctest-vn4-48724701 passed 2026-01-15 18:18:47,714 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d51c6dd5-cd81-43d4-bf4f-405b4f75ffb0 2026-01-15 18:18:47,724 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eaa11903-4281-45a4-968b-ca531ed553ca 2026-01-15 18:18:47,730 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eaa11903-4281-45a4-968b-ca531ed553ca 2026-01-15 18:18:47,738 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2ed770a9-deaa-4c5c-a304-6a36de53b01c 2026-01-15 18:18:47,749 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64971184:ctest-vn4-48724701', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-64971184', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15356269594469811156', 'uuid-lslong': '13785307745323712432'}, 'enable': 'true', 'created': '2026-01-15T18:18:46', 'last-modified': '2026-01-15T18:18:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.691337'} 2026-01-15 18:18:47,756 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-15 18:18:47,756 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-48724701 passed 2026-01-15 18:18:47,756 - DEBUG - ====Verifying policy data for ctest-vn4-48724701 in API_Server ====== 2026-01-15 18:18:47,756 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-15 18:18:47,761 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ffe2492d-5aab-4c9c-8cd9-28c3d4c8db2f 2026-01-15 18:18:47,770 - DEBUG - Requesting: http://10.0.0.50:8082/project/59e1382b-1e65-41c3-9100-7fb39407deed 2026-01-15 18:18:47,837 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d51c6dd5-cd81-43d4-bf4f-405b4f75ffb0 2026-01-15 18:18:47,847 - DEBUG - ==>Verifying data for policy with id: 25b90b10-6738-4e50-b959-961ecbe9abd0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64971184', 'ctest-policy1-48767487'] 2026-01-15 18:18:47,847 - INFO - VN ctest-vn4-48724701 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-15 18:18:47,847 - DEBUG - Verifying the vn in opserver 2026-01-15 18:18:47,847 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64971184:ctest-vn4-48724701 virtual network link through opserver 10.0.0.50 2026-01-15 18:18:47,847 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-15 18:18:48,137 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-15 18:18:48,195 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64971184:ctest-vn4-48724701', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64971184:ctest-vn4-48724701?flat'} 2026-01-15 18:18:48,195 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64971184:ctest-vn4-48724701 is found in opserver 2026-01-15 18:18:48,204 - DEBUG - Do not have enough data to verify VN in agent 2026-01-15 18:18:48,208 - DEBUG - VRF ids for VN ctest-vn4-48724701: {} 2026-01-15 18:18:48,208 - DEBUG - ====Verifying data for ctest-policy1-48767487 in API_Server ====== 2026-01-15 18:18:48,208 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-15 18:18:48,213 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ffe2492d-5aab-4c9c-8cd9-28c3d4c8db2f 2026-01-15 18:18:48,222 - DEBUG - Requesting: http://10.0.0.50:8082/project/59e1382b-1e65-41c3-9100-7fb39407deed 2026-01-15 18:18:48,289 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/25b90b10-6738-4e50-b959-961ecbe9abd0 2026-01-15 18:18:48,297 - INFO - Verified policy ctest-policy1-48767487 in API Server, Result: True 2026-01-15 18:18:48,297 - INFO - Done with setup and verification, moving onto test .. 2026-01-15 18:18:48,304 - INFO - Deleting VN ctest-vn4-48724701 2026-01-15 18:18:48,414 - DEBUG - Response for deleting network () 2026-01-15 18:18:48,414 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eaa11903-4281-45a4-968b-ca531ed553ca 2026-01-15 18:18:48,419 - DEBUG - Response Code: 404 2026-01-15 18:18:48,419 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-15 18:18:48,424 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ffe2492d-5aab-4c9c-8cd9-28c3d4c8db2f 2026-01-15 18:18:48,479 - DEBUG - Requesting: http://10.0.0.50:8082/project/59e1382b-1e65-41c3-9100-7fb39407deed 2026-01-15 18:18:48,548 - INFO - Validated that VN ctest-vn4-48724701 is not found in API Server 2026-01-15 18:18:48,558 - DEBUG - VN ctest-vn4-48724701 is not present in Agent 10.0.0.50 2026-01-15 18:18:48,558 - INFO - Validated that VN ctest-vn4-48724701 is not in any agent 2026-01-15 18:18:48,572 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-48724701 info 2026-01-15 18:18:48,595 - INFO - Deleted policy ctest-policy1-48767487 2026-01-15 18:18:48,761 - DEBUG - policy ctest-policy1-48767487 is not found in API Server 2026-01-15 18:18:49,013 - DEBUG - No XMPP flaps were noticed during the test