2026-06-01 02:31:04,085 - INFO - Domain Default found not creating 2026-06-01 02:31:04,234 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-33816241 not found, creating it 2026-06-01 02:31:04,803 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-33816241, ID : 823eb018-72c1-4b40-a96f-1f4995161fc8 2026-06-01 02:31:06,311 - INFO - ================================================================================ 2026-06-01 02:31:06,312 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-01 02:31:07,601 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.193': '0', '10.20.0.129': '0'}, '10.0.0.73': {'10.20.0.193': '0', '10.20.0.129': '0'}} with 2026-06-01 02:31:07,601 - INFO - Initial checks done. Running the testcase now 2026-06-01 02:31:07,601 - INFO - 2026-06-01 02:31:07,601 - INFO - ================================================================================ 2026-06-01 02:31:07,601 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-01 02:31:07,601 - 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-06-01 02:31:08,878 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.193': '0', '10.20.0.129': '0'}, '10.0.0.73': {'10.20.0.193': '0', '10.20.0.129': '0'}} with 2026-06-01 02:31:08,878 - INFO - Initial checks done. Running the testcase now 2026-06-01 02:31:08,878 - INFO - 2026-06-01 02:31:09,269 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33816241:ctest-vn4-60856777, 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-33816241:ctest-vn4-60856777, 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-33816241:ctest-vn4-60856777, 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-33816241:ctest-vn4-60856777, 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-06-01 02:31:09,933 - DEBUG - Response for create_network : {'network': {'id': 'b7125759-9b57-47cb-8149-bd4a0383b6f7', 'name': 'ctest-vn4-60856777', 'tenant_id': '823eb01872c14b40a96f1f4995161fc8', 'project_id': '823eb01872c14b40a96f1f4995161fc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33816241', 'ctest-vn4-60856777'], 'port_security_enabled': True, 'description': ''}} 2026-06-01 02:31:10,245 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b384729b-b5ef-4317-b65d-c7dab3186dd1', 'name': '', 'tenant_id': '823eb01872c14b40a96f1f4995161fc8', 'network_id': 'b7125759-9b57-47cb-8149-bd4a0383b6f7', 'ip_version': 4, 'cidr': '194.153.10.64/26', 'allocation_pools': [{'start': '194.153.10.66', 'end': '194.153.10.126'}], 'gateway_ip': '194.153.10.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.153.10.66', 'tags': [], 'project_id': '823eb01872c14b40a96f1f4995161fc8'}} 2026-06-01 02:31:10,492 - DEBUG - Response for create_subnet : {'subnet': {'id': '12168464-a879-455a-a138-158157ddd1ea', 'name': '', 'tenant_id': '823eb01872c14b40a96f1f4995161fc8', 'network_id': 'b7125759-9b57-47cb-8149-bd4a0383b6f7', 'ip_version': 6, 'cidr': '250c:17c2:7e78:68d8:11e:a716::/96', 'allocation_pools': [{'start': '250c:17c2:7e78:68d8:11e:a716:0:2', 'end': '250c:17c2:7e78:68d8:11e:a716:ffff:fffe'}], 'gateway_ip': '250c:17c2:7e78:68d8:11e:a716:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '250c:17c2:7e78:68d8:11e:a716:0:2', 'tags': [], 'project_id': '823eb01872c14b40a96f1f4995161fc8'}} 2026-06-01 02:31:10,514 - INFO - Created VN ctest-vn4-60856777 2026-06-01 02:31:10,526 - DEBUG - VN ctest-vn4-60856777 UUID is b7125759-9b57-47cb-8149-bd4a0383b6f7 2026-06-01 02:31:10,783 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b7125759-9b57-47cb-8149-bd4a0383b6f7', 'name': 'ctest-vn4-60856777', 'tenant_id': '823eb01872c14b40a96f1f4995161fc8', 'project_id': '823eb01872c14b40a96f1f4995161fc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b384729b-b5ef-4317-b65d-c7dab3186dd1', '12168464-a879-455a-a138-158157ddd1ea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33816241', 'ctest-vn4-60856777'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33816241', 'ctest-policy1-43752643']], 'subnet_ipam': [{'subnet_cidr': '194.153.10.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '250c:17c2:7e78:68d8:11e:a716::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-01 02:31:10,899 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-06-01 02:31:11,201 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-06-01 02:31:11,229 - DEBUG - Requesting: http://10.0.0.240:8082/domain/6a7c2c01-0945-4b55-86ca-3789a2d806b2 2026-06-01 02:31:11,243 - DEBUG - Requesting: http://10.0.0.240:8082/project/823eb018-72c1-4b40-a96f-1f4995161fc8 2026-06-01 02:31:11,338 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/b7125759-9b57-47cb-8149-bd4a0383b6f7 2026-06-01 02:31:11,350 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/b7125759-9b57-47cb-8149-bd4a0383b6f7 2026-06-01 02:31:11,359 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/72cd4987-930c-498b-81e8-0f2d3dc62d25 2026-06-01 02:31:11,366 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/72cd4987-930c-498b-81e8-0f2d3dc62d25 2026-06-01 02:31:11,372 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/688ee17a-3d67-4b6e-86dc-c06afcfa429c 2026-06-01 02:31:11,379 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 02:31:11,379 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/b7125759-9b57-47cb-8149-bd4a0383b6f7 2026-06-01 02:31:11,390 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/72cd4987-930c-498b-81e8-0f2d3dc62d25 2026-06-01 02:31:11,404 - INFO - Verified VN network id 14 for VN b7125759-9b57-47cb-8149-bd4a0383b6f7 2026-06-01 02:31:11,404 - INFO - Verifications in API Server for VN ctest-vn4-60856777 passed 2026-06-01 02:31:11,404 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/b7125759-9b57-47cb-8149-bd4a0383b6f7 2026-06-01 02:31:11,414 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/72cd4987-930c-498b-81e8-0f2d3dc62d25 2026-06-01 02:31:11,422 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/72cd4987-930c-498b-81e8-0f2d3dc62d25 2026-06-01 02:31:11,431 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/688ee17a-3d67-4b6e-86dc-c06afcfa429c 2026-06-01 02:31:11,441 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33816241:ctest-vn4-60856777', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33816241', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13191702300891498443', 'uuid-lslong': '9316185429776774903'}, 'enable': 'true', 'created': '2026-06-01T02:31:09', 'last-modified': '2026-06-01T02:31:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.721982'} 2026-06-01 02:31:11,447 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 02:31:11,453 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33816241:ctest-vn4-60856777', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33816241', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13191702300891498443', 'uuid-lslong': '9316185429776774903'}, 'enable': 'true', 'created': '2026-06-01T02:31:09', 'last-modified': '2026-06-01T02:31:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.731020'} 2026-06-01 02:31:11,459 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 02:31:11,464 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33816241:ctest-vn4-60856777', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33816241', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13191702300891498443', 'uuid-lslong': '9316185429776774903'}, 'enable': 'true', 'created': '2026-06-01T02:31:09', 'last-modified': '2026-06-01T02:31:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.743414'} 2026-06-01 02:31:11,469 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 02:31:11,469 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-60856777 passed 2026-06-01 02:31:11,469 - DEBUG - ====Verifying policy data for ctest-vn4-60856777 in API_Server ====== 2026-06-01 02:31:11,469 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-06-01 02:31:11,476 - DEBUG - Requesting: http://10.0.0.240:8082/domain/6a7c2c01-0945-4b55-86ca-3789a2d806b2 2026-06-01 02:31:11,489 - DEBUG - Requesting: http://10.0.0.240:8082/project/823eb018-72c1-4b40-a96f-1f4995161fc8 2026-06-01 02:31:11,579 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/b7125759-9b57-47cb-8149-bd4a0383b6f7 2026-06-01 02:31:11,589 - DEBUG - ==>Verifying data for policy with id: abdeebe4-8216-4b75-ae84-1476f254e8f5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33816241', 'ctest-policy1-43752643'] 2026-06-01 02:31:11,589 - INFO - VN ctest-vn4-60856777 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-01 02:31:11,589 - DEBUG - Verifying the vn in opserver 2026-06-01 02:31:11,589 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33816241:ctest-vn4-60856777 virtual network link through opserver 10.0.0.240 2026-06-01 02:31:11,590 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-06-01 02:31:11,881 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-06-01 02:31:11,938 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33816241:ctest-vn4-60856777', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33816241:ctest-vn4-60856777?flat'} 2026-06-01 02:31:11,938 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33816241:ctest-vn4-60856777 virtual network link through opserver 10.0.0.249 2026-06-01 02:31:11,938 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-01 02:31:12,230 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-01 02:31:12,317 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33816241:ctest-vn4-60856777', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33816241:ctest-vn4-60856777?flat'} 2026-06-01 02:31:12,317 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33816241:ctest-vn4-60856777 virtual network link through opserver 10.0.0.65 2026-06-01 02:31:12,317 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-06-01 02:31:12,619 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-06-01 02:31:12,681 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33816241:ctest-vn4-60856777', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33816241:ctest-vn4-60856777?flat'} 2026-06-01 02:31:12,681 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33816241:ctest-vn4-60856777 is found in opserver 2026-06-01 02:31:12,703 - DEBUG - Do not have enough data to verify VN in agent 2026-06-01 02:31:12,714 - DEBUG - VRF ids for VN ctest-vn4-60856777: {} 2026-06-01 02:31:12,714 - DEBUG - ====Verifying data for ctest-policy1-43752643 in API_Server ====== 2026-06-01 02:31:12,715 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-06-01 02:31:12,721 - DEBUG - Requesting: http://10.0.0.240:8082/domain/6a7c2c01-0945-4b55-86ca-3789a2d806b2 2026-06-01 02:31:12,732 - DEBUG - Requesting: http://10.0.0.240:8082/project/823eb018-72c1-4b40-a96f-1f4995161fc8 2026-06-01 02:31:12,821 - DEBUG - Requesting: http://10.0.0.240:8082/network-policy/abdeebe4-8216-4b75-ae84-1476f254e8f5 2026-06-01 02:31:12,831 - INFO - Verified policy ctest-policy1-43752643 in API Server, Result: True 2026-06-01 02:31:12,831 - INFO - Done with setup and verification, moving onto test .. 2026-06-01 02:31:12,841 - INFO - Deleting VN ctest-vn4-60856777 2026-06-01 02:31:13,026 - DEBUG - Response for deleting network () 2026-06-01 02:31:13,026 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/72cd4987-930c-498b-81e8-0f2d3dc62d25 2026-06-01 02:31:13,033 - DEBUG - Response Code: 404 2026-06-01 02:31:13,033 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-06-01 02:31:13,045 - DEBUG - Requesting: http://10.0.0.240:8082/domain/6a7c2c01-0945-4b55-86ca-3789a2d806b2 2026-06-01 02:31:13,098 - DEBUG - Requesting: http://10.0.0.240:8082/project/823eb018-72c1-4b40-a96f-1f4995161fc8 2026-06-01 02:31:13,196 - INFO - Validated that VN ctest-vn4-60856777 is not found in API Server 2026-06-01 02:31:13,206 - DEBUG - VN ctest-vn4-60856777 is not present in Agent 10.0.0.130 2026-06-01 02:31:13,216 - DEBUG - VN ctest-vn4-60856777 is not present in Agent 10.0.0.73 2026-06-01 02:31:13,216 - INFO - Validated that VN ctest-vn4-60856777 is not in any agent 2026-06-01 02:31:13,248 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-60856777 info 2026-06-01 02:31:13,306 - INFO - Deleted policy ctest-policy1-43752643 2026-06-01 02:31:13,501 - DEBUG - policy ctest-policy1-43752643 is not found in API Server 2026-06-01 02:31:14,785 - DEBUG - No XMPP flaps were noticed during the test
2026-06-01 02:31:14,785 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-06-01 02:31:14,785 - INFO - -------------------------------------------------------------------------------- 2026-06-01 02:31:16,068 - DEBUG - No XMPP flaps were noticed during the test
2026-06-01 02:31:16,068 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2026-06-01 02:31:16,068 - INFO - -------------------------------------------------------------------------------- 2026-06-01 02:31:16,832 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-33816241, ID : 823eb018-72c1-4b40-a96f-1f4995161fc8