2026-01-01 01:57:02,387 - INFO - Domain Default found not creating 2026-01-01 01:57:02,557 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-80421142 not found, creating it 2026-01-01 01:57:03,192 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-80421142, ID : 0da02864-4cec-404f-adba-8a64160bd2c6 2026-01-01 01:57:04,715 - INFO - ================================================================================ 2026-01-01 01:57:04,716 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-01 01:57:04,971 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.192': '0'}} with 2026-01-01 01:57:04,971 - INFO - Initial checks done. Running the testcase now 2026-01-01 01:57:04,972 - INFO - 2026-01-01 01:57:04,972 - INFO - ================================================================================ 2026-01-01 01:57:04,972 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-01 01:57:04,972 - 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 01:57:05,258 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.192': '0'}} with 2026-01-01 01:57:05,258 - INFO - Initial checks done. Running the testcase now 2026-01-01 01:57:05,258 - INFO - 2026-01-01 01:57:05,635 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80421142:ctest-vn4-63138949, 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-80421142:ctest-vn4-63138949, 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-80421142:ctest-vn4-63138949, 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-80421142:ctest-vn4-63138949, 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 01:57:06,155 - DEBUG - Response for create_network : {'network': {'id': '60a472f5-8beb-46e3-b1b8-807ba53f7549', 'name': 'ctest-vn4-63138949', 'tenant_id': '0da028644cec404fadba8a64160bd2c6', 'project_id': '0da028644cec404fadba8a64160bd2c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80421142', 'ctest-vn4-63138949'], 'port_security_enabled': True, 'description': ''}} 2026-01-01 01:57:06,353 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f31f8f5-3020-4612-b3a5-fa7b528844fa', 'name': '', 'tenant_id': '0da028644cec404fadba8a64160bd2c6', 'network_id': '60a472f5-8beb-46e3-b1b8-807ba53f7549', 'ip_version': 4, 'cidr': '92.177.8.128/26', 'allocation_pools': [{'start': '92.177.8.130', 'end': '92.177.8.190'}], 'gateway_ip': '92.177.8.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.177.8.130', 'tags': [], 'project_id': '0da028644cec404fadba8a64160bd2c6'}} 2026-01-01 01:57:06,496 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa6a2032-9a74-4536-ade9-e95e4f578712', 'name': '', 'tenant_id': '0da028644cec404fadba8a64160bd2c6', 'network_id': '60a472f5-8beb-46e3-b1b8-807ba53f7549', 'ip_version': 6, 'cidr': '3442:b30a:db62:bd80:c640:ed13::/96', 'allocation_pools': [{'start': '3442:b30a:db62:bd80:c640:ed13:0:2', 'end': '3442:b30a:db62:bd80:c640:ed13:ffff:fffe'}], 'gateway_ip': '3442:b30a:db62:bd80:c640:ed13:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3442:b30a:db62:bd80:c640:ed13:0:2', 'tags': [], 'project_id': '0da028644cec404fadba8a64160bd2c6'}} 2026-01-01 01:57:06,520 - INFO - Created VN ctest-vn4-63138949 2026-01-01 01:57:06,574 - DEBUG - VN ctest-vn4-63138949 UUID is 60a472f5-8beb-46e3-b1b8-807ba53f7549 2026-01-01 01:57:06,790 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60a472f5-8beb-46e3-b1b8-807ba53f7549', 'name': 'ctest-vn4-63138949', 'tenant_id': '0da028644cec404fadba8a64160bd2c6', 'project_id': '0da028644cec404fadba8a64160bd2c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4f31f8f5-3020-4612-b3a5-fa7b528844fa', 'fa6a2032-9a74-4536-ade9-e95e4f578712'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80421142', 'ctest-vn4-63138949'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80421142', 'ctest-policy1-30708433']], 'subnet_ipam': [{'subnet_cidr': '92.177.8.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3442:b30a:db62:bd80:c640:ed13::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-01 01:57:06,945 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-01 01:57:07,244 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-01 01:57:07,281 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5dcbe7e2-1125-4ff0-bbce-c72c135482fc 2026-01-01 01:57:07,293 - DEBUG - Requesting: http://10.0.0.141:8082/project/0da02864-4cec-404f-adba-8a64160bd2c6 2026-01-01 01:57:07,374 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/60a472f5-8beb-46e3-b1b8-807ba53f7549 2026-01-01 01:57:07,386 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/60a472f5-8beb-46e3-b1b8-807ba53f7549 2026-01-01 01:57:07,397 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2bfe8612-3a00-4ec1-9c4d-abcb2a8aa366 2026-01-01 01:57:07,404 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2bfe8612-3a00-4ec1-9c4d-abcb2a8aa366 2026-01-01 01:57:07,412 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/f647959e-9496-4b96-a9c2-e1df4c534847 2026-01-01 01:57:07,418 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-01 01:57:07,418 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/60a472f5-8beb-46e3-b1b8-807ba53f7549 2026-01-01 01:57:07,428 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2bfe8612-3a00-4ec1-9c4d-abcb2a8aa366 2026-01-01 01:57:07,444 - INFO - Verified VN network id 11 for VN 60a472f5-8beb-46e3-b1b8-807ba53f7549 2026-01-01 01:57:07,444 - INFO - Verifications in API Server for VN ctest-vn4-63138949 passed 2026-01-01 01:57:07,444 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/60a472f5-8beb-46e3-b1b8-807ba53f7549 2026-01-01 01:57:07,453 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2bfe8612-3a00-4ec1-9c4d-abcb2a8aa366 2026-01-01 01:57:07,460 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2bfe8612-3a00-4ec1-9c4d-abcb2a8aa366 2026-01-01 01:57:07,466 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/f647959e-9496-4b96-a9c2-e1df4c534847 2026-01-01 01:57:07,479 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80421142:ctest-vn4-63138949', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80421142', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6963817322761635555', 'uuid-lslong': '12806126808969737545'}, 'enable': 'true', 'created': '2026-01-01T01:57:06', 'last-modified': '2026-01-01T01:57:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.730128'} 2026-01-01 01:57:07,484 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-01 01:57:07,485 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-63138949 passed 2026-01-01 01:57:07,485 - DEBUG - ====Verifying policy data for ctest-vn4-63138949 in API_Server ====== 2026-01-01 01:57:07,485 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-01 01:57:07,490 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5dcbe7e2-1125-4ff0-bbce-c72c135482fc 2026-01-01 01:57:07,501 - DEBUG - Requesting: http://10.0.0.141:8082/project/0da02864-4cec-404f-adba-8a64160bd2c6 2026-01-01 01:57:07,579 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/60a472f5-8beb-46e3-b1b8-807ba53f7549 2026-01-01 01:57:07,589 - DEBUG - ==>Verifying data for policy with id: e46384e6-e78b-40c3-9c24-224428d9086d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80421142', 'ctest-policy1-30708433'] 2026-01-01 01:57:07,589 - INFO - VN ctest-vn4-63138949 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-01 01:57:07,589 - DEBUG - Verifying the vn in opserver 2026-01-01 01:57:07,589 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80421142:ctest-vn4-63138949 virtual network link through opserver 10.0.0.141 2026-01-01 01:57:07,590 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-01-01 01:57:07,888 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-01-01 01:57:07,956 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80421142:ctest-vn4-63138949', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80421142:ctest-vn4-63138949?flat'} 2026-01-01 01:57:07,956 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80421142:ctest-vn4-63138949 is found in opserver 2026-01-01 01:57:07,966 - DEBUG - Do not have enough data to verify VN in agent 2026-01-01 01:57:07,970 - DEBUG - VRF ids for VN ctest-vn4-63138949: {} 2026-01-01 01:57:07,971 - DEBUG - ====Verifying data for ctest-policy1-30708433 in API_Server ====== 2026-01-01 01:57:07,971 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-01 01:57:07,976 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5dcbe7e2-1125-4ff0-bbce-c72c135482fc 2026-01-01 01:57:07,986 - DEBUG - Requesting: http://10.0.0.141:8082/project/0da02864-4cec-404f-adba-8a64160bd2c6 2026-01-01 01:57:08,057 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/e46384e6-e78b-40c3-9c24-224428d9086d 2026-01-01 01:57:08,066 - INFO - Verified policy ctest-policy1-30708433 in API Server, Result: True 2026-01-01 01:57:08,066 - INFO - Done with setup and verification, moving onto test .. 2026-01-01 01:57:08,074 - INFO - Deleting VN ctest-vn4-63138949 2026-01-01 01:57:08,204 - DEBUG - Response for deleting network () 2026-01-01 01:57:08,204 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2bfe8612-3a00-4ec1-9c4d-abcb2a8aa366 2026-01-01 01:57:08,208 - DEBUG - Response Code: 404 2026-01-01 01:57:08,209 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-01 01:57:08,213 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5dcbe7e2-1125-4ff0-bbce-c72c135482fc 2026-01-01 01:57:08,266 - DEBUG - Requesting: http://10.0.0.141:8082/project/0da02864-4cec-404f-adba-8a64160bd2c6 2026-01-01 01:57:08,357 - INFO - Validated that VN ctest-vn4-63138949 is not found in API Server 2026-01-01 01:57:08,368 - DEBUG - VN ctest-vn4-63138949 is not present in Agent 10.0.0.141 2026-01-01 01:57:08,368 - INFO - Validated that VN ctest-vn4-63138949 is not in any agent 2026-01-01 01:57:08,384 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-63138949 info 2026-01-01 01:57:08,408 - INFO - Deleted policy ctest-policy1-30708433 2026-01-01 01:57:08,569 - DEBUG - policy ctest-policy1-30708433 is not found in API Server 2026-01-01 01:57:08,826 - DEBUG - No XMPP flaps were noticed during the test 2026-01-01 01:57:08,826 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-01 01:57:08,826 - INFO - -------------------------------------------------------------------------------- 2026-01-01 01:57:09,119 - DEBUG - No XMPP flaps were noticed during the test 2026-01-01 01:57:09,119 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-01-01 01:57:09,119 - INFO - -------------------------------------------------------------------------------- 2026-01-01 01:57:09,818 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-80421142, ID : 0da02864-4cec-404f-adba-8a64160bd2c6