2025-08-11 18:33:12,451 - INFO - Domain Default found not creating 2025-08-11 18:33:12,576 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-48363087 not found, creating it 2025-08-11 18:33:13,007 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-48363087, ID : acb46f04-128a-4361-82cf-39840a8c4b0c 2025-08-11 18:33:14,325 - INFO - ================================================================================ 2025-08-11 18:33:14,326 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 18:33:14,582 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-08-11 18:33:14,582 - INFO - Initial checks done. Running the testcase now 2025-08-11 18:33:14,582 - INFO - 2025-08-11 18:33:14,583 - INFO - ================================================================================ 2025-08-11 18:33:14,583 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 18:33:14,583 - 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-11 18:33:14,866 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-08-11 18:33:14,866 - INFO - Initial checks done. Running the testcase now 2025-08-11 18:33:14,866 - INFO - 2025-08-11 18:33:15,203 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48363087:ctest-vn4-24946130, 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-48363087:ctest-vn4-24946130, 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-48363087:ctest-vn4-24946130, 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-48363087:ctest-vn4-24946130, 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-11 18:33:15,697 - DEBUG - Response for create_network : {'network': {'id': '1bd92e9f-bbef-4d55-a9ca-b9c155359da6', 'name': 'ctest-vn4-24946130', 'tenant_id': 'acb46f04128a436182cf39840a8c4b0c', 'project_id': 'acb46f04128a436182cf39840a8c4b0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48363087', 'ctest-vn4-24946130'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 18:33:15,893 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe4b10d3-5832-48f6-9a46-04e42af81209', 'name': '', 'tenant_id': 'acb46f04128a436182cf39840a8c4b0c', 'network_id': '1bd92e9f-bbef-4d55-a9ca-b9c155359da6', 'ip_version': 4, 'cidr': '47.2.5.128/26', 'allocation_pools': [{'start': '47.2.5.130', 'end': '47.2.5.190'}], 'gateway_ip': '47.2.5.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.2.5.130', 'tags': [], 'project_id': 'acb46f04128a436182cf39840a8c4b0c'}} 2025-08-11 18:33:16,083 - DEBUG - Response for create_subnet : {'subnet': {'id': '703a3f78-e75d-4292-8eb5-0723d873a014', 'name': '', 'tenant_id': 'acb46f04128a436182cf39840a8c4b0c', 'network_id': '1bd92e9f-bbef-4d55-a9ca-b9c155359da6', 'ip_version': 6, 'cidr': '2b9a:a88f:7bdf:49de:3815:4bf3::/96', 'allocation_pools': [{'start': '2b9a:a88f:7bdf:49de:3815:4bf3:0:2', 'end': '2b9a:a88f:7bdf:49de:3815:4bf3:ffff:fffe'}], 'gateway_ip': '2b9a:a88f:7bdf:49de:3815:4bf3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b9a:a88f:7bdf:49de:3815:4bf3:0:2', 'tags': [], 'project_id': 'acb46f04128a436182cf39840a8c4b0c'}} 2025-08-11 18:33:16,101 - INFO - Created VN ctest-vn4-24946130 2025-08-11 18:33:16,153 - DEBUG - VN ctest-vn4-24946130 UUID is 1bd92e9f-bbef-4d55-a9ca-b9c155359da6 2025-08-11 18:33:16,345 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1bd92e9f-bbef-4d55-a9ca-b9c155359da6', 'name': 'ctest-vn4-24946130', 'tenant_id': 'acb46f04128a436182cf39840a8c4b0c', 'project_id': 'acb46f04128a436182cf39840a8c4b0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fe4b10d3-5832-48f6-9a46-04e42af81209', '703a3f78-e75d-4292-8eb5-0723d873a014'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48363087', 'ctest-vn4-24946130'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48363087', 'ctest-policy1-73581863']], 'subnet_ipam': [{'subnet_cidr': '47.2.5.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b9a:a88f:7bdf:49de:3815:4bf3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 18:33:16,501 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-08-11 18:33:16,792 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-08-11 18:33:16,817 - DEBUG - Requesting: http://10.0.0.242:8082/domain/ae624269-2d4a-472d-80bf-18980a270f1b 2025-08-11 18:33:16,829 - DEBUG - Requesting: http://10.0.0.242:8082/project/acb46f04-128a-4361-82cf-39840a8c4b0c 2025-08-11 18:33:16,901 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1bd92e9f-bbef-4d55-a9ca-b9c155359da6 2025-08-11 18:33:16,912 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1bd92e9f-bbef-4d55-a9ca-b9c155359da6 2025-08-11 18:33:16,922 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0560b0a9-5114-4da1-a3e8-f3a2b845b0cf 2025-08-11 18:33:16,929 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0560b0a9-5114-4da1-a3e8-f3a2b845b0cf 2025-08-11 18:33:16,934 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/13c35947-28e8-4245-9d32-fad400744e28 2025-08-11 18:33:16,940 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 18:33:16,940 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1bd92e9f-bbef-4d55-a9ca-b9c155359da6 2025-08-11 18:33:16,949 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0560b0a9-5114-4da1-a3e8-f3a2b845b0cf 2025-08-11 18:33:16,960 - INFO - Verified VN network id 11 for VN 1bd92e9f-bbef-4d55-a9ca-b9c155359da6 2025-08-11 18:33:16,961 - INFO - Verifications in API Server for VN ctest-vn4-24946130 passed 2025-08-11 18:33:16,961 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1bd92e9f-bbef-4d55-a9ca-b9c155359da6 2025-08-11 18:33:16,970 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0560b0a9-5114-4da1-a3e8-f3a2b845b0cf 2025-08-11 18:33:16,976 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0560b0a9-5114-4da1-a3e8-f3a2b845b0cf 2025-08-11 18:33:16,982 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/13c35947-28e8-4245-9d32-fad400744e28 2025-08-11 18:33:16,993 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48363087:ctest-vn4-24946130', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48363087', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2006686372557966677', 'uuid-lslong': '12234795577714777510'}, 'enable': 'true', 'created': '2025-08-11T18:33:15', 'last-modified': '2025-08-11T18:33:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.678003'} 2025-08-11 18:33:17,000 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 18:33:17,000 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-24946130 passed 2025-08-11 18:33:17,000 - DEBUG - ====Verifying policy data for ctest-vn4-24946130 in API_Server ====== 2025-08-11 18:33:17,000 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-08-11 18:33:17,005 - DEBUG - Requesting: http://10.0.0.242:8082/domain/ae624269-2d4a-472d-80bf-18980a270f1b 2025-08-11 18:33:17,015 - DEBUG - Requesting: http://10.0.0.242:8082/project/acb46f04-128a-4361-82cf-39840a8c4b0c 2025-08-11 18:33:17,085 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1bd92e9f-bbef-4d55-a9ca-b9c155359da6 2025-08-11 18:33:17,095 - DEBUG - ==>Verifying data for policy with id: 432b8b79-6dc6-4ce0-a48c-1d12f34aa751, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48363087', 'ctest-policy1-73581863'] 2025-08-11 18:33:17,095 - INFO - VN ctest-vn4-24946130 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 18:33:17,095 - DEBUG - Verifying the vn in opserver 2025-08-11 18:33:17,095 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48363087:ctest-vn4-24946130 virtual network link through opserver 10.0.0.242 2025-08-11 18:33:17,095 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-08-11 18:33:17,382 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-08-11 18:33:17,430 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48363087:ctest-vn4-24946130', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48363087:ctest-vn4-24946130?flat'} 2025-08-11 18:33:17,430 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48363087:ctest-vn4-24946130 is found in opserver 2025-08-11 18:33:17,440 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 18:33:17,444 - DEBUG - VRF ids for VN ctest-vn4-24946130: {} 2025-08-11 18:33:17,445 - DEBUG - ====Verifying data for ctest-policy1-73581863 in API_Server ====== 2025-08-11 18:33:17,445 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-08-11 18:33:17,450 - DEBUG - Requesting: http://10.0.0.242:8082/domain/ae624269-2d4a-472d-80bf-18980a270f1b 2025-08-11 18:33:17,460 - DEBUG - Requesting: http://10.0.0.242:8082/project/acb46f04-128a-4361-82cf-39840a8c4b0c 2025-08-11 18:33:17,527 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/432b8b79-6dc6-4ce0-a48c-1d12f34aa751 2025-08-11 18:33:17,537 - INFO - Verified policy ctest-policy1-73581863 in API Server, Result: True 2025-08-11 18:33:17,537 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 18:33:17,544 - INFO - Deleting VN ctest-vn4-24946130 2025-08-11 18:33:17,649 - DEBUG - Response for deleting network () 2025-08-11 18:33:17,650 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0560b0a9-5114-4da1-a3e8-f3a2b845b0cf 2025-08-11 18:33:17,654 - DEBUG - Response Code: 404 2025-08-11 18:33:17,654 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-08-11 18:33:17,658 - DEBUG - Requesting: http://10.0.0.242:8082/domain/ae624269-2d4a-472d-80bf-18980a270f1b 2025-08-11 18:33:17,710 - DEBUG - Requesting: http://10.0.0.242:8082/project/acb46f04-128a-4361-82cf-39840a8c4b0c 2025-08-11 18:33:17,777 - INFO - Validated that VN ctest-vn4-24946130 is not found in API Server 2025-08-11 18:33:17,787 - DEBUG - VN ctest-vn4-24946130 is not present in Agent 10.0.0.242 2025-08-11 18:33:17,787 - INFO - Validated that VN ctest-vn4-24946130 is not in any agent 2025-08-11 18:33:17,801 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-24946130 info 2025-08-11 18:33:17,824 - INFO - Deleted policy ctest-policy1-73581863 2025-08-11 18:33:17,985 - DEBUG - policy ctest-policy1-73581863 is not found in API Server 2025-08-11 18:33:18,238 - DEBUG - No XMPP flaps were noticed during the test