2026-01-15 12:09:33,387 - INFO - Domain Default found not creating 2026-01-15 12:09:33,567 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-18944486 not found, creating it 2026-01-15 12:09:34,034 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-18944486, ID : 56d57c1a-23b5-40b0-b80d-f78a77cfd34d 2026-01-15 12:09:35,542 - INFO - ================================================================================ 2026-01-15 12:09:35,542 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-15 12:09:35,805 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-01-15 12:09:35,805 - INFO - Initial checks done. Running the testcase now 2026-01-15 12:09:35,805 - INFO - 2026-01-15 12:09:35,805 - INFO - ================================================================================ 2026-01-15 12:09:35,805 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-15 12:09:35,805 - 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-15 12:09:36,115 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-01-15 12:09:36,115 - INFO - Initial checks done. Running the testcase now 2026-01-15 12:09:36,115 - INFO - 2026-01-15 12:09:36,527 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18944486:ctest-vn4-84794417, 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-18944486:ctest-vn4-84794417, 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-18944486:ctest-vn4-84794417, 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-18944486:ctest-vn4-84794417, 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-15 12:09:37,037 - DEBUG - Response for create_network : {'network': {'id': 'c95a5c55-5c02-4453-a047-901cbcd13ea6', 'name': 'ctest-vn4-84794417', 'tenant_id': '56d57c1a23b540b0b80df78a77cfd34d', 'project_id': '56d57c1a23b540b0b80df78a77cfd34d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18944486', 'ctest-vn4-84794417'], 'port_security_enabled': True, 'description': ''}} 2026-01-15 12:09:37,205 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec0fc25e-2954-4fa5-9592-377eb6ccb203', 'name': '', 'tenant_id': '56d57c1a23b540b0b80df78a77cfd34d', 'network_id': 'c95a5c55-5c02-4453-a047-901cbcd13ea6', 'ip_version': 4, 'cidr': '218.132.41.192/26', 'allocation_pools': [{'start': '218.132.41.194', 'end': '218.132.41.254'}], 'gateway_ip': '218.132.41.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.132.41.194', 'tags': [], 'project_id': '56d57c1a23b540b0b80df78a77cfd34d'}} 2026-01-15 12:09:37,403 - DEBUG - Response for create_subnet : {'subnet': {'id': '75b18464-3b81-45da-b6cb-934a0b002a1e', 'name': '', 'tenant_id': '56d57c1a23b540b0b80df78a77cfd34d', 'network_id': 'c95a5c55-5c02-4453-a047-901cbcd13ea6', 'ip_version': 6, 'cidr': '35b3:c33c:bc94:dd74:d052:61a6::/96', 'allocation_pools': [{'start': '35b3:c33c:bc94:dd74:d052:61a6:0:2', 'end': '35b3:c33c:bc94:dd74:d052:61a6:ffff:fffe'}], 'gateway_ip': '35b3:c33c:bc94:dd74:d052:61a6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35b3:c33c:bc94:dd74:d052:61a6:0:2', 'tags': [], 'project_id': '56d57c1a23b540b0b80df78a77cfd34d'}} 2026-01-15 12:09:37,423 - INFO - Created VN ctest-vn4-84794417 2026-01-15 12:09:37,475 - DEBUG - VN ctest-vn4-84794417 UUID is c95a5c55-5c02-4453-a047-901cbcd13ea6 2026-01-15 12:09:37,668 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c95a5c55-5c02-4453-a047-901cbcd13ea6', 'name': 'ctest-vn4-84794417', 'tenant_id': '56d57c1a23b540b0b80df78a77cfd34d', 'project_id': '56d57c1a23b540b0b80df78a77cfd34d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ec0fc25e-2954-4fa5-9592-377eb6ccb203', '75b18464-3b81-45da-b6cb-934a0b002a1e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18944486', 'ctest-vn4-84794417'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18944486', 'ctest-policy1-81679333']], 'subnet_ipam': [{'subnet_cidr': '218.132.41.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '35b3:c33c:bc94:dd74:d052:61a6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-15 12:09:37,826 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-15 12:09:38,124 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-15 12:09:38,156 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ea5c5216-b47f-4fb7-b77d-37287e745205 2026-01-15 12:09:38,168 - DEBUG - Requesting: http://10.0.0.50:8082/project/56d57c1a-23b5-40b0-b80d-f78a77cfd34d 2026-01-15 12:09:38,241 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c95a5c55-5c02-4453-a047-901cbcd13ea6 2026-01-15 12:09:38,252 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c95a5c55-5c02-4453-a047-901cbcd13ea6 2026-01-15 12:09:38,260 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/43619dc5-630e-4fc2-9e3d-8762a6dfb043 2026-01-15 12:09:38,267 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/43619dc5-630e-4fc2-9e3d-8762a6dfb043 2026-01-15 12:09:38,273 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/050562fc-3a6d-44d8-ade4-addd9ace25bf 2026-01-15 12:09:38,279 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-15 12:09:38,279 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c95a5c55-5c02-4453-a047-901cbcd13ea6 2026-01-15 12:09:38,288 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/43619dc5-630e-4fc2-9e3d-8762a6dfb043 2026-01-15 12:09:38,303 - INFO - Verified VN network id 11 for VN c95a5c55-5c02-4453-a047-901cbcd13ea6 2026-01-15 12:09:38,303 - INFO - Verifications in API Server for VN ctest-vn4-84794417 passed 2026-01-15 12:09:38,303 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c95a5c55-5c02-4453-a047-901cbcd13ea6 2026-01-15 12:09:38,312 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/43619dc5-630e-4fc2-9e3d-8762a6dfb043 2026-01-15 12:09:38,320 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/43619dc5-630e-4fc2-9e3d-8762a6dfb043 2026-01-15 12:09:38,327 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/050562fc-3a6d-44d8-ade4-addd9ace25bf 2026-01-15 12:09:38,341 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18944486:ctest-vn4-84794417', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-18944486', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14509010671213102163', 'uuid-lslong': '11549358222516240038'}, 'enable': 'true', 'created': '2026-01-15T12:09:37', 'last-modified': '2026-01-15T12:09:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.698863'} 2026-01-15 12:09:38,349 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-15 12:09:38,349 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-84794417 passed 2026-01-15 12:09:38,349 - DEBUG - ====Verifying policy data for ctest-vn4-84794417 in API_Server ====== 2026-01-15 12:09:38,349 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-15 12:09:38,355 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ea5c5216-b47f-4fb7-b77d-37287e745205 2026-01-15 12:09:38,366 - DEBUG - Requesting: http://10.0.0.50:8082/project/56d57c1a-23b5-40b0-b80d-f78a77cfd34d 2026-01-15 12:09:38,439 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c95a5c55-5c02-4453-a047-901cbcd13ea6 2026-01-15 12:09:38,448 - DEBUG - ==>Verifying data for policy with id: 1d81a5fc-4f17-43ef-b624-75250b6b85c8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18944486', 'ctest-policy1-81679333'] 2026-01-15 12:09:38,449 - INFO - VN ctest-vn4-84794417 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-15 12:09:38,449 - DEBUG - Verifying the vn in opserver 2026-01-15 12:09:38,449 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18944486:ctest-vn4-84794417 virtual network link through opserver 10.0.0.50 2026-01-15 12:09:38,449 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-15 12:09:38,745 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-15 12:09:38,806 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18944486:ctest-vn4-84794417', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18944486:ctest-vn4-84794417?flat'} 2026-01-15 12:09:38,806 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18944486:ctest-vn4-84794417 is found in opserver 2026-01-15 12:09:38,816 - DEBUG - Do not have enough data to verify VN in agent 2026-01-15 12:09:38,822 - DEBUG - VRF ids for VN ctest-vn4-84794417: {} 2026-01-15 12:09:38,822 - DEBUG - ====Verifying data for ctest-policy1-81679333 in API_Server ====== 2026-01-15 12:09:38,822 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-15 12:09:38,828 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ea5c5216-b47f-4fb7-b77d-37287e745205 2026-01-15 12:09:38,839 - DEBUG - Requesting: http://10.0.0.50:8082/project/56d57c1a-23b5-40b0-b80d-f78a77cfd34d 2026-01-15 12:09:38,910 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/1d81a5fc-4f17-43ef-b624-75250b6b85c8 2026-01-15 12:09:38,921 - INFO - Verified policy ctest-policy1-81679333 in API Server, Result: True 2026-01-15 12:09:38,921 - INFO - Done with setup and verification, moving onto test .. 2026-01-15 12:09:38,930 - INFO - Deleting VN ctest-vn4-84794417 2026-01-15 12:09:39,040 - DEBUG - Response for deleting network () 2026-01-15 12:09:39,041 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/43619dc5-630e-4fc2-9e3d-8762a6dfb043 2026-01-15 12:09:39,046 - DEBUG - Response Code: 404 2026-01-15 12:09:39,046 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-15 12:09:39,052 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ea5c5216-b47f-4fb7-b77d-37287e745205 2026-01-15 12:09:39,103 - DEBUG - Requesting: http://10.0.0.50:8082/project/56d57c1a-23b5-40b0-b80d-f78a77cfd34d 2026-01-15 12:09:39,179 - INFO - Validated that VN ctest-vn4-84794417 is not found in API Server 2026-01-15 12:09:39,188 - DEBUG - VN ctest-vn4-84794417 is not present in Agent 10.0.0.50 2026-01-15 12:09:39,188 - INFO - Validated that VN ctest-vn4-84794417 is not in any agent 2026-01-15 12:09:39,202 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-84794417 info 2026-01-15 12:09:39,227 - INFO - Deleted policy ctest-policy1-81679333 2026-01-15 12:09:39,390 - DEBUG - policy ctest-policy1-81679333 is not found in API Server 2026-01-15 12:09:39,647 - DEBUG - No XMPP flaps were noticed during the test