2025-08-11 11:20:11,834 - INFO - Domain Default found not creating 2025-08-11 11:20:11,972 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-05817777 not found, creating it 2025-08-11 11:20:12,418 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-05817777, ID : 8982b499-f932-49b5-b36d-c0132b673d86 2025-08-11 11:20:13,774 - INFO - ================================================================================ 2025-08-11 11:20:13,774 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 11:20:14,027 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.18': '0'}} with 2025-08-11 11:20:14,027 - INFO - Initial checks done. Running the testcase now 2025-08-11 11:20:14,027 - INFO - 2025-08-11 11:20:14,027 - INFO - ================================================================================ 2025-08-11 11:20:14,027 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 11:20:14,027 - 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 11:20:14,315 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.18': '0'}} with 2025-08-11 11:20:14,315 - INFO - Initial checks done. Running the testcase now 2025-08-11 11:20:14,315 - INFO - 2025-08-11 11:20:14,656 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05817777:ctest-vn4-42170760, 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-05817777:ctest-vn4-42170760, 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-05817777:ctest-vn4-42170760, 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-05817777:ctest-vn4-42170760, 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 11:20:15,159 - DEBUG - Response for create_network : {'network': {'id': 'fe0d5d1f-eb4e-4e8c-9a59-ee112863bb97', 'name': 'ctest-vn4-42170760', 'tenant_id': '8982b499f93249b5b36dc0132b673d86', 'project_id': '8982b499f93249b5b36dc0132b673d86', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05817777', 'ctest-vn4-42170760'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 11:20:15,365 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c221fbd9-c771-435f-8016-89b254f9d54a', 'name': '', 'tenant_id': '8982b499f93249b5b36dc0132b673d86', 'network_id': 'fe0d5d1f-eb4e-4e8c-9a59-ee112863bb97', 'ip_version': 4, 'cidr': '24.252.204.128/26', 'allocation_pools': [{'start': '24.252.204.130', 'end': '24.252.204.190'}], 'gateway_ip': '24.252.204.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.252.204.130', 'tags': [], 'project_id': '8982b499f93249b5b36dc0132b673d86'}} 2025-08-11 11:20:15,546 - DEBUG - Response for create_subnet : {'subnet': {'id': '5b91ddfa-c17e-4123-bfe7-34115af099ad', 'name': '', 'tenant_id': '8982b499f93249b5b36dc0132b673d86', 'network_id': 'fe0d5d1f-eb4e-4e8c-9a59-ee112863bb97', 'ip_version': 6, 'cidr': '3c2f:2edf:5e60:9929:27cb:4e5c::/96', 'allocation_pools': [{'start': '3c2f:2edf:5e60:9929:27cb:4e5c:0:2', 'end': '3c2f:2edf:5e60:9929:27cb:4e5c:ffff:fffe'}], 'gateway_ip': '3c2f:2edf:5e60:9929:27cb:4e5c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c2f:2edf:5e60:9929:27cb:4e5c:0:2', 'tags': [], 'project_id': '8982b499f93249b5b36dc0132b673d86'}} 2025-08-11 11:20:15,568 - INFO - Created VN ctest-vn4-42170760 2025-08-11 11:20:15,621 - DEBUG - VN ctest-vn4-42170760 UUID is fe0d5d1f-eb4e-4e8c-9a59-ee112863bb97 2025-08-11 11:20:15,819 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fe0d5d1f-eb4e-4e8c-9a59-ee112863bb97', 'name': 'ctest-vn4-42170760', 'tenant_id': '8982b499f93249b5b36dc0132b673d86', 'project_id': '8982b499f93249b5b36dc0132b673d86', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c221fbd9-c771-435f-8016-89b254f9d54a', '5b91ddfa-c17e-4123-bfe7-34115af099ad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05817777', 'ctest-vn4-42170760'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05817777', 'ctest-policy1-42879756']], 'subnet_ipam': [{'subnet_cidr': '24.252.204.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c2f:2edf:5e60:9929:27cb:4e5c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 11:20:15,985 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-11 11:20:16,273 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-11 11:20:16,301 - DEBUG - Requesting: http://10.0.0.33:8082/domain/78ebd613-adbc-492c-af69-67765f8a538f 2025-08-11 11:20:16,316 - DEBUG - Requesting: http://10.0.0.33:8082/project/8982b499-f932-49b5-b36d-c0132b673d86 2025-08-11 11:20:16,389 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fe0d5d1f-eb4e-4e8c-9a59-ee112863bb97 2025-08-11 11:20:16,401 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fe0d5d1f-eb4e-4e8c-9a59-ee112863bb97 2025-08-11 11:20:16,410 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4f8d5375-ecdc-4449-8509-a9a7fd74db66 2025-08-11 11:20:16,418 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4f8d5375-ecdc-4449-8509-a9a7fd74db66 2025-08-11 11:20:16,424 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d0df5d15-f172-4ec3-9c50-3e4041b2af12 2025-08-11 11:20:16,430 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 11:20:16,430 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fe0d5d1f-eb4e-4e8c-9a59-ee112863bb97 2025-08-11 11:20:16,439 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4f8d5375-ecdc-4449-8509-a9a7fd74db66 2025-08-11 11:20:16,451 - INFO - Verified VN network id 11 for VN fe0d5d1f-eb4e-4e8c-9a59-ee112863bb97 2025-08-11 11:20:16,451 - INFO - Verifications in API Server for VN ctest-vn4-42170760 passed 2025-08-11 11:20:16,451 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fe0d5d1f-eb4e-4e8c-9a59-ee112863bb97 2025-08-11 11:20:16,462 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4f8d5375-ecdc-4449-8509-a9a7fd74db66 2025-08-11 11:20:16,469 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4f8d5375-ecdc-4449-8509-a9a7fd74db66 2025-08-11 11:20:16,475 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d0df5d15-f172-4ec3-9c50-3e4041b2af12 2025-08-11 11:20:16,487 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05817777:ctest-vn4-42170760', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-05817777', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18306390452004081292', 'uuid-lslong': '11122182512227629975'}, 'enable': 'true', 'created': '2025-08-11T11:20:15', 'last-modified': '2025-08-11T11:20:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.695555'} 2025-08-11 11:20:16,493 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 11:20:16,493 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-42170760 passed 2025-08-11 11:20:16,493 - DEBUG - ====Verifying policy data for ctest-vn4-42170760 in API_Server ====== 2025-08-11 11:20:16,494 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-11 11:20:16,499 - DEBUG - Requesting: http://10.0.0.33:8082/domain/78ebd613-adbc-492c-af69-67765f8a538f 2025-08-11 11:20:16,509 - DEBUG - Requesting: http://10.0.0.33:8082/project/8982b499-f932-49b5-b36d-c0132b673d86 2025-08-11 11:20:16,577 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fe0d5d1f-eb4e-4e8c-9a59-ee112863bb97 2025-08-11 11:20:16,588 - DEBUG - ==>Verifying data for policy with id: 637212ae-4280-4a3c-8e3d-d0f759b4968f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05817777', 'ctest-policy1-42879756'] 2025-08-11 11:20:16,588 - INFO - VN ctest-vn4-42170760 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 11:20:16,588 - DEBUG - Verifying the vn in opserver 2025-08-11 11:20:16,588 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05817777:ctest-vn4-42170760 virtual network link through opserver 10.0.0.33 2025-08-11 11:20:16,588 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-11 11:20:16,877 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-11 11:20:16,934 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05817777:ctest-vn4-42170760', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05817777:ctest-vn4-42170760?flat'} 2025-08-11 11:20:16,934 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05817777:ctest-vn4-42170760 is found in opserver 2025-08-11 11:20:16,947 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 11:20:16,952 - DEBUG - VRF ids for VN ctest-vn4-42170760: {} 2025-08-11 11:20:16,953 - DEBUG - ====Verifying data for ctest-policy1-42879756 in API_Server ====== 2025-08-11 11:20:16,953 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-11 11:20:16,958 - DEBUG - Requesting: http://10.0.0.33:8082/domain/78ebd613-adbc-492c-af69-67765f8a538f 2025-08-11 11:20:16,970 - DEBUG - Requesting: http://10.0.0.33:8082/project/8982b499-f932-49b5-b36d-c0132b673d86 2025-08-11 11:20:17,044 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/637212ae-4280-4a3c-8e3d-d0f759b4968f 2025-08-11 11:20:17,055 - INFO - Verified policy ctest-policy1-42879756 in API Server, Result: True 2025-08-11 11:20:17,055 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 11:20:17,064 - INFO - Deleting VN ctest-vn4-42170760 2025-08-11 11:20:17,185 - DEBUG - Response for deleting network () 2025-08-11 11:20:17,185 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4f8d5375-ecdc-4449-8509-a9a7fd74db66 2025-08-11 11:20:17,190 - DEBUG - Response Code: 404 2025-08-11 11:20:17,190 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-11 11:20:17,194 - DEBUG - Requesting: http://10.0.0.33:8082/domain/78ebd613-adbc-492c-af69-67765f8a538f 2025-08-11 11:20:17,246 - DEBUG - Requesting: http://10.0.0.33:8082/project/8982b499-f932-49b5-b36d-c0132b673d86 2025-08-11 11:20:17,313 - INFO - Validated that VN ctest-vn4-42170760 is not found in API Server 2025-08-11 11:20:17,323 - DEBUG - VN ctest-vn4-42170760 is not present in Agent 10.0.0.33 2025-08-11 11:20:17,323 - INFO - Validated that VN ctest-vn4-42170760 is not in any agent 2025-08-11 11:20:17,338 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-42170760 info 2025-08-11 11:20:17,360 - INFO - Deleted policy ctest-policy1-42879756 2025-08-11 11:20:17,528 - DEBUG - policy ctest-policy1-42879756 is not found in API Server 2025-08-11 11:20:17,786 - DEBUG - No XMPP flaps were noticed during the test