2026-08-24 02:27:57,465 - INFO - Domain Default found not creating 2026-08-24 02:27:57,628 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-27016638 not found, creating it 2026-08-24 02:27:58,089 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-27016638, ID : fad075b6-bbb3-42d7-be25-d9c659fbd69b 2026-08-24 02:27:59,629 - INFO - ================================================================================ 2026-08-24 02:27:59,629 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-24 02:27:59,902 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-08-24 02:27:59,902 - INFO - Initial checks done. Running the testcase now 2026-08-24 02:27:59,902 - INFO - 2026-08-24 02:27:59,902 - INFO - ================================================================================ 2026-08-24 02:27:59,902 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-24 02:27:59,902 - 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-08-24 02:28:00,183 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-08-24 02:28:00,183 - INFO - Initial checks done. Running the testcase now 2026-08-24 02:28:00,183 - INFO - 2026-08-24 02:28:00,571 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27016638:ctest-vn4-39299252, 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-27016638:ctest-vn4-39299252, 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-27016638:ctest-vn4-39299252, 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-27016638:ctest-vn4-39299252, 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-08-24 02:28:01,409 - DEBUG - Response for create_network : {'network': {'id': '8a0242cd-53f1-4bfd-ae2f-40c1ddf56486', 'name': 'ctest-vn4-39299252', 'tenant_id': 'fad075b6bbb342d7be25d9c659fbd69b', 'project_id': 'fad075b6bbb342d7be25d9c659fbd69b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27016638', 'ctest-vn4-39299252'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-08-24 02:28:01,646 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9eca5fc-e246-4cee-be03-0ff961fd7ce0', 'name': '', 'tenant_id': 'fad075b6bbb342d7be25d9c659fbd69b', 'network_id': '8a0242cd-53f1-4bfd-ae2f-40c1ddf56486', 'ip_version': 4, 'cidr': '118.42.71.192/26', 'allocation_pools': [{'start': '118.42.71.194', 'end': '118.42.71.254'}], 'gateway_ip': '118.42.71.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-08-24T02:28:01.584555', 'updated_at': '2026-08-24T02:28:01.584555', 'dns_server_address': '118.42.71.194', 'tags': [], 'project_id': 'fad075b6bbb342d7be25d9c659fbd69b'}} 2026-08-24 02:28:01,857 - DEBUG - Response for create_subnet : {'subnet': {'id': '2ec56f93-a77c-4156-87e8-edb2dc9de2fd', 'name': '', 'tenant_id': 'fad075b6bbb342d7be25d9c659fbd69b', 'network_id': '8a0242cd-53f1-4bfd-ae2f-40c1ddf56486', 'ip_version': 6, 'cidr': '3a63:eca2:7347:ae88:54c4:ce01::/96', 'allocation_pools': [{'start': '3a63:eca2:7347:ae88:54c4:ce01:0:2', 'end': '3a63:eca2:7347:ae88:54c4:ce01:ffff:fffe'}], 'gateway_ip': '3a63:eca2:7347:ae88:54c4:ce01:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-08-24T02:28:01.785479', 'updated_at': '2026-08-24T02:28:01.785479', 'dns_server_address': '3a63:eca2:7347:ae88:54c4:ce01:0:2', 'tags': [], 'project_id': 'fad075b6bbb342d7be25d9c659fbd69b'}} 2026-08-24 02:28:01,883 - INFO - Created VN ctest-vn4-39299252 2026-08-24 02:28:01,938 - DEBUG - VN ctest-vn4-39299252 UUID is 8a0242cd-53f1-4bfd-ae2f-40c1ddf56486 2026-08-24 02:28:02,170 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8a0242cd-53f1-4bfd-ae2f-40c1ddf56486', 'name': 'ctest-vn4-39299252', 'tenant_id': 'fad075b6bbb342d7be25d9c659fbd69b', 'project_id': 'fad075b6bbb342d7be25d9c659fbd69b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c9eca5fc-e246-4cee-be03-0ff961fd7ce0', '2ec56f93-a77c-4156-87e8-edb2dc9de2fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27016638', 'ctest-vn4-39299252'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27016638', 'ctest-policy1-38329788']], 'subnet_ipam': [{'subnet_cidr': '118.42.71.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a63:eca2:7347:ae88:54c4:ce01::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-08-24T02:28:01.367759', 'updated_at': '2026-08-24T02:28:01.800390'}} 2026-08-24 02:28:02,350 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-24 02:28:02,681 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-24 02:28:02,715 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d70d8749-785a-46c7-989f-4684afa6070a 2026-08-24 02:28:02,728 - DEBUG - Requesting: http://10.0.0.38:8082/project/fad075b6-bbb3-42d7-be25-d9c659fbd69b 2026-08-24 02:28:02,807 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8a0242cd-53f1-4bfd-ae2f-40c1ddf56486 2026-08-24 02:28:02,821 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8a0242cd-53f1-4bfd-ae2f-40c1ddf56486 2026-08-24 02:28:02,832 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/449d8d9e-6cdc-4c16-bca7-cc17fa98f2e7 2026-08-24 02:28:02,839 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/449d8d9e-6cdc-4c16-bca7-cc17fa98f2e7 2026-08-24 02:28:02,846 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3fda9955-5764-4fc5-b94d-93ee8f813a10 2026-08-24 02:28:02,853 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-24 02:28:02,853 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8a0242cd-53f1-4bfd-ae2f-40c1ddf56486 2026-08-24 02:28:02,863 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/449d8d9e-6cdc-4c16-bca7-cc17fa98f2e7 2026-08-24 02:28:02,879 - INFO - Verified VN network id 11 for VN 8a0242cd-53f1-4bfd-ae2f-40c1ddf56486 2026-08-24 02:28:02,879 - INFO - Verifications in API Server for VN ctest-vn4-39299252 passed 2026-08-24 02:28:02,879 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8a0242cd-53f1-4bfd-ae2f-40c1ddf56486 2026-08-24 02:28:02,892 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/449d8d9e-6cdc-4c16-bca7-cc17fa98f2e7 2026-08-24 02:28:02,901 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/449d8d9e-6cdc-4c16-bca7-cc17fa98f2e7 2026-08-24 02:28:02,911 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3fda9955-5764-4fc5-b94d-93ee8f813a10 2026-08-24 02:28:02,926 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27016638:ctest-vn4-39299252', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-27016638', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9944584376831527933', 'uuid-lslong': '12551321887901574278'}, 'enable': 'true', 'created': '2026-08-24T02:28:01', 'last-modified': '2026-08-24T02:28:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.785407'} 2026-08-24 02:28:02,933 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-24 02:28:02,933 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-39299252 passed 2026-08-24 02:28:02,933 - DEBUG - ====Verifying policy data for ctest-vn4-39299252 in API_Server ====== 2026-08-24 02:28:02,933 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-24 02:28:02,943 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d70d8749-785a-46c7-989f-4684afa6070a 2026-08-24 02:28:02,959 - DEBUG - Requesting: http://10.0.0.38:8082/project/fad075b6-bbb3-42d7-be25-d9c659fbd69b 2026-08-24 02:28:03,038 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8a0242cd-53f1-4bfd-ae2f-40c1ddf56486 2026-08-24 02:28:03,048 - DEBUG - ==>Verifying data for policy with id: 57921fed-a2a3-49d0-ac5c-9c33fa7e2804, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27016638', 'ctest-policy1-38329788'] 2026-08-24 02:28:03,048 - INFO - VN ctest-vn4-39299252 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-24 02:28:03,048 - DEBUG - Verifying the vn in opserver 2026-08-24 02:28:03,048 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27016638:ctest-vn4-39299252 virtual network link through opserver 10.0.0.38 2026-08-24 02:28:03,049 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-08-24 02:28:03,369 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-08-24 02:28:03,430 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27016638:ctest-vn4-39299252', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27016638:ctest-vn4-39299252?flat'} 2026-08-24 02:28:03,430 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27016638:ctest-vn4-39299252 is found in opserver 2026-08-24 02:28:03,441 - DEBUG - Do not have enough data to verify VN in agent 2026-08-24 02:28:03,449 - DEBUG - VRF ids for VN ctest-vn4-39299252: {} 2026-08-24 02:28:03,449 - DEBUG - ====Verifying data for ctest-policy1-38329788 in API_Server ====== 2026-08-24 02:28:03,449 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-24 02:28:03,455 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d70d8749-785a-46c7-989f-4684afa6070a 2026-08-24 02:28:03,467 - DEBUG - Requesting: http://10.0.0.38:8082/project/fad075b6-bbb3-42d7-be25-d9c659fbd69b 2026-08-24 02:28:03,567 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/57921fed-a2a3-49d0-ac5c-9c33fa7e2804 2026-08-24 02:28:03,577 - INFO - Verified policy ctest-policy1-38329788 in API Server, Result: True 2026-08-24 02:28:03,577 - INFO - Done with setup and verification, moving onto test .. 2026-08-24 02:28:03,589 - INFO - Deleting VN ctest-vn4-39299252 2026-08-24 02:28:03,751 - DEBUG - Response for deleting network () 2026-08-24 02:28:03,751 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/449d8d9e-6cdc-4c16-bca7-cc17fa98f2e7 2026-08-24 02:28:03,757 - DEBUG - Response Code: 404 2026-08-24 02:28:03,758 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-24 02:28:03,763 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d70d8749-785a-46c7-989f-4684afa6070a 2026-08-24 02:28:03,822 - DEBUG - Requesting: http://10.0.0.38:8082/project/fad075b6-bbb3-42d7-be25-d9c659fbd69b 2026-08-24 02:28:03,906 - INFO - Validated that VN ctest-vn4-39299252 is not found in API Server 2026-08-24 02:28:03,918 - DEBUG - VN ctest-vn4-39299252 is not present in Agent 10.0.0.38 2026-08-24 02:28:03,918 - INFO - Validated that VN ctest-vn4-39299252 is not in any agent 2026-08-24 02:28:03,936 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-39299252 info 2026-08-24 02:28:03,963 - INFO - Deleted policy ctest-policy1-38329788 2026-08-24 02:28:04,137 - DEBUG - policy ctest-policy1-38329788 is not found in API Server 2026-08-24 02:28:04,402 - DEBUG - No XMPP flaps were noticed during the test
2026-08-24 02:28:04,402 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-08-24 02:28:04,402 - INFO - -------------------------------------------------------------------------------- 2026-08-24 02:28:04,700 - DEBUG - No XMPP flaps were noticed during the test
2026-08-24 02:28:04,700 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-08-24 02:28:04,701 - INFO - -------------------------------------------------------------------------------- 2026-08-24 02:28:05,427 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-27016638, ID : fad075b6-bbb3-42d7-be25-d9c659fbd69b