2025-12-30 16:18:30,985 - INFO - Domain Default found not creating 2025-12-30 16:18:31,172 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06378294 not found, creating it 2025-12-30 16:18:31,653 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06378294, ID : f76fb677-f451-42c9-ac8e-8db1cffcab31 2025-12-30 16:18:33,218 - INFO - ================================================================================ 2025-12-30 16:18:33,218 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-30 16:18:33,478 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-12-30 16:18:33,478 - INFO - Initial checks done. Running the testcase now 2025-12-30 16:18:33,478 - INFO - 2025-12-30 16:18:33,478 - INFO - ================================================================================ 2025-12-30 16:18:33,478 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-30 16:18:33,478 - 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-12-30 16:18:33,781 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-12-30 16:18:33,781 - INFO - Initial checks done. Running the testcase now 2025-12-30 16:18:33,781 - INFO - 2025-12-30 16:18:34,143 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06378294:ctest-vn4-10410284, 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-06378294:ctest-vn4-10410284, 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-06378294:ctest-vn4-10410284, 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-06378294:ctest-vn4-10410284, 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-12-30 16:18:34,669 - DEBUG - Response for create_network : {'network': {'id': 'f02e53fc-65db-42e1-a2b7-ed60ddec1025', 'name': 'ctest-vn4-10410284', 'tenant_id': 'f76fb677f45142c9ac8e8db1cffcab31', 'project_id': 'f76fb677f45142c9ac8e8db1cffcab31', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06378294', 'ctest-vn4-10410284'], 'port_security_enabled': True, 'description': ''}} 2025-12-30 16:18:34,851 - DEBUG - Response for create_subnet : {'subnet': {'id': '44158f47-08dd-422d-9e98-c310a17a7fcd', 'name': '', 'tenant_id': 'f76fb677f45142c9ac8e8db1cffcab31', 'network_id': 'f02e53fc-65db-42e1-a2b7-ed60ddec1025', 'ip_version': 4, 'cidr': '78.42.204.0/26', 'allocation_pools': [{'start': '78.42.204.2', 'end': '78.42.204.62'}], 'gateway_ip': '78.42.204.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.42.204.2', 'tags': [], 'project_id': 'f76fb677f45142c9ac8e8db1cffcab31'}} 2025-12-30 16:18:35,071 - DEBUG - Response for create_subnet : {'subnet': {'id': '970cbd14-d344-49f2-83c4-008add58ee8c', 'name': '', 'tenant_id': 'f76fb677f45142c9ac8e8db1cffcab31', 'network_id': 'f02e53fc-65db-42e1-a2b7-ed60ddec1025', 'ip_version': 6, 'cidr': '325a:9718:2c39:4217:547e:d162::/96', 'allocation_pools': [{'start': '325a:9718:2c39:4217:547e:d162:0:2', 'end': '325a:9718:2c39:4217:547e:d162:ffff:fffe'}], 'gateway_ip': '325a:9718:2c39:4217:547e:d162:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '325a:9718:2c39:4217:547e:d162:0:2', 'tags': [], 'project_id': 'f76fb677f45142c9ac8e8db1cffcab31'}} 2025-12-30 16:18:35,093 - INFO - Created VN ctest-vn4-10410284 2025-12-30 16:18:35,148 - DEBUG - VN ctest-vn4-10410284 UUID is f02e53fc-65db-42e1-a2b7-ed60ddec1025 2025-12-30 16:18:35,357 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f02e53fc-65db-42e1-a2b7-ed60ddec1025', 'name': 'ctest-vn4-10410284', 'tenant_id': 'f76fb677f45142c9ac8e8db1cffcab31', 'project_id': 'f76fb677f45142c9ac8e8db1cffcab31', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['44158f47-08dd-422d-9e98-c310a17a7fcd', '970cbd14-d344-49f2-83c4-008add58ee8c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06378294', 'ctest-vn4-10410284'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06378294', 'ctest-policy1-00692978']], 'subnet_ipam': [{'subnet_cidr': '78.42.204.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '325a:9718:2c39:4217:547e:d162::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-30 16:18:35,535 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-30 16:18:35,839 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-30 16:18:35,874 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a8c7ed6a-9e09-4b3a-823b-564d94b0bd66 2025-12-30 16:18:35,887 - DEBUG - Requesting: http://10.0.0.33:8082/project/f76fb677-f451-42c9-ac8e-8db1cffcab31 2025-12-30 16:18:35,959 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f02e53fc-65db-42e1-a2b7-ed60ddec1025 2025-12-30 16:18:35,973 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f02e53fc-65db-42e1-a2b7-ed60ddec1025 2025-12-30 16:18:35,983 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/86d113fd-76c4-4a43-87f0-6501a1b65558 2025-12-30 16:18:35,990 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/86d113fd-76c4-4a43-87f0-6501a1b65558 2025-12-30 16:18:35,997 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/612acd82-d22a-4c60-bd64-5f09ac4aa096 2025-12-30 16:18:36,005 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-30 16:18:36,005 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f02e53fc-65db-42e1-a2b7-ed60ddec1025 2025-12-30 16:18:36,018 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/86d113fd-76c4-4a43-87f0-6501a1b65558 2025-12-30 16:18:36,034 - INFO - Verified VN network id 11 for VN f02e53fc-65db-42e1-a2b7-ed60ddec1025 2025-12-30 16:18:36,034 - INFO - Verifications in API Server for VN ctest-vn4-10410284 passed 2025-12-30 16:18:36,035 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f02e53fc-65db-42e1-a2b7-ed60ddec1025 2025-12-30 16:18:36,044 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/86d113fd-76c4-4a43-87f0-6501a1b65558 2025-12-30 16:18:36,052 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/86d113fd-76c4-4a43-87f0-6501a1b65558 2025-12-30 16:18:36,058 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/612acd82-d22a-4c60-bd64-5f09ac4aa096 2025-12-30 16:18:36,071 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06378294:ctest-vn4-10410284', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06378294', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17306862761537127137', 'uuid-lslong': '11725101155178254373'}, 'enable': 'true', 'created': '2025-12-30T16:18:34', 'last-modified': '2025-12-30T16:18:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.737936'} 2025-12-30 16:18:36,078 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-30 16:18:36,079 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-10410284 passed 2025-12-30 16:18:36,079 - DEBUG - ====Verifying policy data for ctest-vn4-10410284 in API_Server ====== 2025-12-30 16:18:36,079 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-30 16:18:36,085 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a8c7ed6a-9e09-4b3a-823b-564d94b0bd66 2025-12-30 16:18:36,097 - DEBUG - Requesting: http://10.0.0.33:8082/project/f76fb677-f451-42c9-ac8e-8db1cffcab31 2025-12-30 16:18:36,169 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f02e53fc-65db-42e1-a2b7-ed60ddec1025 2025-12-30 16:18:36,179 - DEBUG - ==>Verifying data for policy with id: 83105ba4-e9fe-4c16-83d9-b6224d98bd61, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06378294', 'ctest-policy1-00692978'] 2025-12-30 16:18:36,179 - INFO - VN ctest-vn4-10410284 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-30 16:18:36,179 - DEBUG - Verifying the vn in opserver 2025-12-30 16:18:36,179 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06378294:ctest-vn4-10410284 virtual network link through opserver 10.0.0.33 2025-12-30 16:18:36,180 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-30 16:18:36,475 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-30 16:18:36,547 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06378294:ctest-vn4-10410284', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06378294:ctest-vn4-10410284?flat'} 2025-12-30 16:18:36,547 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06378294:ctest-vn4-10410284 is found in opserver 2025-12-30 16:18:36,557 - DEBUG - Do not have enough data to verify VN in agent 2025-12-30 16:18:36,561 - DEBUG - VRF ids for VN ctest-vn4-10410284: {} 2025-12-30 16:18:36,562 - DEBUG - ====Verifying data for ctest-policy1-00692978 in API_Server ====== 2025-12-30 16:18:36,562 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-30 16:18:36,568 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a8c7ed6a-9e09-4b3a-823b-564d94b0bd66 2025-12-30 16:18:36,579 - DEBUG - Requesting: http://10.0.0.33:8082/project/f76fb677-f451-42c9-ac8e-8db1cffcab31 2025-12-30 16:18:36,646 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/83105ba4-e9fe-4c16-83d9-b6224d98bd61 2025-12-30 16:18:36,656 - INFO - Verified policy ctest-policy1-00692978 in API Server, Result: True 2025-12-30 16:18:36,656 - INFO - Done with setup and verification, moving onto test .. 2025-12-30 16:18:36,665 - INFO - Deleting VN ctest-vn4-10410284 2025-12-30 16:18:36,788 - DEBUG - Response for deleting network () 2025-12-30 16:18:36,789 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/86d113fd-76c4-4a43-87f0-6501a1b65558 2025-12-30 16:18:36,794 - DEBUG - Response Code: 404 2025-12-30 16:18:36,794 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-30 16:18:36,800 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a8c7ed6a-9e09-4b3a-823b-564d94b0bd66 2025-12-30 16:18:36,857 - DEBUG - Requesting: http://10.0.0.33:8082/project/f76fb677-f451-42c9-ac8e-8db1cffcab31 2025-12-30 16:18:36,928 - INFO - Validated that VN ctest-vn4-10410284 is not found in API Server 2025-12-30 16:18:36,938 - DEBUG - VN ctest-vn4-10410284 is not present in Agent 10.0.0.33 2025-12-30 16:18:36,938 - INFO - Validated that VN ctest-vn4-10410284 is not in any agent 2025-12-30 16:18:36,954 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-10410284 info 2025-12-30 16:18:36,977 - INFO - Deleted policy ctest-policy1-00692978 2025-12-30 16:18:37,143 - DEBUG - policy ctest-policy1-00692978 is not found in API Server 2025-12-30 16:18:37,396 - DEBUG - No XMPP flaps were noticed during the test
2025-12-30 16:18:37,396 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-30 16:18:37,396 - INFO - -------------------------------------------------------------------------------- 2025-12-30 16:18:37,685 - DEBUG - No XMPP flaps were noticed during the test
2025-12-30 16:18:37,685 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-30 16:18:37,685 - INFO - -------------------------------------------------------------------------------- 2025-12-30 16:18:38,391 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-06378294, ID : f76fb677-f451-42c9-ac8e-8db1cffcab31