2025-10-07 16:51:07,435 - INFO - Domain Default found not creating 2025-10-07 16:51:07,609 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-29292184 not found, creating it 2025-10-07 16:51:08,187 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-29292184, ID : 37b367c4-b23a-488b-850a-acb8ce30dfd5 2025-10-07 16:51:09,823 - INFO - ================================================================================ 2025-10-07 16:51:09,823 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-07 16:51:10,082 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-07 16:51:10,082 - INFO - Initial checks done. Running the testcase now 2025-10-07 16:51:10,082 - INFO - 2025-10-07 16:51:10,082 - INFO - ================================================================================ 2025-10-07 16:51:10,082 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-07 16:51:10,083 - 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-07 16:51:10,372 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-07 16:51:10,372 - INFO - Initial checks done. Running the testcase now 2025-10-07 16:51:10,372 - INFO - 2025-10-07 16:51:10,734 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29292184:ctest-vn4-24822464, 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-29292184:ctest-vn4-24822464, 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-29292184:ctest-vn4-24822464, 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-29292184:ctest-vn4-24822464, 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-07 16:51:11,263 - DEBUG - Response for create_network : {'network': {'id': 'beeae353-628b-4c4d-af32-e2afa0d6249d', 'name': 'ctest-vn4-24822464', 'tenant_id': '37b367c4b23a488b850aacb8ce30dfd5', 'project_id': '37b367c4b23a488b850aacb8ce30dfd5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29292184', 'ctest-vn4-24822464'], 'port_security_enabled': True, 'description': ''}} 2025-10-07 16:51:11,495 - DEBUG - Response for create_subnet : {'subnet': {'id': '14f170f4-29f2-4ce6-94d3-ba94bda4f7fb', 'name': '', 'tenant_id': '37b367c4b23a488b850aacb8ce30dfd5', 'network_id': 'beeae353-628b-4c4d-af32-e2afa0d6249d', 'ip_version': 4, 'cidr': '133.25.44.0/26', 'allocation_pools': [{'start': '133.25.44.2', 'end': '133.25.44.62'}], 'gateway_ip': '133.25.44.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.25.44.2', 'tags': [], 'project_id': '37b367c4b23a488b850aacb8ce30dfd5'}} 2025-10-07 16:51:11,702 - DEBUG - Response for create_subnet : {'subnet': {'id': '188f362a-0c2f-469c-b966-20fee485c303', 'name': '', 'tenant_id': '37b367c4b23a488b850aacb8ce30dfd5', 'network_id': 'beeae353-628b-4c4d-af32-e2afa0d6249d', 'ip_version': 6, 'cidr': '3ab3:def4:4e7e:8d5a:2e51:cb3a::/96', 'allocation_pools': [{'start': '3ab3:def4:4e7e:8d5a:2e51:cb3a:0:2', 'end': '3ab3:def4:4e7e:8d5a:2e51:cb3a:ffff:fffe'}], 'gateway_ip': '3ab3:def4:4e7e:8d5a:2e51:cb3a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ab3:def4:4e7e:8d5a:2e51:cb3a:0:2', 'tags': [], 'project_id': '37b367c4b23a488b850aacb8ce30dfd5'}} 2025-10-07 16:51:11,722 - INFO - Created VN ctest-vn4-24822464 2025-10-07 16:51:11,774 - DEBUG - VN ctest-vn4-24822464 UUID is beeae353-628b-4c4d-af32-e2afa0d6249d 2025-10-07 16:51:12,005 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'beeae353-628b-4c4d-af32-e2afa0d6249d', 'name': 'ctest-vn4-24822464', 'tenant_id': '37b367c4b23a488b850aacb8ce30dfd5', 'project_id': '37b367c4b23a488b850aacb8ce30dfd5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['14f170f4-29f2-4ce6-94d3-ba94bda4f7fb', '188f362a-0c2f-469c-b966-20fee485c303'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29292184', 'ctest-vn4-24822464'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29292184', 'ctest-policy1-12732782']], 'subnet_ipam': [{'subnet_cidr': '133.25.44.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ab3:def4:4e7e:8d5a:2e51:cb3a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-07 16:51:12,170 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-07 16:51:12,465 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-07 16:51:12,496 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c5cc07ef-53b4-4807-908f-62edecbcce18 2025-10-07 16:51:12,513 - DEBUG - Requesting: http://10.0.0.254:8082/project/37b367c4-b23a-488b-850a-acb8ce30dfd5 2025-10-07 16:51:12,587 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/beeae353-628b-4c4d-af32-e2afa0d6249d 2025-10-07 16:51:12,603 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/beeae353-628b-4c4d-af32-e2afa0d6249d 2025-10-07 16:51:12,613 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dd027ba2-2509-49d9-9f6a-588253e8f5c5 2025-10-07 16:51:12,620 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dd027ba2-2509-49d9-9f6a-588253e8f5c5 2025-10-07 16:51:12,628 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/bbf03ef2-d478-41ed-9ea3-3c8c7191a366 2025-10-07 16:51:12,638 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-07 16:51:12,638 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/beeae353-628b-4c4d-af32-e2afa0d6249d 2025-10-07 16:51:12,648 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dd027ba2-2509-49d9-9f6a-588253e8f5c5 2025-10-07 16:51:12,665 - INFO - Verified VN network id 11 for VN beeae353-628b-4c4d-af32-e2afa0d6249d 2025-10-07 16:51:12,665 - INFO - Verifications in API Server for VN ctest-vn4-24822464 passed 2025-10-07 16:51:12,665 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/beeae353-628b-4c4d-af32-e2afa0d6249d 2025-10-07 16:51:12,675 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dd027ba2-2509-49d9-9f6a-588253e8f5c5 2025-10-07 16:51:12,682 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dd027ba2-2509-49d9-9f6a-588253e8f5c5 2025-10-07 16:51:12,690 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/bbf03ef2-d478-41ed-9ea3-3c8c7191a366 2025-10-07 16:51:12,702 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29292184:ctest-vn4-24822464', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-29292184', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13757057959031688269', 'uuid-lslong': '12624401949418464413'}, 'enable': 'true', 'created': '2025-10-07T16:51:11', 'last-modified': '2025-10-07T16:51:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.732306'} 2025-10-07 16:51:12,708 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-07 16:51:12,708 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-24822464 passed 2025-10-07 16:51:12,708 - DEBUG - ====Verifying policy data for ctest-vn4-24822464 in API_Server ====== 2025-10-07 16:51:12,708 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-07 16:51:12,715 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c5cc07ef-53b4-4807-908f-62edecbcce18 2025-10-07 16:51:12,725 - DEBUG - Requesting: http://10.0.0.254:8082/project/37b367c4-b23a-488b-850a-acb8ce30dfd5 2025-10-07 16:51:12,800 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/beeae353-628b-4c4d-af32-e2afa0d6249d 2025-10-07 16:51:12,809 - DEBUG - ==>Verifying data for policy with id: c6f68bc1-266f-4bce-81de-5d388227501c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29292184', 'ctest-policy1-12732782'] 2025-10-07 16:51:12,809 - INFO - VN ctest-vn4-24822464 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-07 16:51:12,809 - DEBUG - Verifying the vn in opserver 2025-10-07 16:51:12,810 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29292184:ctest-vn4-24822464 virtual network link through opserver 10.0.0.254 2025-10-07 16:51:12,810 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-07 16:51:13,233 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-07 16:51:13,322 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29292184:ctest-vn4-24822464', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29292184:ctest-vn4-24822464?flat'} 2025-10-07 16:51:13,322 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29292184:ctest-vn4-24822464 is found in opserver 2025-10-07 16:51:13,331 - DEBUG - Do not have enough data to verify VN in agent 2025-10-07 16:51:13,336 - DEBUG - VRF ids for VN ctest-vn4-24822464: {} 2025-10-07 16:51:13,336 - DEBUG - ====Verifying data for ctest-policy1-12732782 in API_Server ====== 2025-10-07 16:51:13,336 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-07 16:51:13,342 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c5cc07ef-53b4-4807-908f-62edecbcce18 2025-10-07 16:51:13,352 - DEBUG - Requesting: http://10.0.0.254:8082/project/37b367c4-b23a-488b-850a-acb8ce30dfd5 2025-10-07 16:51:13,426 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/c6f68bc1-266f-4bce-81de-5d388227501c 2025-10-07 16:51:13,436 - INFO - Verified policy ctest-policy1-12732782 in API Server, Result: True 2025-10-07 16:51:13,437 - INFO - Done with setup and verification, moving onto test .. 2025-10-07 16:51:13,446 - INFO - Deleting VN ctest-vn4-24822464 2025-10-07 16:51:13,578 - DEBUG - Response for deleting network () 2025-10-07 16:51:13,578 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dd027ba2-2509-49d9-9f6a-588253e8f5c5 2025-10-07 16:51:13,584 - DEBUG - Response Code: 404 2025-10-07 16:51:13,584 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-07 16:51:13,590 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c5cc07ef-53b4-4807-908f-62edecbcce18 2025-10-07 16:51:13,646 - DEBUG - Requesting: http://10.0.0.254:8082/project/37b367c4-b23a-488b-850a-acb8ce30dfd5 2025-10-07 16:51:13,716 - INFO - Validated that VN ctest-vn4-24822464 is not found in API Server 2025-10-07 16:51:13,725 - DEBUG - VN ctest-vn4-24822464 is not present in Agent 10.0.0.254 2025-10-07 16:51:13,725 - INFO - Validated that VN ctest-vn4-24822464 is not in any agent 2025-10-07 16:51:13,739 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-24822464 info 2025-10-07 16:51:13,770 - INFO - Deleted policy ctest-policy1-12732782 2025-10-07 16:51:13,934 - DEBUG - policy ctest-policy1-12732782 is not found in API Server 2025-10-07 16:51:14,187 - DEBUG - No XMPP flaps were noticed during the test 2025-10-07 16:51:14,187 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-07 16:51:14,188 - INFO - -------------------------------------------------------------------------------- 2025-10-07 16:51:14,480 - DEBUG - No XMPP flaps were noticed during the test 2025-10-07 16:51:14,480 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-10-07 16:51:14,480 - INFO - -------------------------------------------------------------------------------- 2025-10-07 16:51:15,202 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-29292184, ID : 37b367c4-b23a-488b-850a-acb8ce30dfd5