2026-08-21 05:17:40,435 - INFO - Domain Default found not creating 2026-08-21 05:17:40,596 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-44728793 not found, creating it 2026-08-21 05:17:41,039 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-44728793, ID : 15edff72-5c14-4d72-a7f8-5737cf4d2000 2026-08-21 05:17:42,527 - INFO - ================================================================================ 2026-08-21 05:17:42,527 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-21 05:17:42,788 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.17': '0'}} with 2026-08-21 05:17:42,788 - INFO - Initial checks done. Running the testcase now 2026-08-21 05:17:42,788 - INFO - 2026-08-21 05:17:42,788 - INFO - ================================================================================ 2026-08-21 05:17:42,788 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-21 05:17:42,788 - 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 05:17:43,075 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.17': '0'}} with 2026-08-21 05:17:43,075 - INFO - Initial checks done. Running the testcase now 2026-08-21 05:17:43,075 - INFO - 2026-08-21 05:17:43,454 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44728793:ctest-vn4-44561432, 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-44728793:ctest-vn4-44561432, 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-44728793:ctest-vn4-44561432, 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-44728793:ctest-vn4-44561432, 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 05:17:43,963 - DEBUG - Response for create_network : {'network': {'id': '41a3c67c-35d3-496d-9db2-584e5ce9236a', 'name': 'ctest-vn4-44561432', 'tenant_id': '15edff725c144d72a7f85737cf4d2000', 'project_id': '15edff725c144d72a7f85737cf4d2000', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44728793', 'ctest-vn4-44561432'], 'port_security_enabled': True, 'description': ''}} 2026-08-21 05:17:44,135 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a206ab6f-8635-41a8-87ea-e319dbe4fa00', 'name': '', 'tenant_id': '15edff725c144d72a7f85737cf4d2000', 'network_id': '41a3c67c-35d3-496d-9db2-584e5ce9236a', 'ip_version': 4, 'cidr': '48.180.190.128/26', 'allocation_pools': [{'start': '48.180.190.130', 'end': '48.180.190.190'}], 'gateway_ip': '48.180.190.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.180.190.130', 'tags': [], 'project_id': '15edff725c144d72a7f85737cf4d2000'}} 2026-08-21 05:17:44,345 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f2c2f155-d654-4b31-8976-d0cb381ad496', 'name': '', 'tenant_id': '15edff725c144d72a7f85737cf4d2000', 'network_id': '41a3c67c-35d3-496d-9db2-584e5ce9236a', 'ip_version': 6, 'cidr': '3976:67bd:23e9:1e61:bf20:a79d::/96', 'allocation_pools': [{'start': '3976:67bd:23e9:1e61:bf20:a79d:0:2', 'end': '3976:67bd:23e9:1e61:bf20:a79d:ffff:fffe'}], 'gateway_ip': '3976:67bd:23e9:1e61:bf20:a79d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3976:67bd:23e9:1e61:bf20:a79d:0:2', 'tags': [], 'project_id': '15edff725c144d72a7f85737cf4d2000'}} 2026-08-21 05:17:44,362 - INFO - Created VN ctest-vn4-44561432 2026-08-21 05:17:44,413 - DEBUG - VN ctest-vn4-44561432 UUID is 41a3c67c-35d3-496d-9db2-584e5ce9236a 2026-08-21 05:17:44,597 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '41a3c67c-35d3-496d-9db2-584e5ce9236a', 'name': 'ctest-vn4-44561432', 'tenant_id': '15edff725c144d72a7f85737cf4d2000', 'project_id': '15edff725c144d72a7f85737cf4d2000', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['a206ab6f-8635-41a8-87ea-e319dbe4fa00', 'f2c2f155-d654-4b31-8976-d0cb381ad496'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44728793', 'ctest-vn4-44561432'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44728793', 'ctest-policy1-67471081']], 'subnet_ipam': [{'subnet_cidr': '48.180.190.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3976:67bd:23e9:1e61:bf20:a79d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-21 05:17:44,766 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-21 05:17:45,087 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-21 05:17:45,112 - DEBUG - Requesting: http://10.0.0.162:8082/domain/c87fd207-f446-4aca-863e-aacf754261a9 2026-08-21 05:17:45,124 - DEBUG - Requesting: http://10.0.0.162:8082/project/15edff72-5c14-4d72-a7f8-5737cf4d2000 2026-08-21 05:17:45,200 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/41a3c67c-35d3-496d-9db2-584e5ce9236a 2026-08-21 05:17:45,212 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/41a3c67c-35d3-496d-9db2-584e5ce9236a 2026-08-21 05:17:45,223 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/96134a11-18da-4d42-8f11-1a6fea2c949c 2026-08-21 05:17:45,230 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/96134a11-18da-4d42-8f11-1a6fea2c949c 2026-08-21 05:17:45,237 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/d60e7f4b-2f9d-40b3-b1eb-d745799617a2 2026-08-21 05:17:45,243 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-21 05:17:45,243 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/41a3c67c-35d3-496d-9db2-584e5ce9236a 2026-08-21 05:17:45,252 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/96134a11-18da-4d42-8f11-1a6fea2c949c 2026-08-21 05:17:45,267 - INFO - Verified VN network id 10 for VN 41a3c67c-35d3-496d-9db2-584e5ce9236a 2026-08-21 05:17:45,267 - INFO - Verifications in API Server for VN ctest-vn4-44561432 passed 2026-08-21 05:17:45,267 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/41a3c67c-35d3-496d-9db2-584e5ce9236a 2026-08-21 05:17:45,277 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/96134a11-18da-4d42-8f11-1a6fea2c949c 2026-08-21 05:17:45,282 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/96134a11-18da-4d42-8f11-1a6fea2c949c 2026-08-21 05:17:45,288 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/d60e7f4b-2f9d-40b3-b1eb-d745799617a2 2026-08-21 05:17:45,299 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44728793:ctest-vn4-44561432', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-44728793', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4729842270450436461', 'uuid-lslong': '11363241903398658922'}, 'enable': 'true', 'created': '2026-08-21T05:17:43', 'last-modified': '2026-08-21T05:17:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.727888'} 2026-08-21 05:17:45,305 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-21 05:17:45,305 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-44561432 passed 2026-08-21 05:17:45,305 - DEBUG - ====Verifying policy data for ctest-vn4-44561432 in API_Server ====== 2026-08-21 05:17:45,305 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-21 05:17:45,310 - DEBUG - Requesting: http://10.0.0.162:8082/domain/c87fd207-f446-4aca-863e-aacf754261a9 2026-08-21 05:17:45,319 - DEBUG - Requesting: http://10.0.0.162:8082/project/15edff72-5c14-4d72-a7f8-5737cf4d2000 2026-08-21 05:17:45,396 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/41a3c67c-35d3-496d-9db2-584e5ce9236a 2026-08-21 05:17:45,406 - DEBUG - ==>Verifying data for policy with id: 01a1e4de-53be-4451-a1a4-d09d167adb2d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44728793', 'ctest-policy1-67471081'] 2026-08-21 05:17:45,406 - INFO - VN ctest-vn4-44561432 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-21 05:17:45,406 - DEBUG - Verifying the vn in opserver 2026-08-21 05:17:45,406 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44728793:ctest-vn4-44561432 virtual network link through opserver 10.0.0.162 2026-08-21 05:17:45,406 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks 2026-08-21 05:17:45,726 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks 2026-08-21 05:17:45,776 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44728793:ctest-vn4-44561432', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44728793:ctest-vn4-44561432?flat'} 2026-08-21 05:17:45,776 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44728793:ctest-vn4-44561432 is found in opserver 2026-08-21 05:17:45,787 - DEBUG - Do not have enough data to verify VN in agent 2026-08-21 05:17:45,793 - DEBUG - VRF ids for VN ctest-vn4-44561432: {} 2026-08-21 05:17:45,793 - DEBUG - ====Verifying data for ctest-policy1-67471081 in API_Server ====== 2026-08-21 05:17:45,793 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-21 05:17:45,799 - DEBUG - Requesting: http://10.0.0.162:8082/domain/c87fd207-f446-4aca-863e-aacf754261a9 2026-08-21 05:17:45,810 - DEBUG - Requesting: http://10.0.0.162:8082/project/15edff72-5c14-4d72-a7f8-5737cf4d2000 2026-08-21 05:17:45,890 - DEBUG - Requesting: http://10.0.0.162:8082/network-policy/01a1e4de-53be-4451-a1a4-d09d167adb2d 2026-08-21 05:17:45,900 - INFO - Verified policy ctest-policy1-67471081 in API Server, Result: True 2026-08-21 05:17:45,900 - INFO - Done with setup and verification, moving onto test .. 2026-08-21 05:17:45,908 - INFO - Deleting VN ctest-vn4-44561432 2026-08-21 05:17:46,042 - DEBUG - Response for deleting network () 2026-08-21 05:17:46,042 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/96134a11-18da-4d42-8f11-1a6fea2c949c 2026-08-21 05:17:46,048 - DEBUG - Response Code: 404 2026-08-21 05:17:46,048 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-21 05:17:46,054 - DEBUG - Requesting: http://10.0.0.162:8082/domain/c87fd207-f446-4aca-863e-aacf754261a9 2026-08-21 05:17:46,110 - DEBUG - Requesting: http://10.0.0.162:8082/project/15edff72-5c14-4d72-a7f8-5737cf4d2000 2026-08-21 05:17:46,190 - INFO - Validated that VN ctest-vn4-44561432 is not found in API Server 2026-08-21 05:17:46,200 - DEBUG - VN ctest-vn4-44561432 is not present in Agent 10.0.0.162 2026-08-21 05:17:46,200 - INFO - Validated that VN ctest-vn4-44561432 is not in any agent 2026-08-21 05:17:46,219 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-44561432 info 2026-08-21 05:17:46,247 - INFO - Deleted policy ctest-policy1-67471081 2026-08-21 05:17:46,413 - DEBUG - policy ctest-policy1-67471081 is not found in API Server 2026-08-21 05:17:46,667 - DEBUG - No XMPP flaps were noticed during the test
2026-08-21 05:17:46,668 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-08-21 05:17:46,668 - INFO - -------------------------------------------------------------------------------- 2026-08-21 05:17:46,964 - DEBUG - No XMPP flaps were noticed during the test
2026-08-21 05:17:46,964 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-08-21 05:17:46,964 - INFO - -------------------------------------------------------------------------------- 2026-08-21 05:17:47,706 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-44728793, ID : 15edff72-5c14-4d72-a7f8-5737cf4d2000