2026-08-21 13:53:25,317 - INFO - Domain Default found not creating 2026-08-21 13:53:25,490 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-69660104 not found, creating it 2026-08-21 13:53:25,991 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-69660104, ID : 3ab5f9d4-40c4-4517-b703-063470f70c72 2026-08-21 13:53:27,768 - INFO - ================================================================================ 2026-08-21 13:53:27,768 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-21 13:53:28,032 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-08-21 13:53:28,032 - INFO - Initial checks done. Running the testcase now 2026-08-21 13:53:28,032 - INFO - 2026-08-21 13:53:28,032 - INFO - ================================================================================ 2026-08-21 13:53:28,032 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-21 13:53:28,032 - 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-21 13:53:28,340 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-08-21 13:53:28,341 - INFO - Initial checks done. Running the testcase now 2026-08-21 13:53:28,341 - INFO - 2026-08-21 13:53:28,789 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69660104:ctest-vn4-63500203, 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-69660104:ctest-vn4-63500203, 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-69660104:ctest-vn4-63500203, 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-69660104:ctest-vn4-63500203, 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-21 13:53:29,345 - DEBUG - Response for create_network : {'network': {'id': '9b812cca-ef17-4c75-86e9-da0b4be1531e', 'name': 'ctest-vn4-63500203', 'tenant_id': '3ab5f9d440c44517b703063470f70c72', 'project_id': '3ab5f9d440c44517b703063470f70c72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69660104', 'ctest-vn4-63500203'], 'port_security_enabled': True, 'description': ''}} 2026-08-21 13:53:29,506 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f09fabb4-1108-497c-bb7a-2596487db08a', 'name': '', 'tenant_id': '3ab5f9d440c44517b703063470f70c72', 'network_id': '9b812cca-ef17-4c75-86e9-da0b4be1531e', 'ip_version': 4, 'cidr': '147.74.56.64/26', 'allocation_pools': [{'start': '147.74.56.66', 'end': '147.74.56.126'}], 'gateway_ip': '147.74.56.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.74.56.66', 'tags': [], 'project_id': '3ab5f9d440c44517b703063470f70c72'}} 2026-08-21 13:53:29,700 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ce0a141-cb27-481b-94a3-9f11837be80e', 'name': '', 'tenant_id': '3ab5f9d440c44517b703063470f70c72', 'network_id': '9b812cca-ef17-4c75-86e9-da0b4be1531e', 'ip_version': 6, 'cidr': '243d:afc2:1636:ea6d:19d7:b92a::/96', 'allocation_pools': [{'start': '243d:afc2:1636:ea6d:19d7:b92a:0:2', 'end': '243d:afc2:1636:ea6d:19d7:b92a:ffff:fffe'}], 'gateway_ip': '243d:afc2:1636:ea6d:19d7:b92a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '243d:afc2:1636:ea6d:19d7:b92a:0:2', 'tags': [], 'project_id': '3ab5f9d440c44517b703063470f70c72'}} 2026-08-21 13:53:29,722 - INFO - Created VN ctest-vn4-63500203 2026-08-21 13:53:29,776 - DEBUG - VN ctest-vn4-63500203 UUID is 9b812cca-ef17-4c75-86e9-da0b4be1531e 2026-08-21 13:53:30,004 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b812cca-ef17-4c75-86e9-da0b4be1531e', 'name': 'ctest-vn4-63500203', 'tenant_id': '3ab5f9d440c44517b703063470f70c72', 'project_id': '3ab5f9d440c44517b703063470f70c72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f09fabb4-1108-497c-bb7a-2596487db08a', '7ce0a141-cb27-481b-94a3-9f11837be80e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69660104', 'ctest-vn4-63500203'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69660104', 'ctest-policy1-38271656']], 'subnet_ipam': [{'subnet_cidr': '147.74.56.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '243d:afc2:1636:ea6d:19d7:b92a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-21 13:53:30,168 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-21 13:53:30,547 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-21 13:53:30,582 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2dea21fc-9331-4d6b-970c-48c9e7e38c62 2026-08-21 13:53:30,598 - DEBUG - Requesting: http://10.0.0.50:8082/project/3ab5f9d4-40c4-4517-b703-063470f70c72 2026-08-21 13:53:30,685 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b812cca-ef17-4c75-86e9-da0b4be1531e 2026-08-21 13:53:30,700 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b812cca-ef17-4c75-86e9-da0b4be1531e 2026-08-21 13:53:30,714 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bf7bb5c7-0875-48ae-ba8a-faad8278b5d5 2026-08-21 13:53:30,722 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bf7bb5c7-0875-48ae-ba8a-faad8278b5d5 2026-08-21 13:53:30,731 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2e1b28d6-6656-42a3-9620-45b2e95e3a16 2026-08-21 13:53:30,741 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-21 13:53:30,741 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b812cca-ef17-4c75-86e9-da0b4be1531e 2026-08-21 13:53:30,758 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bf7bb5c7-0875-48ae-ba8a-faad8278b5d5 2026-08-21 13:53:30,778 - INFO - Verified VN network id 11 for VN 9b812cca-ef17-4c75-86e9-da0b4be1531e 2026-08-21 13:53:30,778 - INFO - Verifications in API Server for VN ctest-vn4-63500203 passed 2026-08-21 13:53:30,778 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b812cca-ef17-4c75-86e9-da0b4be1531e 2026-08-21 13:53:30,794 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bf7bb5c7-0875-48ae-ba8a-faad8278b5d5 2026-08-21 13:53:30,805 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bf7bb5c7-0875-48ae-ba8a-faad8278b5d5 2026-08-21 13:53:30,813 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2e1b28d6-6656-42a3-9620-45b2e95e3a16 2026-08-21 13:53:30,828 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69660104:ctest-vn4-63500203', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-69660104', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11205286597980802165', 'uuid-lslong': '9721541012708479774'}, 'enable': 'true', 'created': '2026-08-21T13:53:29', 'last-modified': '2026-08-21T13:53:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.861737'} 2026-08-21 13:53:30,836 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-21 13:53:30,836 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-63500203 passed 2026-08-21 13:53:30,836 - DEBUG - ====Verifying policy data for ctest-vn4-63500203 in API_Server ====== 2026-08-21 13:53:30,836 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-21 13:53:30,844 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2dea21fc-9331-4d6b-970c-48c9e7e38c62 2026-08-21 13:53:30,860 - DEBUG - Requesting: http://10.0.0.50:8082/project/3ab5f9d4-40c4-4517-b703-063470f70c72 2026-08-21 13:53:30,942 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b812cca-ef17-4c75-86e9-da0b4be1531e 2026-08-21 13:53:30,956 - DEBUG - ==>Verifying data for policy with id: a0ae3e10-1fce-4089-81df-cd205e5f5b83, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69660104', 'ctest-policy1-38271656'] 2026-08-21 13:53:30,956 - INFO - VN ctest-vn4-63500203 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-21 13:53:30,956 - DEBUG - Verifying the vn in opserver 2026-08-21 13:53:30,956 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69660104:ctest-vn4-63500203 virtual network link through opserver 10.0.0.50 2026-08-21 13:53:30,957 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-21 13:53:31,325 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-21 13:53:31,384 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69660104:ctest-vn4-63500203', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69660104:ctest-vn4-63500203?flat'} 2026-08-21 13:53:31,384 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69660104:ctest-vn4-63500203 is found in opserver 2026-08-21 13:53:31,398 - DEBUG - Do not have enough data to verify VN in agent 2026-08-21 13:53:31,404 - DEBUG - VRF ids for VN ctest-vn4-63500203: {} 2026-08-21 13:53:31,404 - DEBUG - ====Verifying data for ctest-policy1-38271656 in API_Server ====== 2026-08-21 13:53:31,404 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-21 13:53:31,412 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2dea21fc-9331-4d6b-970c-48c9e7e38c62 2026-08-21 13:53:31,426 - DEBUG - Requesting: http://10.0.0.50:8082/project/3ab5f9d4-40c4-4517-b703-063470f70c72 2026-08-21 13:53:31,506 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/a0ae3e10-1fce-4089-81df-cd205e5f5b83 2026-08-21 13:53:31,516 - INFO - Verified policy ctest-policy1-38271656 in API Server, Result: True 2026-08-21 13:53:31,516 - INFO - Done with setup and verification, moving onto test .. 2026-08-21 13:53:31,525 - INFO - Deleting VN ctest-vn4-63500203 2026-08-21 13:53:31,690 - DEBUG - Response for deleting network () 2026-08-21 13:53:31,690 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bf7bb5c7-0875-48ae-ba8a-faad8278b5d5 2026-08-21 13:53:31,697 - DEBUG - Response Code: 404 2026-08-21 13:53:31,698 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-21 13:53:31,708 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2dea21fc-9331-4d6b-970c-48c9e7e38c62 2026-08-21 13:53:31,775 - DEBUG - Requesting: http://10.0.0.50:8082/project/3ab5f9d4-40c4-4517-b703-063470f70c72 2026-08-21 13:53:31,860 - INFO - Validated that VN ctest-vn4-63500203 is not found in API Server 2026-08-21 13:53:31,871 - DEBUG - VN ctest-vn4-63500203 is not present in Agent 10.0.0.50 2026-08-21 13:53:31,871 - INFO - Validated that VN ctest-vn4-63500203 is not in any agent 2026-08-21 13:53:31,889 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-63500203 info 2026-08-21 13:53:31,915 - INFO - Deleted policy ctest-policy1-38271656 2026-08-21 13:53:32,096 - DEBUG - policy ctest-policy1-38271656 is not found in API Server 2026-08-21 13:53:32,365 - DEBUG - No XMPP flaps were noticed during the test