2025-10-27 09:18:05,200 - INFO - Domain Default found not creating 2025-10-27 09:18:05,340 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-47763378 not found, creating it 2025-10-27 09:18:05,775 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-47763378, ID : 29220a6d-1b8d-4438-97aa-9244391cce81 2025-10-27 09:18:07,171 - INFO - ================================================================================ 2025-10-27 09:18:07,171 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 09:18:07,429 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with 2025-10-27 09:18:07,429 - INFO - Initial checks done. Running the testcase now 2025-10-27 09:18:07,429 - INFO - 2025-10-27 09:18:07,429 - INFO - ================================================================================ 2025-10-27 09:18:07,429 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 09:18:07,429 - 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-27 09:18:07,720 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with 2025-10-27 09:18:07,720 - INFO - Initial checks done. Running the testcase now 2025-10-27 09:18:07,720 - INFO - 2025-10-27 09:18:08,086 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47763378:ctest-vn4-25977788, 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-47763378:ctest-vn4-25977788, 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-47763378:ctest-vn4-25977788, 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-47763378:ctest-vn4-25977788, 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-27 09:18:08,715 - DEBUG - Response for create_network : {'network': {'id': 'ebaeaa0f-6daf-4b09-b798-4abde19f15df', 'name': 'ctest-vn4-25977788', 'tenant_id': '29220a6d1b8d443897aa9244391cce81', 'project_id': '29220a6d1b8d443897aa9244391cce81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47763378', 'ctest-vn4-25977788'], 'port_security_enabled': True, 'description': ''}} 2025-10-27 09:18:08,942 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad0c66f6-69ba-4485-939a-174b648004d8', 'name': '', 'tenant_id': '29220a6d1b8d443897aa9244391cce81', 'network_id': 'ebaeaa0f-6daf-4b09-b798-4abde19f15df', 'ip_version': 4, 'cidr': '166.195.75.64/26', 'allocation_pools': [{'start': '166.195.75.66', 'end': '166.195.75.126'}], 'gateway_ip': '166.195.75.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.195.75.66', 'tags': [], 'project_id': '29220a6d1b8d443897aa9244391cce81'}} 2025-10-27 09:18:09,082 - DEBUG - Response for create_subnet : {'subnet': {'id': '24b429a9-d950-4d80-850b-fc7d429bd037', 'name': '', 'tenant_id': '29220a6d1b8d443897aa9244391cce81', 'network_id': 'ebaeaa0f-6daf-4b09-b798-4abde19f15df', 'ip_version': 6, 'cidr': '2581:26d:69c8:3816:5011:61b9::/96', 'allocation_pools': [{'start': '2581:26d:69c8:3816:5011:61b9:0:2', 'end': '2581:26d:69c8:3816:5011:61b9:ffff:fffe'}], 'gateway_ip': '2581:26d:69c8:3816:5011:61b9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2581:26d:69c8:3816:5011:61b9:0:2', 'tags': [], 'project_id': '29220a6d1b8d443897aa9244391cce81'}} 2025-10-27 09:18:09,099 - INFO - Created VN ctest-vn4-25977788 2025-10-27 09:18:09,149 - DEBUG - VN ctest-vn4-25977788 UUID is ebaeaa0f-6daf-4b09-b798-4abde19f15df 2025-10-27 09:18:09,370 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ebaeaa0f-6daf-4b09-b798-4abde19f15df', 'name': 'ctest-vn4-25977788', 'tenant_id': '29220a6d1b8d443897aa9244391cce81', 'project_id': '29220a6d1b8d443897aa9244391cce81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad0c66f6-69ba-4485-939a-174b648004d8', '24b429a9-d950-4d80-850b-fc7d429bd037'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47763378', 'ctest-vn4-25977788'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47763378', 'ctest-policy1-66206300']], 'subnet_ipam': [{'subnet_cidr': '166.195.75.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2581:26d:69c8:3816:5011:61b9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-27 09:18:09,533 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-10-27 09:18:09,827 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-10-27 09:18:09,858 - DEBUG - Requesting: http://10.0.0.41:8082/domain/a5826939-a129-4733-bb35-85feff10c909 2025-10-27 09:18:09,871 - DEBUG - Requesting: http://10.0.0.41:8082/project/29220a6d-1b8d-4438-97aa-9244391cce81 2025-10-27 09:18:09,947 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ebaeaa0f-6daf-4b09-b798-4abde19f15df 2025-10-27 09:18:09,958 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ebaeaa0f-6daf-4b09-b798-4abde19f15df 2025-10-27 09:18:09,969 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/0be0d895-550f-4798-8494-44792a417a09 2025-10-27 09:18:09,978 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/0be0d895-550f-4798-8494-44792a417a09 2025-10-27 09:18:09,986 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/53b49b5c-5b73-451f-9790-6c0d73221a6e 2025-10-27 09:18:09,992 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 09:18:09,993 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ebaeaa0f-6daf-4b09-b798-4abde19f15df 2025-10-27 09:18:10,004 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/0be0d895-550f-4798-8494-44792a417a09 2025-10-27 09:18:10,021 - INFO - Verified VN network id 10 for VN ebaeaa0f-6daf-4b09-b798-4abde19f15df 2025-10-27 09:18:10,021 - INFO - Verifications in API Server for VN ctest-vn4-25977788 passed 2025-10-27 09:18:10,021 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ebaeaa0f-6daf-4b09-b798-4abde19f15df 2025-10-27 09:18:10,031 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/0be0d895-550f-4798-8494-44792a417a09 2025-10-27 09:18:10,040 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/0be0d895-550f-4798-8494-44792a417a09 2025-10-27 09:18:10,047 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/53b49b5c-5b73-451f-9790-6c0d73221a6e 2025-10-27 09:18:10,064 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47763378:ctest-vn4-25977788', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-47763378', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16982698228102155017', 'uuid-lslong': '13229406084795405791'}, 'enable': 'true', 'created': '2025-10-27T09:18:08', 'last-modified': '2025-10-27T09:18:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.726473'} 2025-10-27 09:18:10,070 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 09:18:10,071 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-25977788 passed 2025-10-27 09:18:10,071 - DEBUG - ====Verifying policy data for ctest-vn4-25977788 in API_Server ====== 2025-10-27 09:18:10,071 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-10-27 09:18:10,080 - DEBUG - Requesting: http://10.0.0.41:8082/domain/a5826939-a129-4733-bb35-85feff10c909 2025-10-27 09:18:10,094 - DEBUG - Requesting: http://10.0.0.41:8082/project/29220a6d-1b8d-4438-97aa-9244391cce81 2025-10-27 09:18:10,179 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ebaeaa0f-6daf-4b09-b798-4abde19f15df 2025-10-27 09:18:10,192 - DEBUG - ==>Verifying data for policy with id: c28ebd26-9e1b-4bbd-b01e-b588b1305e8c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47763378', 'ctest-policy1-66206300'] 2025-10-27 09:18:10,192 - INFO - VN ctest-vn4-25977788 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-27 09:18:10,192 - DEBUG - Verifying the vn in opserver 2025-10-27 09:18:10,192 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47763378:ctest-vn4-25977788 virtual network link through opserver 10.0.0.41 2025-10-27 09:18:10,193 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-27 09:18:10,495 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-27 09:18:10,562 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47763378:ctest-vn4-25977788', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47763378:ctest-vn4-25977788?flat'} 2025-10-27 09:18:10,562 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47763378:ctest-vn4-25977788 is found in opserver 2025-10-27 09:18:10,571 - DEBUG - Do not have enough data to verify VN in agent 2025-10-27 09:18:10,574 - DEBUG - VRF ids for VN ctest-vn4-25977788: {} 2025-10-27 09:18:10,575 - DEBUG - ====Verifying data for ctest-policy1-66206300 in API_Server ====== 2025-10-27 09:18:10,575 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-10-27 09:18:10,580 - DEBUG - Requesting: http://10.0.0.41:8082/domain/a5826939-a129-4733-bb35-85feff10c909 2025-10-27 09:18:10,589 - DEBUG - Requesting: http://10.0.0.41:8082/project/29220a6d-1b8d-4438-97aa-9244391cce81 2025-10-27 09:18:10,660 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/c28ebd26-9e1b-4bbd-b01e-b588b1305e8c 2025-10-27 09:18:10,670 - INFO - Verified policy ctest-policy1-66206300 in API Server, Result: True 2025-10-27 09:18:10,670 - INFO - Done with setup and verification, moving onto test .. 2025-10-27 09:18:10,677 - INFO - Deleting VN ctest-vn4-25977788 2025-10-27 09:18:10,803 - DEBUG - Response for deleting network () 2025-10-27 09:18:10,803 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/0be0d895-550f-4798-8494-44792a417a09 2025-10-27 09:18:10,808 - DEBUG - Response Code: 404 2025-10-27 09:18:10,808 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-10-27 09:18:10,812 - DEBUG - Requesting: http://10.0.0.41:8082/domain/a5826939-a129-4733-bb35-85feff10c909 2025-10-27 09:18:10,862 - DEBUG - Requesting: http://10.0.0.41:8082/project/29220a6d-1b8d-4438-97aa-9244391cce81 2025-10-27 09:18:10,933 - INFO - Validated that VN ctest-vn4-25977788 is not found in API Server 2025-10-27 09:18:10,945 - DEBUG - VN ctest-vn4-25977788 is not present in Agent 10.0.0.41 2025-10-27 09:18:10,945 - INFO - Validated that VN ctest-vn4-25977788 is not in any agent 2025-10-27 09:18:10,964 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-25977788 info 2025-10-27 09:18:10,989 - INFO - Deleted policy ctest-policy1-66206300 2025-10-27 09:18:11,177 - DEBUG - policy ctest-policy1-66206300 is not found in API Server 2025-10-27 09:18:11,438 - DEBUG - No XMPP flaps were noticed during the test