2026-02-15 20:53:13,688 - INFO - Domain Default found not creating 2026-02-15 20:53:13,861 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-02947266 not found, creating it 2026-02-15 20:53:14,310 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-02947266, ID : 229de4fd-01b9-44e1-8d1c-ce6350fd00ca 2026-02-15 20:53:15,765 - INFO - ================================================================================ 2026-02-15 20:53:15,766 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-15 20:53:16,025 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-02-15 20:53:16,025 - INFO - Initial checks done. Running the testcase now 2026-02-15 20:53:16,025 - INFO - 2026-02-15 20:53:16,025 - INFO - ================================================================================ 2026-02-15 20:53:16,025 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-15 20:53:16,025 - 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-02-15 20:53:16,311 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-02-15 20:53:16,311 - INFO - Initial checks done. Running the testcase now 2026-02-15 20:53:16,311 - INFO - 2026-02-15 20:53:16,661 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02947266:ctest-vn4-26034747, 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-02947266:ctest-vn4-26034747, 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-02947266:ctest-vn4-26034747, 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-02947266:ctest-vn4-26034747, 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-02-15 20:53:17,156 - DEBUG - Response for create_network : {'network': {'id': 'cc83da1a-deaf-4112-b793-9dccb1ba6048', 'name': 'ctest-vn4-26034747', 'tenant_id': '229de4fd01b944e18d1cce6350fd00ca', 'project_id': '229de4fd01b944e18d1cce6350fd00ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02947266', 'ctest-vn4-26034747'], 'port_security_enabled': True, 'description': ''}} 2026-02-15 20:53:17,347 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aada4291-bbb8-4bf6-9f6f-8e991be1db96', 'name': '', 'tenant_id': '229de4fd01b944e18d1cce6350fd00ca', 'network_id': 'cc83da1a-deaf-4112-b793-9dccb1ba6048', 'ip_version': 4, 'cidr': '160.90.189.64/26', 'allocation_pools': [{'start': '160.90.189.66', 'end': '160.90.189.126'}], 'gateway_ip': '160.90.189.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.90.189.66', 'tags': [], 'project_id': '229de4fd01b944e18d1cce6350fd00ca'}} 2026-02-15 20:53:17,501 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e6e59f6-0381-4083-bf4f-11e02ccf07d3', 'name': '', 'tenant_id': '229de4fd01b944e18d1cce6350fd00ca', 'network_id': 'cc83da1a-deaf-4112-b793-9dccb1ba6048', 'ip_version': 6, 'cidr': '2198:f8cf:fe15:9c48:b581:26f::/96', 'allocation_pools': [{'start': '2198:f8cf:fe15:9c48:b581:26f:0:2', 'end': '2198:f8cf:fe15:9c48:b581:26f:ffff:fffe'}], 'gateway_ip': '2198:f8cf:fe15:9c48:b581:26f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2198:f8cf:fe15:9c48:b581:26f:0:2', 'tags': [], 'project_id': '229de4fd01b944e18d1cce6350fd00ca'}} 2026-02-15 20:53:17,520 - INFO - Created VN ctest-vn4-26034747 2026-02-15 20:53:17,571 - DEBUG - VN ctest-vn4-26034747 UUID is cc83da1a-deaf-4112-b793-9dccb1ba6048 2026-02-15 20:53:17,764 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cc83da1a-deaf-4112-b793-9dccb1ba6048', 'name': 'ctest-vn4-26034747', 'tenant_id': '229de4fd01b944e18d1cce6350fd00ca', 'project_id': '229de4fd01b944e18d1cce6350fd00ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aada4291-bbb8-4bf6-9f6f-8e991be1db96', '2e6e59f6-0381-4083-bf4f-11e02ccf07d3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02947266', 'ctest-vn4-26034747'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02947266', 'ctest-policy1-04142180']], 'subnet_ipam': [{'subnet_cidr': '160.90.189.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2198:f8cf:fe15:9c48:b581:26f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-15 20:53:17,923 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-15 20:53:18,215 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-15 20:53:18,244 - DEBUG - Requesting: http://10.0.0.33:8082/domain/58860bbf-d2d8-4d6b-907f-03167523a009 2026-02-15 20:53:18,254 - DEBUG - Requesting: http://10.0.0.33:8082/project/229de4fd-01b9-44e1-8d1c-ce6350fd00ca 2026-02-15 20:53:18,324 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cc83da1a-deaf-4112-b793-9dccb1ba6048 2026-02-15 20:53:18,334 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cc83da1a-deaf-4112-b793-9dccb1ba6048 2026-02-15 20:53:18,342 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0b8fc4d0-bed0-4334-9682-1b64f9aae737 2026-02-15 20:53:18,349 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0b8fc4d0-bed0-4334-9682-1b64f9aae737 2026-02-15 20:53:18,355 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/889f8087-3cf6-4d91-9148-9da45798f03b 2026-02-15 20:53:18,360 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-15 20:53:18,360 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cc83da1a-deaf-4112-b793-9dccb1ba6048 2026-02-15 20:53:18,371 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0b8fc4d0-bed0-4334-9682-1b64f9aae737 2026-02-15 20:53:18,383 - INFO - Verified VN network id 12 for VN cc83da1a-deaf-4112-b793-9dccb1ba6048 2026-02-15 20:53:18,384 - INFO - Verifications in API Server for VN ctest-vn4-26034747 passed 2026-02-15 20:53:18,384 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cc83da1a-deaf-4112-b793-9dccb1ba6048 2026-02-15 20:53:18,392 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0b8fc4d0-bed0-4334-9682-1b64f9aae737 2026-02-15 20:53:18,398 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0b8fc4d0-bed0-4334-9682-1b64f9aae737 2026-02-15 20:53:18,404 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/889f8087-3cf6-4d91-9148-9da45798f03b 2026-02-15 20:53:18,414 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02947266:ctest-vn4-26034747', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-02947266', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14736862214626427154', 'uuid-lslong': '13228090032997949512'}, 'enable': 'true', 'created': '2026-02-15T20:53:17', 'last-modified': '2026-02-15T20:53:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.674867'} 2026-02-15 20:53:18,419 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-15 20:53:18,421 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-26034747 passed 2026-02-15 20:53:18,421 - DEBUG - ====Verifying policy data for ctest-vn4-26034747 in API_Server ====== 2026-02-15 20:53:18,421 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-15 20:53:18,426 - DEBUG - Requesting: http://10.0.0.33:8082/domain/58860bbf-d2d8-4d6b-907f-03167523a009 2026-02-15 20:53:18,436 - DEBUG - Requesting: http://10.0.0.33:8082/project/229de4fd-01b9-44e1-8d1c-ce6350fd00ca 2026-02-15 20:53:18,506 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cc83da1a-deaf-4112-b793-9dccb1ba6048 2026-02-15 20:53:18,516 - DEBUG - ==>Verifying data for policy with id: 176622ac-2585-4fe7-b411-7e34ebceba35, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02947266', 'ctest-policy1-04142180'] 2026-02-15 20:53:18,516 - INFO - VN ctest-vn4-26034747 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-15 20:53:18,516 - DEBUG - Verifying the vn in opserver 2026-02-15 20:53:18,516 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02947266:ctest-vn4-26034747 virtual network link through opserver 10.0.0.33 2026-02-15 20:53:18,516 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-15 20:53:18,826 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-15 20:53:18,900 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02947266:ctest-vn4-26034747', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02947266:ctest-vn4-26034747?flat'} 2026-02-15 20:53:18,900 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02947266:ctest-vn4-26034747 is found in opserver 2026-02-15 20:53:18,910 - DEBUG - Do not have enough data to verify VN in agent 2026-02-15 20:53:18,914 - DEBUG - VRF ids for VN ctest-vn4-26034747: {} 2026-02-15 20:53:18,915 - DEBUG - ====Verifying data for ctest-policy1-04142180 in API_Server ====== 2026-02-15 20:53:18,915 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-15 20:53:18,920 - DEBUG - Requesting: http://10.0.0.33:8082/domain/58860bbf-d2d8-4d6b-907f-03167523a009 2026-02-15 20:53:18,931 - DEBUG - Requesting: http://10.0.0.33:8082/project/229de4fd-01b9-44e1-8d1c-ce6350fd00ca 2026-02-15 20:53:19,000 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/176622ac-2585-4fe7-b411-7e34ebceba35 2026-02-15 20:53:19,013 - INFO - Verified policy ctest-policy1-04142180 in API Server, Result: True 2026-02-15 20:53:19,013 - INFO - Done with setup and verification, moving onto test .. 2026-02-15 20:53:19,021 - INFO - Deleting VN ctest-vn4-26034747 2026-02-15 20:53:19,131 - DEBUG - Response for deleting network () 2026-02-15 20:53:19,131 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0b8fc4d0-bed0-4334-9682-1b64f9aae737 2026-02-15 20:53:19,135 - DEBUG - Response Code: 404 2026-02-15 20:53:19,136 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-15 20:53:19,141 - DEBUG - Requesting: http://10.0.0.33:8082/domain/58860bbf-d2d8-4d6b-907f-03167523a009 2026-02-15 20:53:19,195 - DEBUG - Requesting: http://10.0.0.33:8082/project/229de4fd-01b9-44e1-8d1c-ce6350fd00ca 2026-02-15 20:53:19,267 - INFO - Validated that VN ctest-vn4-26034747 is not found in API Server 2026-02-15 20:53:19,277 - DEBUG - VN ctest-vn4-26034747 is not present in Agent 10.0.0.33 2026-02-15 20:53:19,277 - INFO - Validated that VN ctest-vn4-26034747 is not in any agent 2026-02-15 20:53:19,290 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-26034747 info 2026-02-15 20:53:19,311 - INFO - Deleted policy ctest-policy1-04142180 2026-02-15 20:53:19,475 - DEBUG - policy ctest-policy1-04142180 is not found in API Server 2026-02-15 20:53:19,728 - DEBUG - No XMPP flaps were noticed during the test
2026-02-15 20:53:19,728 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-02-15 20:53:19,728 - INFO - -------------------------------------------------------------------------------- 2026-02-15 20:53:20,020 - DEBUG - No XMPP flaps were noticed during the test
2026-02-15 20:53:20,020 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-15 20:53:20,020 - INFO - -------------------------------------------------------------------------------- 2026-02-15 20:53:20,687 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-02947266, ID : 229de4fd-01b9-44e1-8d1c-ce6350fd00ca