2025-08-25 14:16:21,705 - INFO - Domain Default found not creating 2025-08-25 14:16:21,834 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-68566427 not found, creating it 2025-08-25 14:16:22,287 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-68566427, ID : fe0a1b77-db7c-4cc8-a8b0-1aec28972adf 2025-08-25 14:16:23,688 - INFO - ================================================================================ 2025-08-25 14:16:23,688 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-25 14:16:23,959 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-08-25 14:16:23,959 - INFO - Initial checks done. Running the testcase now 2025-08-25 14:16:23,959 - INFO - 2025-08-25 14:16:23,959 - INFO - ================================================================================ 2025-08-25 14:16:23,959 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-25 14:16:23,959 - 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-25 14:16:24,246 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-08-25 14:16:24,246 - INFO - Initial checks done. Running the testcase now 2025-08-25 14:16:24,246 - INFO - 2025-08-25 14:16:24,584 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68566427:ctest-vn4-35017958, 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-68566427:ctest-vn4-35017958, 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-68566427:ctest-vn4-35017958, 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-68566427:ctest-vn4-35017958, 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-25 14:16:25,090 - DEBUG - Response for create_network : {'network': {'id': '06266c6c-7c39-4e70-a253-aedce894d2bc', 'name': 'ctest-vn4-35017958', 'tenant_id': 'fe0a1b77db7c4cc8a8b01aec28972adf', 'project_id': 'fe0a1b77db7c4cc8a8b01aec28972adf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68566427', 'ctest-vn4-35017958'], 'port_security_enabled': True, 'description': ''}} 2025-08-25 14:16:25,246 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7d78bc5-fb0f-4f36-b1b9-9b5bf5132527', 'name': '', 'tenant_id': 'fe0a1b77db7c4cc8a8b01aec28972adf', 'network_id': '06266c6c-7c39-4e70-a253-aedce894d2bc', 'ip_version': 4, 'cidr': '175.191.31.192/26', 'allocation_pools': [{'start': '175.191.31.194', 'end': '175.191.31.254'}], 'gateway_ip': '175.191.31.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.191.31.194', 'tags': [], 'project_id': 'fe0a1b77db7c4cc8a8b01aec28972adf'}} 2025-08-25 14:16:25,441 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d72f50f-d425-4f4f-860e-1b4da633b673', 'name': '', 'tenant_id': 'fe0a1b77db7c4cc8a8b01aec28972adf', 'network_id': '06266c6c-7c39-4e70-a253-aedce894d2bc', 'ip_version': 6, 'cidr': '2150:550c:a174:2d1a:c6df:4bcd::/96', 'allocation_pools': [{'start': '2150:550c:a174:2d1a:c6df:4bcd:0:2', 'end': '2150:550c:a174:2d1a:c6df:4bcd:ffff:fffe'}], 'gateway_ip': '2150:550c:a174:2d1a:c6df:4bcd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2150:550c:a174:2d1a:c6df:4bcd:0:2', 'tags': [], 'project_id': 'fe0a1b77db7c4cc8a8b01aec28972adf'}} 2025-08-25 14:16:25,458 - INFO - Created VN ctest-vn4-35017958 2025-08-25 14:16:25,513 - DEBUG - VN ctest-vn4-35017958 UUID is 06266c6c-7c39-4e70-a253-aedce894d2bc 2025-08-25 14:16:25,714 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '06266c6c-7c39-4e70-a253-aedce894d2bc', 'name': 'ctest-vn4-35017958', 'tenant_id': 'fe0a1b77db7c4cc8a8b01aec28972adf', 'project_id': 'fe0a1b77db7c4cc8a8b01aec28972adf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f7d78bc5-fb0f-4f36-b1b9-9b5bf5132527', '1d72f50f-d425-4f4f-860e-1b4da633b673'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68566427', 'ctest-vn4-35017958'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68566427', 'ctest-policy1-67005926']], 'subnet_ipam': [{'subnet_cidr': '175.191.31.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2150:550c:a174:2d1a:c6df:4bcd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-25 14:16:25,877 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-25 14:16:26,165 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-25 14:16:26,190 - DEBUG - Requesting: http://10.0.0.38:8082/domain/838f4595-933f-4db7-a90d-cb2979b9e6b9 2025-08-25 14:16:26,202 - DEBUG - Requesting: http://10.0.0.38:8082/project/fe0a1b77-db7c-4cc8-a8b0-1aec28972adf 2025-08-25 14:16:26,274 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/06266c6c-7c39-4e70-a253-aedce894d2bc 2025-08-25 14:16:26,286 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/06266c6c-7c39-4e70-a253-aedce894d2bc 2025-08-25 14:16:26,297 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c8da4ff9-b770-435a-aca2-ab43e20f5c23 2025-08-25 14:16:26,304 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c8da4ff9-b770-435a-aca2-ab43e20f5c23 2025-08-25 14:16:26,310 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/033ea859-dba8-41fe-a427-9f12801ef4c8 2025-08-25 14:16:26,317 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-25 14:16:26,317 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/06266c6c-7c39-4e70-a253-aedce894d2bc 2025-08-25 14:16:26,327 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c8da4ff9-b770-435a-aca2-ab43e20f5c23 2025-08-25 14:16:26,340 - INFO - Verified VN network id 12 for VN 06266c6c-7c39-4e70-a253-aedce894d2bc 2025-08-25 14:16:26,340 - INFO - Verifications in API Server for VN ctest-vn4-35017958 passed 2025-08-25 14:16:26,341 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/06266c6c-7c39-4e70-a253-aedce894d2bc 2025-08-25 14:16:26,351 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c8da4ff9-b770-435a-aca2-ab43e20f5c23 2025-08-25 14:16:26,358 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c8da4ff9-b770-435a-aca2-ab43e20f5c23 2025-08-25 14:16:26,365 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/033ea859-dba8-41fe-a427-9f12801ef4c8 2025-08-25 14:16:26,379 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68566427:ctest-vn4-35017958', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-68566427', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '443160826538970736', 'uuid-lslong': '11696884921029415612'}, 'enable': 'true', 'created': '2025-08-25T14:16:25', 'last-modified': '2025-08-25T14:16:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.705347'} 2025-08-25 14:16:26,386 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-25 14:16:26,386 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-35017958 passed 2025-08-25 14:16:26,386 - DEBUG - ====Verifying policy data for ctest-vn4-35017958 in API_Server ====== 2025-08-25 14:16:26,386 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-25 14:16:26,392 - DEBUG - Requesting: http://10.0.0.38:8082/domain/838f4595-933f-4db7-a90d-cb2979b9e6b9 2025-08-25 14:16:26,403 - DEBUG - Requesting: http://10.0.0.38:8082/project/fe0a1b77-db7c-4cc8-a8b0-1aec28972adf 2025-08-25 14:16:26,476 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/06266c6c-7c39-4e70-a253-aedce894d2bc 2025-08-25 14:16:26,490 - DEBUG - ==>Verifying data for policy with id: a0f9e62c-3e39-45be-b11e-7f93828ef255, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68566427', 'ctest-policy1-67005926'] 2025-08-25 14:16:26,490 - INFO - VN ctest-vn4-35017958 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-25 14:16:26,490 - DEBUG - Verifying the vn in opserver 2025-08-25 14:16:26,490 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68566427:ctest-vn4-35017958 virtual network link through opserver 10.0.0.38 2025-08-25 14:16:26,490 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-25 14:16:26,780 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-25 14:16:26,830 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68566427:ctest-vn4-35017958', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68566427:ctest-vn4-35017958?flat'} 2025-08-25 14:16:26,830 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68566427:ctest-vn4-35017958 is found in opserver 2025-08-25 14:16:26,841 - DEBUG - Do not have enough data to verify VN in agent 2025-08-25 14:16:26,846 - DEBUG - VRF ids for VN ctest-vn4-35017958: {} 2025-08-25 14:16:26,847 - DEBUG - ====Verifying data for ctest-policy1-67005926 in API_Server ====== 2025-08-25 14:16:26,847 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-25 14:16:26,853 - DEBUG - Requesting: http://10.0.0.38:8082/domain/838f4595-933f-4db7-a90d-cb2979b9e6b9 2025-08-25 14:16:26,864 - DEBUG - Requesting: http://10.0.0.38:8082/project/fe0a1b77-db7c-4cc8-a8b0-1aec28972adf 2025-08-25 14:16:26,934 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/a0f9e62c-3e39-45be-b11e-7f93828ef255 2025-08-25 14:16:26,944 - INFO - Verified policy ctest-policy1-67005926 in API Server, Result: True 2025-08-25 14:16:26,944 - INFO - Done with setup and verification, moving onto test .. 2025-08-25 14:16:26,951 - INFO - Deleting VN ctest-vn4-35017958 2025-08-25 14:16:27,076 - DEBUG - Response for deleting network () 2025-08-25 14:16:27,076 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c8da4ff9-b770-435a-aca2-ab43e20f5c23 2025-08-25 14:16:27,080 - DEBUG - Response Code: 404 2025-08-25 14:16:27,080 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-25 14:16:27,085 - DEBUG - Requesting: http://10.0.0.38:8082/domain/838f4595-933f-4db7-a90d-cb2979b9e6b9 2025-08-25 14:16:27,139 - DEBUG - Requesting: http://10.0.0.38:8082/project/fe0a1b77-db7c-4cc8-a8b0-1aec28972adf 2025-08-25 14:16:27,220 - INFO - Validated that VN ctest-vn4-35017958 is not found in API Server 2025-08-25 14:16:27,233 - DEBUG - VN ctest-vn4-35017958 is not present in Agent 10.0.0.38 2025-08-25 14:16:27,233 - INFO - Validated that VN ctest-vn4-35017958 is not in any agent 2025-08-25 14:16:27,254 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-35017958 info 2025-08-25 14:16:27,282 - INFO - Deleted policy ctest-policy1-67005926 2025-08-25 14:16:27,449 - DEBUG - policy ctest-policy1-67005926 is not found in API Server 2025-08-25 14:16:27,711 - DEBUG - No XMPP flaps were noticed during the test