2026-05-14 02:57:18,599 - INFO - Domain Default found not creating 2026-05-14 02:57:18,791 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-21306487 not found, creating it 2026-05-14 02:57:19,357 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-21306487, ID : f91ce8be-6c08-4391-bf84-e69e91775c3e 2026-05-14 02:57:21,172 - INFO - ================================================================================ 2026-05-14 02:57:21,172 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-14 02:57:22,479 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.18': '0', '10.20.0.129': '0'}, '10.0.0.65': {'10.20.0.18': '0', '10.20.0.129': '0'}} with 2026-05-14 02:57:22,479 - INFO - Initial checks done. Running the testcase now 2026-05-14 02:57:22,479 - INFO - 2026-05-14 02:57:22,479 - INFO - ================================================================================ 2026-05-14 02:57:22,479 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-14 02:57:22,479 - 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-05-14 02:57:23,744 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.18': '0', '10.20.0.129': '0'}, '10.0.0.65': {'10.20.0.18': '0', '10.20.0.129': '0'}} with 2026-05-14 02:57:23,744 - INFO - Initial checks done. Running the testcase now 2026-05-14 02:57:23,744 - INFO - 2026-05-14 02:57:24,162 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21306487:ctest-vn4-44871453, 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-21306487:ctest-vn4-44871453, 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-21306487:ctest-vn4-44871453, 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-21306487:ctest-vn4-44871453, 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-05-14 02:57:24,898 - DEBUG - Response for create_network : {'network': {'id': '0fb6e187-c4a5-40e5-a382-91af376a20cd', 'name': 'ctest-vn4-44871453', 'tenant_id': 'f91ce8be6c084391bf84e69e91775c3e', 'project_id': 'f91ce8be6c084391bf84e69e91775c3e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21306487', 'ctest-vn4-44871453'], 'port_security_enabled': True, 'description': ''}} 2026-05-14 02:57:25,176 - DEBUG - Response for create_subnet : {'subnet': {'id': '2287d7ad-5aaa-4524-9532-6e41e511b37b', 'name': '', 'tenant_id': 'f91ce8be6c084391bf84e69e91775c3e', 'network_id': '0fb6e187-c4a5-40e5-a382-91af376a20cd', 'ip_version': 4, 'cidr': '217.41.112.128/26', 'allocation_pools': [{'start': '217.41.112.130', 'end': '217.41.112.190'}], 'gateway_ip': '217.41.112.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.41.112.130', 'tags': [], 'project_id': 'f91ce8be6c084391bf84e69e91775c3e'}} 2026-05-14 02:57:25,385 - DEBUG - Response for create_subnet : {'subnet': {'id': '130fdc0c-2480-4fab-bf30-7e9fa9d81731', 'name': '', 'tenant_id': 'f91ce8be6c084391bf84e69e91775c3e', 'network_id': '0fb6e187-c4a5-40e5-a382-91af376a20cd', 'ip_version': 6, 'cidr': '2abc:1cc6:4ec6:2b6c:8f96:5784::/96', 'allocation_pools': [{'start': '2abc:1cc6:4ec6:2b6c:8f96:5784:0:2', 'end': '2abc:1cc6:4ec6:2b6c:8f96:5784:ffff:fffe'}], 'gateway_ip': '2abc:1cc6:4ec6:2b6c:8f96:5784:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2abc:1cc6:4ec6:2b6c:8f96:5784:0:2', 'tags': [], 'project_id': 'f91ce8be6c084391bf84e69e91775c3e'}} 2026-05-14 02:57:25,413 - INFO - Created VN ctest-vn4-44871453 2026-05-14 02:57:25,429 - DEBUG - VN ctest-vn4-44871453 UUID is 0fb6e187-c4a5-40e5-a382-91af376a20cd 2026-05-14 02:57:25,711 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0fb6e187-c4a5-40e5-a382-91af376a20cd', 'name': 'ctest-vn4-44871453', 'tenant_id': 'f91ce8be6c084391bf84e69e91775c3e', 'project_id': 'f91ce8be6c084391bf84e69e91775c3e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2287d7ad-5aaa-4524-9532-6e41e511b37b', '130fdc0c-2480-4fab-bf30-7e9fa9d81731'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21306487', 'ctest-vn4-44871453'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21306487', 'ctest-policy1-97253138']], 'subnet_ipam': [{'subnet_cidr': '217.41.112.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2abc:1cc6:4ec6:2b6c:8f96:5784::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-14 02:57:25,859 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-05-14 02:57:26,200 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-05-14 02:57:26,242 - DEBUG - Requesting: http://10.0.0.27:8082/domain/50f581a9-730f-4c54-9cc2-74fc8369ab40 2026-05-14 02:57:26,265 - DEBUG - Requesting: http://10.0.0.27:8082/project/f91ce8be-6c08-4391-bf84-e69e91775c3e 2026-05-14 02:57:26,379 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0fb6e187-c4a5-40e5-a382-91af376a20cd 2026-05-14 02:57:26,396 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0fb6e187-c4a5-40e5-a382-91af376a20cd 2026-05-14 02:57:26,409 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e0afb28d-6cf4-4ada-ab60-79fbf797f357 2026-05-14 02:57:26,419 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e0afb28d-6cf4-4ada-ab60-79fbf797f357 2026-05-14 02:57:26,429 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/ae3eb388-997c-4926-92f2-2ec68a0c4aa0 2026-05-14 02:57:26,438 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-14 02:57:26,438 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0fb6e187-c4a5-40e5-a382-91af376a20cd 2026-05-14 02:57:26,450 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e0afb28d-6cf4-4ada-ab60-79fbf797f357 2026-05-14 02:57:26,469 - INFO - Verified VN network id 16 for VN 0fb6e187-c4a5-40e5-a382-91af376a20cd 2026-05-14 02:57:26,469 - INFO - Verifications in API Server for VN ctest-vn4-44871453 passed 2026-05-14 02:57:26,469 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0fb6e187-c4a5-40e5-a382-91af376a20cd 2026-05-14 02:57:26,482 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e0afb28d-6cf4-4ada-ab60-79fbf797f357 2026-05-14 02:57:26,490 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e0afb28d-6cf4-4ada-ab60-79fbf797f357 2026-05-14 02:57:26,497 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/ae3eb388-997c-4926-92f2-2ec68a0c4aa0 2026-05-14 02:57:26,510 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21306487:ctest-vn4-44871453', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-21306487', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1132340329566257381', 'uuid-lslong': '11782139756889645261'}, 'enable': 'true', 'created': '2026-05-14T02:57:24', 'last-modified': '2026-05-14T02:57:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.860697'} 2026-05-14 02:57:26,516 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-14 02:57:26,522 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21306487:ctest-vn4-44871453', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-21306487', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1132340329566257381', 'uuid-lslong': '11782139756889645261'}, 'enable': 'true', 'created': '2026-05-14T02:57:24', 'last-modified': '2026-05-14T02:57:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.869096'} 2026-05-14 02:57:26,527 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-14 02:57:26,534 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21306487:ctest-vn4-44871453', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-21306487', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1132340329566257381', 'uuid-lslong': '11782139756889645261'}, 'enable': 'true', 'created': '2026-05-14T02:57:24', 'last-modified': '2026-05-14T02:57:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.906128'} 2026-05-14 02:57:26,541 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-14 02:57:26,541 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-44871453 passed 2026-05-14 02:57:26,541 - DEBUG - ====Verifying policy data for ctest-vn4-44871453 in API_Server ====== 2026-05-14 02:57:26,541 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-05-14 02:57:26,548 - DEBUG - Requesting: http://10.0.0.27:8082/domain/50f581a9-730f-4c54-9cc2-74fc8369ab40 2026-05-14 02:57:26,560 - DEBUG - Requesting: http://10.0.0.27:8082/project/f91ce8be-6c08-4391-bf84-e69e91775c3e 2026-05-14 02:57:26,665 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0fb6e187-c4a5-40e5-a382-91af376a20cd 2026-05-14 02:57:26,679 - DEBUG - ==>Verifying data for policy with id: 36b5135a-c2d9-4316-8db7-fd428655d5f4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21306487', 'ctest-policy1-97253138'] 2026-05-14 02:57:26,679 - INFO - VN ctest-vn4-44871453 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-14 02:57:26,679 - DEBUG - Verifying the vn in opserver 2026-05-14 02:57:26,679 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21306487:ctest-vn4-44871453 virtual network link through opserver 10.0.0.27 2026-05-14 02:57:26,680 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-05-14 02:57:27,017 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-05-14 02:57:27,091 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21306487:ctest-vn4-44871453', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21306487:ctest-vn4-44871453?flat'} 2026-05-14 02:57:27,091 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21306487:ctest-vn4-44871453 virtual network link through opserver 10.0.0.22 2026-05-14 02:57:27,091 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-05-14 02:57:27,428 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-05-14 02:57:27,499 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21306487:ctest-vn4-44871453', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21306487:ctest-vn4-44871453?flat'} 2026-05-14 02:57:27,499 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21306487:ctest-vn4-44871453 virtual network link through opserver 10.0.0.23 2026-05-14 02:57:27,499 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-05-14 02:57:27,836 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-05-14 02:57:27,901 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21306487:ctest-vn4-44871453', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21306487:ctest-vn4-44871453?flat'} 2026-05-14 02:57:27,901 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21306487:ctest-vn4-44871453 is found in opserver 2026-05-14 02:57:27,925 - DEBUG - Do not have enough data to verify VN in agent 2026-05-14 02:57:27,936 - DEBUG - VRF ids for VN ctest-vn4-44871453: {} 2026-05-14 02:57:27,936 - DEBUG - ====Verifying data for ctest-policy1-97253138 in API_Server ====== 2026-05-14 02:57:27,936 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-05-14 02:57:27,943 - DEBUG - Requesting: http://10.0.0.27:8082/domain/50f581a9-730f-4c54-9cc2-74fc8369ab40 2026-05-14 02:57:27,956 - DEBUG - Requesting: http://10.0.0.27:8082/project/f91ce8be-6c08-4391-bf84-e69e91775c3e 2026-05-14 02:57:28,053 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/36b5135a-c2d9-4316-8db7-fd428655d5f4 2026-05-14 02:57:28,065 - INFO - Verified policy ctest-policy1-97253138 in API Server, Result: True 2026-05-14 02:57:28,065 - INFO - Done with setup and verification, moving onto test .. 2026-05-14 02:57:28,077 - INFO - Deleting VN ctest-vn4-44871453 2026-05-14 02:57:28,299 - DEBUG - Response for deleting network () 2026-05-14 02:57:28,300 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e0afb28d-6cf4-4ada-ab60-79fbf797f357 2026-05-14 02:57:28,310 - DEBUG - Response Code: 404 2026-05-14 02:57:28,311 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-05-14 02:57:28,324 - DEBUG - Requesting: http://10.0.0.27:8082/domain/50f581a9-730f-4c54-9cc2-74fc8369ab40 2026-05-14 02:57:28,340 - DEBUG - Requesting: http://10.0.0.27:8082/project/f91ce8be-6c08-4391-bf84-e69e91775c3e 2026-05-14 02:57:28,482 - INFO - Validated that VN ctest-vn4-44871453 is not found in API Server 2026-05-14 02:57:28,496 - DEBUG - VN ctest-vn4-44871453 is not present in Agent 10.0.0.240 2026-05-14 02:57:28,515 - DEBUG - VN ctest-vn4-44871453 is not present in Agent 10.0.0.65 2026-05-14 02:57:28,515 - INFO - Validated that VN ctest-vn4-44871453 is not in any agent 2026-05-14 02:57:28,561 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-44871453 info 2026-05-14 02:57:28,617 - INFO - Deleted policy ctest-policy1-97253138 2026-05-14 02:57:28,815 - DEBUG - policy ctest-policy1-97253138 is not found in API Server 2026-05-14 02:57:30,107 - DEBUG - No XMPP flaps were noticed during the test
2026-05-14 02:57:30,107 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08]
2026-05-14 02:57:30,107 - INFO - -------------------------------------------------------------------------------- 2026-05-14 02:57:31,393 - DEBUG - No XMPP flaps were noticed during the test
2026-05-14 02:57:31,393 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2026-05-14 02:57:31,393 - INFO - -------------------------------------------------------------------------------- 2026-05-14 02:57:32,470 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-21306487, ID : f91ce8be-6c08-4391-bf84-e69e91775c3e