2026-08-15 15:33:36,217 - INFO - Domain Default found not creating 2026-08-15 15:33:36,393 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87885009 not found, creating it 2026-08-15 15:33:36,900 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87885009, ID : ecefa3c8-1ec1-4ec8-b569-9464ffe988c2 2026-08-15 15:33:38,545 - INFO - ================================================================================ 2026-08-15 15:33:38,545 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-15 15:33:38,813 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-08-15 15:33:38,814 - INFO - Initial checks done. Running the testcase now 2026-08-15 15:33:38,814 - INFO - 2026-08-15 15:33:38,814 - INFO - ================================================================================ 2026-08-15 15:33:38,814 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-15 15:33:38,814 - 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-15 15:33:39,117 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-08-15 15:33:39,117 - INFO - Initial checks done. Running the testcase now 2026-08-15 15:33:39,117 - INFO - 2026-08-15 15:33:39,563 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87885009:ctest-vn4-49849852, 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-87885009:ctest-vn4-49849852, 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-87885009:ctest-vn4-49849852, 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-87885009:ctest-vn4-49849852, 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-15 15:33:40,123 - DEBUG - Response for create_network : {'network': {'id': '666e197e-d351-4502-8b4a-1aa85faea82c', 'name': 'ctest-vn4-49849852', 'tenant_id': 'ecefa3c81ec14ec8b5699464ffe988c2', 'project_id': 'ecefa3c81ec14ec8b5699464ffe988c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87885009', 'ctest-vn4-49849852'], 'port_security_enabled': True, 'description': ''}} 2026-08-15 15:33:40,308 - DEBUG - Response for create_subnet : {'subnet': {'id': '727578f6-bc2d-40e5-95e7-19f561fe225f', 'name': '', 'tenant_id': 'ecefa3c81ec14ec8b5699464ffe988c2', 'network_id': '666e197e-d351-4502-8b4a-1aa85faea82c', 'ip_version': 4, 'cidr': '61.247.184.64/26', 'allocation_pools': [{'start': '61.247.184.66', 'end': '61.247.184.126'}], 'gateway_ip': '61.247.184.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.247.184.66', 'tags': [], 'project_id': 'ecefa3c81ec14ec8b5699464ffe988c2'}} 2026-08-15 15:33:40,491 - DEBUG - Response for create_subnet : {'subnet': {'id': '337511bc-8d17-4041-81a3-1bcc2bbb98e4', 'name': '', 'tenant_id': 'ecefa3c81ec14ec8b5699464ffe988c2', 'network_id': '666e197e-d351-4502-8b4a-1aa85faea82c', 'ip_version': 6, 'cidr': '3e4e:a197:d486:c324:f84f:fafe::/96', 'allocation_pools': [{'start': '3e4e:a197:d486:c324:f84f:fafe:0:2', 'end': '3e4e:a197:d486:c324:f84f:fafe:ffff:fffe'}], 'gateway_ip': '3e4e:a197:d486:c324:f84f:fafe:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e4e:a197:d486:c324:f84f:fafe:0:2', 'tags': [], 'project_id': 'ecefa3c81ec14ec8b5699464ffe988c2'}} 2026-08-15 15:33:40,511 - INFO - Created VN ctest-vn4-49849852 2026-08-15 15:33:40,564 - DEBUG - VN ctest-vn4-49849852 UUID is 666e197e-d351-4502-8b4a-1aa85faea82c 2026-08-15 15:33:40,775 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '666e197e-d351-4502-8b4a-1aa85faea82c', 'name': 'ctest-vn4-49849852', 'tenant_id': 'ecefa3c81ec14ec8b5699464ffe988c2', 'project_id': 'ecefa3c81ec14ec8b5699464ffe988c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['727578f6-bc2d-40e5-95e7-19f561fe225f', '337511bc-8d17-4041-81a3-1bcc2bbb98e4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87885009', 'ctest-vn4-49849852'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87885009', 'ctest-policy1-54851315']], 'subnet_ipam': [{'subnet_cidr': '61.247.184.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e4e:a197:d486:c324:f84f:fafe::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-15 15:33:40,944 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-15 15:33:41,308 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-15 15:33:41,341 - DEBUG - Requesting: http://10.0.0.50:8082/domain/318fd4e0-44ea-4e3a-bd43-4da9dbf7f5a4 2026-08-15 15:33:41,357 - DEBUG - Requesting: http://10.0.0.50:8082/project/ecefa3c8-1ec1-4ec8-b569-9464ffe988c2 2026-08-15 15:33:41,443 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/666e197e-d351-4502-8b4a-1aa85faea82c 2026-08-15 15:33:41,456 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/666e197e-d351-4502-8b4a-1aa85faea82c 2026-08-15 15:33:41,466 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9aa5879c-af0e-4496-9a9f-03c60634f052 2026-08-15 15:33:41,474 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9aa5879c-af0e-4496-9a9f-03c60634f052 2026-08-15 15:33:41,482 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e84ed248-b72e-4770-9a06-199e7d9bf7bb 2026-08-15 15:33:41,491 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-15 15:33:41,491 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/666e197e-d351-4502-8b4a-1aa85faea82c 2026-08-15 15:33:41,503 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9aa5879c-af0e-4496-9a9f-03c60634f052 2026-08-15 15:33:41,520 - INFO - Verified VN network id 12 for VN 666e197e-d351-4502-8b4a-1aa85faea82c 2026-08-15 15:33:41,520 - INFO - Verifications in API Server for VN ctest-vn4-49849852 passed 2026-08-15 15:33:41,520 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/666e197e-d351-4502-8b4a-1aa85faea82c 2026-08-15 15:33:41,533 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9aa5879c-af0e-4496-9a9f-03c60634f052 2026-08-15 15:33:41,541 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9aa5879c-af0e-4496-9a9f-03c60634f052 2026-08-15 15:33:41,550 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e84ed248-b72e-4770-9a06-199e7d9bf7bb 2026-08-15 15:33:41,563 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87885009:ctest-vn4-49849852', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87885009', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7380864871808713986', 'uuid-lslong': '10036864030010681388'}, 'enable': 'true', 'created': '2026-08-15T15:33:40', 'last-modified': '2026-08-15T15:33:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.828681'} 2026-08-15 15:33:41,573 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-15 15:33:41,573 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-49849852 passed 2026-08-15 15:33:41,573 - DEBUG - ====Verifying policy data for ctest-vn4-49849852 in API_Server ====== 2026-08-15 15:33:41,574 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-15 15:33:41,580 - DEBUG - Requesting: http://10.0.0.50:8082/domain/318fd4e0-44ea-4e3a-bd43-4da9dbf7f5a4 2026-08-15 15:33:41,591 - DEBUG - Requesting: http://10.0.0.50:8082/project/ecefa3c8-1ec1-4ec8-b569-9464ffe988c2 2026-08-15 15:33:41,674 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/666e197e-d351-4502-8b4a-1aa85faea82c 2026-08-15 15:33:41,685 - DEBUG - ==>Verifying data for policy with id: b81e2277-c7d6-4e1d-b57e-90fb674922a1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87885009', 'ctest-policy1-54851315'] 2026-08-15 15:33:41,685 - INFO - VN ctest-vn4-49849852 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-15 15:33:41,685 - DEBUG - Verifying the vn in opserver 2026-08-15 15:33:41,685 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87885009:ctest-vn4-49849852 virtual network link through opserver 10.0.0.50 2026-08-15 15:33:41,685 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-15 15:33:42,048 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-15 15:33:42,110 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87885009:ctest-vn4-49849852', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87885009:ctest-vn4-49849852?flat'} 2026-08-15 15:33:42,110 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87885009:ctest-vn4-49849852 is found in opserver 2026-08-15 15:33:42,125 - DEBUG - Do not have enough data to verify VN in agent 2026-08-15 15:33:42,131 - DEBUG - VRF ids for VN ctest-vn4-49849852: {} 2026-08-15 15:33:42,131 - DEBUG - ====Verifying data for ctest-policy1-54851315 in API_Server ====== 2026-08-15 15:33:42,132 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-15 15:33:42,138 - DEBUG - Requesting: http://10.0.0.50:8082/domain/318fd4e0-44ea-4e3a-bd43-4da9dbf7f5a4 2026-08-15 15:33:42,150 - DEBUG - Requesting: http://10.0.0.50:8082/project/ecefa3c8-1ec1-4ec8-b569-9464ffe988c2 2026-08-15 15:33:42,228 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/b81e2277-c7d6-4e1d-b57e-90fb674922a1 2026-08-15 15:33:42,239 - INFO - Verified policy ctest-policy1-54851315 in API Server, Result: True 2026-08-15 15:33:42,239 - INFO - Done with setup and verification, moving onto test .. 2026-08-15 15:33:42,248 - INFO - Deleting VN ctest-vn4-49849852 2026-08-15 15:33:42,389 - DEBUG - Response for deleting network () 2026-08-15 15:33:42,389 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9aa5879c-af0e-4496-9a9f-03c60634f052 2026-08-15 15:33:42,394 - DEBUG - Response Code: 404 2026-08-15 15:33:42,394 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-15 15:33:42,400 - DEBUG - Requesting: http://10.0.0.50:8082/domain/318fd4e0-44ea-4e3a-bd43-4da9dbf7f5a4 2026-08-15 15:33:42,453 - DEBUG - Requesting: http://10.0.0.50:8082/project/ecefa3c8-1ec1-4ec8-b569-9464ffe988c2 2026-08-15 15:33:42,530 - INFO - Validated that VN ctest-vn4-49849852 is not found in API Server 2026-08-15 15:33:42,543 - DEBUG - VN ctest-vn4-49849852 is not present in Agent 10.0.0.50 2026-08-15 15:33:42,543 - INFO - Validated that VN ctest-vn4-49849852 is not in any agent 2026-08-15 15:33:42,559 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-49849852 info 2026-08-15 15:33:42,590 - INFO - Deleted policy ctest-policy1-54851315 2026-08-15 15:33:42,752 - DEBUG - policy ctest-policy1-54851315 is not found in API Server 2026-08-15 15:33:43,012 - DEBUG - No XMPP flaps were noticed during the test