2025-10-09 14:36:37,853 - INFO - Domain Default found not creating 2025-10-09 14:36:37,983 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-00571846 not found, creating it 2025-10-09 14:36:38,408 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-00571846, ID : 5346ebb7-c8f6-4fc1-a180-01e7c2417e87 2025-10-09 14:36:39,750 - INFO - ================================================================================ 2025-10-09 14:36:39,750 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 14:36:40,010 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-10-09 14:36:40,010 - INFO - Initial checks done. Running the testcase now 2025-10-09 14:36:40,010 - INFO - 2025-10-09 14:36:40,010 - INFO - ================================================================================ 2025-10-09 14:36:40,010 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 14:36:40,010 - 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-09 14:36:40,297 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-10-09 14:36:40,297 - INFO - Initial checks done. Running the testcase now 2025-10-09 14:36:40,297 - INFO - 2025-10-09 14:36:40,644 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00571846:ctest-vn4-49266136, 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-00571846:ctest-vn4-49266136, 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-00571846:ctest-vn4-49266136, 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-00571846:ctest-vn4-49266136, 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-09 14:36:41,152 - DEBUG - Response for create_network : {'network': {'id': 'ba7037df-a063-4dc0-8696-926058753bd4', 'name': 'ctest-vn4-49266136', 'tenant_id': '5346ebb7c8f64fc1a18001e7c2417e87', 'project_id': '5346ebb7c8f64fc1a18001e7c2417e87', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00571846', 'ctest-vn4-49266136'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 14:36:41,318 - DEBUG - Response for create_subnet : {'subnet': {'id': '010f8cdf-a855-489e-b48a-9428e9d2fe96', 'name': '', 'tenant_id': '5346ebb7c8f64fc1a18001e7c2417e87', 'network_id': 'ba7037df-a063-4dc0-8696-926058753bd4', 'ip_version': 4, 'cidr': '148.67.120.192/26', 'allocation_pools': [{'start': '148.67.120.194', 'end': '148.67.120.254'}], 'gateway_ip': '148.67.120.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.67.120.194', 'tags': [], 'project_id': '5346ebb7c8f64fc1a18001e7c2417e87'}} 2025-10-09 14:36:41,477 - DEBUG - Response for create_subnet : {'subnet': {'id': '9f44b527-bc3a-4d76-ba83-d9ac60b5c1ca', 'name': '', 'tenant_id': '5346ebb7c8f64fc1a18001e7c2417e87', 'network_id': 'ba7037df-a063-4dc0-8696-926058753bd4', 'ip_version': 6, 'cidr': '2d24:bf95:6ec8:d31a:c33a:5bfd::/96', 'allocation_pools': [{'start': '2d24:bf95:6ec8:d31a:c33a:5bfd:0:2', 'end': '2d24:bf95:6ec8:d31a:c33a:5bfd:ffff:fffe'}], 'gateway_ip': '2d24:bf95:6ec8:d31a:c33a:5bfd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d24:bf95:6ec8:d31a:c33a:5bfd:0:2', 'tags': [], 'project_id': '5346ebb7c8f64fc1a18001e7c2417e87'}} 2025-10-09 14:36:41,496 - INFO - Created VN ctest-vn4-49266136 2025-10-09 14:36:41,548 - DEBUG - VN ctest-vn4-49266136 UUID is ba7037df-a063-4dc0-8696-926058753bd4 2025-10-09 14:36:41,732 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ba7037df-a063-4dc0-8696-926058753bd4', 'name': 'ctest-vn4-49266136', 'tenant_id': '5346ebb7c8f64fc1a18001e7c2417e87', 'project_id': '5346ebb7c8f64fc1a18001e7c2417e87', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['010f8cdf-a855-489e-b48a-9428e9d2fe96', '9f44b527-bc3a-4d76-ba83-d9ac60b5c1ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00571846', 'ctest-vn4-49266136'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00571846', 'ctest-policy1-73509984']], 'subnet_ipam': [{'subnet_cidr': '148.67.120.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d24:bf95:6ec8:d31a:c33a:5bfd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 14:36:41,896 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-10-09 14:36:42,187 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-10-09 14:36:42,273 - DEBUG - Requesting: http://10.0.0.65:8082/domain/196a0794-311a-49e8-ae7d-8cb35758b0a2 2025-10-09 14:36:42,285 - DEBUG - Requesting: http://10.0.0.65:8082/project/5346ebb7-c8f6-4fc1-a180-01e7c2417e87 2025-10-09 14:36:42,353 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ba7037df-a063-4dc0-8696-926058753bd4 2025-10-09 14:36:42,363 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ba7037df-a063-4dc0-8696-926058753bd4 2025-10-09 14:36:42,371 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/9af537f2-0e7a-4746-ab27-afe563a635e4 2025-10-09 14:36:42,377 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/9af537f2-0e7a-4746-ab27-afe563a635e4 2025-10-09 14:36:42,382 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/70ce9075-2c1f-49e0-95a5-fa8b0f83df9d 2025-10-09 14:36:42,386 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 14:36:42,386 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ba7037df-a063-4dc0-8696-926058753bd4 2025-10-09 14:36:42,394 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/9af537f2-0e7a-4746-ab27-afe563a635e4 2025-10-09 14:36:42,404 - INFO - Verified VN network id 12 for VN ba7037df-a063-4dc0-8696-926058753bd4 2025-10-09 14:36:42,404 - INFO - Verifications in API Server for VN ctest-vn4-49266136 passed 2025-10-09 14:36:42,404 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ba7037df-a063-4dc0-8696-926058753bd4 2025-10-09 14:36:42,412 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/9af537f2-0e7a-4746-ab27-afe563a635e4 2025-10-09 14:36:42,417 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/9af537f2-0e7a-4746-ab27-afe563a635e4 2025-10-09 14:36:42,422 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/70ce9075-2c1f-49e0-95a5-fa8b0f83df9d 2025-10-09 14:36:42,431 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00571846:ctest-vn4-49266136', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-00571846', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13434299122054286784', 'uuid-lslong': '9698099790087535572'}, 'enable': 'true', 'created': '2025-10-09T14:36:41', 'last-modified': '2025-10-09T14:36:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.722275'} 2025-10-09 14:36:42,437 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 14:36:42,437 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-49266136 passed 2025-10-09 14:36:42,437 - DEBUG - ====Verifying policy data for ctest-vn4-49266136 in API_Server ====== 2025-10-09 14:36:42,437 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-10-09 14:36:42,441 - DEBUG - Requesting: http://10.0.0.65:8082/domain/196a0794-311a-49e8-ae7d-8cb35758b0a2 2025-10-09 14:36:42,451 - DEBUG - Requesting: http://10.0.0.65:8082/project/5346ebb7-c8f6-4fc1-a180-01e7c2417e87 2025-10-09 14:36:42,517 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ba7037df-a063-4dc0-8696-926058753bd4 2025-10-09 14:36:42,526 - DEBUG - ==>Verifying data for policy with id: 48a2f38d-bcf5-4529-ac8e-92066f81346c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00571846', 'ctest-policy1-73509984'] 2025-10-09 14:36:42,526 - INFO - VN ctest-vn4-49266136 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 14:36:42,526 - DEBUG - Verifying the vn in opserver 2025-10-09 14:36:42,526 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00571846:ctest-vn4-49266136 virtual network link through opserver 10.0.0.65 2025-10-09 14:36:42,526 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-10-09 14:36:42,816 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-10-09 14:36:42,866 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00571846:ctest-vn4-49266136', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00571846:ctest-vn4-49266136?flat'} 2025-10-09 14:36:42,866 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00571846:ctest-vn4-49266136 is found in opserver 2025-10-09 14:36:42,875 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 14:36:42,879 - DEBUG - VRF ids for VN ctest-vn4-49266136: {} 2025-10-09 14:36:42,879 - DEBUG - ====Verifying data for ctest-policy1-73509984 in API_Server ====== 2025-10-09 14:36:42,879 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-10-09 14:36:42,884 - DEBUG - Requesting: http://10.0.0.65:8082/domain/196a0794-311a-49e8-ae7d-8cb35758b0a2 2025-10-09 14:36:42,892 - DEBUG - Requesting: http://10.0.0.65:8082/project/5346ebb7-c8f6-4fc1-a180-01e7c2417e87 2025-10-09 14:36:42,962 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/48a2f38d-bcf5-4529-ac8e-92066f81346c 2025-10-09 14:36:42,971 - INFO - Verified policy ctest-policy1-73509984 in API Server, Result: True 2025-10-09 14:36:42,972 - INFO - Done with setup and verification, moving onto test .. 2025-10-09 14:36:42,979 - INFO - Deleting VN ctest-vn4-49266136 2025-10-09 14:36:43,082 - DEBUG - Response for deleting network () 2025-10-09 14:36:43,082 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/9af537f2-0e7a-4746-ab27-afe563a635e4 2025-10-09 14:36:43,087 - DEBUG - Response Code: 404 2025-10-09 14:36:43,087 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-10-09 14:36:43,092 - DEBUG - Requesting: http://10.0.0.65:8082/domain/196a0794-311a-49e8-ae7d-8cb35758b0a2 2025-10-09 14:36:43,144 - DEBUG - Requesting: http://10.0.0.65:8082/project/5346ebb7-c8f6-4fc1-a180-01e7c2417e87 2025-10-09 14:36:43,213 - INFO - Validated that VN ctest-vn4-49266136 is not found in API Server 2025-10-09 14:36:43,221 - DEBUG - VN ctest-vn4-49266136 is not present in Agent 10.0.0.65 2025-10-09 14:36:43,221 - INFO - Validated that VN ctest-vn4-49266136 is not in any agent 2025-10-09 14:36:43,232 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-49266136 info 2025-10-09 14:36:43,255 - INFO - Deleted policy ctest-policy1-73509984 2025-10-09 14:36:43,419 - DEBUG - policy ctest-policy1-73509984 is not found in API Server 2025-10-09 14:36:43,672 - DEBUG - No XMPP flaps were noticed during the test