2025-10-09 13:44:40,770 - INFO - Reading existing Domain with UUID 8ad80d2d-2369-4ab9-896f-7a17fd6c7f55 2025-10-09 13:44:40,782 - INFO - Using existing domain ['admin_domain'](8ad80d2d-2369-4ab9-896f-7a17fd6c7f55) 2025-10-09 13:44:40,999 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11752473 not found, creating it 2025-10-09 13:44:41,529 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11752473, ID : 3d9d48c9-3356-4bfa-8974-2f901f8c29f9 2025-10-09 13:44:43,480 - INFO - ================================================================================ 2025-10-09 13:44:43,480 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 13:44:43,888 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.0.0.41': '0'}} with 2025-10-09 13:44:43,888 - INFO - Initial checks done. Running the testcase now 2025-10-09 13:44:43,888 - INFO - 2025-10-09 13:44:43,888 - INFO - ================================================================================ 2025-10-09 13:44:43,888 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 13:44:43,888 - 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-09 13:44:44,296 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.0.0.41': '0'}} with 2025-10-09 13:44:44,297 - INFO - Initial checks done. Running the testcase now 2025-10-09 13:44:44,297 - INFO - 2025-10-09 13:44:44,774 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-11752473:ctest-vn4-75533263, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-11752473:ctest-vn4-75533263, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-11752473:ctest-vn4-75533263, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-11752473:ctest-vn4-75533263, 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-09 13:44:45,545 - DEBUG - Response for create_network : {'network': {'id': 'a437ac85-9749-4aef-934a-7fcd6968526c', 'name': 'ctest-vn4-75533263', 'tenant_id': '3d9d48c933564bfa89742f901f8c29f9', 'project_id': '3d9d48c933564bfa89742f901f8c29f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11752473', 'ctest-vn4-75533263'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-09 13:44:45,856 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6e4decd-4c73-415e-8662-2baf47d47804', 'name': '', 'tenant_id': '3d9d48c933564bfa89742f901f8c29f9', 'network_id': 'a437ac85-9749-4aef-934a-7fcd6968526c', 'ip_version': 4, 'cidr': '30.204.25.0/26', 'allocation_pools': [{'start': '30.204.25.2', 'end': '30.204.25.62'}], 'gateway_ip': '30.204.25.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-09T13:44:45.731723', 'updated_at': '2025-10-09T13:44:45.731723', 'dns_server_address': '30.204.25.2', 'tags': [], 'project_id': '3d9d48c933564bfa89742f901f8c29f9'}} 2025-10-09 13:44:46,151 - DEBUG - Response for create_subnet : {'subnet': {'id': '53648e5d-4885-42da-ac05-a004fac8c351', 'name': '', 'tenant_id': '3d9d48c933564bfa89742f901f8c29f9', 'network_id': 'a437ac85-9749-4aef-934a-7fcd6968526c', 'ip_version': 6, 'cidr': '340e:41a1:41b6:f44e:874b:3b6a::/96', 'allocation_pools': [{'start': '340e:41a1:41b6:f44e:874b:3b6a:0:2', 'end': '340e:41a1:41b6:f44e:874b:3b6a:ffff:fffe'}], 'gateway_ip': '340e:41a1:41b6:f44e:874b:3b6a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-09T13:44:46.023108', 'updated_at': '2025-10-09T13:44:46.023108', 'dns_server_address': '340e:41a1:41b6:f44e:874b:3b6a:0:2', 'tags': [], 'project_id': '3d9d48c933564bfa89742f901f8c29f9'}} 2025-10-09 13:44:46,221 - INFO - Created VN ctest-vn4-75533263 2025-10-09 13:44:46,283 - DEBUG - VN ctest-vn4-75533263 UUID is a437ac85-9749-4aef-934a-7fcd6968526c 2025-10-09 13:44:46,780 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a437ac85-9749-4aef-934a-7fcd6968526c', 'name': 'ctest-vn4-75533263', 'tenant_id': '3d9d48c933564bfa89742f901f8c29f9', 'project_id': '3d9d48c933564bfa89742f901f8c29f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c6e4decd-4c73-415e-8662-2baf47d47804', '53648e5d-4885-42da-ac05-a004fac8c351'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11752473', 'ctest-vn4-75533263'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11752473', 'ctest-policy1-39324089']], 'subnet_ipam': [{'subnet_cidr': '30.204.25.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '340e:41a1:41b6:f44e:874b:3b6a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-09T13:44:45.457120', 'updated_at': '2025-10-09T13:44:46.044231'}} 2025-10-09 13:44:46,958 - DEBUG - Requesting: https://10.0.0.41:8082/domains 2025-10-09 13:44:47,387 - DEBUG - Requesting: https://10.0.0.41:8082/domains 2025-10-09 13:44:47,471 - DEBUG - Requesting: https://10.0.0.41:8082/domain/8ad80d2d-2369-4ab9-896f-7a17fd6c7f55 2025-10-09 13:44:47,531 - DEBUG - Requesting: https://10.0.0.41:8082/project/3d9d48c9-3356-4bfa-8974-2f901f8c29f9 2025-10-09 13:44:47,629 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/a437ac85-9749-4aef-934a-7fcd6968526c 2025-10-09 13:44:47,693 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/a437ac85-9749-4aef-934a-7fcd6968526c 2025-10-09 13:44:47,749 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/5083ab37-340c-43f3-ac31-021afdd40d7b 2025-10-09 13:44:47,803 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/5083ab37-340c-43f3-ac31-021afdd40d7b 2025-10-09 13:44:47,859 - DEBUG - Requesting: https://10.0.0.41:8082/route-target/535ebd62-afe7-43ea-a7f2-5aa178f616cb 2025-10-09 13:44:47,916 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 13:44:47,916 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/a437ac85-9749-4aef-934a-7fcd6968526c 2025-10-09 13:44:47,974 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/5083ab37-340c-43f3-ac31-021afdd40d7b 2025-10-09 13:44:48,040 - INFO - Verified VN network id 11 for VN a437ac85-9749-4aef-934a-7fcd6968526c 2025-10-09 13:44:48,041 - INFO - Verifications in API Server for VN ctest-vn4-75533263 passed 2025-10-09 13:44:48,041 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/a437ac85-9749-4aef-934a-7fcd6968526c 2025-10-09 13:44:48,096 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/5083ab37-340c-43f3-ac31-021afdd40d7b 2025-10-09 13:44:48,151 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/5083ab37-340c-43f3-ac31-021afdd40d7b 2025-10-09 13:44:48,207 - DEBUG - Requesting: https://10.0.0.41:8082/route-target/535ebd62-afe7-43ea-a7f2-5aa178f616cb 2025-10-09 13:44:48,315 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-11752473:ctest-vn4-75533263', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11752473', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11833116235708058351', 'uuid-lslong': '10613435992065462892'}, 'enable': 'true', 'created': '2025-10-09T13:44:45', 'last-modified': '2025-10-09T13:44:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.575733'} 2025-10-09 13:44:48,368 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 13:44:48,368 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-75533263 passed 2025-10-09 13:44:48,369 - DEBUG - ====Verifying policy data for ctest-vn4-75533263 in API_Server ====== 2025-10-09 13:44:48,369 - DEBUG - Requesting: https://10.0.0.41:8082/domains 2025-10-09 13:44:48,423 - DEBUG - Requesting: https://10.0.0.41:8082/domain/8ad80d2d-2369-4ab9-896f-7a17fd6c7f55 2025-10-09 13:44:48,479 - DEBUG - Requesting: https://10.0.0.41:8082/project/3d9d48c9-3356-4bfa-8974-2f901f8c29f9 2025-10-09 13:44:48,559 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/a437ac85-9749-4aef-934a-7fcd6968526c 2025-10-09 13:44:48,621 - DEBUG - ==>Verifying data for policy with id: f120a091-2c9d-47a4-af62-3db60d70a339, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11752473', 'ctest-policy1-39324089'] 2025-10-09 13:44:48,621 - INFO - VN ctest-vn4-75533263 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 13:44:48,621 - DEBUG - Verifying the vn in opserver 2025-10-09 13:44:48,621 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-11752473:ctest-vn4-75533263 virtual network link through opserver 10.0.0.41 2025-10-09 13:44:48,621 - DEBUG - Requesting: https://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-09 13:44:49,009 - DEBUG - Requesting: https://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-09 13:44:49,135 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-11752473:ctest-vn4-75533263', 'href': 'https://10.0.0.41:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-11752473:ctest-vn4-75533263?flat'} 2025-10-09 13:44:49,135 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-11752473:ctest-vn4-75533263 is found in opserver 2025-10-09 13:44:49,243 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 13:44:49,295 - DEBUG - VRF ids for VN ctest-vn4-75533263: {} 2025-10-09 13:44:49,295 - DEBUG - ====Verifying data for ctest-policy1-39324089 in API_Server ====== 2025-10-09 13:44:49,295 - DEBUG - Requesting: https://10.0.0.41:8082/domains 2025-10-09 13:44:49,351 - DEBUG - Requesting: https://10.0.0.41:8082/domain/8ad80d2d-2369-4ab9-896f-7a17fd6c7f55 2025-10-09 13:44:49,411 - DEBUG - Requesting: https://10.0.0.41:8082/project/3d9d48c9-3356-4bfa-8974-2f901f8c29f9 2025-10-09 13:44:49,500 - DEBUG - Requesting: https://10.0.0.41:8082/network-policy/f120a091-2c9d-47a4-af62-3db60d70a339 2025-10-09 13:44:49,557 - INFO - Verified policy ctest-policy1-39324089 in API Server, Result: True 2025-10-09 13:44:49,557 - INFO - Done with setup and verification, moving onto test .. 2025-10-09 13:44:49,568 - INFO - Deleting VN ctest-vn4-75533263 2025-10-09 13:44:49,792 - DEBUG - Response for deleting network () 2025-10-09 13:44:49,792 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/5083ab37-340c-43f3-ac31-021afdd40d7b 2025-10-09 13:44:49,850 - DEBUG - Response Code: 404 2025-10-09 13:44:49,851 - DEBUG - Requesting: https://10.0.0.41:8082/domains 2025-10-09 13:44:49,903 - DEBUG - Requesting: https://10.0.0.41:8082/domain/8ad80d2d-2369-4ab9-896f-7a17fd6c7f55 2025-10-09 13:44:49,959 - DEBUG - Requesting: https://10.0.0.41:8082/project/3d9d48c9-3356-4bfa-8974-2f901f8c29f9 2025-10-09 13:44:50,044 - INFO - Validated that VN ctest-vn4-75533263 is not found in API Server 2025-10-09 13:44:50,147 - DEBUG - VN ctest-vn4-75533263 is not present in Agent 10.0.0.41 2025-10-09 13:44:50,147 - INFO - Validated that VN ctest-vn4-75533263 is not in any agent 2025-10-09 13:44:50,303 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-75533263 info 2025-10-09 13:44:50,343 - INFO - Deleted policy ctest-policy1-39324089 2025-10-09 13:44:50,518 - DEBUG - policy ctest-policy1-39324089 is not found in API Server 2025-10-09 13:44:50,919 - DEBUG - No XMPP flaps were noticed during the test
2025-10-09 13:44:50,919 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2025-10-09 13:44:50,919 - INFO - -------------------------------------------------------------------------------- 2025-10-09 13:44:51,315 - DEBUG - No XMPP flaps were noticed during the test
2025-10-09 13:44:51,315 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08]
2025-10-09 13:44:51,315 - INFO - -------------------------------------------------------------------------------- 2025-10-09 13:44:52,101 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-11752473, ID : 3d9d48c9-3356-4bfa-8974-2f901f8c29f9