2026-06-18 16:44:43,475 - INFO - Domain Default found not creating 2026-06-18 16:44:43,596 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-44476328 not found, creating it 2026-06-18 16:44:44,047 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-44476328, ID : 0c3ade34-40c5-44fc-b6af-fdfe6ba80770 2026-06-18 16:44:45,438 - INFO - ================================================================================ 2026-06-18 16:44:45,438 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 16:44:45,698 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.192': '0'}} with 2026-06-18 16:44:45,698 - INFO - Initial checks done. Running the testcase now 2026-06-18 16:44:45,698 - INFO - 2026-06-18 16:44:45,698 - INFO - ================================================================================ 2026-06-18 16:44:45,698 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 16:44:45,698 - 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-06-18 16:44:45,986 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.192': '0'}} with 2026-06-18 16:44:45,986 - INFO - Initial checks done. Running the testcase now 2026-06-18 16:44:45,986 - INFO - 2026-06-18 16:44:46,350 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44476328:ctest-vn4-77209052, 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-44476328:ctest-vn4-77209052, 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-44476328:ctest-vn4-77209052, 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-44476328:ctest-vn4-77209052, 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-06-18 16:44:46,816 - DEBUG - Response for create_network : {'network': {'id': '34978827-26e5-47cf-a708-c883c66a93f6', 'name': 'ctest-vn4-77209052', 'tenant_id': '0c3ade3440c544fcb6affdfe6ba80770', 'project_id': '0c3ade3440c544fcb6affdfe6ba80770', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44476328', 'ctest-vn4-77209052'], 'port_security_enabled': True, 'description': ''}} 2026-06-18 16:44:47,023 - DEBUG - Response for create_subnet : {'subnet': {'id': '4b456bbf-9fb6-4511-9907-6e2c5fb30c5d', 'name': '', 'tenant_id': '0c3ade3440c544fcb6affdfe6ba80770', 'network_id': '34978827-26e5-47cf-a708-c883c66a93f6', 'ip_version': 4, 'cidr': '16.222.255.192/26', 'allocation_pools': [{'start': '16.222.255.194', 'end': '16.222.255.254'}], 'gateway_ip': '16.222.255.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.222.255.194', 'tags': [], 'project_id': '0c3ade3440c544fcb6affdfe6ba80770'}} 2026-06-18 16:44:47,175 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd3435c27-fd8b-4168-8465-69bf77f8aa1d', 'name': '', 'tenant_id': '0c3ade3440c544fcb6affdfe6ba80770', 'network_id': '34978827-26e5-47cf-a708-c883c66a93f6', 'ip_version': 6, 'cidr': '2a2e:4012:8088:cfd5:e249:13eb::/96', 'allocation_pools': [{'start': '2a2e:4012:8088:cfd5:e249:13eb:0:2', 'end': '2a2e:4012:8088:cfd5:e249:13eb:ffff:fffe'}], 'gateway_ip': '2a2e:4012:8088:cfd5:e249:13eb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a2e:4012:8088:cfd5:e249:13eb:0:2', 'tags': [], 'project_id': '0c3ade3440c544fcb6affdfe6ba80770'}} 2026-06-18 16:44:47,195 - INFO - Created VN ctest-vn4-77209052 2026-06-18 16:44:47,245 - DEBUG - VN ctest-vn4-77209052 UUID is 34978827-26e5-47cf-a708-c883c66a93f6 2026-06-18 16:44:47,409 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '34978827-26e5-47cf-a708-c883c66a93f6', 'name': 'ctest-vn4-77209052', 'tenant_id': '0c3ade3440c544fcb6affdfe6ba80770', 'project_id': '0c3ade3440c544fcb6affdfe6ba80770', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4b456bbf-9fb6-4511-9907-6e2c5fb30c5d', 'd3435c27-fd8b-4168-8465-69bf77f8aa1d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44476328', 'ctest-vn4-77209052'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44476328', 'ctest-policy1-86504475']], 'subnet_ipam': [{'subnet_cidr': '16.222.255.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a2e:4012:8088:cfd5:e249:13eb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-18 16:44:47,569 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-06-18 16:44:47,883 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-06-18 16:44:47,906 - DEBUG - Requesting: http://10.0.0.242:8082/domain/6a77f5cb-1ccc-47c4-a451-b5fc06178afe 2026-06-18 16:44:47,916 - DEBUG - Requesting: http://10.0.0.242:8082/project/0c3ade34-40c5-44fc-b6af-fdfe6ba80770 2026-06-18 16:44:47,983 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/34978827-26e5-47cf-a708-c883c66a93f6 2026-06-18 16:44:47,993 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/34978827-26e5-47cf-a708-c883c66a93f6 2026-06-18 16:44:48,001 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/27240f0a-815c-4fac-963d-08c78da9a474 2026-06-18 16:44:48,007 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/27240f0a-815c-4fac-963d-08c78da9a474 2026-06-18 16:44:48,012 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/c7e0275a-1560-4b1a-9a92-732ece64210d 2026-06-18 16:44:48,017 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 16:44:48,017 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/34978827-26e5-47cf-a708-c883c66a93f6 2026-06-18 16:44:48,024 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/27240f0a-815c-4fac-963d-08c78da9a474 2026-06-18 16:44:48,035 - INFO - Verified VN network id 11 for VN 34978827-26e5-47cf-a708-c883c66a93f6 2026-06-18 16:44:48,035 - INFO - Verifications in API Server for VN ctest-vn4-77209052 passed 2026-06-18 16:44:48,035 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/34978827-26e5-47cf-a708-c883c66a93f6 2026-06-18 16:44:48,042 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/27240f0a-815c-4fac-963d-08c78da9a474 2026-06-18 16:44:48,048 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/27240f0a-815c-4fac-963d-08c78da9a474 2026-06-18 16:44:48,053 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/c7e0275a-1560-4b1a-9a92-732ece64210d 2026-06-18 16:44:48,062 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44476328:ctest-vn4-77209052', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-44476328', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3789647313193224143', 'uuid-lslong': '12036090472442794998'}, 'enable': 'true', 'created': '2026-06-18T16:44:46', 'last-modified': '2026-06-18T16:44:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.677533'} 2026-06-18 16:44:48,067 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 16:44:48,067 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-77209052 passed 2026-06-18 16:44:48,067 - DEBUG - ====Verifying policy data for ctest-vn4-77209052 in API_Server ====== 2026-06-18 16:44:48,067 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-06-18 16:44:48,072 - DEBUG - Requesting: http://10.0.0.242:8082/domain/6a77f5cb-1ccc-47c4-a451-b5fc06178afe 2026-06-18 16:44:48,081 - DEBUG - Requesting: http://10.0.0.242:8082/project/0c3ade34-40c5-44fc-b6af-fdfe6ba80770 2026-06-18 16:44:48,152 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/34978827-26e5-47cf-a708-c883c66a93f6 2026-06-18 16:44:48,161 - DEBUG - ==>Verifying data for policy with id: 02e7c931-cd8d-463d-954b-8ad323085abb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44476328', 'ctest-policy1-86504475'] 2026-06-18 16:44:48,161 - INFO - VN ctest-vn4-77209052 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-18 16:44:48,161 - DEBUG - Verifying the vn in opserver 2026-06-18 16:44:48,161 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44476328:ctest-vn4-77209052 virtual network link through opserver 10.0.0.242 2026-06-18 16:44:48,161 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-06-18 16:44:48,472 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-06-18 16:44:48,514 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44476328:ctest-vn4-77209052', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44476328:ctest-vn4-77209052?flat'} 2026-06-18 16:44:48,514 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44476328:ctest-vn4-77209052 is found in opserver 2026-06-18 16:44:48,522 - DEBUG - Do not have enough data to verify VN in agent 2026-06-18 16:44:48,525 - DEBUG - VRF ids for VN ctest-vn4-77209052: {} 2026-06-18 16:44:48,526 - DEBUG - ====Verifying data for ctest-policy1-86504475 in API_Server ====== 2026-06-18 16:44:48,526 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-06-18 16:44:48,530 - DEBUG - Requesting: http://10.0.0.242:8082/domain/6a77f5cb-1ccc-47c4-a451-b5fc06178afe 2026-06-18 16:44:48,538 - DEBUG - Requesting: http://10.0.0.242:8082/project/0c3ade34-40c5-44fc-b6af-fdfe6ba80770 2026-06-18 16:44:48,603 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/02e7c931-cd8d-463d-954b-8ad323085abb 2026-06-18 16:44:48,611 - INFO - Verified policy ctest-policy1-86504475 in API Server, Result: True 2026-06-18 16:44:48,611 - INFO - Done with setup and verification, moving onto test .. 2026-06-18 16:44:48,616 - INFO - Deleting VN ctest-vn4-77209052 2026-06-18 16:44:48,707 - DEBUG - Response for deleting network () 2026-06-18 16:44:48,707 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/27240f0a-815c-4fac-963d-08c78da9a474 2026-06-18 16:44:48,711 - DEBUG - Response Code: 404 2026-06-18 16:44:48,711 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-06-18 16:44:48,715 - DEBUG - Requesting: http://10.0.0.242:8082/domain/6a77f5cb-1ccc-47c4-a451-b5fc06178afe 2026-06-18 16:44:48,766 - DEBUG - Requesting: http://10.0.0.242:8082/project/0c3ade34-40c5-44fc-b6af-fdfe6ba80770 2026-06-18 16:44:48,840 - INFO - Validated that VN ctest-vn4-77209052 is not found in API Server 2026-06-18 16:44:48,849 - DEBUG - VN ctest-vn4-77209052 is not present in Agent 10.0.0.242 2026-06-18 16:44:48,849 - INFO - Validated that VN ctest-vn4-77209052 is not in any agent 2026-06-18 16:44:48,860 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-77209052 info 2026-06-18 16:44:48,880 - INFO - Deleted policy ctest-policy1-86504475 2026-06-18 16:44:49,037 - DEBUG - policy ctest-policy1-86504475 is not found in API Server 2026-06-18 16:44:49,293 - DEBUG - No XMPP flaps were noticed during the test
2026-06-18 16:44:49,293 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-18 16:44:49,293 - INFO - -------------------------------------------------------------------------------- 2026-06-18 16:44:49,582 - DEBUG - No XMPP flaps were noticed during the test
2026-06-18 16:44:49,582 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-18 16:44:49,582 - INFO - -------------------------------------------------------------------------------- 2026-06-18 16:44:50,257 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-44476328, ID : 0c3ade34-40c5-44fc-b6af-fdfe6ba80770