2026-10-05 02:34:52,135 - INFO - Domain Default found not creating 2026-10-05 02:34:52,317 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-31821195 not found, creating it 2026-10-05 02:34:52,833 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-31821195, ID : dd9b68ac-3e08-45be-9ae7-6b21e0bfb119 2026-10-05 02:34:54,579 - INFO - ================================================================================ 2026-10-05 02:34:54,579 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-05 02:34:54,844 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.17': '0'}} with 2026-10-05 02:34:54,844 - INFO - Initial checks done. Running the testcase now 2026-10-05 02:34:54,844 - INFO - 2026-10-05 02:34:54,844 - INFO - ================================================================================ 2026-10-05 02:34:54,844 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-05 02:34:54,844 - 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-10-05 02:34:55,134 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.17': '0'}} with 2026-10-05 02:34:55,135 - INFO - Initial checks done. Running the testcase now 2026-10-05 02:34:55,135 - INFO - 2026-10-05 02:34:55,573 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31821195:ctest-vn4-25351635, 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-31821195:ctest-vn4-25351635, 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-31821195:ctest-vn4-25351635, 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-31821195:ctest-vn4-25351635, 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-10-05 02:34:56,127 - DEBUG - Response for create_network : {'network': {'id': '23322d3f-f040-4697-ae6f-714194ad2b9e', 'name': 'ctest-vn4-25351635', 'tenant_id': 'dd9b68ac3e0845be9ae76b21e0bfb119', 'project_id': 'dd9b68ac3e0845be9ae76b21e0bfb119', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31821195', 'ctest-vn4-25351635'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-10-05 02:34:56,327 - DEBUG - Response for create_subnet : {'subnet': {'id': '5cd2454d-7256-4ab2-9553-6d3c61c44af3', 'name': '', 'tenant_id': 'dd9b68ac3e0845be9ae76b21e0bfb119', 'network_id': '23322d3f-f040-4697-ae6f-714194ad2b9e', 'ip_version': 4, 'cidr': '188.63.52.64/26', 'allocation_pools': [{'start': '188.63.52.66', 'end': '188.63.52.126'}], 'gateway_ip': '188.63.52.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-10-05T02:34:56.263391', 'updated_at': '2026-10-05T02:34:56.263391', 'dns_server_address': '188.63.52.66', 'tags': [], 'project_id': 'dd9b68ac3e0845be9ae76b21e0bfb119'}} 2026-10-05 02:34:56,539 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f29fab0-e873-43b6-94c0-a6dcffcdf02a', 'name': '', 'tenant_id': 'dd9b68ac3e0845be9ae76b21e0bfb119', 'network_id': '23322d3f-f040-4697-ae6f-714194ad2b9e', 'ip_version': 6, 'cidr': '37b7:5f13:859d:910a:ba80:60e7::/96', 'allocation_pools': [{'start': '37b7:5f13:859d:910a:ba80:60e7:0:2', 'end': '37b7:5f13:859d:910a:ba80:60e7:ffff:fffe'}], 'gateway_ip': '37b7:5f13:859d:910a:ba80:60e7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-10-05T02:34:56.474897', 'updated_at': '2026-10-05T02:34:56.474897', 'dns_server_address': '37b7:5f13:859d:910a:ba80:60e7:0:2', 'tags': [], 'project_id': 'dd9b68ac3e0845be9ae76b21e0bfb119'}} 2026-10-05 02:34:56,560 - INFO - Created VN ctest-vn4-25351635 2026-10-05 02:34:56,613 - DEBUG - VN ctest-vn4-25351635 UUID is 23322d3f-f040-4697-ae6f-714194ad2b9e 2026-10-05 02:34:56,851 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '23322d3f-f040-4697-ae6f-714194ad2b9e', 'name': 'ctest-vn4-25351635', 'tenant_id': 'dd9b68ac3e0845be9ae76b21e0bfb119', 'project_id': 'dd9b68ac3e0845be9ae76b21e0bfb119', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['5cd2454d-7256-4ab2-9553-6d3c61c44af3', '8f29fab0-e873-43b6-94c0-a6dcffcdf02a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31821195', 'ctest-vn4-25351635'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31821195', 'ctest-policy1-64791928']], 'subnet_ipam': [{'subnet_cidr': '188.63.52.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '37b7:5f13:859d:910a:ba80:60e7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-10-05T02:34:56.086917', 'updated_at': '2026-10-05T02:34:56.494354'}} 2026-10-05 02:34:57,025 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-10-05 02:34:57,393 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-10-05 02:34:57,427 - DEBUG - Requesting: http://10.0.0.189:8082/domain/0b8ee711-f80c-4e12-9708-e42c50e3f596 2026-10-05 02:34:57,445 - DEBUG - Requesting: http://10.0.0.189:8082/project/dd9b68ac-3e08-45be-9ae7-6b21e0bfb119 2026-10-05 02:34:57,526 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/23322d3f-f040-4697-ae6f-714194ad2b9e 2026-10-05 02:34:57,540 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/23322d3f-f040-4697-ae6f-714194ad2b9e 2026-10-05 02:34:57,551 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/e54839d8-404c-44a7-bedf-0262cf35d10d 2026-10-05 02:34:57,559 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/e54839d8-404c-44a7-bedf-0262cf35d10d 2026-10-05 02:34:57,568 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/11a32dfc-e3d3-4991-b457-d05d7131d87f 2026-10-05 02:34:57,577 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-05 02:34:57,577 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/23322d3f-f040-4697-ae6f-714194ad2b9e 2026-10-05 02:34:57,589 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/e54839d8-404c-44a7-bedf-0262cf35d10d 2026-10-05 02:34:57,608 - INFO - Verified VN network id 12 for VN 23322d3f-f040-4697-ae6f-714194ad2b9e 2026-10-05 02:34:57,608 - INFO - Verifications in API Server for VN ctest-vn4-25351635 passed 2026-10-05 02:34:57,608 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/23322d3f-f040-4697-ae6f-714194ad2b9e 2026-10-05 02:34:57,621 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/e54839d8-404c-44a7-bedf-0262cf35d10d 2026-10-05 02:34:57,630 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/e54839d8-404c-44a7-bedf-0262cf35d10d 2026-10-05 02:34:57,638 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/11a32dfc-e3d3-4991-b457-d05d7131d87f 2026-10-05 02:34:57,651 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31821195:ctest-vn4-25351635', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-31821195', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2536139292799944343', 'uuid-lslong': '12569389611495533470'}, 'enable': 'true', 'created': '2026-10-05T02:34:56', 'last-modified': '2026-10-05T02:34:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.848248'} 2026-10-05 02:34:57,658 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-05 02:34:57,658 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-25351635 passed 2026-10-05 02:34:57,658 - DEBUG - ====Verifying policy data for ctest-vn4-25351635 in API_Server ====== 2026-10-05 02:34:57,658 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-10-05 02:34:57,665 - DEBUG - Requesting: http://10.0.0.189:8082/domain/0b8ee711-f80c-4e12-9708-e42c50e3f596 2026-10-05 02:34:57,679 - DEBUG - Requesting: http://10.0.0.189:8082/project/dd9b68ac-3e08-45be-9ae7-6b21e0bfb119 2026-10-05 02:34:57,758 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/23322d3f-f040-4697-ae6f-714194ad2b9e 2026-10-05 02:34:57,770 - DEBUG - ==>Verifying data for policy with id: 8559624d-1c58-4d6c-ac29-f47556925fa2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31821195', 'ctest-policy1-64791928'] 2026-10-05 02:34:57,770 - INFO - VN ctest-vn4-25351635 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-05 02:34:57,770 - DEBUG - Verifying the vn in opserver 2026-10-05 02:34:57,770 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31821195:ctest-vn4-25351635 virtual network link through opserver 10.0.0.189 2026-10-05 02:34:57,770 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-10-05 02:34:58,163 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-10-05 02:34:58,224 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31821195:ctest-vn4-25351635', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31821195:ctest-vn4-25351635?flat'} 2026-10-05 02:34:58,224 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31821195:ctest-vn4-25351635 is found in opserver 2026-10-05 02:34:58,236 - DEBUG - Do not have enough data to verify VN in agent 2026-10-05 02:34:58,241 - DEBUG - VRF ids for VN ctest-vn4-25351635: {} 2026-10-05 02:34:58,241 - DEBUG - ====Verifying data for ctest-policy1-64791928 in API_Server ====== 2026-10-05 02:34:58,241 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-10-05 02:34:58,248 - DEBUG - Requesting: http://10.0.0.189:8082/domain/0b8ee711-f80c-4e12-9708-e42c50e3f596 2026-10-05 02:34:58,261 - DEBUG - Requesting: http://10.0.0.189:8082/project/dd9b68ac-3e08-45be-9ae7-6b21e0bfb119 2026-10-05 02:34:58,338 - DEBUG - Requesting: http://10.0.0.189:8082/network-policy/8559624d-1c58-4d6c-ac29-f47556925fa2 2026-10-05 02:34:58,351 - INFO - Verified policy ctest-policy1-64791928 in API Server, Result: True 2026-10-05 02:34:58,351 - INFO - Done with setup and verification, moving onto test .. 2026-10-05 02:34:58,363 - INFO - Deleting VN ctest-vn4-25351635 2026-10-05 02:34:58,512 - DEBUG - Response for deleting network () 2026-10-05 02:34:58,512 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/e54839d8-404c-44a7-bedf-0262cf35d10d 2026-10-05 02:34:58,518 - DEBUG - Response Code: 404 2026-10-05 02:34:58,519 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-10-05 02:34:58,525 - DEBUG - Requesting: http://10.0.0.189:8082/domain/0b8ee711-f80c-4e12-9708-e42c50e3f596 2026-10-05 02:34:58,579 - DEBUG - Requesting: http://10.0.0.189:8082/project/dd9b68ac-3e08-45be-9ae7-6b21e0bfb119 2026-10-05 02:34:58,665 - INFO - Validated that VN ctest-vn4-25351635 is not found in API Server 2026-10-05 02:34:58,677 - DEBUG - VN ctest-vn4-25351635 is not present in Agent 10.0.0.189 2026-10-05 02:34:58,677 - INFO - Validated that VN ctest-vn4-25351635 is not in any agent 2026-10-05 02:34:58,702 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-25351635 info 2026-10-05 02:34:58,743 - INFO - Deleted policy ctest-policy1-64791928 2026-10-05 02:34:58,925 - DEBUG - policy ctest-policy1-64791928 is not found in API Server 2026-10-05 02:34:59,183 - DEBUG - No XMPP flaps were noticed during the test 2026-10-05 02:34:59,183 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-10-05 02:34:59,183 - INFO - -------------------------------------------------------------------------------- 2026-10-05 02:34:59,474 - DEBUG - No XMPP flaps were noticed during the test 2026-10-05 02:34:59,474 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-10-05 02:34:59,474 - INFO - -------------------------------------------------------------------------------- 2026-10-05 02:35:00,267 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-31821195, ID : dd9b68ac-3e08-45be-9ae7-6b21e0bfb119