2025-09-13 23:17:48,053 - INFO - Domain Default found not creating 2025-09-13 23:17:48,208 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-38522917 not found, creating it 2025-09-13 23:17:48,750 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-38522917, ID : bc73a356-b7a0-48cd-8a6b-4783fb28f2c5 2025-09-13 23:17:50,231 - INFO - ================================================================================ 2025-09-13 23:17:50,231 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-13 23:17:50,489 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-13 23:17:50,489 - INFO - Initial checks done. Running the testcase now 2025-09-13 23:17:50,489 - INFO - 2025-09-13 23:17:50,489 - INFO - ================================================================================ 2025-09-13 23:17:50,489 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-13 23:17:50,489 - 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-09-13 23:17:50,781 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-13 23:17:50,781 - INFO - Initial checks done. Running the testcase now 2025-09-13 23:17:50,781 - INFO - 2025-09-13 23:17:51,162 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38522917:ctest-vn4-70992499, 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-38522917:ctest-vn4-70992499, 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-38522917:ctest-vn4-70992499, 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-38522917:ctest-vn4-70992499, 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-09-13 23:17:51,848 - DEBUG - Response for create_network : {'network': {'id': '4c981668-aaa3-4151-ac01-5a2ced63f4ed', 'name': 'ctest-vn4-70992499', 'tenant_id': 'bc73a356b7a048cd8a6b4783fb28f2c5', 'project_id': 'bc73a356b7a048cd8a6b4783fb28f2c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38522917', 'ctest-vn4-70992499'], 'port_security_enabled': True, 'description': ''}} 2025-09-13 23:17:52,080 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a1b72413-318a-41c4-be7b-304accacc37e', 'name': '', 'tenant_id': 'bc73a356b7a048cd8a6b4783fb28f2c5', 'network_id': '4c981668-aaa3-4151-ac01-5a2ced63f4ed', 'ip_version': 4, 'cidr': '143.223.63.128/26', 'allocation_pools': [{'start': '143.223.63.130', 'end': '143.223.63.190'}], 'gateway_ip': '143.223.63.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.223.63.130', 'tags': [], 'project_id': 'bc73a356b7a048cd8a6b4783fb28f2c5'}} 2025-09-13 23:17:52,248 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c878c9aa-b2e9-4c42-8a59-1678a5e63178', 'name': '', 'tenant_id': 'bc73a356b7a048cd8a6b4783fb28f2c5', 'network_id': '4c981668-aaa3-4151-ac01-5a2ced63f4ed', 'ip_version': 6, 'cidr': '2d46:76e5:bd31:bba6:8aa2:b8b5::/96', 'allocation_pools': [{'start': '2d46:76e5:bd31:bba6:8aa2:b8b5:0:2', 'end': '2d46:76e5:bd31:bba6:8aa2:b8b5:ffff:fffe'}], 'gateway_ip': '2d46:76e5:bd31:bba6:8aa2:b8b5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d46:76e5:bd31:bba6:8aa2:b8b5:0:2', 'tags': [], 'project_id': 'bc73a356b7a048cd8a6b4783fb28f2c5'}} 2025-09-13 23:17:52,272 - INFO - Created VN ctest-vn4-70992499 2025-09-13 23:17:52,323 - DEBUG - VN ctest-vn4-70992499 UUID is 4c981668-aaa3-4151-ac01-5a2ced63f4ed 2025-09-13 23:17:52,549 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c981668-aaa3-4151-ac01-5a2ced63f4ed', 'name': 'ctest-vn4-70992499', 'tenant_id': 'bc73a356b7a048cd8a6b4783fb28f2c5', 'project_id': 'bc73a356b7a048cd8a6b4783fb28f2c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a1b72413-318a-41c4-be7b-304accacc37e', 'c878c9aa-b2e9-4c42-8a59-1678a5e63178'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38522917', 'ctest-vn4-70992499'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38522917', 'ctest-policy1-54930552']], 'subnet_ipam': [{'subnet_cidr': '143.223.63.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d46:76e5:bd31:bba6:8aa2:b8b5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-13 23:17:52,711 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 23:17:53,011 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 23:17:53,039 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fc53a9f6-5c43-4bac-b584-7fc39fee9d55 2025-09-13 23:17:53,053 - DEBUG - Requesting: http://10.0.0.22:8082/project/bc73a356-b7a0-48cd-8a6b-4783fb28f2c5 2025-09-13 23:17:53,128 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4c981668-aaa3-4151-ac01-5a2ced63f4ed 2025-09-13 23:17:53,141 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4c981668-aaa3-4151-ac01-5a2ced63f4ed 2025-09-13 23:17:53,154 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/76f8465f-66f9-4398-9ee1-6532e1a7af0f 2025-09-13 23:17:53,162 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/76f8465f-66f9-4398-9ee1-6532e1a7af0f 2025-09-13 23:17:53,169 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7e73eadf-a0f2-417d-9028-1a9527f92078 2025-09-13 23:17:53,176 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-13 23:17:53,176 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4c981668-aaa3-4151-ac01-5a2ced63f4ed 2025-09-13 23:17:53,189 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/76f8465f-66f9-4398-9ee1-6532e1a7af0f 2025-09-13 23:17:53,207 - INFO - Verified VN network id 11 for VN 4c981668-aaa3-4151-ac01-5a2ced63f4ed 2025-09-13 23:17:53,207 - INFO - Verifications in API Server for VN ctest-vn4-70992499 passed 2025-09-13 23:17:53,207 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4c981668-aaa3-4151-ac01-5a2ced63f4ed 2025-09-13 23:17:53,219 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/76f8465f-66f9-4398-9ee1-6532e1a7af0f 2025-09-13 23:17:53,230 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/76f8465f-66f9-4398-9ee1-6532e1a7af0f 2025-09-13 23:17:53,239 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7e73eadf-a0f2-417d-9028-1a9527f92078 2025-09-13 23:17:53,253 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38522917:ctest-vn4-70992499', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-38522917', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5519185982137778513', 'uuid-lslong': '12394286798508127469'}, 'enable': 'true', 'created': '2025-09-13T23:17:51', 'last-modified': '2025-09-13T23:17:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.745721'} 2025-09-13 23:17:53,258 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-13 23:17:53,258 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-70992499 passed 2025-09-13 23:17:53,259 - DEBUG - ====Verifying policy data for ctest-vn4-70992499 in API_Server ====== 2025-09-13 23:17:53,259 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 23:17:53,264 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fc53a9f6-5c43-4bac-b584-7fc39fee9d55 2025-09-13 23:17:53,274 - DEBUG - Requesting: http://10.0.0.22:8082/project/bc73a356-b7a0-48cd-8a6b-4783fb28f2c5 2025-09-13 23:17:53,351 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4c981668-aaa3-4151-ac01-5a2ced63f4ed 2025-09-13 23:17:53,361 - DEBUG - ==>Verifying data for policy with id: cd0b9bd5-69d2-4897-a164-5eca818643f3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38522917', 'ctest-policy1-54930552'] 2025-09-13 23:17:53,361 - INFO - VN ctest-vn4-70992499 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-13 23:17:53,361 - DEBUG - Verifying the vn in opserver 2025-09-13 23:17:53,362 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38522917:ctest-vn4-70992499 virtual network link through opserver 10.0.0.22 2025-09-13 23:17:53,362 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-13 23:17:53,659 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-13 23:17:53,714 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38522917:ctest-vn4-70992499', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38522917:ctest-vn4-70992499?flat'} 2025-09-13 23:17:53,714 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38522917:ctest-vn4-70992499 is found in opserver 2025-09-13 23:17:53,726 - DEBUG - Do not have enough data to verify VN in agent 2025-09-13 23:17:53,731 - DEBUG - VRF ids for VN ctest-vn4-70992499: {} 2025-09-13 23:17:53,732 - DEBUG - ====Verifying data for ctest-policy1-54930552 in API_Server ====== 2025-09-13 23:17:53,732 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 23:17:53,737 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fc53a9f6-5c43-4bac-b584-7fc39fee9d55 2025-09-13 23:17:53,748 - DEBUG - Requesting: http://10.0.0.22:8082/project/bc73a356-b7a0-48cd-8a6b-4783fb28f2c5 2025-09-13 23:17:53,819 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/cd0b9bd5-69d2-4897-a164-5eca818643f3 2025-09-13 23:17:53,831 - INFO - Verified policy ctest-policy1-54930552 in API Server, Result: True 2025-09-13 23:17:53,831 - INFO - Done with setup and verification, moving onto test .. 2025-09-13 23:17:53,839 - INFO - Deleting VN ctest-vn4-70992499 2025-09-13 23:17:53,959 - DEBUG - Response for deleting network () 2025-09-13 23:17:53,959 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/76f8465f-66f9-4398-9ee1-6532e1a7af0f 2025-09-13 23:17:53,966 - DEBUG - Response Code: 404 2025-09-13 23:17:53,966 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 23:17:53,971 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fc53a9f6-5c43-4bac-b584-7fc39fee9d55 2025-09-13 23:17:54,023 - DEBUG - Requesting: http://10.0.0.22:8082/project/bc73a356-b7a0-48cd-8a6b-4783fb28f2c5 2025-09-13 23:17:54,098 - INFO - Validated that VN ctest-vn4-70992499 is not found in API Server 2025-09-13 23:17:54,109 - DEBUG - VN ctest-vn4-70992499 is not present in Agent 10.0.0.22 2025-09-13 23:17:54,109 - INFO - Validated that VN ctest-vn4-70992499 is not in any agent 2025-09-13 23:17:54,124 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-70992499 info 2025-09-13 23:17:54,149 - INFO - Deleted policy ctest-policy1-54930552 2025-09-13 23:17:54,326 - DEBUG - policy ctest-policy1-54930552 is not found in API Server 2025-09-13 23:17:54,586 - DEBUG - No XMPP flaps were noticed during the test
2025-09-13 23:17:54,586 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-13 23:17:54,586 - INFO - -------------------------------------------------------------------------------- 2025-09-13 23:17:54,879 - DEBUG - No XMPP flaps were noticed during the test
2025-09-13 23:17:54,879 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-13 23:17:54,879 - INFO - -------------------------------------------------------------------------------- 2025-09-13 23:17:55,575 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-38522917, ID : bc73a356-b7a0-48cd-8a6b-4783fb28f2c5