2025-12-22 16:59:45,498 - INFO - Domain Default found not creating 2025-12-22 16:59:45,682 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-78664979 not found, creating it 2025-12-22 16:59:46,153 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-78664979, ID : 87c70546-8b2b-48ce-aa35-37dd080d8358 2025-12-22 16:59:47,816 - INFO - ================================================================================ 2025-12-22 16:59:47,816 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-22 16:59:48,076 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-12-22 16:59:48,076 - INFO - Initial checks done. Running the testcase now 2025-12-22 16:59:48,076 - INFO - 2025-12-22 16:59:48,076 - INFO - ================================================================================ 2025-12-22 16:59:48,076 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-22 16:59:48,076 - 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-22 16:59:48,364 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-12-22 16:59:48,364 - INFO - Initial checks done. Running the testcase now 2025-12-22 16:59:48,364 - INFO - 2025-12-22 16:59:48,768 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78664979:ctest-vn4-04692130, 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-78664979:ctest-vn4-04692130, 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-78664979:ctest-vn4-04692130, 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-78664979:ctest-vn4-04692130, 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-22 16:59:49,303 - DEBUG - Response for create_network : {'network': {'id': '438aea29-0dbb-4412-bef5-0413a1d286ba', 'name': 'ctest-vn4-04692130', 'tenant_id': '87c705468b2b48ceaa3537dd080d8358', 'project_id': '87c705468b2b48ceaa3537dd080d8358', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78664979', 'ctest-vn4-04692130'], 'port_security_enabled': True, 'description': ''}} 2025-12-22 16:59:49,469 - DEBUG - Response for create_subnet : {'subnet': {'id': '45451425-8b54-4e4c-b9e9-e93ad0df7d82', 'name': '', 'tenant_id': '87c705468b2b48ceaa3537dd080d8358', 'network_id': '438aea29-0dbb-4412-bef5-0413a1d286ba', 'ip_version': 4, 'cidr': '60.40.52.0/26', 'allocation_pools': [{'start': '60.40.52.2', 'end': '60.40.52.62'}], 'gateway_ip': '60.40.52.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.40.52.2', 'tags': [], 'project_id': '87c705468b2b48ceaa3537dd080d8358'}} 2025-12-22 16:59:49,679 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8d42a9a-1ac8-4f14-b2e7-b42decc1a878', 'name': '', 'tenant_id': '87c705468b2b48ceaa3537dd080d8358', 'network_id': '438aea29-0dbb-4412-bef5-0413a1d286ba', 'ip_version': 6, 'cidr': '288a:5b9b:d33e:4b76:ef87:ec04::/96', 'allocation_pools': [{'start': '288a:5b9b:d33e:4b76:ef87:ec04:0:2', 'end': '288a:5b9b:d33e:4b76:ef87:ec04:ffff:fffe'}], 'gateway_ip': '288a:5b9b:d33e:4b76:ef87:ec04:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '288a:5b9b:d33e:4b76:ef87:ec04:0:2', 'tags': [], 'project_id': '87c705468b2b48ceaa3537dd080d8358'}} 2025-12-22 16:59:49,702 - INFO - Created VN ctest-vn4-04692130 2025-12-22 16:59:49,755 - DEBUG - VN ctest-vn4-04692130 UUID is 438aea29-0dbb-4412-bef5-0413a1d286ba 2025-12-22 16:59:49,961 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '438aea29-0dbb-4412-bef5-0413a1d286ba', 'name': 'ctest-vn4-04692130', 'tenant_id': '87c705468b2b48ceaa3537dd080d8358', 'project_id': '87c705468b2b48ceaa3537dd080d8358', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['45451425-8b54-4e4c-b9e9-e93ad0df7d82', 'c8d42a9a-1ac8-4f14-b2e7-b42decc1a878'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78664979', 'ctest-vn4-04692130'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78664979', 'ctest-policy1-18165815']], 'subnet_ipam': [{'subnet_cidr': '60.40.52.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '288a:5b9b:d33e:4b76:ef87:ec04::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-22 16:59:50,131 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-22 16:59:50,470 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-22 16:59:50,505 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a03c1bba-5e9d-44d8-bf64-fcfaa3f31012 2025-12-22 16:59:50,518 - DEBUG - Requesting: http://10.0.0.33:8082/project/87c70546-8b2b-48ce-aa35-37dd080d8358 2025-12-22 16:59:50,590 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/438aea29-0dbb-4412-bef5-0413a1d286ba 2025-12-22 16:59:50,603 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/438aea29-0dbb-4412-bef5-0413a1d286ba 2025-12-22 16:59:50,613 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b362c351-f684-4143-be04-782f95606d15 2025-12-22 16:59:50,620 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b362c351-f684-4143-be04-782f95606d15 2025-12-22 16:59:50,626 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c53db995-a314-43e5-8fce-6d6347109db1 2025-12-22 16:59:50,632 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-22 16:59:50,632 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/438aea29-0dbb-4412-bef5-0413a1d286ba 2025-12-22 16:59:50,642 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b362c351-f684-4143-be04-782f95606d15 2025-12-22 16:59:50,657 - INFO - Verified VN network id 11 for VN 438aea29-0dbb-4412-bef5-0413a1d286ba 2025-12-22 16:59:50,657 - INFO - Verifications in API Server for VN ctest-vn4-04692130 passed 2025-12-22 16:59:50,657 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/438aea29-0dbb-4412-bef5-0413a1d286ba 2025-12-22 16:59:50,667 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b362c351-f684-4143-be04-782f95606d15 2025-12-22 16:59:50,673 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b362c351-f684-4143-be04-782f95606d15 2025-12-22 16:59:50,680 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c53db995-a314-43e5-8fce-6d6347109db1 2025-12-22 16:59:50,693 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78664979:ctest-vn4-04692130', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-78664979', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4866959809372177426', 'uuid-lslong': '13759908718866237114'}, 'enable': 'true', 'created': '2025-12-22T16:59:49', 'last-modified': '2025-12-22T16:59:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.755295'} 2025-12-22 16:59:50,699 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-22 16:59:50,699 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-04692130 passed 2025-12-22 16:59:50,700 - DEBUG - ====Verifying policy data for ctest-vn4-04692130 in API_Server ====== 2025-12-22 16:59:50,700 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-22 16:59:50,705 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a03c1bba-5e9d-44d8-bf64-fcfaa3f31012 2025-12-22 16:59:50,716 - DEBUG - Requesting: http://10.0.0.33:8082/project/87c70546-8b2b-48ce-aa35-37dd080d8358 2025-12-22 16:59:50,785 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/438aea29-0dbb-4412-bef5-0413a1d286ba 2025-12-22 16:59:50,795 - DEBUG - ==>Verifying data for policy with id: 0552dd15-8b35-436c-97e1-d7ee1656309b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78664979', 'ctest-policy1-18165815'] 2025-12-22 16:59:50,795 - INFO - VN ctest-vn4-04692130 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-22 16:59:50,795 - DEBUG - Verifying the vn in opserver 2025-12-22 16:59:50,795 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78664979:ctest-vn4-04692130 virtual network link through opserver 10.0.0.33 2025-12-22 16:59:50,795 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-22 16:59:51,127 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-22 16:59:51,189 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78664979:ctest-vn4-04692130', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78664979:ctest-vn4-04692130?flat'} 2025-12-22 16:59:51,190 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78664979:ctest-vn4-04692130 is found in opserver 2025-12-22 16:59:51,199 - DEBUG - Do not have enough data to verify VN in agent 2025-12-22 16:59:51,204 - DEBUG - VRF ids for VN ctest-vn4-04692130: {} 2025-12-22 16:59:51,204 - DEBUG - ====Verifying data for ctest-policy1-18165815 in API_Server ====== 2025-12-22 16:59:51,204 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-22 16:59:51,212 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a03c1bba-5e9d-44d8-bf64-fcfaa3f31012 2025-12-22 16:59:51,222 - DEBUG - Requesting: http://10.0.0.33:8082/project/87c70546-8b2b-48ce-aa35-37dd080d8358 2025-12-22 16:59:51,292 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/0552dd15-8b35-436c-97e1-d7ee1656309b 2025-12-22 16:59:51,301 - INFO - Verified policy ctest-policy1-18165815 in API Server, Result: True 2025-12-22 16:59:51,301 - INFO - Done with setup and verification, moving onto test .. 2025-12-22 16:59:51,308 - INFO - Deleting VN ctest-vn4-04692130 2025-12-22 16:59:51,465 - DEBUG - Response for deleting network () 2025-12-22 16:59:51,465 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b362c351-f684-4143-be04-782f95606d15 2025-12-22 16:59:51,470 - DEBUG - Response Code: 404 2025-12-22 16:59:51,471 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-22 16:59:51,476 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a03c1bba-5e9d-44d8-bf64-fcfaa3f31012 2025-12-22 16:59:51,528 - DEBUG - Requesting: http://10.0.0.33:8082/project/87c70546-8b2b-48ce-aa35-37dd080d8358 2025-12-22 16:59:51,635 - INFO - Validated that VN ctest-vn4-04692130 is not found in API Server 2025-12-22 16:59:51,647 - DEBUG - VN ctest-vn4-04692130 is not present in Agent 10.0.0.33 2025-12-22 16:59:51,647 - INFO - Validated that VN ctest-vn4-04692130 is not in any agent 2025-12-22 16:59:51,662 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-04692130 info 2025-12-22 16:59:51,689 - INFO - Deleted policy ctest-policy1-18165815 2025-12-22 16:59:51,854 - DEBUG - policy ctest-policy1-18165815 is not found in API Server 2025-12-22 16:59:52,108 - DEBUG - No XMPP flaps were noticed during the test
2025-12-22 16:59:52,108 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-22 16:59:52,108 - INFO - -------------------------------------------------------------------------------- 2025-12-22 16:59:52,396 - DEBUG - No XMPP flaps were noticed during the test
2025-12-22 16:59:52,397 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-12-22 16:59:52,397 - INFO - -------------------------------------------------------------------------------- 2025-12-22 16:59:53,131 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-78664979, ID : 87c70546-8b2b-48ce-aa35-37dd080d8358