2026-01-01 17:30:41,303 - INFO - Domain Default found not creating 2026-01-01 17:30:41,520 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71050693 not found, creating it 2026-01-01 17:30:42,030 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71050693, ID : 91c401d0-005b-49c6-9e03-9338d01d7c37 2026-01-01 17:30:43,567 - INFO - ================================================================================ 2026-01-01 17:30:43,568 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-01 17:30:43,825 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2026-01-01 17:30:43,825 - INFO - Initial checks done. Running the testcase now 2026-01-01 17:30:43,825 - INFO - 2026-01-01 17:30:43,825 - INFO - ================================================================================ 2026-01-01 17:30:43,825 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-01 17:30:43,825 - 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. 2026-01-01 17:30:44,116 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2026-01-01 17:30:44,116 - INFO - Initial checks done. Running the testcase now 2026-01-01 17:30:44,116 - INFO - 2026-01-01 17:30:44,486 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71050693:ctest-vn4-75961068, 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-71050693:ctest-vn4-75961068, 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-71050693:ctest-vn4-75961068, 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-71050693:ctest-vn4-75961068, 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] 2026-01-01 17:30:45,027 - DEBUG - Response for create_network : {'network': {'id': 'aac43723-3183-4349-82ee-d6496956e424', 'name': 'ctest-vn4-75961068', 'tenant_id': '91c401d0005b49c69e039338d01d7c37', 'project_id': '91c401d0005b49c69e039338d01d7c37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71050693', 'ctest-vn4-75961068'], 'port_security_enabled': True, 'description': ''}} 2026-01-01 17:30:45,260 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bd2e3a82-0d68-42df-81c3-e285aa6d06f0', 'name': '', 'tenant_id': '91c401d0005b49c69e039338d01d7c37', 'network_id': 'aac43723-3183-4349-82ee-d6496956e424', 'ip_version': 4, 'cidr': '83.143.164.128/26', 'allocation_pools': [{'start': '83.143.164.130', 'end': '83.143.164.190'}], 'gateway_ip': '83.143.164.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.143.164.130', 'tags': [], 'project_id': '91c401d0005b49c69e039338d01d7c37'}} 2026-01-01 17:30:45,403 - DEBUG - Response for create_subnet : {'subnet': {'id': '98af63e9-133f-4cbd-9bc9-92c27f948acd', 'name': '', 'tenant_id': '91c401d0005b49c69e039338d01d7c37', 'network_id': 'aac43723-3183-4349-82ee-d6496956e424', 'ip_version': 6, 'cidr': '2d52:3419:c31c:16a5:563e:8886::/96', 'allocation_pools': [{'start': '2d52:3419:c31c:16a5:563e:8886:0:2', 'end': '2d52:3419:c31c:16a5:563e:8886:ffff:fffe'}], 'gateway_ip': '2d52:3419:c31c:16a5:563e:8886:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d52:3419:c31c:16a5:563e:8886:0:2', 'tags': [], 'project_id': '91c401d0005b49c69e039338d01d7c37'}} 2026-01-01 17:30:45,424 - INFO - Created VN ctest-vn4-75961068 2026-01-01 17:30:45,474 - DEBUG - VN ctest-vn4-75961068 UUID is aac43723-3183-4349-82ee-d6496956e424 2026-01-01 17:30:45,695 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aac43723-3183-4349-82ee-d6496956e424', 'name': 'ctest-vn4-75961068', 'tenant_id': '91c401d0005b49c69e039338d01d7c37', 'project_id': '91c401d0005b49c69e039338d01d7c37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bd2e3a82-0d68-42df-81c3-e285aa6d06f0', '98af63e9-133f-4cbd-9bc9-92c27f948acd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71050693', 'ctest-vn4-75961068'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71050693', 'ctest-policy1-33238829']], 'subnet_ipam': [{'subnet_cidr': '83.143.164.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d52:3419:c31c:16a5:563e:8886::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-01 17:30:45,858 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-01 17:30:46,153 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-01 17:30:46,187 - DEBUG - Requesting: http://10.0.0.249:8082/domain/539e2317-9ac9-4fd7-828d-2a4aacad0769 2026-01-01 17:30:46,202 - DEBUG - Requesting: http://10.0.0.249:8082/project/91c401d0-005b-49c6-9e03-9338d01d7c37 2026-01-01 17:30:46,275 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/aac43723-3183-4349-82ee-d6496956e424 2026-01-01 17:30:46,287 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/aac43723-3183-4349-82ee-d6496956e424 2026-01-01 17:30:46,296 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a7616013-d179-445f-9dca-78cc0cc05dca 2026-01-01 17:30:46,303 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a7616013-d179-445f-9dca-78cc0cc05dca 2026-01-01 17:30:46,310 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/bab3bc07-77e0-4e35-a949-9efefca94916 2026-01-01 17:30:46,317 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-01 17:30:46,317 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/aac43723-3183-4349-82ee-d6496956e424 2026-01-01 17:30:46,327 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a7616013-d179-445f-9dca-78cc0cc05dca 2026-01-01 17:30:46,340 - INFO - Verified VN network id 11 for VN aac43723-3183-4349-82ee-d6496956e424 2026-01-01 17:30:46,341 - INFO - Verifications in API Server for VN ctest-vn4-75961068 passed 2026-01-01 17:30:46,341 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/aac43723-3183-4349-82ee-d6496956e424 2026-01-01 17:30:46,354 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a7616013-d179-445f-9dca-78cc0cc05dca 2026-01-01 17:30:46,362 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a7616013-d179-445f-9dca-78cc0cc05dca 2026-01-01 17:30:46,370 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/bab3bc07-77e0-4e35-a949-9efefca94916 2026-01-01 17:30:46,385 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71050693:ctest-vn4-75961068', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71050693', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12305020706177106761', 'uuid-lslong': '9434713880176026660'}, 'enable': 'true', 'created': '2026-01-01T17:30:44', 'last-modified': '2026-01-01T17:30:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.731011'} 2026-01-01 17:30:46,392 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-01 17:30:46,392 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-75961068 passed 2026-01-01 17:30:46,392 - DEBUG - ====Verifying policy data for ctest-vn4-75961068 in API_Server ====== 2026-01-01 17:30:46,393 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-01 17:30:46,399 - DEBUG - Requesting: http://10.0.0.249:8082/domain/539e2317-9ac9-4fd7-828d-2a4aacad0769 2026-01-01 17:30:46,412 - DEBUG - Requesting: http://10.0.0.249:8082/project/91c401d0-005b-49c6-9e03-9338d01d7c37 2026-01-01 17:30:46,487 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/aac43723-3183-4349-82ee-d6496956e424 2026-01-01 17:30:46,496 - DEBUG - ==>Verifying data for policy with id: 01c33c6c-ced5-46b2-b08b-0eac88ef96f5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71050693', 'ctest-policy1-33238829'] 2026-01-01 17:30:46,496 - INFO - VN ctest-vn4-75961068 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-01 17:30:46,496 - DEBUG - Verifying the vn in opserver 2026-01-01 17:30:46,496 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71050693:ctest-vn4-75961068 virtual network link through opserver 10.0.0.249 2026-01-01 17:30:46,496 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-01 17:30:46,791 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-01 17:30:46,861 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71050693:ctest-vn4-75961068', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71050693:ctest-vn4-75961068?flat'} 2026-01-01 17:30:46,861 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71050693:ctest-vn4-75961068 is found in opserver 2026-01-01 17:30:46,872 - DEBUG - Do not have enough data to verify VN in agent 2026-01-01 17:30:46,876 - DEBUG - VRF ids for VN ctest-vn4-75961068: {} 2026-01-01 17:30:46,876 - DEBUG - ====Verifying data for ctest-policy1-33238829 in API_Server ====== 2026-01-01 17:30:46,876 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-01 17:30:46,882 - DEBUG - Requesting: http://10.0.0.249:8082/domain/539e2317-9ac9-4fd7-828d-2a4aacad0769 2026-01-01 17:30:46,894 - DEBUG - Requesting: http://10.0.0.249:8082/project/91c401d0-005b-49c6-9e03-9338d01d7c37 2026-01-01 17:30:46,985 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/01c33c6c-ced5-46b2-b08b-0eac88ef96f5 2026-01-01 17:30:46,995 - INFO - Verified policy ctest-policy1-33238829 in API Server, Result: True 2026-01-01 17:30:46,995 - INFO - Done with setup and verification, moving onto test .. 2026-01-01 17:30:47,003 - INFO - Deleting VN ctest-vn4-75961068 2026-01-01 17:30:47,127 - DEBUG - Response for deleting network () 2026-01-01 17:30:47,127 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a7616013-d179-445f-9dca-78cc0cc05dca 2026-01-01 17:30:47,133 - DEBUG - Response Code: 404 2026-01-01 17:30:47,133 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-01 17:30:47,138 - DEBUG - Requesting: http://10.0.0.249:8082/domain/539e2317-9ac9-4fd7-828d-2a4aacad0769 2026-01-01 17:30:47,193 - DEBUG - Requesting: http://10.0.0.249:8082/project/91c401d0-005b-49c6-9e03-9338d01d7c37 2026-01-01 17:30:47,265 - INFO - Validated that VN ctest-vn4-75961068 is not found in API Server 2026-01-01 17:30:47,275 - DEBUG - VN ctest-vn4-75961068 is not present in Agent 10.0.0.249 2026-01-01 17:30:47,275 - INFO - Validated that VN ctest-vn4-75961068 is not in any agent 2026-01-01 17:30:47,290 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-75961068 info 2026-01-01 17:30:47,317 - INFO - Deleted policy ctest-policy1-33238829 2026-01-01 17:30:47,482 - DEBUG - policy ctest-policy1-33238829 is not found in API Server 2026-01-01 17:30:47,759 - DEBUG - No XMPP flaps were noticed during the test