2025-11-12 21:47:30,857 - INFO - Domain Default found not creating 2025-11-12 21:47:30,992 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11914750 not found, creating it 2025-11-12 21:47:31,412 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11914750, ID : d81799e8-0114-4bef-b8f7-2c5dd4b8fb5f 2025-11-12 21:47:32,851 - INFO - ================================================================================ 2025-11-12 21:47:32,851 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-12 21:47:33,105 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-12 21:47:33,105 - INFO - Initial checks done. Running the testcase now 2025-11-12 21:47:33,105 - INFO - 2025-11-12 21:47:33,105 - INFO - ================================================================================ 2025-11-12 21:47:33,105 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-12 21:47:33,105 - 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-11-12 21:47:33,392 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-12 21:47:33,392 - INFO - Initial checks done. Running the testcase now 2025-11-12 21:47:33,392 - INFO - 2025-11-12 21:47:33,773 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11914750:ctest-vn4-20051883, 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-11914750:ctest-vn4-20051883, 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-11914750:ctest-vn4-20051883, 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-11914750:ctest-vn4-20051883, 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-11-12 21:47:34,274 - DEBUG - Response for create_network : {'network': {'id': 'e1a33350-fc72-4759-820e-0ca3bccbeb6d', 'name': 'ctest-vn4-20051883', 'tenant_id': 'd81799e801144befb8f72c5dd4b8fb5f', 'project_id': 'd81799e801144befb8f72c5dd4b8fb5f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11914750', 'ctest-vn4-20051883'], 'port_security_enabled': True, 'description': ''}} 2025-11-12 21:47:34,477 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c1b85bcc-2fa9-436d-931c-10e810c9cab4', 'name': '', 'tenant_id': 'd81799e801144befb8f72c5dd4b8fb5f', 'network_id': 'e1a33350-fc72-4759-820e-0ca3bccbeb6d', 'ip_version': 4, 'cidr': '222.51.223.64/26', 'allocation_pools': [{'start': '222.51.223.66', 'end': '222.51.223.126'}], 'gateway_ip': '222.51.223.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.51.223.66', 'tags': [], 'project_id': 'd81799e801144befb8f72c5dd4b8fb5f'}} 2025-11-12 21:47:34,643 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f25b0dca-9f7c-4afd-82ab-16d2f5eeefc8', 'name': '', 'tenant_id': 'd81799e801144befb8f72c5dd4b8fb5f', 'network_id': 'e1a33350-fc72-4759-820e-0ca3bccbeb6d', 'ip_version': 6, 'cidr': '3375:51d9:b757:8f24:68cb:8f3::/96', 'allocation_pools': [{'start': '3375:51d9:b757:8f24:68cb:8f3:0:2', 'end': '3375:51d9:b757:8f24:68cb:8f3:ffff:fffe'}], 'gateway_ip': '3375:51d9:b757:8f24:68cb:8f3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3375:51d9:b757:8f24:68cb:8f3:0:2', 'tags': [], 'project_id': 'd81799e801144befb8f72c5dd4b8fb5f'}} 2025-11-12 21:47:34,657 - INFO - Created VN ctest-vn4-20051883 2025-11-12 21:47:34,707 - DEBUG - VN ctest-vn4-20051883 UUID is e1a33350-fc72-4759-820e-0ca3bccbeb6d 2025-11-12 21:47:34,887 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e1a33350-fc72-4759-820e-0ca3bccbeb6d', 'name': 'ctest-vn4-20051883', 'tenant_id': 'd81799e801144befb8f72c5dd4b8fb5f', 'project_id': 'd81799e801144befb8f72c5dd4b8fb5f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c1b85bcc-2fa9-436d-931c-10e810c9cab4', 'f25b0dca-9f7c-4afd-82ab-16d2f5eeefc8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11914750', 'ctest-vn4-20051883'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11914750', 'ctest-policy1-74377285']], 'subnet_ipam': [{'subnet_cidr': '222.51.223.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3375:51d9:b757:8f24:68cb:8f3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-12 21:47:35,040 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-12 21:47:35,357 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-12 21:47:35,385 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ba890416-c665-4480-a0d7-b8aa84cda5fe 2025-11-12 21:47:35,455 - DEBUG - Requesting: http://10.0.0.50:8082/project/d81799e8-0114-4bef-b8f7-2c5dd4b8fb5f 2025-11-12 21:47:35,525 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e1a33350-fc72-4759-820e-0ca3bccbeb6d 2025-11-12 21:47:35,535 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e1a33350-fc72-4759-820e-0ca3bccbeb6d 2025-11-12 21:47:35,542 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a12c77a5-dd12-4659-ba26-62a1afe0ba5a 2025-11-12 21:47:35,548 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a12c77a5-dd12-4659-ba26-62a1afe0ba5a 2025-11-12 21:47:35,554 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/be35c140-bfa7-4d6f-9d7d-c52e6d9567e2 2025-11-12 21:47:35,559 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-12 21:47:35,559 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e1a33350-fc72-4759-820e-0ca3bccbeb6d 2025-11-12 21:47:35,568 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a12c77a5-dd12-4659-ba26-62a1afe0ba5a 2025-11-12 21:47:35,579 - INFO - Verified VN network id 11 for VN e1a33350-fc72-4759-820e-0ca3bccbeb6d 2025-11-12 21:47:35,579 - INFO - Verifications in API Server for VN ctest-vn4-20051883 passed 2025-11-12 21:47:35,580 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e1a33350-fc72-4759-820e-0ca3bccbeb6d 2025-11-12 21:47:35,588 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a12c77a5-dd12-4659-ba26-62a1afe0ba5a 2025-11-12 21:47:35,592 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a12c77a5-dd12-4659-ba26-62a1afe0ba5a 2025-11-12 21:47:35,597 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/be35c140-bfa7-4d6f-9d7d-c52e6d9567e2 2025-11-12 21:47:35,606 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11914750:ctest-vn4-20051883', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11914750', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16258895502663370585', 'uuid-lslong': '9371441771991264109'}, 'enable': 'true', 'created': '2025-11-12T21:47:34', 'last-modified': '2025-11-12T21:47:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.753893'} 2025-11-12 21:47:35,611 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-12 21:47:35,611 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-20051883 passed 2025-11-12 21:47:35,611 - DEBUG - ====Verifying policy data for ctest-vn4-20051883 in API_Server ====== 2025-11-12 21:47:35,611 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-12 21:47:35,615 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ba890416-c665-4480-a0d7-b8aa84cda5fe 2025-11-12 21:47:35,625 - DEBUG - Requesting: http://10.0.0.50:8082/project/d81799e8-0114-4bef-b8f7-2c5dd4b8fb5f 2025-11-12 21:47:35,694 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e1a33350-fc72-4759-820e-0ca3bccbeb6d 2025-11-12 21:47:35,704 - DEBUG - ==>Verifying data for policy with id: 91e21bfa-4cf9-44fc-8d2b-5ac493debd5c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11914750', 'ctest-policy1-74377285'] 2025-11-12 21:47:35,704 - INFO - VN ctest-vn4-20051883 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-12 21:47:35,704 - DEBUG - Verifying the vn in opserver 2025-11-12 21:47:35,704 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11914750:ctest-vn4-20051883 virtual network link through opserver 10.0.0.50 2025-11-12 21:47:35,704 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-12 21:47:36,017 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-12 21:47:36,070 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11914750:ctest-vn4-20051883', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11914750:ctest-vn4-20051883?flat'} 2025-11-12 21:47:36,070 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11914750:ctest-vn4-20051883 is found in opserver 2025-11-12 21:47:36,079 - DEBUG - Do not have enough data to verify VN in agent 2025-11-12 21:47:36,083 - DEBUG - VRF ids for VN ctest-vn4-20051883: {} 2025-11-12 21:47:36,084 - DEBUG - ====Verifying data for ctest-policy1-74377285 in API_Server ====== 2025-11-12 21:47:36,084 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-12 21:47:36,089 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ba890416-c665-4480-a0d7-b8aa84cda5fe 2025-11-12 21:47:36,097 - DEBUG - Requesting: http://10.0.0.50:8082/project/d81799e8-0114-4bef-b8f7-2c5dd4b8fb5f 2025-11-12 21:47:36,163 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/91e21bfa-4cf9-44fc-8d2b-5ac493debd5c 2025-11-12 21:47:36,172 - INFO - Verified policy ctest-policy1-74377285 in API Server, Result: True 2025-11-12 21:47:36,172 - INFO - Done with setup and verification, moving onto test .. 2025-11-12 21:47:36,178 - INFO - Deleting VN ctest-vn4-20051883 2025-11-12 21:47:36,274 - DEBUG - Response for deleting network () 2025-11-12 21:47:36,274 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a12c77a5-dd12-4659-ba26-62a1afe0ba5a 2025-11-12 21:47:36,278 - DEBUG - Response Code: 404 2025-11-12 21:47:36,278 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-12 21:47:36,282 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ba890416-c665-4480-a0d7-b8aa84cda5fe 2025-11-12 21:47:36,332 - DEBUG - Requesting: http://10.0.0.50:8082/project/d81799e8-0114-4bef-b8f7-2c5dd4b8fb5f 2025-11-12 21:47:36,405 - INFO - Validated that VN ctest-vn4-20051883 is not found in API Server 2025-11-12 21:47:36,415 - DEBUG - VN ctest-vn4-20051883 is not present in Agent 10.0.0.50 2025-11-12 21:47:36,415 - INFO - Validated that VN ctest-vn4-20051883 is not in any agent 2025-11-12 21:47:36,427 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-20051883 info 2025-11-12 21:47:36,452 - INFO - Deleted policy ctest-policy1-74377285 2025-11-12 21:47:36,615 - DEBUG - policy ctest-policy1-74377285 is not found in API Server 2025-11-12 21:47:36,869 - DEBUG - No XMPP flaps were noticed during the test