2026-09-28 03:06:03,297 - INFO - Domain Default found not creating 2026-09-28 03:06:03,587 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-04332552 not found, creating it 2026-09-28 03:06:04,316 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-04332552, ID : 507db6cf-642a-4d9c-9058-7c8d65476c2c 2026-09-28 03:06:06,415 - INFO - ================================================================================ 2026-09-28 03:06:06,415 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-28 03:06:07,766 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0', '10.20.0.25': '0'}, '10.0.0.162': {'10.20.0.25': '0', '10.20.0.254': '0'}} with 2026-09-28 03:06:07,766 - INFO - Initial checks done. Running the testcase now 2026-09-28 03:06:07,766 - INFO - 2026-09-28 03:06:07,766 - INFO - ================================================================================ 2026-09-28 03:06:07,766 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-28 03:06:07,766 - 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-28 03:06:09,151 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0', '10.20.0.25': '0'}, '10.0.0.162': {'10.20.0.25': '0', '10.20.0.254': '0'}} with 2026-09-28 03:06:09,151 - INFO - Initial checks done. Running the testcase now 2026-09-28 03:06:09,151 - INFO - 2026-09-28 03:06:09,619 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04332552:ctest-vn4-08615746, 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-04332552:ctest-vn4-08615746, 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-04332552:ctest-vn4-08615746, 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-04332552:ctest-vn4-08615746, 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-28 03:06:10,348 - DEBUG - Response for create_network : {'network': {'id': '85bcdaa3-895c-4c46-9512-5d74bba1fbac', 'name': 'ctest-vn4-08615746', 'tenant_id': '507db6cf642a4d9c90587c8d65476c2c', 'project_id': '507db6cf642a4d9c90587c8d65476c2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04332552', 'ctest-vn4-08615746'], 'port_security_enabled': True, 'description': ''}} 2026-09-28 03:06:10,679 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd40cc387-6e1f-4575-a03f-84aaaf4894dc', 'name': '', 'tenant_id': '507db6cf642a4d9c90587c8d65476c2c', 'network_id': '85bcdaa3-895c-4c46-9512-5d74bba1fbac', 'ip_version': 4, 'cidr': '205.127.38.64/26', 'allocation_pools': [{'start': '205.127.38.66', 'end': '205.127.38.126'}], 'gateway_ip': '205.127.38.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.127.38.66', 'tags': [], 'project_id': '507db6cf642a4d9c90587c8d65476c2c'}} 2026-09-28 03:06:10,981 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c22eac3-c1ae-4a22-a0ec-b85d7762d628', 'name': '', 'tenant_id': '507db6cf642a4d9c90587c8d65476c2c', 'network_id': '85bcdaa3-895c-4c46-9512-5d74bba1fbac', 'ip_version': 6, 'cidr': '241e:36bd:44fa:915b:2795:7f7::/96', 'allocation_pools': [{'start': '241e:36bd:44fa:915b:2795:7f7:0:2', 'end': '241e:36bd:44fa:915b:2795:7f7:ffff:fffe'}], 'gateway_ip': '241e:36bd:44fa:915b:2795:7f7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '241e:36bd:44fa:915b:2795:7f7:0:2', 'tags': [], 'project_id': '507db6cf642a4d9c90587c8d65476c2c'}} 2026-09-28 03:06:11,009 - INFO - Created VN ctest-vn4-08615746 2026-09-28 03:06:11,025 - DEBUG - VN ctest-vn4-08615746 UUID is 85bcdaa3-895c-4c46-9512-5d74bba1fbac 2026-09-28 03:06:11,343 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '85bcdaa3-895c-4c46-9512-5d74bba1fbac', 'name': 'ctest-vn4-08615746', 'tenant_id': '507db6cf642a4d9c90587c8d65476c2c', 'project_id': '507db6cf642a4d9c90587c8d65476c2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['d40cc387-6e1f-4575-a03f-84aaaf4894dc', '4c22eac3-c1ae-4a22-a0ec-b85d7762d628'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04332552', 'ctest-vn4-08615746'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04332552', 'ctest-policy1-00461753']], 'subnet_ipam': [{'subnet_cidr': '205.127.38.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '241e:36bd:44fa:915b:2795:7f7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-28 03:06:11,475 - DEBUG - Requesting: http://10.0.0.176:8082/domains 2026-09-28 03:06:11,907 - DEBUG - Requesting: http://10.0.0.176:8082/domains 2026-09-28 03:06:11,945 - DEBUG - Requesting: http://10.0.0.176:8082/domain/6a7973b0-69cf-4d5f-a060-1b4d1311d404 2026-09-28 03:06:11,972 - DEBUG - Requesting: http://10.0.0.176:8082/project/507db6cf-642a-4d9c-9058-7c8d65476c2c 2026-09-28 03:06:12,094 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/85bcdaa3-895c-4c46-9512-5d74bba1fbac 2026-09-28 03:06:12,119 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/85bcdaa3-895c-4c46-9512-5d74bba1fbac 2026-09-28 03:06:12,132 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/5b840311-da7b-4c8e-904c-2ab1f945f070 2026-09-28 03:06:12,143 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/5b840311-da7b-4c8e-904c-2ab1f945f070 2026-09-28 03:06:12,152 - DEBUG - Requesting: http://10.0.0.176:8082/route-target/501ac16e-bd92-477f-b95f-e8631974db62 2026-09-28 03:06:12,164 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-28 03:06:12,164 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/85bcdaa3-895c-4c46-9512-5d74bba1fbac 2026-09-28 03:06:12,180 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/5b840311-da7b-4c8e-904c-2ab1f945f070 2026-09-28 03:06:12,201 - INFO - Verified VN network id 13 for VN 85bcdaa3-895c-4c46-9512-5d74bba1fbac 2026-09-28 03:06:12,201 - INFO - Verifications in API Server for VN ctest-vn4-08615746 passed 2026-09-28 03:06:12,201 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/85bcdaa3-895c-4c46-9512-5d74bba1fbac 2026-09-28 03:06:12,216 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/5b840311-da7b-4c8e-904c-2ab1f945f070 2026-09-28 03:06:12,226 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/5b840311-da7b-4c8e-904c-2ab1f945f070 2026-09-28 03:06:12,236 - DEBUG - Requesting: http://10.0.0.176:8082/route-target/501ac16e-bd92-477f-b95f-e8631974db62 2026-09-28 03:06:12,253 - DEBUG - Control-node 10.0.0.176 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04332552:ctest-vn4-08615746', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04332552', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9636817698585070662', 'uuid-lslong': '10741750817177598892'}, 'enable': 'true', 'created': '2026-09-28T03:06:10', 'last-modified': '2026-09-28T03:06:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.996678'} 2026-09-28 03:06:12,262 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-28 03:06:12,269 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04332552:ctest-vn4-08615746', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04332552', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9636817698585070662', 'uuid-lslong': '10741750817177598892'}, 'enable': 'true', 'created': '2026-09-28T03:06:10', 'last-modified': '2026-09-28T03:06:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.013061'} 2026-09-28 03:06:12,277 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-28 03:06:12,284 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04332552:ctest-vn4-08615746', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04332552', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9636817698585070662', 'uuid-lslong': '10741750817177598892'}, 'enable': 'true', 'created': '2026-09-28T03:06:10', 'last-modified': '2026-09-28T03:06:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.018037'} 2026-09-28 03:06:12,291 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-28 03:06:12,291 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-08615746 passed 2026-09-28 03:06:12,291 - DEBUG - ====Verifying policy data for ctest-vn4-08615746 in API_Server ====== 2026-09-28 03:06:12,292 - DEBUG - Requesting: http://10.0.0.176:8082/domains 2026-09-28 03:06:12,299 - DEBUG - Requesting: http://10.0.0.176:8082/domain/6a7973b0-69cf-4d5f-a060-1b4d1311d404 2026-09-28 03:06:12,313 - DEBUG - Requesting: http://10.0.0.176:8082/project/507db6cf-642a-4d9c-9058-7c8d65476c2c 2026-09-28 03:06:12,423 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/85bcdaa3-895c-4c46-9512-5d74bba1fbac 2026-09-28 03:06:12,440 - DEBUG - ==>Verifying data for policy with id: 7ebda1a6-bd0d-48b6-bccc-3c40dae9e015, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04332552', 'ctest-policy1-00461753'] 2026-09-28 03:06:12,440 - INFO - VN ctest-vn4-08615746 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-28 03:06:12,440 - DEBUG - Verifying the vn in opserver 2026-09-28 03:06:12,440 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04332552:ctest-vn4-08615746 virtual network link through opserver 10.0.0.176 2026-09-28 03:06:12,440 - DEBUG - Requesting: http://10.0.0.176:8081/analytics/uves/virtual-networks 2026-09-28 03:06:12,829 - DEBUG - Requesting: http://10.0.0.176:8081/analytics/uves/virtual-networks 2026-09-28 03:06:12,898 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04332552:ctest-vn4-08615746', 'href': 'http://10.0.0.176:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04332552:ctest-vn4-08615746?flat'} 2026-09-28 03:06:12,898 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04332552:ctest-vn4-08615746 virtual network link through opserver 10.0.0.177 2026-09-28 03:06:12,899 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-09-28 03:06:13,286 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-09-28 03:06:13,359 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04332552:ctest-vn4-08615746', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04332552:ctest-vn4-08615746?flat'} 2026-09-28 03:06:13,359 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04332552:ctest-vn4-08615746 virtual network link through opserver 10.0.0.161 2026-09-28 03:06:13,359 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-09-28 03:06:13,746 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-09-28 03:06:13,823 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04332552:ctest-vn4-08615746', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04332552:ctest-vn4-08615746?flat'} 2026-09-28 03:06:13,823 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04332552:ctest-vn4-08615746 is found in opserver 2026-09-28 03:06:13,853 - DEBUG - Do not have enough data to verify VN in agent 2026-09-28 03:06:13,866 - DEBUG - VRF ids for VN ctest-vn4-08615746: {} 2026-09-28 03:06:13,866 - DEBUG - ====Verifying data for ctest-policy1-00461753 in API_Server ====== 2026-09-28 03:06:13,866 - DEBUG - Requesting: http://10.0.0.176:8082/domains 2026-09-28 03:06:13,874 - DEBUG - Requesting: http://10.0.0.176:8082/domain/6a7973b0-69cf-4d5f-a060-1b4d1311d404 2026-09-28 03:06:13,888 - DEBUG - Requesting: http://10.0.0.176:8082/project/507db6cf-642a-4d9c-9058-7c8d65476c2c 2026-09-28 03:06:14,005 - DEBUG - Requesting: http://10.0.0.176:8082/network-policy/7ebda1a6-bd0d-48b6-bccc-3c40dae9e015 2026-09-28 03:06:14,020 - INFO - Verified policy ctest-policy1-00461753 in API Server, Result: True 2026-09-28 03:06:14,020 - INFO - Done with setup and verification, moving onto test .. 2026-09-28 03:06:14,039 - INFO - Deleting VN ctest-vn4-08615746 2026-09-28 03:06:14,315 - DEBUG - Response for deleting network () 2026-09-28 03:06:14,315 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/5b840311-da7b-4c8e-904c-2ab1f945f070 2026-09-28 03:06:14,324 - DEBUG - Response Code: 404 2026-09-28 03:06:14,324 - DEBUG - Requesting: http://10.0.0.176:8082/domains 2026-09-28 03:06:14,333 - DEBUG - Requesting: http://10.0.0.176:8082/domain/6a7973b0-69cf-4d5f-a060-1b4d1311d404 2026-09-28 03:06:14,352 - DEBUG - Requesting: http://10.0.0.176:8082/project/507db6cf-642a-4d9c-9058-7c8d65476c2c 2026-09-28 03:06:14,463 - INFO - Validated that VN ctest-vn4-08615746 is not found in API Server 2026-09-28 03:06:14,477 - DEBUG - VN ctest-vn4-08615746 is not present in Agent 10.0.0.38 2026-09-28 03:06:14,491 - DEBUG - VN ctest-vn4-08615746 is not present in Agent 10.0.0.162 2026-09-28 03:06:14,491 - INFO - Validated that VN ctest-vn4-08615746 is not in any agent 2026-09-28 03:06:14,537 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-08615746 info 2026-09-28 03:06:14,605 - INFO - Deleted policy ctest-policy1-00461753 2026-09-28 03:06:14,817 - DEBUG - policy ctest-policy1-00461753 is not found in API Server 2026-09-28 03:06:16,166 - DEBUG - No XMPP flaps were noticed during the test
2026-09-28 03:06:16,166 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09]
2026-09-28 03:06:16,166 - INFO - -------------------------------------------------------------------------------- 2026-09-28 03:06:17,520 - DEBUG - No XMPP flaps were noticed during the test
2026-09-28 03:06:17,520 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:11]
2026-09-28 03:06:17,521 - INFO - -------------------------------------------------------------------------------- 2026-09-28 03:06:18,601 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-04332552, ID : 507db6cf-642a-4d9c-9058-7c8d65476c2c