2025-08-14 14:28:16,905 - INFO - Domain Default found not creating 2025-08-14 14:28:17,051 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-70808146 not found, creating it 2025-08-14 14:28:17,512 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-70808146, ID : 1e75858c-30a7-47b9-af8f-28afca50b9e8 2025-08-14 14:28:19,026 - INFO - ================================================================================ 2025-08-14 14:28:19,026 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-14 14:28:19,282 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.0.0.249': '0'}} with 2025-08-14 14:28:19,282 - INFO - Initial checks done. Running the testcase now 2025-08-14 14:28:19,282 - INFO - 2025-08-14 14:28:19,282 - INFO - ================================================================================ 2025-08-14 14:28:19,282 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-14 14:28:19,282 - 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-14 14:28:19,571 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.0.0.249': '0'}} with 2025-08-14 14:28:19,571 - INFO - Initial checks done. Running the testcase now 2025-08-14 14:28:19,571 - INFO - 2025-08-14 14:28:19,971 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70808146:ctest-vn4-37973624, 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-70808146:ctest-vn4-37973624, 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-70808146:ctest-vn4-37973624, 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-70808146:ctest-vn4-37973624, 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-14 14:28:20,540 - DEBUG - Response for create_network : {'network': {'id': '6637623e-81f3-4c54-8cfa-eaaa08f51f8f', 'name': 'ctest-vn4-37973624', 'tenant_id': '1e75858c30a747b9af8f28afca50b9e8', 'project_id': '1e75858c30a747b9af8f28afca50b9e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70808146', 'ctest-vn4-37973624'], 'port_security_enabled': True, 'description': ''}} 2025-08-14 14:28:20,754 - DEBUG - Response for create_subnet : {'subnet': {'id': '5386e678-0df8-442d-92b7-3c74e04260bb', 'name': '', 'tenant_id': '1e75858c30a747b9af8f28afca50b9e8', 'network_id': '6637623e-81f3-4c54-8cfa-eaaa08f51f8f', 'ip_version': 4, 'cidr': '155.177.227.128/26', 'allocation_pools': [{'start': '155.177.227.130', 'end': '155.177.227.190'}], 'gateway_ip': '155.177.227.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.177.227.130', 'tags': [], 'project_id': '1e75858c30a747b9af8f28afca50b9e8'}} 2025-08-14 14:28:20,943 - DEBUG - Response for create_subnet : {'subnet': {'id': '14bb53a6-87a2-4c4c-9595-d5c14395670f', 'name': '', 'tenant_id': '1e75858c30a747b9af8f28afca50b9e8', 'network_id': '6637623e-81f3-4c54-8cfa-eaaa08f51f8f', 'ip_version': 6, 'cidr': '3ec1:a0cf:df3e:c61d:226f:db27::/96', 'allocation_pools': [{'start': '3ec1:a0cf:df3e:c61d:226f:db27:0:2', 'end': '3ec1:a0cf:df3e:c61d:226f:db27:ffff:fffe'}], 'gateway_ip': '3ec1:a0cf:df3e:c61d:226f:db27:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ec1:a0cf:df3e:c61d:226f:db27:0:2', 'tags': [], 'project_id': '1e75858c30a747b9af8f28afca50b9e8'}} 2025-08-14 14:28:20,964 - INFO - Created VN ctest-vn4-37973624 2025-08-14 14:28:21,021 - DEBUG - VN ctest-vn4-37973624 UUID is 6637623e-81f3-4c54-8cfa-eaaa08f51f8f 2025-08-14 14:28:21,235 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6637623e-81f3-4c54-8cfa-eaaa08f51f8f', 'name': 'ctest-vn4-37973624', 'tenant_id': '1e75858c30a747b9af8f28afca50b9e8', 'project_id': '1e75858c30a747b9af8f28afca50b9e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5386e678-0df8-442d-92b7-3c74e04260bb', '14bb53a6-87a2-4c4c-9595-d5c14395670f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70808146', 'ctest-vn4-37973624'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70808146', 'ctest-policy1-38462321']], 'subnet_ipam': [{'subnet_cidr': '155.177.227.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ec1:a0cf:df3e:c61d:226f:db27::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-14 14:28:21,409 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-14 14:28:21,740 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-14 14:28:21,775 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a0cb9ab4-4bf2-4823-bccf-e0f31e6c7a8d 2025-08-14 14:28:21,789 - DEBUG - Requesting: http://10.0.0.249:8082/project/1e75858c-30a7-47b9-af8f-28afca50b9e8 2025-08-14 14:28:21,874 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6637623e-81f3-4c54-8cfa-eaaa08f51f8f 2025-08-14 14:28:21,890 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6637623e-81f3-4c54-8cfa-eaaa08f51f8f 2025-08-14 14:28:21,901 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cc3e4a54-222a-41f2-b6d0-dfbb8314b738 2025-08-14 14:28:21,909 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cc3e4a54-222a-41f2-b6d0-dfbb8314b738 2025-08-14 14:28:21,916 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/9ffc0d93-1e7c-43bc-879d-96fd4d7d094c 2025-08-14 14:28:21,923 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-14 14:28:21,923 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6637623e-81f3-4c54-8cfa-eaaa08f51f8f 2025-08-14 14:28:21,933 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cc3e4a54-222a-41f2-b6d0-dfbb8314b738 2025-08-14 14:28:21,949 - INFO - Verified VN network id 10 for VN 6637623e-81f3-4c54-8cfa-eaaa08f51f8f 2025-08-14 14:28:21,949 - INFO - Verifications in API Server for VN ctest-vn4-37973624 passed 2025-08-14 14:28:21,949 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6637623e-81f3-4c54-8cfa-eaaa08f51f8f 2025-08-14 14:28:21,960 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cc3e4a54-222a-41f2-b6d0-dfbb8314b738 2025-08-14 14:28:21,968 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cc3e4a54-222a-41f2-b6d0-dfbb8314b738 2025-08-14 14:28:21,975 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/9ffc0d93-1e7c-43bc-879d-96fd4d7d094c 2025-08-14 14:28:21,988 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70808146:ctest-vn4-37973624', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-70808146', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7365463736195435604', 'uuid-lslong': '10158689925503197071'}, 'enable': 'true', 'created': '2025-08-14T14:28:20', 'last-modified': '2025-08-14T14:28:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.780364'} 2025-08-14 14:28:21,995 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-14 14:28:21,995 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-37973624 passed 2025-08-14 14:28:21,995 - DEBUG - ====Verifying policy data for ctest-vn4-37973624 in API_Server ====== 2025-08-14 14:28:21,995 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-14 14:28:22,001 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a0cb9ab4-4bf2-4823-bccf-e0f31e6c7a8d 2025-08-14 14:28:22,014 - DEBUG - Requesting: http://10.0.0.249:8082/project/1e75858c-30a7-47b9-af8f-28afca50b9e8 2025-08-14 14:28:22,096 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6637623e-81f3-4c54-8cfa-eaaa08f51f8f 2025-08-14 14:28:22,107 - DEBUG - ==>Verifying data for policy with id: 20859291-9103-44ce-9a5d-1db4d7c053ab, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70808146', 'ctest-policy1-38462321'] 2025-08-14 14:28:22,107 - INFO - VN ctest-vn4-37973624 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-14 14:28:22,107 - DEBUG - Verifying the vn in opserver 2025-08-14 14:28:22,107 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70808146:ctest-vn4-37973624 virtual network link through opserver 10.0.0.249 2025-08-14 14:28:22,107 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-14 14:28:22,440 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-14 14:28:22,499 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70808146:ctest-vn4-37973624', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70808146:ctest-vn4-37973624?flat'} 2025-08-14 14:28:22,499 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70808146:ctest-vn4-37973624 is found in opserver 2025-08-14 14:28:22,509 - DEBUG - Do not have enough data to verify VN in agent 2025-08-14 14:28:22,514 - DEBUG - VRF ids for VN ctest-vn4-37973624: {} 2025-08-14 14:28:22,514 - DEBUG - ====Verifying data for ctest-policy1-38462321 in API_Server ====== 2025-08-14 14:28:22,514 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-14 14:28:22,520 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a0cb9ab4-4bf2-4823-bccf-e0f31e6c7a8d 2025-08-14 14:28:22,532 - DEBUG - Requesting: http://10.0.0.249:8082/project/1e75858c-30a7-47b9-af8f-28afca50b9e8 2025-08-14 14:28:22,611 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/20859291-9103-44ce-9a5d-1db4d7c053ab 2025-08-14 14:28:22,622 - INFO - Verified policy ctest-policy1-38462321 in API Server, Result: True 2025-08-14 14:28:22,622 - INFO - Done with setup and verification, moving onto test .. 2025-08-14 14:28:22,634 - INFO - Deleting VN ctest-vn4-37973624 2025-08-14 14:28:23,078 - DEBUG - Response for deleting network () 2025-08-14 14:28:23,078 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cc3e4a54-222a-41f2-b6d0-dfbb8314b738 2025-08-14 14:28:23,092 - DEBUG - Response Code: 404 2025-08-14 14:28:23,092 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-14 14:28:23,108 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a0cb9ab4-4bf2-4823-bccf-e0f31e6c7a8d 2025-08-14 14:28:23,168 - DEBUG - Requesting: http://10.0.0.249:8082/project/1e75858c-30a7-47b9-af8f-28afca50b9e8 2025-08-14 14:28:23,288 - INFO - Validated that VN ctest-vn4-37973624 is not found in API Server 2025-08-14 14:28:23,301 - DEBUG - VN ctest-vn4-37973624 is not present in Agent 10.0.0.249 2025-08-14 14:28:23,301 - INFO - Validated that VN ctest-vn4-37973624 is not in any agent 2025-08-14 14:28:23,317 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-37973624 info 2025-08-14 14:28:23,407 - INFO - Deleted policy ctest-policy1-38462321 2025-08-14 14:28:23,589 - DEBUG - policy ctest-policy1-38462321 is not found in API Server 2025-08-14 14:28:23,866 - DEBUG - No XMPP flaps were noticed during the test