2025-08-25 23:35:37,877 - INFO - Domain Default found not creating 2025-08-25 23:35:38,042 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-99064784 not found, creating it 2025-08-25 23:35:38,562 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-99064784, ID : ef1addba-e3f6-4a85-b595-a0a8d07c5f09 2025-08-25 23:35:40,029 - INFO - ================================================================================ 2025-08-25 23:35:40,030 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-25 23:35:40,290 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2025-08-25 23:35:40,290 - INFO - Initial checks done. Running the testcase now 2025-08-25 23:35:40,290 - INFO - 2025-08-25 23:35:40,290 - INFO - ================================================================================ 2025-08-25 23:35:40,290 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-25 23:35:40,290 - 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-08-25 23:35:40,590 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2025-08-25 23:35:40,590 - INFO - Initial checks done. Running the testcase now 2025-08-25 23:35:40,590 - INFO - 2025-08-25 23:35:40,952 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99064784:ctest-vn4-21415710, 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-99064784:ctest-vn4-21415710, 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-99064784:ctest-vn4-21415710, 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-99064784:ctest-vn4-21415710, 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-08-25 23:35:41,507 - DEBUG - Response for create_network : {'network': {'id': '754011cb-a2be-43ef-8b30-6734e511eb0f', 'name': 'ctest-vn4-21415710', 'tenant_id': 'ef1addbae3f64a85b595a0a8d07c5f09', 'project_id': 'ef1addbae3f64a85b595a0a8d07c5f09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99064784', 'ctest-vn4-21415710'], 'port_security_enabled': True, 'description': ''}} 2025-08-25 23:35:41,726 - DEBUG - Response for create_subnet : {'subnet': {'id': '2671d790-1011-49f7-8c5d-a1d29791e10b', 'name': '', 'tenant_id': 'ef1addbae3f64a85b595a0a8d07c5f09', 'network_id': '754011cb-a2be-43ef-8b30-6734e511eb0f', 'ip_version': 4, 'cidr': '63.123.134.192/26', 'allocation_pools': [{'start': '63.123.134.194', 'end': '63.123.134.254'}], 'gateway_ip': '63.123.134.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.123.134.194', 'tags': [], 'project_id': 'ef1addbae3f64a85b595a0a8d07c5f09'}} 2025-08-25 23:35:41,945 - DEBUG - Response for create_subnet : {'subnet': {'id': '19ce31f3-e728-4328-aa17-5f4fafc52f57', 'name': '', 'tenant_id': 'ef1addbae3f64a85b595a0a8d07c5f09', 'network_id': '754011cb-a2be-43ef-8b30-6734e511eb0f', 'ip_version': 6, 'cidr': '2cbb:816d:f0f5:10a5:4fd0:ba3a::/96', 'allocation_pools': [{'start': '2cbb:816d:f0f5:10a5:4fd0:ba3a:0:2', 'end': '2cbb:816d:f0f5:10a5:4fd0:ba3a:ffff:fffe'}], 'gateway_ip': '2cbb:816d:f0f5:10a5:4fd0:ba3a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2cbb:816d:f0f5:10a5:4fd0:ba3a:0:2', 'tags': [], 'project_id': 'ef1addbae3f64a85b595a0a8d07c5f09'}} 2025-08-25 23:35:41,965 - INFO - Created VN ctest-vn4-21415710 2025-08-25 23:35:42,020 - DEBUG - VN ctest-vn4-21415710 UUID is 754011cb-a2be-43ef-8b30-6734e511eb0f 2025-08-25 23:35:42,241 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '754011cb-a2be-43ef-8b30-6734e511eb0f', 'name': 'ctest-vn4-21415710', 'tenant_id': 'ef1addbae3f64a85b595a0a8d07c5f09', 'project_id': 'ef1addbae3f64a85b595a0a8d07c5f09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2671d790-1011-49f7-8c5d-a1d29791e10b', '19ce31f3-e728-4328-aa17-5f4fafc52f57'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99064784', 'ctest-vn4-21415710'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99064784', 'ctest-policy1-94220370']], 'subnet_ipam': [{'subnet_cidr': '63.123.134.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2cbb:816d:f0f5:10a5:4fd0:ba3a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-25 23:35:42,416 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-08-25 23:35:42,712 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-08-25 23:35:42,739 - DEBUG - Requesting: http://10.0.0.130:8082/domain/4516178c-b598-41b0-a22e-44366f94aed3 2025-08-25 23:35:42,753 - DEBUG - Requesting: http://10.0.0.130:8082/project/ef1addba-e3f6-4a85-b595-a0a8d07c5f09 2025-08-25 23:35:42,826 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/754011cb-a2be-43ef-8b30-6734e511eb0f 2025-08-25 23:35:42,839 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/754011cb-a2be-43ef-8b30-6734e511eb0f 2025-08-25 23:35:42,851 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b792f13f-8799-4e6c-a3ed-e57c739c3b59 2025-08-25 23:35:42,859 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b792f13f-8799-4e6c-a3ed-e57c739c3b59 2025-08-25 23:35:42,866 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/f328ef14-da78-453e-9205-ff682d376b74 2025-08-25 23:35:42,873 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-25 23:35:42,873 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/754011cb-a2be-43ef-8b30-6734e511eb0f 2025-08-25 23:35:42,883 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b792f13f-8799-4e6c-a3ed-e57c739c3b59 2025-08-25 23:35:42,898 - INFO - Verified VN network id 9 for VN 754011cb-a2be-43ef-8b30-6734e511eb0f 2025-08-25 23:35:42,898 - INFO - Verifications in API Server for VN ctest-vn4-21415710 passed 2025-08-25 23:35:42,898 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/754011cb-a2be-43ef-8b30-6734e511eb0f 2025-08-25 23:35:42,909 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b792f13f-8799-4e6c-a3ed-e57c739c3b59 2025-08-25 23:35:42,917 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b792f13f-8799-4e6c-a3ed-e57c739c3b59 2025-08-25 23:35:42,924 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/f328ef14-da78-453e-9205-ff682d376b74 2025-08-25 23:35:42,937 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99064784:ctest-vn4-21415710', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-99064784', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8448772467253461999', 'uuid-lslong': '10029629847033211663'}, 'enable': 'true', 'created': '2025-08-25T23:35:41', 'last-modified': '2025-08-25T23:35:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.738238'} 2025-08-25 23:35:42,944 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-25 23:35:42,944 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-21415710 passed 2025-08-25 23:35:42,944 - DEBUG - ====Verifying policy data for ctest-vn4-21415710 in API_Server ====== 2025-08-25 23:35:42,944 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-08-25 23:35:42,950 - DEBUG - Requesting: http://10.0.0.130:8082/domain/4516178c-b598-41b0-a22e-44366f94aed3 2025-08-25 23:35:42,962 - DEBUG - Requesting: http://10.0.0.130:8082/project/ef1addba-e3f6-4a85-b595-a0a8d07c5f09 2025-08-25 23:35:43,037 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/754011cb-a2be-43ef-8b30-6734e511eb0f 2025-08-25 23:35:43,049 - DEBUG - ==>Verifying data for policy with id: 33a5b0b3-66c4-4a55-bc29-dcf466b5de34, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99064784', 'ctest-policy1-94220370'] 2025-08-25 23:35:43,049 - INFO - VN ctest-vn4-21415710 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-25 23:35:43,049 - DEBUG - Verifying the vn in opserver 2025-08-25 23:35:43,049 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99064784:ctest-vn4-21415710 virtual network link through opserver 10.0.0.130 2025-08-25 23:35:43,050 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-08-25 23:35:43,347 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-08-25 23:35:43,404 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99064784:ctest-vn4-21415710', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99064784:ctest-vn4-21415710?flat'} 2025-08-25 23:35:43,404 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99064784:ctest-vn4-21415710 is found in opserver 2025-08-25 23:35:43,418 - DEBUG - Do not have enough data to verify VN in agent 2025-08-25 23:35:43,425 - DEBUG - VRF ids for VN ctest-vn4-21415710: {} 2025-08-25 23:35:43,426 - DEBUG - ====Verifying data for ctest-policy1-94220370 in API_Server ====== 2025-08-25 23:35:43,426 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-08-25 23:35:43,432 - DEBUG - Requesting: http://10.0.0.130:8082/domain/4516178c-b598-41b0-a22e-44366f94aed3 2025-08-25 23:35:43,447 - DEBUG - Requesting: http://10.0.0.130:8082/project/ef1addba-e3f6-4a85-b595-a0a8d07c5f09 2025-08-25 23:35:43,521 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/33a5b0b3-66c4-4a55-bc29-dcf466b5de34 2025-08-25 23:35:43,539 - INFO - Verified policy ctest-policy1-94220370 in API Server, Result: True 2025-08-25 23:35:43,539 - INFO - Done with setup and verification, moving onto test .. 2025-08-25 23:35:43,552 - INFO - Deleting VN ctest-vn4-21415710 2025-08-25 23:35:43,707 - DEBUG - Response for deleting network () 2025-08-25 23:35:43,707 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/b792f13f-8799-4e6c-a3ed-e57c739c3b59 2025-08-25 23:35:43,715 - DEBUG - Response Code: 404 2025-08-25 23:35:43,715 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-08-25 23:35:43,727 - DEBUG - Requesting: http://10.0.0.130:8082/domain/4516178c-b598-41b0-a22e-44366f94aed3 2025-08-25 23:35:43,787 - DEBUG - Requesting: http://10.0.0.130:8082/project/ef1addba-e3f6-4a85-b595-a0a8d07c5f09 2025-08-25 23:35:43,874 - INFO - Validated that VN ctest-vn4-21415710 is not found in API Server 2025-08-25 23:35:43,887 - DEBUG - VN ctest-vn4-21415710 is not present in Agent 10.0.0.130 2025-08-25 23:35:43,887 - INFO - Validated that VN ctest-vn4-21415710 is not in any agent 2025-08-25 23:35:43,909 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-21415710 info 2025-08-25 23:35:43,943 - INFO - Deleted policy ctest-policy1-94220370 2025-08-25 23:35:44,116 - DEBUG - policy ctest-policy1-94220370 is not found in API Server 2025-08-25 23:35:44,382 - DEBUG - No XMPP flaps were noticed during the test