2025-10-15 16:23:19,030 - INFO - Domain Default found not creating 2025-10-15 16:23:19,335 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-16820220 not found, creating it 2025-10-15 16:23:19,920 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-16820220, ID : d0a29e2b-e2fa-4d34-a9fc-720787ac18a4 2025-10-15 16:23:21,809 - INFO - ================================================================================ 2025-10-15 16:23:21,809 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-15 16:23:22,093 - DEBUG - Nothing to compare xmpp stats {'10.0.0.61': {'10.20.0.253': '0'}} with 2025-10-15 16:23:22,093 - INFO - Initial checks done. Running the testcase now 2025-10-15 16:23:22,093 - INFO - 2025-10-15 16:23:22,093 - INFO - ================================================================================ 2025-10-15 16:23:22,094 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-15 16:23:22,094 - 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-10-15 16:23:22,447 - DEBUG - Nothing to compare xmpp stats {'10.0.0.61': {'10.20.0.253': '0'}} with 2025-10-15 16:23:22,447 - INFO - Initial checks done. Running the testcase now 2025-10-15 16:23:22,447 - INFO - 2025-10-15 16:23:22,880 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16820220:ctest-vn4-19802496, 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-16820220:ctest-vn4-19802496, 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-16820220:ctest-vn4-19802496, 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-16820220:ctest-vn4-19802496, 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-10-15 16:23:23,553 - DEBUG - Response for create_network : {'network': {'id': '9df0f0a2-f0b4-4c31-9041-ce8fae605de1', 'name': 'ctest-vn4-19802496', 'tenant_id': 'd0a29e2be2fa4d34a9fc720787ac18a4', 'project_id': 'd0a29e2be2fa4d34a9fc720787ac18a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16820220', 'ctest-vn4-19802496'], 'port_security_enabled': True, 'description': ''}} 2025-10-15 16:23:23,741 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d67099e-8788-4635-9069-294cfeea30ba', 'name': '', 'tenant_id': 'd0a29e2be2fa4d34a9fc720787ac18a4', 'network_id': '9df0f0a2-f0b4-4c31-9041-ce8fae605de1', 'ip_version': 4, 'cidr': '65.206.117.128/26', 'allocation_pools': [{'start': '65.206.117.130', 'end': '65.206.117.190'}], 'gateway_ip': '65.206.117.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.206.117.130', 'tags': [], 'project_id': 'd0a29e2be2fa4d34a9fc720787ac18a4'}} 2025-10-15 16:23:24,033 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c3456bd4-20f5-43e6-9b53-0ace5d7f8c44', 'name': '', 'tenant_id': 'd0a29e2be2fa4d34a9fc720787ac18a4', 'network_id': '9df0f0a2-f0b4-4c31-9041-ce8fae605de1', 'ip_version': 6, 'cidr': '3b4a:5ea3:fea8:dd6:3703:8926::/96', 'allocation_pools': [{'start': '3b4a:5ea3:fea8:dd6:3703:8926:0:2', 'end': '3b4a:5ea3:fea8:dd6:3703:8926:ffff:fffe'}], 'gateway_ip': '3b4a:5ea3:fea8:dd6:3703:8926:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b4a:5ea3:fea8:dd6:3703:8926:0:2', 'tags': [], 'project_id': 'd0a29e2be2fa4d34a9fc720787ac18a4'}} 2025-10-15 16:23:24,067 - INFO - Created VN ctest-vn4-19802496 2025-10-15 16:23:24,131 - DEBUG - VN ctest-vn4-19802496 UUID is 9df0f0a2-f0b4-4c31-9041-ce8fae605de1 2025-10-15 16:23:24,501 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9df0f0a2-f0b4-4c31-9041-ce8fae605de1', 'name': 'ctest-vn4-19802496', 'tenant_id': 'd0a29e2be2fa4d34a9fc720787ac18a4', 'project_id': 'd0a29e2be2fa4d34a9fc720787ac18a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9d67099e-8788-4635-9069-294cfeea30ba', 'c3456bd4-20f5-43e6-9b53-0ace5d7f8c44'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16820220', 'ctest-vn4-19802496'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16820220', 'ctest-policy1-61251401']], 'subnet_ipam': [{'subnet_cidr': '65.206.117.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b4a:5ea3:fea8:dd6:3703:8926::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-15 16:23:24,683 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-10-15 16:23:25,042 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-10-15 16:23:25,087 - DEBUG - Requesting: http://10.0.0.61:8082/domain/43557b04-3e0b-4b1f-8db2-5b1e069e6d0d 2025-10-15 16:23:25,115 - DEBUG - Requesting: http://10.0.0.61:8082/project/d0a29e2b-e2fa-4d34-a9fc-720787ac18a4 2025-10-15 16:23:25,234 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/9df0f0a2-f0b4-4c31-9041-ce8fae605de1 2025-10-15 16:23:25,258 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/9df0f0a2-f0b4-4c31-9041-ce8fae605de1 2025-10-15 16:23:25,275 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/7b8c17d8-0a01-4a3f-9288-3c545aae43cf 2025-10-15 16:23:25,287 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/7b8c17d8-0a01-4a3f-9288-3c545aae43cf 2025-10-15 16:23:25,297 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/7c3bfab7-5895-4848-9b81-4d857581272e 2025-10-15 16:23:25,306 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-15 16:23:25,306 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/9df0f0a2-f0b4-4c31-9041-ce8fae605de1 2025-10-15 16:23:25,326 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/7b8c17d8-0a01-4a3f-9288-3c545aae43cf 2025-10-15 16:23:25,349 - INFO - Verified VN network id 11 for VN 9df0f0a2-f0b4-4c31-9041-ce8fae605de1 2025-10-15 16:23:25,350 - INFO - Verifications in API Server for VN ctest-vn4-19802496 passed 2025-10-15 16:23:25,350 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/9df0f0a2-f0b4-4c31-9041-ce8fae605de1 2025-10-15 16:23:25,364 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/7b8c17d8-0a01-4a3f-9288-3c545aae43cf 2025-10-15 16:23:25,374 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/7b8c17d8-0a01-4a3f-9288-3c545aae43cf 2025-10-15 16:23:25,385 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/7c3bfab7-5895-4848-9b81-4d857581272e 2025-10-15 16:23:25,408 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16820220:ctest-vn4-19802496', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-16820220', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11380860840978959409', 'uuid-lslong': '10394816531449011681'}, 'enable': 'true', 'created': '2025-10-15T16:23:23', 'last-modified': '2025-10-15T16:23:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.969121'} 2025-10-15 16:23:25,423 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-15 16:23:25,423 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-19802496 passed 2025-10-15 16:23:25,424 - DEBUG - ====Verifying policy data for ctest-vn4-19802496 in API_Server ====== 2025-10-15 16:23:25,424 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-10-15 16:23:25,435 - DEBUG - Requesting: http://10.0.0.61:8082/domain/43557b04-3e0b-4b1f-8db2-5b1e069e6d0d 2025-10-15 16:23:25,452 - DEBUG - Requesting: http://10.0.0.61:8082/project/d0a29e2b-e2fa-4d34-a9fc-720787ac18a4 2025-10-15 16:23:25,550 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/9df0f0a2-f0b4-4c31-9041-ce8fae605de1 2025-10-15 16:23:25,563 - DEBUG - ==>Verifying data for policy with id: 71cf168d-005d-457b-8e05-9900f0c54f75, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16820220', 'ctest-policy1-61251401'] 2025-10-15 16:23:25,563 - INFO - VN ctest-vn4-19802496 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-15 16:23:25,563 - DEBUG - Verifying the vn in opserver 2025-10-15 16:23:25,563 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16820220:ctest-vn4-19802496 virtual network link through opserver 10.0.0.61 2025-10-15 16:23:25,564 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-10-15 16:23:25,863 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-10-15 16:23:25,965 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16820220:ctest-vn4-19802496', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16820220:ctest-vn4-19802496?flat'} 2025-10-15 16:23:25,965 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16820220:ctest-vn4-19802496 is found in opserver 2025-10-15 16:23:25,996 - DEBUG - Do not have enough data to verify VN in agent 2025-10-15 16:23:26,012 - DEBUG - VRF ids for VN ctest-vn4-19802496: {} 2025-10-15 16:23:26,014 - DEBUG - ====Verifying data for ctest-policy1-61251401 in API_Server ====== 2025-10-15 16:23:26,014 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-10-15 16:23:26,030 - DEBUG - Requesting: http://10.0.0.61:8082/domain/43557b04-3e0b-4b1f-8db2-5b1e069e6d0d 2025-10-15 16:23:26,076 - DEBUG - Requesting: http://10.0.0.61:8082/project/d0a29e2b-e2fa-4d34-a9fc-720787ac18a4 2025-10-15 16:23:26,146 - DEBUG - Requesting: http://10.0.0.61:8082/network-policy/71cf168d-005d-457b-8e05-9900f0c54f75 2025-10-15 16:23:26,160 - INFO - Verified policy ctest-policy1-61251401 in API Server, Result: True 2025-10-15 16:23:26,161 - INFO - Done with setup and verification, moving onto test .. 2025-10-15 16:23:26,177 - INFO - Deleting VN ctest-vn4-19802496 2025-10-15 16:23:26,340 - DEBUG - Response for deleting network () 2025-10-15 16:23:26,340 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/7b8c17d8-0a01-4a3f-9288-3c545aae43cf 2025-10-15 16:23:26,345 - DEBUG - Response Code: 404 2025-10-15 16:23:26,345 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-10-15 16:23:26,352 - DEBUG - Requesting: http://10.0.0.61:8082/domain/43557b04-3e0b-4b1f-8db2-5b1e069e6d0d 2025-10-15 16:23:26,412 - DEBUG - Requesting: http://10.0.0.61:8082/project/d0a29e2b-e2fa-4d34-a9fc-720787ac18a4 2025-10-15 16:23:26,501 - INFO - Validated that VN ctest-vn4-19802496 is not found in API Server 2025-10-15 16:23:26,509 - DEBUG - VN ctest-vn4-19802496 is not present in Agent 10.0.0.61 2025-10-15 16:23:26,509 - INFO - Validated that VN ctest-vn4-19802496 is not in any agent 2025-10-15 16:23:26,526 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-19802496 info 2025-10-15 16:23:26,552 - INFO - Deleted policy ctest-policy1-61251401 2025-10-15 16:23:26,735 - DEBUG - policy ctest-policy1-61251401 is not found in API Server 2025-10-15 16:23:27,027 - DEBUG - No XMPP flaps were noticed during the test