2025-10-22 07:46:53,653 - INFO - Domain Default found not creating 2025-10-22 07:46:53,839 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35491175 not found, creating it 2025-10-22 07:46:54,341 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35491175, ID : 80353db4-c8a7-45af-8923-088d6dbf08d6 2025-10-22 07:46:55,846 - INFO - ================================================================================ 2025-10-22 07:46:55,846 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 07:46:56,099 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.254': '0'}} with 2025-10-22 07:46:56,099 - INFO - Initial checks done. Running the testcase now 2025-10-22 07:46:56,099 - INFO - 2025-10-22 07:46:56,099 - INFO - ================================================================================ 2025-10-22 07:46:56,099 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 07:46:56,099 - 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-22 07:46:56,394 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.254': '0'}} with 2025-10-22 07:46:56,395 - INFO - Initial checks done. Running the testcase now 2025-10-22 07:46:56,395 - INFO - 2025-10-22 07:46:56,753 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35491175:ctest-vn4-65969853, 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-35491175:ctest-vn4-65969853, 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-35491175:ctest-vn4-65969853, 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-35491175:ctest-vn4-65969853, 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-22 07:46:57,310 - DEBUG - Response for create_network : {'network': {'id': '772c5e9d-bfd6-4dc9-ab15-163fb9f94fc3', 'name': 'ctest-vn4-65969853', 'tenant_id': '80353db4c8a745af8923088d6dbf08d6', 'project_id': '80353db4c8a745af8923088d6dbf08d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35491175', 'ctest-vn4-65969853'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 07:46:57,509 - DEBUG - Response for create_subnet : {'subnet': {'id': '34da16db-634e-4b63-9f62-fd643ce46f36', 'name': '', 'tenant_id': '80353db4c8a745af8923088d6dbf08d6', 'network_id': '772c5e9d-bfd6-4dc9-ab15-163fb9f94fc3', 'ip_version': 4, 'cidr': '196.138.25.192/26', 'allocation_pools': [{'start': '196.138.25.194', 'end': '196.138.25.254'}], 'gateway_ip': '196.138.25.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.138.25.194', 'tags': [], 'project_id': '80353db4c8a745af8923088d6dbf08d6'}} 2025-10-22 07:46:57,658 - DEBUG - Response for create_subnet : {'subnet': {'id': 'edf45dda-e07b-470a-942f-a5ee7dec03d8', 'name': '', 'tenant_id': '80353db4c8a745af8923088d6dbf08d6', 'network_id': '772c5e9d-bfd6-4dc9-ab15-163fb9f94fc3', 'ip_version': 6, 'cidr': '35ad:92dd:be9f:4e6f:9c3b:e0de::/96', 'allocation_pools': [{'start': '35ad:92dd:be9f:4e6f:9c3b:e0de:0:2', 'end': '35ad:92dd:be9f:4e6f:9c3b:e0de:ffff:fffe'}], 'gateway_ip': '35ad:92dd:be9f:4e6f:9c3b:e0de:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35ad:92dd:be9f:4e6f:9c3b:e0de:0:2', 'tags': [], 'project_id': '80353db4c8a745af8923088d6dbf08d6'}} 2025-10-22 07:46:57,679 - INFO - Created VN ctest-vn4-65969853 2025-10-22 07:46:57,733 - DEBUG - VN ctest-vn4-65969853 UUID is 772c5e9d-bfd6-4dc9-ab15-163fb9f94fc3 2025-10-22 07:46:57,949 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '772c5e9d-bfd6-4dc9-ab15-163fb9f94fc3', 'name': 'ctest-vn4-65969853', 'tenant_id': '80353db4c8a745af8923088d6dbf08d6', 'project_id': '80353db4c8a745af8923088d6dbf08d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['34da16db-634e-4b63-9f62-fd643ce46f36', 'edf45dda-e07b-470a-942f-a5ee7dec03d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35491175', 'ctest-vn4-65969853'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35491175', 'ctest-policy1-97116880']], 'subnet_ipam': [{'subnet_cidr': '196.138.25.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '35ad:92dd:be9f:4e6f:9c3b:e0de::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 07:46:58,117 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-10-22 07:46:58,444 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-10-22 07:46:58,478 - DEBUG - Requesting: http://10.0.0.73:8082/domain/a8047e00-9ca8-43f8-92c2-61dfce1119ea 2025-10-22 07:46:58,491 - DEBUG - Requesting: http://10.0.0.73:8082/project/80353db4-c8a7-45af-8923-088d6dbf08d6 2025-10-22 07:46:58,566 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/772c5e9d-bfd6-4dc9-ab15-163fb9f94fc3 2025-10-22 07:46:58,580 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/772c5e9d-bfd6-4dc9-ab15-163fb9f94fc3 2025-10-22 07:46:58,592 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/5c1162d0-8e2a-4a2b-b124-dc6cbd78aa02 2025-10-22 07:46:58,606 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/5c1162d0-8e2a-4a2b-b124-dc6cbd78aa02 2025-10-22 07:46:58,613 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/e614641b-a7b0-4f56-bb47-5e1432d59d00 2025-10-22 07:46:58,620 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 07:46:58,620 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/772c5e9d-bfd6-4dc9-ab15-163fb9f94fc3 2025-10-22 07:46:58,629 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/5c1162d0-8e2a-4a2b-b124-dc6cbd78aa02 2025-10-22 07:46:58,646 - INFO - Verified VN network id 11 for VN 772c5e9d-bfd6-4dc9-ab15-163fb9f94fc3 2025-10-22 07:46:58,646 - INFO - Verifications in API Server for VN ctest-vn4-65969853 passed 2025-10-22 07:46:58,646 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/772c5e9d-bfd6-4dc9-ab15-163fb9f94fc3 2025-10-22 07:46:58,656 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/5c1162d0-8e2a-4a2b-b124-dc6cbd78aa02 2025-10-22 07:46:58,665 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/5c1162d0-8e2a-4a2b-b124-dc6cbd78aa02 2025-10-22 07:46:58,675 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/e614641b-a7b0-4f56-bb47-5e1432d59d00 2025-10-22 07:46:58,687 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35491175:ctest-vn4-65969853', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35491175', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8587342621110062537', 'uuid-lslong': '12327784017955475395'}, 'enable': 'true', 'created': '2025-10-22T07:46:57', 'last-modified': '2025-10-22T07:46:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.768215'} 2025-10-22 07:46:58,695 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 07:46:58,695 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-65969853 passed 2025-10-22 07:46:58,695 - DEBUG - ====Verifying policy data for ctest-vn4-65969853 in API_Server ====== 2025-10-22 07:46:58,695 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-10-22 07:46:58,702 - DEBUG - Requesting: http://10.0.0.73:8082/domain/a8047e00-9ca8-43f8-92c2-61dfce1119ea 2025-10-22 07:46:58,715 - DEBUG - Requesting: http://10.0.0.73:8082/project/80353db4-c8a7-45af-8923-088d6dbf08d6 2025-10-22 07:46:58,793 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/772c5e9d-bfd6-4dc9-ab15-163fb9f94fc3 2025-10-22 07:46:58,807 - DEBUG - ==>Verifying data for policy with id: 0844665f-dd6b-408e-9712-5bbd03bc53c5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35491175', 'ctest-policy1-97116880'] 2025-10-22 07:46:58,807 - INFO - VN ctest-vn4-65969853 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 07:46:58,807 - DEBUG - Verifying the vn in opserver 2025-10-22 07:46:58,807 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35491175:ctest-vn4-65969853 virtual network link through opserver 10.0.0.73 2025-10-22 07:46:58,807 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-10-22 07:46:59,114 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-10-22 07:46:59,185 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35491175:ctest-vn4-65969853', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35491175:ctest-vn4-65969853?flat'} 2025-10-22 07:46:59,185 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35491175:ctest-vn4-65969853 is found in opserver 2025-10-22 07:46:59,196 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 07:46:59,203 - DEBUG - VRF ids for VN ctest-vn4-65969853: {} 2025-10-22 07:46:59,203 - DEBUG - ====Verifying data for ctest-policy1-97116880 in API_Server ====== 2025-10-22 07:46:59,204 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-10-22 07:46:59,209 - DEBUG - Requesting: http://10.0.0.73:8082/domain/a8047e00-9ca8-43f8-92c2-61dfce1119ea 2025-10-22 07:46:59,219 - DEBUG - Requesting: http://10.0.0.73:8082/project/80353db4-c8a7-45af-8923-088d6dbf08d6 2025-10-22 07:46:59,287 - DEBUG - Requesting: http://10.0.0.73:8082/network-policy/0844665f-dd6b-408e-9712-5bbd03bc53c5 2025-10-22 07:46:59,296 - INFO - Verified policy ctest-policy1-97116880 in API Server, Result: True 2025-10-22 07:46:59,296 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 07:46:59,306 - INFO - Deleting VN ctest-vn4-65969853 2025-10-22 07:46:59,437 - DEBUG - Response for deleting network () 2025-10-22 07:46:59,438 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/5c1162d0-8e2a-4a2b-b124-dc6cbd78aa02 2025-10-22 07:46:59,444 - DEBUG - Response Code: 404 2025-10-22 07:46:59,444 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-10-22 07:46:59,452 - DEBUG - Requesting: http://10.0.0.73:8082/domain/a8047e00-9ca8-43f8-92c2-61dfce1119ea 2025-10-22 07:46:59,507 - DEBUG - Requesting: http://10.0.0.73:8082/project/80353db4-c8a7-45af-8923-088d6dbf08d6 2025-10-22 07:46:59,585 - INFO - Validated that VN ctest-vn4-65969853 is not found in API Server 2025-10-22 07:46:59,594 - DEBUG - VN ctest-vn4-65969853 is not present in Agent 10.0.0.73 2025-10-22 07:46:59,594 - INFO - Validated that VN ctest-vn4-65969853 is not in any agent 2025-10-22 07:46:59,610 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-65969853 info 2025-10-22 07:46:59,634 - INFO - Deleted policy ctest-policy1-97116880 2025-10-22 07:46:59,813 - DEBUG - policy ctest-policy1-97116880 is not found in API Server 2025-10-22 07:47:00,068 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 07:47:00,068 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-22 07:47:00,068 - INFO - -------------------------------------------------------------------------------- 2025-10-22 07:47:00,374 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 07:47:00,374 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-10-22 07:47:00,374 - INFO - -------------------------------------------------------------------------------- 2025-10-22 07:47:01,083 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-35491175, ID : 80353db4-c8a7-45af-8923-088d6dbf08d6