2025-12-15 19:33:11,940 - INFO - Domain Default found not creating 2025-12-15 19:33:12,097 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-90907769 not found, creating it 2025-12-15 19:33:12,552 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-90907769, ID : 2525a948-a4af-4ac5-9dad-fc877dd2b8a1 2025-12-15 19:33:13,994 - INFO - ================================================================================ 2025-12-15 19:33:13,995 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-15 19:33:14,253 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-12-15 19:33:14,253 - INFO - Initial checks done. Running the testcase now 2025-12-15 19:33:14,253 - INFO - 2025-12-15 19:33:14,253 - INFO - ================================================================================ 2025-12-15 19:33:14,253 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-15 19:33:14,253 - 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-12-15 19:33:14,541 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-12-15 19:33:14,541 - INFO - Initial checks done. Running the testcase now 2025-12-15 19:33:14,541 - INFO - 2025-12-15 19:33:14,902 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90907769:ctest-vn4-44186136, 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-90907769:ctest-vn4-44186136, 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-90907769:ctest-vn4-44186136, 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-90907769:ctest-vn4-44186136, 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-12-15 19:33:15,420 - DEBUG - Response for create_network : {'network': {'id': '2e3bea5c-b568-459f-8739-861d78c50c64', 'name': 'ctest-vn4-44186136', 'tenant_id': '2525a948a4af4ac59dadfc877dd2b8a1', 'project_id': '2525a948a4af4ac59dadfc877dd2b8a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90907769', 'ctest-vn4-44186136'], 'port_security_enabled': True, 'description': ''}} 2025-12-15 19:33:15,577 - DEBUG - Response for create_subnet : {'subnet': {'id': 'be845b34-d123-4063-b7d0-d2a21395c9e6', 'name': '', 'tenant_id': '2525a948a4af4ac59dadfc877dd2b8a1', 'network_id': '2e3bea5c-b568-459f-8739-861d78c50c64', 'ip_version': 4, 'cidr': '34.27.234.64/26', 'allocation_pools': [{'start': '34.27.234.66', 'end': '34.27.234.126'}], 'gateway_ip': '34.27.234.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.27.234.66', 'tags': [], 'project_id': '2525a948a4af4ac59dadfc877dd2b8a1'}} 2025-12-15 19:33:15,786 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c702e20-5166-4bfb-8aea-3286f2ee8d10', 'name': '', 'tenant_id': '2525a948a4af4ac59dadfc877dd2b8a1', 'network_id': '2e3bea5c-b568-459f-8739-861d78c50c64', 'ip_version': 6, 'cidr': '3f36:9327:4f9e:ab53:9ebc:837d::/96', 'allocation_pools': [{'start': '3f36:9327:4f9e:ab53:9ebc:837d:0:2', 'end': '3f36:9327:4f9e:ab53:9ebc:837d:ffff:fffe'}], 'gateway_ip': '3f36:9327:4f9e:ab53:9ebc:837d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f36:9327:4f9e:ab53:9ebc:837d:0:2', 'tags': [], 'project_id': '2525a948a4af4ac59dadfc877dd2b8a1'}} 2025-12-15 19:33:15,807 - INFO - Created VN ctest-vn4-44186136 2025-12-15 19:33:15,864 - DEBUG - VN ctest-vn4-44186136 UUID is 2e3bea5c-b568-459f-8739-861d78c50c64 2025-12-15 19:33:16,050 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e3bea5c-b568-459f-8739-861d78c50c64', 'name': 'ctest-vn4-44186136', 'tenant_id': '2525a948a4af4ac59dadfc877dd2b8a1', 'project_id': '2525a948a4af4ac59dadfc877dd2b8a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['be845b34-d123-4063-b7d0-d2a21395c9e6', '0c702e20-5166-4bfb-8aea-3286f2ee8d10'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90907769', 'ctest-vn4-44186136'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90907769', 'ctest-policy1-14173364']], 'subnet_ipam': [{'subnet_cidr': '34.27.234.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f36:9327:4f9e:ab53:9ebc:837d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-15 19:33:16,212 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-15 19:33:16,505 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-15 19:33:16,536 - DEBUG - Requesting: http://10.0.0.50:8082/domain/471d9740-a187-401a-bf59-2a10d0c16302 2025-12-15 19:33:16,549 - DEBUG - Requesting: http://10.0.0.50:8082/project/2525a948-a4af-4ac5-9dad-fc877dd2b8a1 2025-12-15 19:33:16,619 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2e3bea5c-b568-459f-8739-861d78c50c64 2025-12-15 19:33:16,633 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2e3bea5c-b568-459f-8739-861d78c50c64 2025-12-15 19:33:16,643 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5d012a1b-2a86-4905-a10e-b039452f4a1a 2025-12-15 19:33:16,650 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5d012a1b-2a86-4905-a10e-b039452f4a1a 2025-12-15 19:33:16,656 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6ca742da-82f9-44b1-8ab3-a7e9aae84f81 2025-12-15 19:33:16,662 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-15 19:33:16,663 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2e3bea5c-b568-459f-8739-861d78c50c64 2025-12-15 19:33:16,671 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5d012a1b-2a86-4905-a10e-b039452f4a1a 2025-12-15 19:33:16,684 - INFO - Verified VN network id 12 for VN 2e3bea5c-b568-459f-8739-861d78c50c64 2025-12-15 19:33:16,684 - INFO - Verifications in API Server for VN ctest-vn4-44186136 passed 2025-12-15 19:33:16,684 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2e3bea5c-b568-459f-8739-861d78c50c64 2025-12-15 19:33:16,694 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5d012a1b-2a86-4905-a10e-b039452f4a1a 2025-12-15 19:33:16,700 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5d012a1b-2a86-4905-a10e-b039452f4a1a 2025-12-15 19:33:16,707 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6ca742da-82f9-44b1-8ab3-a7e9aae84f81 2025-12-15 19:33:16,719 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90907769:ctest-vn4-44186136', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-90907769', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3331514033272014239', 'uuid-lslong': '9743966729931132004'}, 'enable': 'true', 'created': '2025-12-15T19:33:15', 'last-modified': '2025-12-15T19:33:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.688856'} 2025-12-15 19:33:16,725 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-15 19:33:16,725 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-44186136 passed 2025-12-15 19:33:16,725 - DEBUG - ====Verifying policy data for ctest-vn4-44186136 in API_Server ====== 2025-12-15 19:33:16,726 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-15 19:33:16,731 - DEBUG - Requesting: http://10.0.0.50:8082/domain/471d9740-a187-401a-bf59-2a10d0c16302 2025-12-15 19:33:16,741 - DEBUG - Requesting: http://10.0.0.50:8082/project/2525a948-a4af-4ac5-9dad-fc877dd2b8a1 2025-12-15 19:33:16,808 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2e3bea5c-b568-459f-8739-861d78c50c64 2025-12-15 19:33:16,818 - DEBUG - ==>Verifying data for policy with id: 6b723ba4-cfb6-498d-a058-1ecaa37da85a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90907769', 'ctest-policy1-14173364'] 2025-12-15 19:33:16,818 - INFO - VN ctest-vn4-44186136 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-15 19:33:16,819 - DEBUG - Verifying the vn in opserver 2025-12-15 19:33:16,819 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90907769:ctest-vn4-44186136 virtual network link through opserver 10.0.0.50 2025-12-15 19:33:16,819 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-12-15 19:33:17,110 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-12-15 19:33:17,170 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90907769:ctest-vn4-44186136', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90907769:ctest-vn4-44186136?flat'} 2025-12-15 19:33:17,170 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90907769:ctest-vn4-44186136 is found in opserver 2025-12-15 19:33:17,179 - DEBUG - Do not have enough data to verify VN in agent 2025-12-15 19:33:17,184 - DEBUG - VRF ids for VN ctest-vn4-44186136: {} 2025-12-15 19:33:17,184 - DEBUG - ====Verifying data for ctest-policy1-14173364 in API_Server ====== 2025-12-15 19:33:17,184 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-15 19:33:17,189 - DEBUG - Requesting: http://10.0.0.50:8082/domain/471d9740-a187-401a-bf59-2a10d0c16302 2025-12-15 19:33:17,199 - DEBUG - Requesting: http://10.0.0.50:8082/project/2525a948-a4af-4ac5-9dad-fc877dd2b8a1 2025-12-15 19:33:17,267 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/6b723ba4-cfb6-498d-a058-1ecaa37da85a 2025-12-15 19:33:17,275 - INFO - Verified policy ctest-policy1-14173364 in API Server, Result: True 2025-12-15 19:33:17,276 - INFO - Done with setup and verification, moving onto test .. 2025-12-15 19:33:17,283 - INFO - Deleting VN ctest-vn4-44186136 2025-12-15 19:33:17,394 - DEBUG - Response for deleting network () 2025-12-15 19:33:17,394 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5d012a1b-2a86-4905-a10e-b039452f4a1a 2025-12-15 19:33:17,399 - DEBUG - Response Code: 404 2025-12-15 19:33:17,400 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-12-15 19:33:17,405 - DEBUG - Requesting: http://10.0.0.50:8082/domain/471d9740-a187-401a-bf59-2a10d0c16302 2025-12-15 19:33:17,457 - DEBUG - Requesting: http://10.0.0.50:8082/project/2525a948-a4af-4ac5-9dad-fc877dd2b8a1 2025-12-15 19:33:17,527 - INFO - Validated that VN ctest-vn4-44186136 is not found in API Server 2025-12-15 19:33:17,536 - DEBUG - VN ctest-vn4-44186136 is not present in Agent 10.0.0.50 2025-12-15 19:33:17,536 - INFO - Validated that VN ctest-vn4-44186136 is not in any agent 2025-12-15 19:33:17,549 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-44186136 info 2025-12-15 19:33:17,576 - INFO - Deleted policy ctest-policy1-14173364 2025-12-15 19:33:17,736 - DEBUG - policy ctest-policy1-14173364 is not found in API Server 2025-12-15 19:33:17,992 - DEBUG - No XMPP flaps were noticed during the test