2025-08-07 18:36:37,555 - INFO - Domain Default found not creating 2025-08-07 18:36:37,740 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-04241098 not found, creating it 2025-08-07 18:36:38,377 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-04241098, ID : a473fa9d-52e1-40d3-bfc8-dd9b74ce9633 2025-08-07 18:36:39,974 - INFO - ================================================================================ 2025-08-07 18:36:39,974 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-07 18:36:41,362 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.14': '0', '10.20.0.193': '0'}, '10.0.0.242': {'10.20.0.14': '0', '10.20.0.193': '0'}} with 2025-08-07 18:36:41,362 - INFO - Initial checks done. Running the testcase now 2025-08-07 18:36:41,362 - INFO - 2025-08-07 18:36:41,362 - INFO - ================================================================================ 2025-08-07 18:36:41,362 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-07 18:36:41,362 - 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. 2025-08-07 18:36:42,712 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.14': '0', '10.20.0.193': '0'}, '10.0.0.242': {'10.20.0.14': '0', '10.20.0.193': '0'}} with 2025-08-07 18:36:42,712 - INFO - Initial checks done. Running the testcase now 2025-08-07 18:36:42,713 - INFO - 2025-08-07 18:36:43,073 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04241098:ctest-vn4-17571935, 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-04241098:ctest-vn4-17571935, 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-04241098:ctest-vn4-17571935, 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-04241098:ctest-vn4-17571935, 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] 2025-08-07 18:36:43,740 - DEBUG - Response for create_network : {'network': {'id': '4e824c12-c1bb-437a-9325-f19713ae69a6', 'name': 'ctest-vn4-17571935', 'tenant_id': 'a473fa9d52e140d3bfc8dd9b74ce9633', 'project_id': 'a473fa9d52e140d3bfc8dd9b74ce9633', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04241098', 'ctest-vn4-17571935'], 'port_security_enabled': True, 'description': ''}} 2025-08-07 18:36:44,018 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f59d452-7b47-4145-8731-4dac0fcec887', 'name': '', 'tenant_id': 'a473fa9d52e140d3bfc8dd9b74ce9633', 'network_id': '4e824c12-c1bb-437a-9325-f19713ae69a6', 'ip_version': 4, 'cidr': '157.121.15.0/26', 'allocation_pools': [{'start': '157.121.15.2', 'end': '157.121.15.62'}], 'gateway_ip': '157.121.15.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.121.15.2', 'tags': [], 'project_id': 'a473fa9d52e140d3bfc8dd9b74ce9633'}} 2025-08-07 18:36:44,262 - DEBUG - Response for create_subnet : {'subnet': {'id': '0549f8b9-38c6-4b81-8cde-3786f9d76b83', 'name': '', 'tenant_id': 'a473fa9d52e140d3bfc8dd9b74ce9633', 'network_id': '4e824c12-c1bb-437a-9325-f19713ae69a6', 'ip_version': 6, 'cidr': '2f57:864e:8b06:6928:45de:1b3b::/96', 'allocation_pools': [{'start': '2f57:864e:8b06:6928:45de:1b3b:0:2', 'end': '2f57:864e:8b06:6928:45de:1b3b:ffff:fffe'}], 'gateway_ip': '2f57:864e:8b06:6928:45de:1b3b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f57:864e:8b06:6928:45de:1b3b:0:2', 'tags': [], 'project_id': 'a473fa9d52e140d3bfc8dd9b74ce9633'}} 2025-08-07 18:36:44,288 - INFO - Created VN ctest-vn4-17571935 2025-08-07 18:36:44,301 - DEBUG - VN ctest-vn4-17571935 UUID is 4e824c12-c1bb-437a-9325-f19713ae69a6 2025-08-07 18:36:44,585 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4e824c12-c1bb-437a-9325-f19713ae69a6', 'name': 'ctest-vn4-17571935', 'tenant_id': 'a473fa9d52e140d3bfc8dd9b74ce9633', 'project_id': 'a473fa9d52e140d3bfc8dd9b74ce9633', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5f59d452-7b47-4145-8731-4dac0fcec887', '0549f8b9-38c6-4b81-8cde-3786f9d76b83'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04241098', 'ctest-vn4-17571935'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04241098', 'ctest-policy1-11982883']], 'subnet_ipam': [{'subnet_cidr': '157.121.15.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f57:864e:8b06:6928:45de:1b3b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-07 18:36:44,707 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-07 18:36:45,024 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-07 18:36:45,060 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e058ca0e-02ca-4506-8888-1a040ca13521 2025-08-07 18:36:45,085 - DEBUG - Requesting: http://10.0.0.19:8082/project/a473fa9d-52e1-40d3-bfc8-dd9b74ce9633 2025-08-07 18:36:45,192 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/4e824c12-c1bb-437a-9325-f19713ae69a6 2025-08-07 18:36:45,211 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/4e824c12-c1bb-437a-9325-f19713ae69a6 2025-08-07 18:36:45,226 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3b813cb0-ab6a-4353-915d-ba1b1cf14b3f 2025-08-07 18:36:45,236 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3b813cb0-ab6a-4353-915d-ba1b1cf14b3f 2025-08-07 18:36:45,246 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/b118b398-821b-4c21-823b-e590c7e53348 2025-08-07 18:36:45,260 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 18:36:45,260 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/4e824c12-c1bb-437a-9325-f19713ae69a6 2025-08-07 18:36:45,273 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3b813cb0-ab6a-4353-915d-ba1b1cf14b3f 2025-08-07 18:36:45,299 - INFO - Verified VN network id 15 for VN 4e824c12-c1bb-437a-9325-f19713ae69a6 2025-08-07 18:36:45,299 - INFO - Verifications in API Server for VN ctest-vn4-17571935 passed 2025-08-07 18:36:45,299 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/4e824c12-c1bb-437a-9325-f19713ae69a6 2025-08-07 18:36:45,317 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3b813cb0-ab6a-4353-915d-ba1b1cf14b3f 2025-08-07 18:36:45,331 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3b813cb0-ab6a-4353-915d-ba1b1cf14b3f 2025-08-07 18:36:45,343 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/b118b398-821b-4c21-823b-e590c7e53348 2025-08-07 18:36:45,368 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04241098:ctest-vn4-17571935', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04241098', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5657167725374161786', 'uuid-lslong': '10603146528886253990'}, 'enable': 'true', 'created': '2025-08-07T18:36:43', 'last-modified': '2025-08-07T18:36:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.843498'} 2025-08-07 18:36:45,381 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 18:36:45,390 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04241098:ctest-vn4-17571935', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04241098', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5657167725374161786', 'uuid-lslong': '10603146528886253990'}, 'enable': 'true', 'created': '2025-08-07T18:36:43', 'last-modified': '2025-08-07T18:36:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.867878'} 2025-08-07 18:36:45,398 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 18:36:45,405 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04241098:ctest-vn4-17571935', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04241098', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5657167725374161786', 'uuid-lslong': '10603146528886253990'}, 'enable': 'true', 'created': '2025-08-07T18:36:43', 'last-modified': '2025-08-07T18:36:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.884897'} 2025-08-07 18:36:45,414 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 18:36:45,414 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-17571935 passed 2025-08-07 18:36:45,414 - DEBUG - ====Verifying policy data for ctest-vn4-17571935 in API_Server ====== 2025-08-07 18:36:45,414 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-07 18:36:45,424 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e058ca0e-02ca-4506-8888-1a040ca13521 2025-08-07 18:36:45,441 - DEBUG - Requesting: http://10.0.0.19:8082/project/a473fa9d-52e1-40d3-bfc8-dd9b74ce9633 2025-08-07 18:36:45,548 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/4e824c12-c1bb-437a-9325-f19713ae69a6 2025-08-07 18:36:45,562 - DEBUG - ==>Verifying data for policy with id: 9e2c00d7-8695-433c-a863-7232576059f0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04241098', 'ctest-policy1-11982883'] 2025-08-07 18:36:45,562 - INFO - VN ctest-vn4-17571935 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-07 18:36:45,562 - DEBUG - Verifying the vn in opserver 2025-08-07 18:36:45,562 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04241098:ctest-vn4-17571935 virtual network link through opserver 10.0.0.19 2025-08-07 18:36:45,562 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-07 18:36:45,865 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-07 18:36:45,934 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04241098:ctest-vn4-17571935', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04241098:ctest-vn4-17571935?flat'} 2025-08-07 18:36:45,934 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04241098:ctest-vn4-17571935 virtual network link through opserver 10.0.0.50 2025-08-07 18:36:45,934 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-07 18:36:46,234 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-07 18:36:46,299 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04241098:ctest-vn4-17571935', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04241098:ctest-vn4-17571935?flat'} 2025-08-07 18:36:46,299 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04241098:ctest-vn4-17571935 virtual network link through opserver 10.0.0.241 2025-08-07 18:36:46,299 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-08-07 18:36:46,605 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-08-07 18:36:46,689 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04241098:ctest-vn4-17571935', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04241098:ctest-vn4-17571935?flat'} 2025-08-07 18:36:46,689 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04241098:ctest-vn4-17571935 is found in opserver 2025-08-07 18:36:46,728 - DEBUG - Do not have enough data to verify VN in agent 2025-08-07 18:36:46,746 - DEBUG - VRF ids for VN ctest-vn4-17571935: {} 2025-08-07 18:36:46,747 - DEBUG - ====Verifying data for ctest-policy1-11982883 in API_Server ====== 2025-08-07 18:36:46,747 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-07 18:36:46,756 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e058ca0e-02ca-4506-8888-1a040ca13521 2025-08-07 18:36:46,772 - DEBUG - Requesting: http://10.0.0.19:8082/project/a473fa9d-52e1-40d3-bfc8-dd9b74ce9633 2025-08-07 18:36:46,872 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/9e2c00d7-8695-433c-a863-7232576059f0 2025-08-07 18:36:46,884 - INFO - Verified policy ctest-policy1-11982883 in API Server, Result: True 2025-08-07 18:36:46,884 - INFO - Done with setup and verification, moving onto test .. 2025-08-07 18:36:46,897 - INFO - Deleting VN ctest-vn4-17571935 2025-08-07 18:36:47,139 - DEBUG - Response for deleting network () 2025-08-07 18:36:47,139 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3b813cb0-ab6a-4353-915d-ba1b1cf14b3f 2025-08-07 18:36:47,148 - DEBUG - Response Code: 404 2025-08-07 18:36:47,148 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-07 18:36:47,156 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e058ca0e-02ca-4506-8888-1a040ca13521 2025-08-07 18:36:47,179 - DEBUG - Requesting: http://10.0.0.19:8082/project/a473fa9d-52e1-40d3-bfc8-dd9b74ce9633 2025-08-07 18:36:47,289 - INFO - Validated that VN ctest-vn4-17571935 is not found in API Server 2025-08-07 18:36:47,320 - DEBUG - VN ctest-vn4-17571935 is not present in Agent 10.0.0.65 2025-08-07 18:36:47,334 - DEBUG - VN ctest-vn4-17571935 is not present in Agent 10.0.0.242 2025-08-07 18:36:47,334 - INFO - Validated that VN ctest-vn4-17571935 is not in any agent 2025-08-07 18:36:47,382 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-17571935 info 2025-08-07 18:36:47,430 - INFO - Deleted policy ctest-policy1-11982883 2025-08-07 18:36:47,631 - DEBUG - policy ctest-policy1-11982883 is not found in API Server 2025-08-07 18:36:48,990 - DEBUG - No XMPP flaps were noticed during the test