2025-10-30 14:49:50,198 - INFO - Domain Default found not creating 2025-10-30 14:49:50,344 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-28446825 not found, creating it 2025-10-30 14:49:50,780 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-28446825, ID : 1a15cf3e-7d0c-4679-ade6-88143cc99d97 2025-10-30 14:49:52,215 - INFO - ================================================================================ 2025-10-30 14:49:52,215 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 14:49:52,466 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-10-30 14:49:52,467 - INFO - Initial checks done. Running the testcase now 2025-10-30 14:49:52,467 - INFO - 2025-10-30 14:49:52,467 - INFO - ================================================================================ 2025-10-30 14:49:52,467 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 14:49:52,467 - 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-30 14:49:52,755 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-10-30 14:49:52,755 - INFO - Initial checks done. Running the testcase now 2025-10-30 14:49:52,755 - INFO - 2025-10-30 14:49:53,098 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28446825:ctest-vn4-43884262, 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-28446825:ctest-vn4-43884262, 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-28446825:ctest-vn4-43884262, 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-28446825:ctest-vn4-43884262, 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-30 14:49:53,598 - DEBUG - Response for create_network : {'network': {'id': 'fe123eb0-0c2d-4515-870c-10e14d9282a9', 'name': 'ctest-vn4-43884262', 'tenant_id': '1a15cf3e7d0c4679ade688143cc99d97', 'project_id': '1a15cf3e7d0c4679ade688143cc99d97', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28446825', 'ctest-vn4-43884262'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 14:49:53,781 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b598aa20-b70a-42a3-a72c-50dc04e8b9a8', 'name': '', 'tenant_id': '1a15cf3e7d0c4679ade688143cc99d97', 'network_id': 'fe123eb0-0c2d-4515-870c-10e14d9282a9', 'ip_version': 4, 'cidr': '141.35.188.192/26', 'allocation_pools': [{'start': '141.35.188.194', 'end': '141.35.188.254'}], 'gateway_ip': '141.35.188.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.35.188.194', 'tags': [], 'project_id': '1a15cf3e7d0c4679ade688143cc99d97'}} 2025-10-30 14:49:53,913 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a65b3ac9-c18c-436b-8173-d739b59107bb', 'name': '', 'tenant_id': '1a15cf3e7d0c4679ade688143cc99d97', 'network_id': 'fe123eb0-0c2d-4515-870c-10e14d9282a9', 'ip_version': 6, 'cidr': '2f59:3fdf:fafc:274:27ce:a3c0::/96', 'allocation_pools': [{'start': '2f59:3fdf:fafc:274:27ce:a3c0:0:2', 'end': '2f59:3fdf:fafc:274:27ce:a3c0:ffff:fffe'}], 'gateway_ip': '2f59:3fdf:fafc:274:27ce:a3c0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f59:3fdf:fafc:274:27ce:a3c0:0:2', 'tags': [], 'project_id': '1a15cf3e7d0c4679ade688143cc99d97'}} 2025-10-30 14:49:53,933 - INFO - Created VN ctest-vn4-43884262 2025-10-30 14:49:53,986 - DEBUG - VN ctest-vn4-43884262 UUID is fe123eb0-0c2d-4515-870c-10e14d9282a9 2025-10-30 14:49:54,174 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fe123eb0-0c2d-4515-870c-10e14d9282a9', 'name': 'ctest-vn4-43884262', 'tenant_id': '1a15cf3e7d0c4679ade688143cc99d97', 'project_id': '1a15cf3e7d0c4679ade688143cc99d97', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b598aa20-b70a-42a3-a72c-50dc04e8b9a8', 'a65b3ac9-c18c-436b-8173-d739b59107bb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28446825', 'ctest-vn4-43884262'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28446825', 'ctest-policy1-84931591']], 'subnet_ipam': [{'subnet_cidr': '141.35.188.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f59:3fdf:fafc:274:27ce:a3c0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 14:49:54,334 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 14:49:54,625 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 14:49:54,650 - DEBUG - Requesting: http://10.0.0.38:8082/domain/96b3946d-8a02-4320-9910-96053494a04a 2025-10-30 14:49:54,663 - DEBUG - Requesting: http://10.0.0.38:8082/project/1a15cf3e-7d0c-4679-ade6-88143cc99d97 2025-10-30 14:49:54,731 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fe123eb0-0c2d-4515-870c-10e14d9282a9 2025-10-30 14:49:54,742 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fe123eb0-0c2d-4515-870c-10e14d9282a9 2025-10-30 14:49:54,751 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/327fdaa1-b85b-4d35-9c47-29e4182ff23f 2025-10-30 14:49:54,757 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/327fdaa1-b85b-4d35-9c47-29e4182ff23f 2025-10-30 14:49:54,765 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/420dc98a-c132-4482-aa1c-9de39cc287c5 2025-10-30 14:49:54,773 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 14:49:54,773 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fe123eb0-0c2d-4515-870c-10e14d9282a9 2025-10-30 14:49:54,784 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/327fdaa1-b85b-4d35-9c47-29e4182ff23f 2025-10-30 14:49:54,799 - INFO - Verified VN network id 11 for VN fe123eb0-0c2d-4515-870c-10e14d9282a9 2025-10-30 14:49:54,799 - INFO - Verifications in API Server for VN ctest-vn4-43884262 passed 2025-10-30 14:49:54,799 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fe123eb0-0c2d-4515-870c-10e14d9282a9 2025-10-30 14:49:54,808 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/327fdaa1-b85b-4d35-9c47-29e4182ff23f 2025-10-30 14:49:54,815 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/327fdaa1-b85b-4d35-9c47-29e4182ff23f 2025-10-30 14:49:54,820 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/420dc98a-c132-4482-aa1c-9de39cc287c5 2025-10-30 14:49:54,830 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28446825:ctest-vn4-43884262', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-28446825', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18307764361053947157', 'uuid-lslong': '9731171454695932585'}, 'enable': 'true', 'created': '2025-10-30T14:49:53', 'last-modified': '2025-10-30T14:49:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.681176'} 2025-10-30 14:49:54,836 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 14:49:54,836 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43884262 passed 2025-10-30 14:49:54,836 - DEBUG - ====Verifying policy data for ctest-vn4-43884262 in API_Server ====== 2025-10-30 14:49:54,836 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 14:49:54,842 - DEBUG - Requesting: http://10.0.0.38:8082/domain/96b3946d-8a02-4320-9910-96053494a04a 2025-10-30 14:49:54,854 - DEBUG - Requesting: http://10.0.0.38:8082/project/1a15cf3e-7d0c-4679-ade6-88143cc99d97 2025-10-30 14:49:54,921 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fe123eb0-0c2d-4515-870c-10e14d9282a9 2025-10-30 14:49:54,931 - DEBUG - ==>Verifying data for policy with id: 02cc7ca1-a7de-4a5c-ad87-3974554967b5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28446825', 'ctest-policy1-84931591'] 2025-10-30 14:49:54,931 - INFO - VN ctest-vn4-43884262 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 14:49:54,931 - DEBUG - Verifying the vn in opserver 2025-10-30 14:49:54,931 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28446825:ctest-vn4-43884262 virtual network link through opserver 10.0.0.38 2025-10-30 14:49:54,931 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-30 14:49:55,234 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-30 14:49:55,294 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28446825:ctest-vn4-43884262', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28446825:ctest-vn4-43884262?flat'} 2025-10-30 14:49:55,294 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28446825:ctest-vn4-43884262 is found in opserver 2025-10-30 14:49:55,303 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 14:49:55,308 - DEBUG - VRF ids for VN ctest-vn4-43884262: {} 2025-10-30 14:49:55,308 - DEBUG - ====Verifying data for ctest-policy1-84931591 in API_Server ====== 2025-10-30 14:49:55,308 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 14:49:55,313 - DEBUG - Requesting: http://10.0.0.38:8082/domain/96b3946d-8a02-4320-9910-96053494a04a 2025-10-30 14:49:55,383 - DEBUG - Requesting: http://10.0.0.38:8082/project/1a15cf3e-7d0c-4679-ade6-88143cc99d97 2025-10-30 14:49:55,451 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/02cc7ca1-a7de-4a5c-ad87-3974554967b5 2025-10-30 14:49:55,461 - INFO - Verified policy ctest-policy1-84931591 in API Server, Result: True 2025-10-30 14:49:55,461 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 14:49:55,469 - INFO - Deleting VN ctest-vn4-43884262 2025-10-30 14:49:55,593 - DEBUG - Response for deleting network () 2025-10-30 14:49:55,593 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/327fdaa1-b85b-4d35-9c47-29e4182ff23f 2025-10-30 14:49:55,597 - DEBUG - Response Code: 404 2025-10-30 14:49:55,597 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 14:49:55,602 - DEBUG - Requesting: http://10.0.0.38:8082/domain/96b3946d-8a02-4320-9910-96053494a04a 2025-10-30 14:49:55,656 - DEBUG - Requesting: http://10.0.0.38:8082/project/1a15cf3e-7d0c-4679-ade6-88143cc99d97 2025-10-30 14:49:55,729 - INFO - Validated that VN ctest-vn4-43884262 is not found in API Server 2025-10-30 14:49:55,739 - DEBUG - VN ctest-vn4-43884262 is not present in Agent 10.0.0.38 2025-10-30 14:49:55,739 - INFO - Validated that VN ctest-vn4-43884262 is not in any agent 2025-10-30 14:49:55,755 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43884262 info 2025-10-30 14:49:55,785 - INFO - Deleted policy ctest-policy1-84931591 2025-10-30 14:49:55,942 - DEBUG - policy ctest-policy1-84931591 is not found in API Server 2025-10-30 14:49:56,195 - DEBUG - No XMPP flaps were noticed during the test
2025-10-30 14:49:56,195 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-30 14:49:56,195 - INFO - -------------------------------------------------------------------------------- 2025-10-30 14:49:56,487 - DEBUG - No XMPP flaps were noticed during the test
2025-10-30 14:49:56,487 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-30 14:49:56,488 - INFO - -------------------------------------------------------------------------------- 2025-10-30 14:49:57,151 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-28446825, ID : 1a15cf3e-7d0c-4679-ade6-88143cc99d97