2025-08-30 21:56:01,778 - INFO - Domain Default found not creating 2025-08-30 21:56:01,911 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-40412624 not found, creating it 2025-08-30 21:56:02,341 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-40412624, ID : 2d774fb6-02ca-46b8-a498-63c020f3d3b6 2025-08-30 21:56:03,679 - INFO - ================================================================================ 2025-08-30 21:56:03,679 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-30 21:56:03,933 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.254': '0'}} with 2025-08-30 21:56:03,934 - INFO - Initial checks done. Running the testcase now 2025-08-30 21:56:03,934 - INFO - 2025-08-30 21:56:03,934 - INFO - ================================================================================ 2025-08-30 21:56:03,934 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-30 21:56:03,934 - 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-30 21:56:04,221 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.254': '0'}} with 2025-08-30 21:56:04,221 - INFO - Initial checks done. Running the testcase now 2025-08-30 21:56:04,221 - INFO - 2025-08-30 21:56:04,564 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40412624:ctest-vn4-99260739, 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-40412624:ctest-vn4-99260739, 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-40412624:ctest-vn4-99260739, 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-40412624:ctest-vn4-99260739, 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-30 21:56:05,059 - DEBUG - Response for create_network : {'network': {'id': 'a5eb4b4d-e7ca-4ba7-8a91-66ab2f033436', 'name': 'ctest-vn4-99260739', 'tenant_id': '2d774fb602ca46b8a49863c020f3d3b6', 'project_id': '2d774fb602ca46b8a49863c020f3d3b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40412624', 'ctest-vn4-99260739'], 'port_security_enabled': True, 'description': ''}} 2025-08-30 21:56:05,222 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9d561db-b4ca-4b4d-95c8-a828f7eea08b', 'name': '', 'tenant_id': '2d774fb602ca46b8a49863c020f3d3b6', 'network_id': 'a5eb4b4d-e7ca-4ba7-8a91-66ab2f033436', 'ip_version': 4, 'cidr': '168.212.3.64/26', 'allocation_pools': [{'start': '168.212.3.66', 'end': '168.212.3.126'}], 'gateway_ip': '168.212.3.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.212.3.66', 'tags': [], 'project_id': '2d774fb602ca46b8a49863c020f3d3b6'}} 2025-08-30 21:56:05,392 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7973629-6fc8-4a72-910b-28806dad3163', 'name': '', 'tenant_id': '2d774fb602ca46b8a49863c020f3d3b6', 'network_id': 'a5eb4b4d-e7ca-4ba7-8a91-66ab2f033436', 'ip_version': 6, 'cidr': '213a:93d4:1fd6:6260:583e:16e0::/96', 'allocation_pools': [{'start': '213a:93d4:1fd6:6260:583e:16e0:0:2', 'end': '213a:93d4:1fd6:6260:583e:16e0:ffff:fffe'}], 'gateway_ip': '213a:93d4:1fd6:6260:583e:16e0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213a:93d4:1fd6:6260:583e:16e0:0:2', 'tags': [], 'project_id': '2d774fb602ca46b8a49863c020f3d3b6'}} 2025-08-30 21:56:05,409 - INFO - Created VN ctest-vn4-99260739 2025-08-30 21:56:05,457 - DEBUG - VN ctest-vn4-99260739 UUID is a5eb4b4d-e7ca-4ba7-8a91-66ab2f033436 2025-08-30 21:56:05,635 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a5eb4b4d-e7ca-4ba7-8a91-66ab2f033436', 'name': 'ctest-vn4-99260739', 'tenant_id': '2d774fb602ca46b8a49863c020f3d3b6', 'project_id': '2d774fb602ca46b8a49863c020f3d3b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c9d561db-b4ca-4b4d-95c8-a828f7eea08b', 'd7973629-6fc8-4a72-910b-28806dad3163'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40412624', 'ctest-vn4-99260739'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40412624', 'ctest-policy1-17404260']], 'subnet_ipam': [{'subnet_cidr': '168.212.3.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '213a:93d4:1fd6:6260:583e:16e0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-30 21:56:05,793 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-30 21:56:06,081 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-30 21:56:06,105 - DEBUG - Requesting: http://10.0.0.49:8082/domain/1d30c287-e4f2-475a-ac7e-cf81780d2d30 2025-08-30 21:56:06,117 - DEBUG - Requesting: http://10.0.0.49:8082/project/2d774fb6-02ca-46b8-a498-63c020f3d3b6 2025-08-30 21:56:06,188 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/a5eb4b4d-e7ca-4ba7-8a91-66ab2f033436 2025-08-30 21:56:06,200 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/a5eb4b4d-e7ca-4ba7-8a91-66ab2f033436 2025-08-30 21:56:06,211 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8b53b91e-60c2-4087-859c-60b707d27283 2025-08-30 21:56:06,218 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8b53b91e-60c2-4087-859c-60b707d27283 2025-08-30 21:56:06,224 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/996549ed-8801-450f-b7b6-11e11ee852ef 2025-08-30 21:56:06,229 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-30 21:56:06,229 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/a5eb4b4d-e7ca-4ba7-8a91-66ab2f033436 2025-08-30 21:56:06,237 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8b53b91e-60c2-4087-859c-60b707d27283 2025-08-30 21:56:06,249 - INFO - Verified VN network id 12 for VN a5eb4b4d-e7ca-4ba7-8a91-66ab2f033436 2025-08-30 21:56:06,250 - INFO - Verifications in API Server for VN ctest-vn4-99260739 passed 2025-08-30 21:56:06,250 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/a5eb4b4d-e7ca-4ba7-8a91-66ab2f033436 2025-08-30 21:56:06,257 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8b53b91e-60c2-4087-859c-60b707d27283 2025-08-30 21:56:06,264 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8b53b91e-60c2-4087-859c-60b707d27283 2025-08-30 21:56:06,271 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/996549ed-8801-450f-b7b6-11e11ee852ef 2025-08-30 21:56:06,281 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40412624:ctest-vn4-99260739', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-40412624', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11955732433758473127', 'uuid-lslong': '9984874734271280182'}, 'enable': 'true', 'created': '2025-08-30T21:56:05', 'last-modified': '2025-08-30T21:56:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.674318'} 2025-08-30 21:56:06,287 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-30 21:56:06,287 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-99260739 passed 2025-08-30 21:56:06,287 - DEBUG - ====Verifying policy data for ctest-vn4-99260739 in API_Server ====== 2025-08-30 21:56:06,288 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-30 21:56:06,292 - DEBUG - Requesting: http://10.0.0.49:8082/domain/1d30c287-e4f2-475a-ac7e-cf81780d2d30 2025-08-30 21:56:06,301 - DEBUG - Requesting: http://10.0.0.49:8082/project/2d774fb6-02ca-46b8-a498-63c020f3d3b6 2025-08-30 21:56:06,366 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/a5eb4b4d-e7ca-4ba7-8a91-66ab2f033436 2025-08-30 21:56:06,374 - DEBUG - ==>Verifying data for policy with id: 328d0ad1-39ab-4d81-b73c-6fec705da71f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40412624', 'ctest-policy1-17404260'] 2025-08-30 21:56:06,374 - INFO - VN ctest-vn4-99260739 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-30 21:56:06,374 - DEBUG - Verifying the vn in opserver 2025-08-30 21:56:06,374 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40412624:ctest-vn4-99260739 virtual network link through opserver 10.0.0.49 2025-08-30 21:56:06,374 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-30 21:56:06,664 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-30 21:56:06,711 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40412624:ctest-vn4-99260739', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40412624:ctest-vn4-99260739?flat'} 2025-08-30 21:56:06,711 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40412624:ctest-vn4-99260739 is found in opserver 2025-08-30 21:56:06,719 - DEBUG - Do not have enough data to verify VN in agent 2025-08-30 21:56:06,723 - DEBUG - VRF ids for VN ctest-vn4-99260739: {} 2025-08-30 21:56:06,723 - DEBUG - ====Verifying data for ctest-policy1-17404260 in API_Server ====== 2025-08-30 21:56:06,723 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-30 21:56:06,728 - DEBUG - Requesting: http://10.0.0.49:8082/domain/1d30c287-e4f2-475a-ac7e-cf81780d2d30 2025-08-30 21:56:06,738 - DEBUG - Requesting: http://10.0.0.49:8082/project/2d774fb6-02ca-46b8-a498-63c020f3d3b6 2025-08-30 21:56:06,805 - DEBUG - Requesting: http://10.0.0.49:8082/network-policy/328d0ad1-39ab-4d81-b73c-6fec705da71f 2025-08-30 21:56:06,813 - INFO - Verified policy ctest-policy1-17404260 in API Server, Result: True 2025-08-30 21:56:06,813 - INFO - Done with setup and verification, moving onto test .. 2025-08-30 21:56:06,820 - INFO - Deleting VN ctest-vn4-99260739 2025-08-30 21:56:06,914 - DEBUG - Response for deleting network () 2025-08-30 21:56:06,914 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8b53b91e-60c2-4087-859c-60b707d27283 2025-08-30 21:56:06,918 - DEBUG - Response Code: 404 2025-08-30 21:56:06,919 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-30 21:56:06,923 - DEBUG - Requesting: http://10.0.0.49:8082/domain/1d30c287-e4f2-475a-ac7e-cf81780d2d30 2025-08-30 21:56:06,978 - DEBUG - Requesting: http://10.0.0.49:8082/project/2d774fb6-02ca-46b8-a498-63c020f3d3b6 2025-08-30 21:56:07,047 - INFO - Validated that VN ctest-vn4-99260739 is not found in API Server 2025-08-30 21:56:07,055 - DEBUG - VN ctest-vn4-99260739 is not present in Agent 10.0.0.49 2025-08-30 21:56:07,055 - INFO - Validated that VN ctest-vn4-99260739 is not in any agent 2025-08-30 21:56:07,067 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-99260739 info 2025-08-30 21:56:07,087 - INFO - Deleted policy ctest-policy1-17404260 2025-08-30 21:56:07,245 - DEBUG - policy ctest-policy1-17404260 is not found in API Server 2025-08-30 21:56:07,493 - DEBUG - No XMPP flaps were noticed during the test 2025-08-30 21:56:07,493 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-30 21:56:07,493 - INFO - -------------------------------------------------------------------------------- 2025-08-30 21:56:07,785 - DEBUG - No XMPP flaps were noticed during the test 2025-08-30 21:56:07,785 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-30 21:56:07,785 - INFO - -------------------------------------------------------------------------------- 2025-08-30 21:56:08,418 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-40412624, ID : 2d774fb6-02ca-46b8-a498-63c020f3d3b6