2026-01-07 04:35:34,269 - INFO - Domain Default found not creating 2026-01-07 04:35:34,442 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11856158 not found, creating it 2026-01-07 04:35:34,900 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11856158, ID : a4088e39-ac85-403e-9de0-b59c1177c0d4 2026-01-07 04:35:36,325 - INFO - ================================================================================ 2026-01-07 04:35:36,325 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-07 04:35:36,578 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-01-07 04:35:36,578 - INFO - Initial checks done. Running the testcase now 2026-01-07 04:35:36,578 - INFO - 2026-01-07 04:35:36,578 - INFO - ================================================================================ 2026-01-07 04:35:36,579 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-07 04:35:36,579 - 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-07 04:35:36,866 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-01-07 04:35:36,866 - INFO - Initial checks done. Running the testcase now 2026-01-07 04:35:36,866 - INFO - 2026-01-07 04:35:37,226 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11856158:ctest-vn4-45810679, 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-11856158:ctest-vn4-45810679, 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-11856158:ctest-vn4-45810679, 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-11856158:ctest-vn4-45810679, 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-07 04:35:37,735 - DEBUG - Response for create_network : {'network': {'id': 'a2d13661-28e8-4c25-9b65-b86bab8b9faf', 'name': 'ctest-vn4-45810679', 'tenant_id': 'a4088e39ac85403e9de0b59c1177c0d4', 'project_id': 'a4088e39ac85403e9de0b59c1177c0d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11856158', 'ctest-vn4-45810679'], 'port_security_enabled': True, 'description': ''}} 2026-01-07 04:35:37,933 - DEBUG - Response for create_subnet : {'subnet': {'id': '31afd4ce-8fe8-42f5-8652-15b5bed75c86', 'name': '', 'tenant_id': 'a4088e39ac85403e9de0b59c1177c0d4', 'network_id': 'a2d13661-28e8-4c25-9b65-b86bab8b9faf', 'ip_version': 4, 'cidr': '126.85.102.0/26', 'allocation_pools': [{'start': '126.85.102.2', 'end': '126.85.102.62'}], 'gateway_ip': '126.85.102.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.85.102.2', 'tags': [], 'project_id': 'a4088e39ac85403e9de0b59c1177c0d4'}} 2026-01-07 04:35:38,120 - DEBUG - Response for create_subnet : {'subnet': {'id': '30553184-78d2-4364-bfac-88ddcf217f73', 'name': '', 'tenant_id': 'a4088e39ac85403e9de0b59c1177c0d4', 'network_id': 'a2d13661-28e8-4c25-9b65-b86bab8b9faf', 'ip_version': 6, 'cidr': '2c8c:53dc:a59e:ae0a:14e0:fc58::/96', 'allocation_pools': [{'start': '2c8c:53dc:a59e:ae0a:14e0:fc58:0:2', 'end': '2c8c:53dc:a59e:ae0a:14e0:fc58:ffff:fffe'}], 'gateway_ip': '2c8c:53dc:a59e:ae0a:14e0:fc58:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c8c:53dc:a59e:ae0a:14e0:fc58:0:2', 'tags': [], 'project_id': 'a4088e39ac85403e9de0b59c1177c0d4'}} 2026-01-07 04:35:38,140 - INFO - Created VN ctest-vn4-45810679 2026-01-07 04:35:38,190 - DEBUG - VN ctest-vn4-45810679 UUID is a2d13661-28e8-4c25-9b65-b86bab8b9faf 2026-01-07 04:35:38,374 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a2d13661-28e8-4c25-9b65-b86bab8b9faf', 'name': 'ctest-vn4-45810679', 'tenant_id': 'a4088e39ac85403e9de0b59c1177c0d4', 'project_id': 'a4088e39ac85403e9de0b59c1177c0d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['31afd4ce-8fe8-42f5-8652-15b5bed75c86', '30553184-78d2-4364-bfac-88ddcf217f73'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11856158', 'ctest-vn4-45810679'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11856158', 'ctest-policy1-61994444']], 'subnet_ipam': [{'subnet_cidr': '126.85.102.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c8c:53dc:a59e:ae0a:14e0:fc58::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-07 04:35:38,542 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-07 04:35:38,837 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-07 04:35:38,868 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8c221dd2-61f9-4cf2-834e-b22e88dba6b6 2026-01-07 04:35:38,879 - DEBUG - Requesting: http://10.0.0.50:8082/project/a4088e39-ac85-403e-9de0-b59c1177c0d4 2026-01-07 04:35:38,946 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a2d13661-28e8-4c25-9b65-b86bab8b9faf 2026-01-07 04:35:38,957 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a2d13661-28e8-4c25-9b65-b86bab8b9faf 2026-01-07 04:35:38,964 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/586399fa-e638-4402-a325-ede03b04bdae 2026-01-07 04:35:38,970 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/586399fa-e638-4402-a325-ede03b04bdae 2026-01-07 04:35:38,975 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6960cb2a-7559-47a1-b0f6-f805aad8066f 2026-01-07 04:35:38,980 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-07 04:35:38,980 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a2d13661-28e8-4c25-9b65-b86bab8b9faf 2026-01-07 04:35:38,987 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/586399fa-e638-4402-a325-ede03b04bdae 2026-01-07 04:35:38,998 - INFO - Verified VN network id 12 for VN a2d13661-28e8-4c25-9b65-b86bab8b9faf 2026-01-07 04:35:38,998 - INFO - Verifications in API Server for VN ctest-vn4-45810679 passed 2026-01-07 04:35:38,998 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a2d13661-28e8-4c25-9b65-b86bab8b9faf 2026-01-07 04:35:39,006 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/586399fa-e638-4402-a325-ede03b04bdae 2026-01-07 04:35:39,011 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/586399fa-e638-4402-a325-ede03b04bdae 2026-01-07 04:35:39,016 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6960cb2a-7559-47a1-b0f6-f805aad8066f 2026-01-07 04:35:39,026 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11856158:ctest-vn4-45810679', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11856158', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11732218295202892837', 'uuid-lslong': '11197558821105672111'}, 'enable': 'true', 'created': '2026-01-07T04:35:37', 'last-modified': '2026-01-07T04:35:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.672424'} 2026-01-07 04:35:39,031 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-07 04:35:39,031 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-45810679 passed 2026-01-07 04:35:39,031 - DEBUG - ====Verifying policy data for ctest-vn4-45810679 in API_Server ====== 2026-01-07 04:35:39,031 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-07 04:35:39,036 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8c221dd2-61f9-4cf2-834e-b22e88dba6b6 2026-01-07 04:35:39,047 - DEBUG - Requesting: http://10.0.0.50:8082/project/a4088e39-ac85-403e-9de0-b59c1177c0d4 2026-01-07 04:35:39,115 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a2d13661-28e8-4c25-9b65-b86bab8b9faf 2026-01-07 04:35:39,123 - DEBUG - ==>Verifying data for policy with id: 0cfeee41-d39d-41f4-80f2-e860dcc9a76d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11856158', 'ctest-policy1-61994444'] 2026-01-07 04:35:39,124 - INFO - VN ctest-vn4-45810679 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-07 04:35:39,124 - DEBUG - Verifying the vn in opserver 2026-01-07 04:35:39,124 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11856158:ctest-vn4-45810679 virtual network link through opserver 10.0.0.50 2026-01-07 04:35:39,124 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-07 04:35:39,423 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-07 04:35:39,519 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11856158:ctest-vn4-45810679', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11856158:ctest-vn4-45810679?flat'} 2026-01-07 04:35:39,519 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11856158:ctest-vn4-45810679 is found in opserver 2026-01-07 04:35:39,528 - DEBUG - Do not have enough data to verify VN in agent 2026-01-07 04:35:39,532 - DEBUG - VRF ids for VN ctest-vn4-45810679: {} 2026-01-07 04:35:39,532 - DEBUG - ====Verifying data for ctest-policy1-61994444 in API_Server ====== 2026-01-07 04:35:39,532 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-07 04:35:39,537 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8c221dd2-61f9-4cf2-834e-b22e88dba6b6 2026-01-07 04:35:39,546 - DEBUG - Requesting: http://10.0.0.50:8082/project/a4088e39-ac85-403e-9de0-b59c1177c0d4 2026-01-07 04:35:39,616 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/0cfeee41-d39d-41f4-80f2-e860dcc9a76d 2026-01-07 04:35:39,626 - INFO - Verified policy ctest-policy1-61994444 in API Server, Result: True 2026-01-07 04:35:39,626 - INFO - Done with setup and verification, moving onto test .. 2026-01-07 04:35:39,633 - INFO - Deleting VN ctest-vn4-45810679 2026-01-07 04:35:39,756 - DEBUG - Response for deleting network () 2026-01-07 04:35:39,756 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/586399fa-e638-4402-a325-ede03b04bdae 2026-01-07 04:35:39,761 - DEBUG - Response Code: 404 2026-01-07 04:35:39,762 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-07 04:35:39,767 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8c221dd2-61f9-4cf2-834e-b22e88dba6b6 2026-01-07 04:35:39,819 - DEBUG - Requesting: http://10.0.0.50:8082/project/a4088e39-ac85-403e-9de0-b59c1177c0d4 2026-01-07 04:35:39,889 - INFO - Validated that VN ctest-vn4-45810679 is not found in API Server 2026-01-07 04:35:39,900 - DEBUG - VN ctest-vn4-45810679 is not present in Agent 10.0.0.50 2026-01-07 04:35:39,900 - INFO - Validated that VN ctest-vn4-45810679 is not in any agent 2026-01-07 04:35:39,913 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-45810679 info 2026-01-07 04:35:39,934 - INFO - Deleted policy ctest-policy1-61994444 2026-01-07 04:35:40,097 - DEBUG - policy ctest-policy1-61994444 is not found in API Server 2026-01-07 04:35:40,350 - DEBUG - No XMPP flaps were noticed during the test