2025-12-25 02:00:50,693 - INFO - Domain Default found not creating 2025-12-25 02:00:50,835 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-57281693 not found, creating it 2025-12-25 02:00:51,339 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-57281693, ID : 86b74219-a8a7-4d55-9188-3c61a29db972 2025-12-25 02:00:52,787 - INFO - ================================================================================ 2025-12-25 02:00:52,787 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-25 02:00:53,043 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-12-25 02:00:53,043 - INFO - Initial checks done. Running the testcase now 2025-12-25 02:00:53,044 - INFO - 2025-12-25 02:00:53,044 - INFO - ================================================================================ 2025-12-25 02:00:53,044 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-25 02:00:53,044 - 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-25 02:00:53,330 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-12-25 02:00:53,330 - INFO - Initial checks done. Running the testcase now 2025-12-25 02:00:53,330 - INFO - 2025-12-25 02:00:53,676 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57281693:ctest-vn4-95822352, 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-57281693:ctest-vn4-95822352, 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-57281693:ctest-vn4-95822352, 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-57281693:ctest-vn4-95822352, 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-25 02:00:54,159 - DEBUG - Response for create_network : {'network': {'id': 'dd2895e3-f91b-4bb1-a4ae-793b3cf69d36', 'name': 'ctest-vn4-95822352', 'tenant_id': '86b74219a8a74d5591883c61a29db972', 'project_id': '86b74219a8a74d5591883c61a29db972', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57281693', 'ctest-vn4-95822352'], 'port_security_enabled': True, 'description': ''}} 2025-12-25 02:00:54,310 - DEBUG - Response for create_subnet : {'subnet': {'id': '51e885cf-3b7e-49ee-aeb0-f3f42d59556c', 'name': '', 'tenant_id': '86b74219a8a74d5591883c61a29db972', 'network_id': 'dd2895e3-f91b-4bb1-a4ae-793b3cf69d36', 'ip_version': 4, 'cidr': '172.221.136.0/26', 'allocation_pools': [{'start': '172.221.136.2', 'end': '172.221.136.62'}], 'gateway_ip': '172.221.136.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.221.136.2', 'tags': [], 'project_id': '86b74219a8a74d5591883c61a29db972'}} 2025-12-25 02:00:54,485 - DEBUG - Response for create_subnet : {'subnet': {'id': '44914462-acdb-4e66-a5cc-0ae7ddf59672', 'name': '', 'tenant_id': '86b74219a8a74d5591883c61a29db972', 'network_id': 'dd2895e3-f91b-4bb1-a4ae-793b3cf69d36', 'ip_version': 6, 'cidr': '2f5c:23e7:e6f2:f526:486b:5b90::/96', 'allocation_pools': [{'start': '2f5c:23e7:e6f2:f526:486b:5b90:0:2', 'end': '2f5c:23e7:e6f2:f526:486b:5b90:ffff:fffe'}], 'gateway_ip': '2f5c:23e7:e6f2:f526:486b:5b90:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f5c:23e7:e6f2:f526:486b:5b90:0:2', 'tags': [], 'project_id': '86b74219a8a74d5591883c61a29db972'}} 2025-12-25 02:00:54,505 - INFO - Created VN ctest-vn4-95822352 2025-12-25 02:00:54,557 - DEBUG - VN ctest-vn4-95822352 UUID is dd2895e3-f91b-4bb1-a4ae-793b3cf69d36 2025-12-25 02:00:54,758 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dd2895e3-f91b-4bb1-a4ae-793b3cf69d36', 'name': 'ctest-vn4-95822352', 'tenant_id': '86b74219a8a74d5591883c61a29db972', 'project_id': '86b74219a8a74d5591883c61a29db972', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51e885cf-3b7e-49ee-aeb0-f3f42d59556c', '44914462-acdb-4e66-a5cc-0ae7ddf59672'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57281693', 'ctest-vn4-95822352'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57281693', 'ctest-policy1-57750076']], 'subnet_ipam': [{'subnet_cidr': '172.221.136.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f5c:23e7:e6f2:f526:486b:5b90::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-25 02:00:54,913 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-12-25 02:00:55,212 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-12-25 02:00:55,244 - DEBUG - Requesting: http://10.0.0.22:8082/domain/add8fa73-cb5b-49f4-b156-2078b6c2f621 2025-12-25 02:00:55,257 - DEBUG - Requesting: http://10.0.0.22:8082/project/86b74219-a8a7-4d55-9188-3c61a29db972 2025-12-25 02:00:55,328 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/dd2895e3-f91b-4bb1-a4ae-793b3cf69d36 2025-12-25 02:00:55,340 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/dd2895e3-f91b-4bb1-a4ae-793b3cf69d36 2025-12-25 02:00:55,349 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c7a5171d-9b9a-4045-a94a-249870f64831 2025-12-25 02:00:55,355 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c7a5171d-9b9a-4045-a94a-249870f64831 2025-12-25 02:00:55,360 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6c8eb406-696f-45cb-a0a4-73dcf521bd8e 2025-12-25 02:00:55,365 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-25 02:00:55,365 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/dd2895e3-f91b-4bb1-a4ae-793b3cf69d36 2025-12-25 02:00:55,372 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c7a5171d-9b9a-4045-a94a-249870f64831 2025-12-25 02:00:55,383 - INFO - Verified VN network id 12 for VN dd2895e3-f91b-4bb1-a4ae-793b3cf69d36 2025-12-25 02:00:55,383 - INFO - Verifications in API Server for VN ctest-vn4-95822352 passed 2025-12-25 02:00:55,383 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/dd2895e3-f91b-4bb1-a4ae-793b3cf69d36 2025-12-25 02:00:55,390 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c7a5171d-9b9a-4045-a94a-249870f64831 2025-12-25 02:00:55,395 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c7a5171d-9b9a-4045-a94a-249870f64831 2025-12-25 02:00:55,401 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6c8eb406-696f-45cb-a0a4-73dcf521bd8e 2025-12-25 02:00:55,410 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57281693:ctest-vn4-95822352', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-57281693', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15936152087819930545', 'uuid-lslong': '11866555363500662070'}, 'enable': 'true', 'created': '2025-12-25T02:00:54', 'last-modified': '2025-12-25T02:00:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.684221'} 2025-12-25 02:00:55,416 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-25 02:00:55,416 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-95822352 passed 2025-12-25 02:00:55,416 - DEBUG - ====Verifying policy data for ctest-vn4-95822352 in API_Server ====== 2025-12-25 02:00:55,416 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-12-25 02:00:55,421 - DEBUG - Requesting: http://10.0.0.22:8082/domain/add8fa73-cb5b-49f4-b156-2078b6c2f621 2025-12-25 02:00:55,431 - DEBUG - Requesting: http://10.0.0.22:8082/project/86b74219-a8a7-4d55-9188-3c61a29db972 2025-12-25 02:00:55,510 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/dd2895e3-f91b-4bb1-a4ae-793b3cf69d36 2025-12-25 02:00:55,520 - DEBUG - ==>Verifying data for policy with id: a5fc1a1b-aa2f-4112-acdc-9b77b30e5e20, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57281693', 'ctest-policy1-57750076'] 2025-12-25 02:00:55,520 - INFO - VN ctest-vn4-95822352 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-25 02:00:55,520 - DEBUG - Verifying the vn in opserver 2025-12-25 02:00:55,520 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57281693:ctest-vn4-95822352 virtual network link through opserver 10.0.0.22 2025-12-25 02:00:55,520 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-12-25 02:00:55,811 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-12-25 02:00:55,866 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57281693:ctest-vn4-95822352', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57281693:ctest-vn4-95822352?flat'} 2025-12-25 02:00:55,866 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57281693:ctest-vn4-95822352 is found in opserver 2025-12-25 02:00:55,874 - DEBUG - Do not have enough data to verify VN in agent 2025-12-25 02:00:55,879 - DEBUG - VRF ids for VN ctest-vn4-95822352: {} 2025-12-25 02:00:55,879 - DEBUG - ====Verifying data for ctest-policy1-57750076 in API_Server ====== 2025-12-25 02:00:55,879 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-12-25 02:00:55,884 - DEBUG - Requesting: http://10.0.0.22:8082/domain/add8fa73-cb5b-49f4-b156-2078b6c2f621 2025-12-25 02:00:55,895 - DEBUG - Requesting: http://10.0.0.22:8082/project/86b74219-a8a7-4d55-9188-3c61a29db972 2025-12-25 02:00:55,960 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/a5fc1a1b-aa2f-4112-acdc-9b77b30e5e20 2025-12-25 02:00:55,969 - INFO - Verified policy ctest-policy1-57750076 in API Server, Result: True 2025-12-25 02:00:55,969 - INFO - Done with setup and verification, moving onto test .. 2025-12-25 02:00:55,976 - INFO - Deleting VN ctest-vn4-95822352 2025-12-25 02:00:56,075 - DEBUG - Response for deleting network () 2025-12-25 02:00:56,075 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c7a5171d-9b9a-4045-a94a-249870f64831 2025-12-25 02:00:56,080 - DEBUG - Response Code: 404 2025-12-25 02:00:56,080 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-12-25 02:00:56,085 - DEBUG - Requesting: http://10.0.0.22:8082/domain/add8fa73-cb5b-49f4-b156-2078b6c2f621 2025-12-25 02:00:56,136 - DEBUG - Requesting: http://10.0.0.22:8082/project/86b74219-a8a7-4d55-9188-3c61a29db972 2025-12-25 02:00:56,206 - INFO - Validated that VN ctest-vn4-95822352 is not found in API Server 2025-12-25 02:00:56,214 - DEBUG - VN ctest-vn4-95822352 is not present in Agent 10.0.0.22 2025-12-25 02:00:56,214 - INFO - Validated that VN ctest-vn4-95822352 is not in any agent 2025-12-25 02:00:56,227 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-95822352 info 2025-12-25 02:00:56,251 - INFO - Deleted policy ctest-policy1-57750076 2025-12-25 02:00:56,408 - DEBUG - policy ctest-policy1-57750076 is not found in API Server 2025-12-25 02:00:56,661 - DEBUG - No XMPP flaps were noticed during the test