2026-05-18 02:10:31,592 - INFO - Domain Default found not creating 2026-05-18 02:10:31,768 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36633240 not found, creating it 2026-05-18 02:10:32,231 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36633240, ID : d040c52e-3f0b-4b2d-bdec-95a493f22fd8 2026-05-18 02:10:33,672 - INFO - ================================================================================ 2026-05-18 02:10:33,673 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-18 02:10:33,926 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-05-18 02:10:33,926 - INFO - Initial checks done. Running the testcase now 2026-05-18 02:10:33,926 - INFO - 2026-05-18 02:10:33,926 - INFO - ================================================================================ 2026-05-18 02:10:33,927 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-18 02:10:33,927 - 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-05-18 02:10:34,222 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-05-18 02:10:34,222 - INFO - Initial checks done. Running the testcase now 2026-05-18 02:10:34,222 - INFO - 2026-05-18 02:10:34,616 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36633240:ctest-vn4-51704963, 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-36633240:ctest-vn4-51704963, 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-36633240:ctest-vn4-51704963, 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-36633240:ctest-vn4-51704963, 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-05-18 02:10:35,144 - DEBUG - Response for create_network : {'network': {'id': 'adfa7f75-2581-4b44-883e-4866e47973a2', 'name': 'ctest-vn4-51704963', 'tenant_id': 'd040c52e3f0b4b2dbdec95a493f22fd8', 'project_id': 'd040c52e3f0b4b2dbdec95a493f22fd8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36633240', 'ctest-vn4-51704963'], 'port_security_enabled': True, 'description': ''}} 2026-05-18 02:10:35,374 - DEBUG - Response for create_subnet : {'subnet': {'id': '28d64729-6496-412a-865c-39a4c93e701e', 'name': '', 'tenant_id': 'd040c52e3f0b4b2dbdec95a493f22fd8', 'network_id': 'adfa7f75-2581-4b44-883e-4866e47973a2', 'ip_version': 4, 'cidr': '24.219.32.128/26', 'allocation_pools': [{'start': '24.219.32.130', 'end': '24.219.32.190'}], 'gateway_ip': '24.219.32.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.219.32.130', 'tags': [], 'project_id': 'd040c52e3f0b4b2dbdec95a493f22fd8'}} 2026-05-18 02:10:35,541 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bdd4bea5-13f5-4679-8014-9877a3500fa9', 'name': '', 'tenant_id': 'd040c52e3f0b4b2dbdec95a493f22fd8', 'network_id': 'adfa7f75-2581-4b44-883e-4866e47973a2', 'ip_version': 6, 'cidr': '329e:110e:664b:6a11:26d0:3c8f::/96', 'allocation_pools': [{'start': '329e:110e:664b:6a11:26d0:3c8f:0:2', 'end': '329e:110e:664b:6a11:26d0:3c8f:ffff:fffe'}], 'gateway_ip': '329e:110e:664b:6a11:26d0:3c8f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '329e:110e:664b:6a11:26d0:3c8f:0:2', 'tags': [], 'project_id': 'd040c52e3f0b4b2dbdec95a493f22fd8'}} 2026-05-18 02:10:35,561 - INFO - Created VN ctest-vn4-51704963 2026-05-18 02:10:35,612 - DEBUG - VN ctest-vn4-51704963 UUID is adfa7f75-2581-4b44-883e-4866e47973a2 2026-05-18 02:10:35,816 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'adfa7f75-2581-4b44-883e-4866e47973a2', 'name': 'ctest-vn4-51704963', 'tenant_id': 'd040c52e3f0b4b2dbdec95a493f22fd8', 'project_id': 'd040c52e3f0b4b2dbdec95a493f22fd8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['28d64729-6496-412a-865c-39a4c93e701e', 'bdd4bea5-13f5-4679-8014-9877a3500fa9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36633240', 'ctest-vn4-51704963'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36633240', 'ctest-policy1-77393427']], 'subnet_ipam': [{'subnet_cidr': '24.219.32.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '329e:110e:664b:6a11:26d0:3c8f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-18 02:10:35,976 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-18 02:10:36,269 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-18 02:10:36,298 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c6b576f6-af14-4c48-8fd3-6881dc342ea0 2026-05-18 02:10:36,310 - DEBUG - Requesting: http://10.0.0.38:8082/project/d040c52e-3f0b-4b2d-bdec-95a493f22fd8 2026-05-18 02:10:36,379 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/adfa7f75-2581-4b44-883e-4866e47973a2 2026-05-18 02:10:36,390 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/adfa7f75-2581-4b44-883e-4866e47973a2 2026-05-18 02:10:36,399 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d3964a40-b4f3-49ea-856a-8b11b264b9cb 2026-05-18 02:10:36,407 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d3964a40-b4f3-49ea-856a-8b11b264b9cb 2026-05-18 02:10:36,413 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5ff38ee6-9f71-48cf-8b2f-149f87167e58 2026-05-18 02:10:36,419 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-18 02:10:36,419 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/adfa7f75-2581-4b44-883e-4866e47973a2 2026-05-18 02:10:36,428 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d3964a40-b4f3-49ea-856a-8b11b264b9cb 2026-05-18 02:10:36,441 - INFO - Verified VN network id 12 for VN adfa7f75-2581-4b44-883e-4866e47973a2 2026-05-18 02:10:36,441 - INFO - Verifications in API Server for VN ctest-vn4-51704963 passed 2026-05-18 02:10:36,441 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/adfa7f75-2581-4b44-883e-4866e47973a2 2026-05-18 02:10:36,449 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d3964a40-b4f3-49ea-856a-8b11b264b9cb 2026-05-18 02:10:36,455 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d3964a40-b4f3-49ea-856a-8b11b264b9cb 2026-05-18 02:10:36,460 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5ff38ee6-9f71-48cf-8b2f-149f87167e58 2026-05-18 02:10:36,470 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36633240:ctest-vn4-51704963', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36633240', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12536472653856328516', 'uuid-lslong': '9817363844471288738'}, 'enable': 'true', 'created': '2026-05-18T02:10:35', 'last-modified': '2026-05-18T02:10:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.680163'} 2026-05-18 02:10:36,475 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-18 02:10:36,479 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-51704963 passed 2026-05-18 02:10:36,480 - DEBUG - ====Verifying policy data for ctest-vn4-51704963 in API_Server ====== 2026-05-18 02:10:36,480 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-18 02:10:36,485 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c6b576f6-af14-4c48-8fd3-6881dc342ea0 2026-05-18 02:10:36,494 - DEBUG - Requesting: http://10.0.0.38:8082/project/d040c52e-3f0b-4b2d-bdec-95a493f22fd8 2026-05-18 02:10:36,564 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/adfa7f75-2581-4b44-883e-4866e47973a2 2026-05-18 02:10:36,573 - DEBUG - ==>Verifying data for policy with id: d91bdcc8-839b-46f2-b87f-fa0767647fd6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36633240', 'ctest-policy1-77393427'] 2026-05-18 02:10:36,573 - INFO - VN ctest-vn4-51704963 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-18 02:10:36,573 - DEBUG - Verifying the vn in opserver 2026-05-18 02:10:36,573 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36633240:ctest-vn4-51704963 virtual network link through opserver 10.0.0.38 2026-05-18 02:10:36,573 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-05-18 02:10:36,866 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-05-18 02:10:36,945 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36633240:ctest-vn4-51704963', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36633240:ctest-vn4-51704963?flat'} 2026-05-18 02:10:36,945 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36633240:ctest-vn4-51704963 is found in opserver 2026-05-18 02:10:36,954 - DEBUG - Do not have enough data to verify VN in agent 2026-05-18 02:10:36,958 - DEBUG - VRF ids for VN ctest-vn4-51704963: {} 2026-05-18 02:10:36,958 - DEBUG - ====Verifying data for ctest-policy1-77393427 in API_Server ====== 2026-05-18 02:10:36,958 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-18 02:10:36,964 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c6b576f6-af14-4c48-8fd3-6881dc342ea0 2026-05-18 02:10:36,974 - DEBUG - Requesting: http://10.0.0.38:8082/project/d040c52e-3f0b-4b2d-bdec-95a493f22fd8 2026-05-18 02:10:37,042 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/d91bdcc8-839b-46f2-b87f-fa0767647fd6 2026-05-18 02:10:37,052 - INFO - Verified policy ctest-policy1-77393427 in API Server, Result: True 2026-05-18 02:10:37,053 - INFO - Done with setup and verification, moving onto test .. 2026-05-18 02:10:37,061 - INFO - Deleting VN ctest-vn4-51704963 2026-05-18 02:10:37,169 - DEBUG - Response for deleting network () 2026-05-18 02:10:37,170 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d3964a40-b4f3-49ea-856a-8b11b264b9cb 2026-05-18 02:10:37,175 - DEBUG - Response Code: 404 2026-05-18 02:10:37,175 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-18 02:10:37,180 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c6b576f6-af14-4c48-8fd3-6881dc342ea0 2026-05-18 02:10:37,233 - DEBUG - Requesting: http://10.0.0.38:8082/project/d040c52e-3f0b-4b2d-bdec-95a493f22fd8 2026-05-18 02:10:37,300 - INFO - Validated that VN ctest-vn4-51704963 is not found in API Server 2026-05-18 02:10:37,310 - DEBUG - VN ctest-vn4-51704963 is not present in Agent 10.0.0.38 2026-05-18 02:10:37,310 - INFO - Validated that VN ctest-vn4-51704963 is not in any agent 2026-05-18 02:10:37,326 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-51704963 info 2026-05-18 02:10:37,349 - INFO - Deleted policy ctest-policy1-77393427 2026-05-18 02:10:37,516 - DEBUG - policy ctest-policy1-77393427 is not found in API Server 2026-05-18 02:10:37,769 - DEBUG - No XMPP flaps were noticed during the test
2026-05-18 02:10:37,769 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-05-18 02:10:37,769 - INFO - -------------------------------------------------------------------------------- 2026-05-18 02:10:38,065 - DEBUG - No XMPP flaps were noticed during the test
2026-05-18 02:10:38,065 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-05-18 02:10:38,065 - INFO - -------------------------------------------------------------------------------- 2026-05-18 02:10:38,764 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-36633240, ID : d040c52e-3f0b-4b2d-bdec-95a493f22fd8