2026-09-19 12:06:03,294 - INFO - Domain Default found not creating 2026-09-19 12:06:03,485 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-40055641 not found, creating it 2026-09-19 12:06:04,008 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-40055641, ID : 21181d5c-38a8-45fb-805f-e4438a95a966 2026-09-19 12:06:05,631 - INFO - ================================================================================ 2026-09-19 12:06:05,631 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-19 12:06:05,894 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-09-19 12:06:05,895 - INFO - Initial checks done. Running the testcase now 2026-09-19 12:06:05,895 - INFO - 2026-09-19 12:06:05,895 - INFO - ================================================================================ 2026-09-19 12:06:05,895 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-19 12:06:05,895 - 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-09-19 12:06:06,194 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-09-19 12:06:06,194 - INFO - Initial checks done. Running the testcase now 2026-09-19 12:06:06,195 - INFO - 2026-09-19 12:06:06,580 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40055641:ctest-vn4-85849256, 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-40055641:ctest-vn4-85849256, 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-40055641:ctest-vn4-85849256, 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-40055641:ctest-vn4-85849256, 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-09-19 12:06:07,125 - DEBUG - Response for create_network : {'network': {'id': '5b573222-e5a4-471d-b9b1-d7762cb983b1', 'name': 'ctest-vn4-85849256', 'tenant_id': '21181d5c38a845fb805fe4438a95a966', 'project_id': '21181d5c38a845fb805fe4438a95a966', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40055641', 'ctest-vn4-85849256'], 'port_security_enabled': True, 'description': ''}} 2026-09-19 12:06:07,314 - DEBUG - Response for create_subnet : {'subnet': {'id': '292556a3-513d-42a4-8835-55aab42ad0f1', 'name': '', 'tenant_id': '21181d5c38a845fb805fe4438a95a966', 'network_id': '5b573222-e5a4-471d-b9b1-d7762cb983b1', 'ip_version': 4, 'cidr': '209.3.136.192/26', 'allocation_pools': [{'start': '209.3.136.194', 'end': '209.3.136.254'}], 'gateway_ip': '209.3.136.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.3.136.194', 'tags': [], 'project_id': '21181d5c38a845fb805fe4438a95a966'}} 2026-09-19 12:06:07,468 - DEBUG - Response for create_subnet : {'subnet': {'id': '787f0cc2-3898-4ce9-9411-1b8e81d09722', 'name': '', 'tenant_id': '21181d5c38a845fb805fe4438a95a966', 'network_id': '5b573222-e5a4-471d-b9b1-d7762cb983b1', 'ip_version': 6, 'cidr': '2127:15c8:d0ca:dec6:c782:a351::/96', 'allocation_pools': [{'start': '2127:15c8:d0ca:dec6:c782:a351:0:2', 'end': '2127:15c8:d0ca:dec6:c782:a351:ffff:fffe'}], 'gateway_ip': '2127:15c8:d0ca:dec6:c782:a351:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2127:15c8:d0ca:dec6:c782:a351:0:2', 'tags': [], 'project_id': '21181d5c38a845fb805fe4438a95a966'}} 2026-09-19 12:06:07,492 - INFO - Created VN ctest-vn4-85849256 2026-09-19 12:06:07,544 - DEBUG - VN ctest-vn4-85849256 UUID is 5b573222-e5a4-471d-b9b1-d7762cb983b1 2026-09-19 12:06:07,747 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b573222-e5a4-471d-b9b1-d7762cb983b1', 'name': 'ctest-vn4-85849256', 'tenant_id': '21181d5c38a845fb805fe4438a95a966', 'project_id': '21181d5c38a845fb805fe4438a95a966', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['292556a3-513d-42a4-8835-55aab42ad0f1', '787f0cc2-3898-4ce9-9411-1b8e81d09722'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40055641', 'ctest-vn4-85849256'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40055641', 'ctest-policy1-43731159']], 'subnet_ipam': [{'subnet_cidr': '209.3.136.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2127:15c8:d0ca:dec6:c782:a351::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-19 12:06:07,908 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-09-19 12:06:08,235 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-09-19 12:06:08,261 - DEBUG - Requesting: http://10.0.0.33:8082/domain/3e24c7ff-e8d2-47df-8dcd-281cacd0591b 2026-09-19 12:06:08,274 - DEBUG - Requesting: http://10.0.0.33:8082/project/21181d5c-38a8-45fb-805f-e4438a95a966 2026-09-19 12:06:08,353 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5b573222-e5a4-471d-b9b1-d7762cb983b1 2026-09-19 12:06:08,366 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5b573222-e5a4-471d-b9b1-d7762cb983b1 2026-09-19 12:06:08,375 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3d813d09-984e-426a-9853-a60a93171465 2026-09-19 12:06:08,382 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3d813d09-984e-426a-9853-a60a93171465 2026-09-19 12:06:08,391 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f9d9ef07-41e4-41e6-826a-834625dd48ba 2026-09-19 12:06:08,398 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-19 12:06:08,398 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5b573222-e5a4-471d-b9b1-d7762cb983b1 2026-09-19 12:06:08,407 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3d813d09-984e-426a-9853-a60a93171465 2026-09-19 12:06:08,422 - INFO - Verified VN network id 12 for VN 5b573222-e5a4-471d-b9b1-d7762cb983b1 2026-09-19 12:06:08,422 - INFO - Verifications in API Server for VN ctest-vn4-85849256 passed 2026-09-19 12:06:08,423 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5b573222-e5a4-471d-b9b1-d7762cb983b1 2026-09-19 12:06:08,432 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3d813d09-984e-426a-9853-a60a93171465 2026-09-19 12:06:08,439 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3d813d09-984e-426a-9853-a60a93171465 2026-09-19 12:06:08,448 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f9d9ef07-41e4-41e6-826a-834625dd48ba 2026-09-19 12:06:08,462 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40055641:ctest-vn4-85849256', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-40055641', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6581784505888294685', 'uuid-lslong': '13380712870450922417'}, 'enable': 'true', 'created': '2026-09-19T12:06:07', 'last-modified': '2026-09-19T12:06:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.750203'} 2026-09-19 12:06:08,469 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-19 12:06:08,469 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-85849256 passed 2026-09-19 12:06:08,470 - DEBUG - ====Verifying policy data for ctest-vn4-85849256 in API_Server ====== 2026-09-19 12:06:08,470 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-09-19 12:06:08,476 - DEBUG - Requesting: http://10.0.0.33:8082/domain/3e24c7ff-e8d2-47df-8dcd-281cacd0591b 2026-09-19 12:06:08,487 - DEBUG - Requesting: http://10.0.0.33:8082/project/21181d5c-38a8-45fb-805f-e4438a95a966 2026-09-19 12:06:08,561 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5b573222-e5a4-471d-b9b1-d7762cb983b1 2026-09-19 12:06:08,571 - DEBUG - ==>Verifying data for policy with id: ce8e1710-44e7-4fd4-a365-a7ed148f6e05, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40055641', 'ctest-policy1-43731159'] 2026-09-19 12:06:08,571 - INFO - VN ctest-vn4-85849256 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-19 12:06:08,571 - DEBUG - Verifying the vn in opserver 2026-09-19 12:06:08,571 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40055641:ctest-vn4-85849256 virtual network link through opserver 10.0.0.33 2026-09-19 12:06:08,571 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-09-19 12:06:08,893 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-09-19 12:06:08,947 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40055641:ctest-vn4-85849256', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40055641:ctest-vn4-85849256?flat'} 2026-09-19 12:06:08,947 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40055641:ctest-vn4-85849256 is found in opserver 2026-09-19 12:06:08,957 - DEBUG - Do not have enough data to verify VN in agent 2026-09-19 12:06:08,961 - DEBUG - VRF ids for VN ctest-vn4-85849256: {} 2026-09-19 12:06:08,962 - DEBUG - ====Verifying data for ctest-policy1-43731159 in API_Server ====== 2026-09-19 12:06:08,962 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-09-19 12:06:08,968 - DEBUG - Requesting: http://10.0.0.33:8082/domain/3e24c7ff-e8d2-47df-8dcd-281cacd0591b 2026-09-19 12:06:08,979 - DEBUG - Requesting: http://10.0.0.33:8082/project/21181d5c-38a8-45fb-805f-e4438a95a966 2026-09-19 12:06:09,052 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/ce8e1710-44e7-4fd4-a365-a7ed148f6e05 2026-09-19 12:06:09,062 - INFO - Verified policy ctest-policy1-43731159 in API Server, Result: True 2026-09-19 12:06:09,062 - INFO - Done with setup and verification, moving onto test .. 2026-09-19 12:06:09,070 - INFO - Deleting VN ctest-vn4-85849256 2026-09-19 12:06:09,202 - DEBUG - Response for deleting network () 2026-09-19 12:06:09,202 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3d813d09-984e-426a-9853-a60a93171465 2026-09-19 12:06:09,208 - DEBUG - Response Code: 404 2026-09-19 12:06:09,208 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-09-19 12:06:09,215 - DEBUG - Requesting: http://10.0.0.33:8082/domain/3e24c7ff-e8d2-47df-8dcd-281cacd0591b 2026-09-19 12:06:09,269 - DEBUG - Requesting: http://10.0.0.33:8082/project/21181d5c-38a8-45fb-805f-e4438a95a966 2026-09-19 12:06:09,367 - INFO - Validated that VN ctest-vn4-85849256 is not found in API Server 2026-09-19 12:06:09,377 - DEBUG - VN ctest-vn4-85849256 is not present in Agent 10.0.0.33 2026-09-19 12:06:09,377 - INFO - Validated that VN ctest-vn4-85849256 is not in any agent 2026-09-19 12:06:09,392 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-85849256 info 2026-09-19 12:06:09,423 - INFO - Deleted policy ctest-policy1-43731159 2026-09-19 12:06:09,591 - DEBUG - policy ctest-policy1-43731159 is not found in API Server 2026-09-19 12:06:09,846 - DEBUG - No XMPP flaps were noticed during the test
2026-09-19 12:06:09,846 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-09-19 12:06:09,846 - INFO - -------------------------------------------------------------------------------- 2026-09-19 12:06:10,148 - DEBUG - No XMPP flaps were noticed during the test
2026-09-19 12:06:10,149 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-19 12:06:10,149 - INFO - -------------------------------------------------------------------------------- 2026-09-19 12:06:10,874 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-40055641, ID : 21181d5c-38a8-45fb-805f-e4438a95a966