2025-08-08 02:59:45,419 - INFO - Domain Default found not creating 2025-08-08 02:59:45,561 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-32618974 not found, creating it 2025-08-08 02:59:46,632 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-32618974, ID : e5392aaa-5673-4327-876d-c2fd20cb5101 2025-08-08 02:59:48,165 - INFO - ================================================================================ 2025-08-08 02:59:48,165 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-08 02:59:48,433 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-08 02:59:48,433 - INFO - Initial checks done. Running the testcase now 2025-08-08 02:59:48,433 - INFO - 2025-08-08 02:59:48,434 - INFO - ================================================================================ 2025-08-08 02:59:48,434 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-08 02:59:48,434 - 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-08 02:59:48,718 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-08 02:59:48,719 - INFO - Initial checks done. Running the testcase now 2025-08-08 02:59:48,719 - INFO - 2025-08-08 02:59:49,108 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32618974:ctest-vn4-72252283, 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-32618974:ctest-vn4-72252283, 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-32618974:ctest-vn4-72252283, 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-32618974:ctest-vn4-72252283, 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-08 02:59:49,634 - DEBUG - Response for create_network : {'network': {'id': 'cfd320b8-f5d0-4e72-be21-d4875abe5d00', 'name': 'ctest-vn4-72252283', 'tenant_id': 'e5392aaa56734327876dc2fd20cb5101', 'project_id': 'e5392aaa56734327876dc2fd20cb5101', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32618974', 'ctest-vn4-72252283'], 'port_security_enabled': True, 'description': ''}} 2025-08-08 02:59:49,817 - DEBUG - Response for create_subnet : {'subnet': {'id': '69261798-790b-478c-82b7-4fbfbd7bb571', 'name': '', 'tenant_id': 'e5392aaa56734327876dc2fd20cb5101', 'network_id': 'cfd320b8-f5d0-4e72-be21-d4875abe5d00', 'ip_version': 4, 'cidr': '132.171.63.64/26', 'allocation_pools': [{'start': '132.171.63.66', 'end': '132.171.63.126'}], 'gateway_ip': '132.171.63.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.171.63.66', 'tags': [], 'project_id': 'e5392aaa56734327876dc2fd20cb5101'}} 2025-08-08 02:59:50,035 - DEBUG - Response for create_subnet : {'subnet': {'id': '8954734b-b0d3-4aa3-be25-06bc720fd1d7', 'name': '', 'tenant_id': 'e5392aaa56734327876dc2fd20cb5101', 'network_id': 'cfd320b8-f5d0-4e72-be21-d4875abe5d00', 'ip_version': 6, 'cidr': '3f52:9c44:8f72:94ea:c26a:a418::/96', 'allocation_pools': [{'start': '3f52:9c44:8f72:94ea:c26a:a418:0:2', 'end': '3f52:9c44:8f72:94ea:c26a:a418:ffff:fffe'}], 'gateway_ip': '3f52:9c44:8f72:94ea:c26a:a418:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f52:9c44:8f72:94ea:c26a:a418:0:2', 'tags': [], 'project_id': 'e5392aaa56734327876dc2fd20cb5101'}} 2025-08-08 02:59:50,062 - INFO - Created VN ctest-vn4-72252283 2025-08-08 02:59:50,121 - DEBUG - VN ctest-vn4-72252283 UUID is cfd320b8-f5d0-4e72-be21-d4875abe5d00 2025-08-08 02:59:50,331 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cfd320b8-f5d0-4e72-be21-d4875abe5d00', 'name': 'ctest-vn4-72252283', 'tenant_id': 'e5392aaa56734327876dc2fd20cb5101', 'project_id': 'e5392aaa56734327876dc2fd20cb5101', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['69261798-790b-478c-82b7-4fbfbd7bb571', '8954734b-b0d3-4aa3-be25-06bc720fd1d7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32618974', 'ctest-vn4-72252283'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32618974', 'ctest-policy1-17823783']], 'subnet_ipam': [{'subnet_cidr': '132.171.63.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f52:9c44:8f72:94ea:c26a:a418::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-08 02:59:50,497 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 02:59:50,830 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 02:59:50,859 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ec7420f7-6e46-4225-aa03-44be25833719 2025-08-08 02:59:50,873 - DEBUG - Requesting: http://10.0.0.38:8082/project/e5392aaa-5673-4327-876d-c2fd20cb5101 2025-08-08 02:59:50,946 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cfd320b8-f5d0-4e72-be21-d4875abe5d00 2025-08-08 02:59:50,961 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cfd320b8-f5d0-4e72-be21-d4875abe5d00 2025-08-08 02:59:50,971 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5375a900-a759-44df-91ed-a3ef6cade8fb 2025-08-08 02:59:50,981 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5375a900-a759-44df-91ed-a3ef6cade8fb 2025-08-08 02:59:50,989 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/36367e26-a887-4241-93ca-5effaf553f04 2025-08-08 02:59:50,995 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-08 02:59:50,995 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cfd320b8-f5d0-4e72-be21-d4875abe5d00 2025-08-08 02:59:51,006 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5375a900-a759-44df-91ed-a3ef6cade8fb 2025-08-08 02:59:51,020 - INFO - Verified VN network id 11 for VN cfd320b8-f5d0-4e72-be21-d4875abe5d00 2025-08-08 02:59:51,020 - INFO - Verifications in API Server for VN ctest-vn4-72252283 passed 2025-08-08 02:59:51,020 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cfd320b8-f5d0-4e72-be21-d4875abe5d00 2025-08-08 02:59:51,031 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5375a900-a759-44df-91ed-a3ef6cade8fb 2025-08-08 02:59:51,038 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5375a900-a759-44df-91ed-a3ef6cade8fb 2025-08-08 02:59:51,045 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/36367e26-a887-4241-93ca-5effaf553f04 2025-08-08 02:59:51,059 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32618974:ctest-vn4-72252283', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-32618974', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14975349164707171954', 'uuid-lslong': '13700465219245858048'}, 'enable': 'true', 'created': '2025-08-08T02:59:49', 'last-modified': '2025-08-08T02:59:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.757360'} 2025-08-08 02:59:51,068 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-08 02:59:51,068 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-72252283 passed 2025-08-08 02:59:51,069 - DEBUG - ====Verifying policy data for ctest-vn4-72252283 in API_Server ====== 2025-08-08 02:59:51,069 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 02:59:51,075 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ec7420f7-6e46-4225-aa03-44be25833719 2025-08-08 02:59:51,089 - DEBUG - Requesting: http://10.0.0.38:8082/project/e5392aaa-5673-4327-876d-c2fd20cb5101 2025-08-08 02:59:51,163 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cfd320b8-f5d0-4e72-be21-d4875abe5d00 2025-08-08 02:59:51,175 - DEBUG - ==>Verifying data for policy with id: 24dbf335-ccca-4325-a0fc-5819b28c3019, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32618974', 'ctest-policy1-17823783'] 2025-08-08 02:59:51,175 - INFO - VN ctest-vn4-72252283 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-08 02:59:51,175 - DEBUG - Verifying the vn in opserver 2025-08-08 02:59:51,176 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32618974:ctest-vn4-72252283 virtual network link through opserver 10.0.0.38 2025-08-08 02:59:51,176 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-08 02:59:51,508 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-08 02:59:51,563 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32618974:ctest-vn4-72252283', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32618974:ctest-vn4-72252283?flat'} 2025-08-08 02:59:51,563 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32618974:ctest-vn4-72252283 is found in opserver 2025-08-08 02:59:51,578 - DEBUG - Do not have enough data to verify VN in agent 2025-08-08 02:59:51,585 - DEBUG - VRF ids for VN ctest-vn4-72252283: {} 2025-08-08 02:59:51,585 - DEBUG - ====Verifying data for ctest-policy1-17823783 in API_Server ====== 2025-08-08 02:59:51,585 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 02:59:51,593 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ec7420f7-6e46-4225-aa03-44be25833719 2025-08-08 02:59:51,607 - DEBUG - Requesting: http://10.0.0.38:8082/project/e5392aaa-5673-4327-876d-c2fd20cb5101 2025-08-08 02:59:51,680 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/24dbf335-ccca-4325-a0fc-5819b28c3019 2025-08-08 02:59:51,692 - INFO - Verified policy ctest-policy1-17823783 in API Server, Result: True 2025-08-08 02:59:51,692 - INFO - Done with setup and verification, moving onto test .. 2025-08-08 02:59:51,700 - INFO - Deleting VN ctest-vn4-72252283 2025-08-08 02:59:51,833 - DEBUG - Response for deleting network () 2025-08-08 02:59:51,835 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5375a900-a759-44df-91ed-a3ef6cade8fb 2025-08-08 02:59:51,843 - DEBUG - Response Code: 404 2025-08-08 02:59:51,843 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 02:59:51,851 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ec7420f7-6e46-4225-aa03-44be25833719 2025-08-08 02:59:51,907 - DEBUG - Requesting: http://10.0.0.38:8082/project/e5392aaa-5673-4327-876d-c2fd20cb5101 2025-08-08 02:59:51,987 - INFO - Validated that VN ctest-vn4-72252283 is not found in API Server 2025-08-08 02:59:51,999 - DEBUG - VN ctest-vn4-72252283 is not present in Agent 10.0.0.38 2025-08-08 02:59:51,999 - INFO - Validated that VN ctest-vn4-72252283 is not in any agent 2025-08-08 02:59:52,015 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-72252283 info 2025-08-08 02:59:52,042 - INFO - Deleted policy ctest-policy1-17823783 2025-08-08 02:59:52,209 - DEBUG - policy ctest-policy1-17823783 is not found in API Server 2025-08-08 02:59:52,467 - DEBUG - No XMPP flaps were noticed during the test
2025-08-08 02:59:52,467 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-08 02:59:52,467 - INFO - -------------------------------------------------------------------------------- 2025-08-08 02:59:52,766 - DEBUG - No XMPP flaps were noticed during the test
2025-08-08 02:59:52,766 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-08 02:59:52,766 - INFO - -------------------------------------------------------------------------------- 2025-08-08 02:59:53,470 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-32618974, ID : e5392aaa-5673-4327-876d-c2fd20cb5101