2025-12-08 22:11:37,964 - INFO - Domain Default found not creating 2025-12-08 22:11:38,137 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-31918239 not found, creating it 2025-12-08 22:11:38,615 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-31918239, ID : 47d765cc-e6cf-463c-8407-add8d49e789f 2025-12-08 22:11:40,556 - INFO - ================================================================================ 2025-12-08 22:11:40,556 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-08 22:11:40,816 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-08 22:11:40,816 - INFO - Initial checks done. Running the testcase now 2025-12-08 22:11:40,816 - INFO - 2025-12-08 22:11:40,816 - INFO - ================================================================================ 2025-12-08 22:11:40,816 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-08 22:11:40,816 - 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-08 22:11:41,119 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-08 22:11:41,119 - INFO - Initial checks done. Running the testcase now 2025-12-08 22:11:41,119 - INFO - 2025-12-08 22:11:41,479 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31918239:ctest-vn4-91684294, 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-31918239:ctest-vn4-91684294, 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-31918239:ctest-vn4-91684294, 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-31918239:ctest-vn4-91684294, 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-08 22:11:42,008 - DEBUG - Response for create_network : {'network': {'id': 'ce51b251-40b8-4e4c-abf6-721c94c0598a', 'name': 'ctest-vn4-91684294', 'tenant_id': '47d765cce6cf463c8407add8d49e789f', 'project_id': '47d765cce6cf463c8407add8d49e789f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31918239', 'ctest-vn4-91684294'], 'port_security_enabled': True, 'description': ''}} 2025-12-08 22:11:42,215 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc56ac69-101a-42b3-9559-89c7e140da24', 'name': '', 'tenant_id': '47d765cce6cf463c8407add8d49e789f', 'network_id': 'ce51b251-40b8-4e4c-abf6-721c94c0598a', 'ip_version': 4, 'cidr': '148.219.89.0/26', 'allocation_pools': [{'start': '148.219.89.2', 'end': '148.219.89.62'}], 'gateway_ip': '148.219.89.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.219.89.2', 'tags': [], 'project_id': '47d765cce6cf463c8407add8d49e789f'}} 2025-12-08 22:11:42,428 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b2f9b3b3-a4d3-4aaa-9f8f-ff36f6e67979', 'name': '', 'tenant_id': '47d765cce6cf463c8407add8d49e789f', 'network_id': 'ce51b251-40b8-4e4c-abf6-721c94c0598a', 'ip_version': 6, 'cidr': '293f:6f67:9b42:fd96:4ed7:854c::/96', 'allocation_pools': [{'start': '293f:6f67:9b42:fd96:4ed7:854c:0:2', 'end': '293f:6f67:9b42:fd96:4ed7:854c:ffff:fffe'}], 'gateway_ip': '293f:6f67:9b42:fd96:4ed7:854c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '293f:6f67:9b42:fd96:4ed7:854c:0:2', 'tags': [], 'project_id': '47d765cce6cf463c8407add8d49e789f'}} 2025-12-08 22:11:42,447 - INFO - Created VN ctest-vn4-91684294 2025-12-08 22:11:42,497 - DEBUG - VN ctest-vn4-91684294 UUID is ce51b251-40b8-4e4c-abf6-721c94c0598a 2025-12-08 22:11:42,697 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ce51b251-40b8-4e4c-abf6-721c94c0598a', 'name': 'ctest-vn4-91684294', 'tenant_id': '47d765cce6cf463c8407add8d49e789f', 'project_id': '47d765cce6cf463c8407add8d49e789f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bc56ac69-101a-42b3-9559-89c7e140da24', 'b2f9b3b3-a4d3-4aaa-9f8f-ff36f6e67979'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31918239', 'ctest-vn4-91684294'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31918239', 'ctest-policy1-35853245']], 'subnet_ipam': [{'subnet_cidr': '148.219.89.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '293f:6f67:9b42:fd96:4ed7:854c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-08 22:11:42,873 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-08 22:11:43,209 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-08 22:11:43,245 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2a7cc303-1cb3-4d68-baf4-562e92994660 2025-12-08 22:11:43,257 - DEBUG - Requesting: http://10.0.0.38:8082/project/47d765cc-e6cf-463c-8407-add8d49e789f 2025-12-08 22:11:43,333 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ce51b251-40b8-4e4c-abf6-721c94c0598a 2025-12-08 22:11:43,347 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ce51b251-40b8-4e4c-abf6-721c94c0598a 2025-12-08 22:11:43,358 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3348fb50-cbe7-4c61-9671-74a3f1035d2a 2025-12-08 22:11:43,366 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3348fb50-cbe7-4c61-9671-74a3f1035d2a 2025-12-08 22:11:43,372 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/43aa6abf-4c8c-49cb-a3ab-5bbc143b93cc 2025-12-08 22:11:43,378 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 22:11:43,378 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ce51b251-40b8-4e4c-abf6-721c94c0598a 2025-12-08 22:11:43,386 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3348fb50-cbe7-4c61-9671-74a3f1035d2a 2025-12-08 22:11:43,399 - INFO - Verified VN network id 11 for VN ce51b251-40b8-4e4c-abf6-721c94c0598a 2025-12-08 22:11:43,399 - INFO - Verifications in API Server for VN ctest-vn4-91684294 passed 2025-12-08 22:11:43,399 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ce51b251-40b8-4e4c-abf6-721c94c0598a 2025-12-08 22:11:43,408 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3348fb50-cbe7-4c61-9671-74a3f1035d2a 2025-12-08 22:11:43,414 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3348fb50-cbe7-4c61-9671-74a3f1035d2a 2025-12-08 22:11:43,419 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/43aa6abf-4c8c-49cb-a3ab-5bbc143b93cc 2025-12-08 22:11:43,431 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31918239:ctest-vn4-91684294', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-31918239', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14866859906974633548', 'uuid-lslong': '12391216891836782986'}, 'enable': 'true', 'created': '2025-12-08T22:11:41', 'last-modified': '2025-12-08T22:11:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.760063'} 2025-12-08 22:11:43,436 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 22:11:43,437 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-91684294 passed 2025-12-08 22:11:43,437 - DEBUG - ====Verifying policy data for ctest-vn4-91684294 in API_Server ====== 2025-12-08 22:11:43,437 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-08 22:11:43,442 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2a7cc303-1cb3-4d68-baf4-562e92994660 2025-12-08 22:11:43,452 - DEBUG - Requesting: http://10.0.0.38:8082/project/47d765cc-e6cf-463c-8407-add8d49e789f 2025-12-08 22:11:43,519 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ce51b251-40b8-4e4c-abf6-721c94c0598a 2025-12-08 22:11:43,528 - DEBUG - ==>Verifying data for policy with id: dfc49cdd-5170-4482-9bd9-30ce946d9648, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31918239', 'ctest-policy1-35853245'] 2025-12-08 22:11:43,528 - INFO - VN ctest-vn4-91684294 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-08 22:11:43,528 - DEBUG - Verifying the vn in opserver 2025-12-08 22:11:43,528 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31918239:ctest-vn4-91684294 virtual network link through opserver 10.0.0.38 2025-12-08 22:11:43,528 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-08 22:11:43,860 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-08 22:11:43,918 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31918239:ctest-vn4-91684294', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31918239:ctest-vn4-91684294?flat'} 2025-12-08 22:11:43,918 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31918239:ctest-vn4-91684294 is found in opserver 2025-12-08 22:11:43,927 - DEBUG - Do not have enough data to verify VN in agent 2025-12-08 22:11:43,931 - DEBUG - VRF ids for VN ctest-vn4-91684294: {} 2025-12-08 22:11:43,932 - DEBUG - ====Verifying data for ctest-policy1-35853245 in API_Server ====== 2025-12-08 22:11:43,932 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-08 22:11:43,937 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2a7cc303-1cb3-4d68-baf4-562e92994660 2025-12-08 22:11:43,948 - DEBUG - Requesting: http://10.0.0.38:8082/project/47d765cc-e6cf-463c-8407-add8d49e789f 2025-12-08 22:11:44,016 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/dfc49cdd-5170-4482-9bd9-30ce946d9648 2025-12-08 22:11:44,024 - INFO - Verified policy ctest-policy1-35853245 in API Server, Result: True 2025-12-08 22:11:44,024 - INFO - Done with setup and verification, moving onto test .. 2025-12-08 22:11:44,031 - INFO - Deleting VN ctest-vn4-91684294 2025-12-08 22:11:44,138 - DEBUG - Response for deleting network () 2025-12-08 22:11:44,138 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3348fb50-cbe7-4c61-9671-74a3f1035d2a 2025-12-08 22:11:44,142 - DEBUG - Response Code: 404 2025-12-08 22:11:44,142 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-08 22:11:44,148 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2a7cc303-1cb3-4d68-baf4-562e92994660 2025-12-08 22:11:44,198 - DEBUG - Requesting: http://10.0.0.38:8082/project/47d765cc-e6cf-463c-8407-add8d49e789f 2025-12-08 22:11:44,266 - INFO - Validated that VN ctest-vn4-91684294 is not found in API Server 2025-12-08 22:11:44,277 - DEBUG - VN ctest-vn4-91684294 is not present in Agent 10.0.0.38 2025-12-08 22:11:44,277 - INFO - Validated that VN ctest-vn4-91684294 is not in any agent 2025-12-08 22:11:44,290 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-91684294 info 2025-12-08 22:11:44,314 - INFO - Deleted policy ctest-policy1-35853245 2025-12-08 22:11:44,477 - DEBUG - policy ctest-policy1-35853245 is not found in API Server 2025-12-08 22:11:44,740 - DEBUG - No XMPP flaps were noticed during the test