2025-10-08 16:48:40,973 - INFO - Domain Default found not creating 2025-10-08 16:48:41,130 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-85440118 not found, creating it 2025-10-08 16:48:41,579 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-85440118, ID : 86766d52-fdb2-4e73-8d14-8a605267bff9 2025-10-08 16:48:42,997 - INFO - ================================================================================ 2025-10-08 16:48:42,997 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-08 16:48:43,251 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.209': '0'}} with 2025-10-08 16:48:43,251 - INFO - Initial checks done. Running the testcase now 2025-10-08 16:48:43,251 - INFO - 2025-10-08 16:48:43,251 - INFO - ================================================================================ 2025-10-08 16:48:43,251 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-08 16:48:43,252 - 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-10-08 16:48:43,539 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.209': '0'}} with 2025-10-08 16:48:43,539 - INFO - Initial checks done. Running the testcase now 2025-10-08 16:48:43,539 - INFO - 2025-10-08 16:48:43,887 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85440118:ctest-vn4-88245548, 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-85440118:ctest-vn4-88245548, 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-85440118:ctest-vn4-88245548, 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-85440118:ctest-vn4-88245548, 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-10-08 16:48:44,406 - DEBUG - Response for create_network : {'network': {'id': '54e3d0c1-c13a-4b0f-aac4-65d6d2999457', 'name': 'ctest-vn4-88245548', 'tenant_id': '86766d52fdb24e738d148a605267bff9', 'project_id': '86766d52fdb24e738d148a605267bff9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85440118', 'ctest-vn4-88245548'], 'port_security_enabled': True, 'description': ''}} 2025-10-08 16:48:44,553 - DEBUG - Response for create_subnet : {'subnet': {'id': '16ab4f34-c67a-46b1-a3fd-bb6f0cc7b77c', 'name': '', 'tenant_id': '86766d52fdb24e738d148a605267bff9', 'network_id': '54e3d0c1-c13a-4b0f-aac4-65d6d2999457', 'ip_version': 4, 'cidr': '215.53.237.64/26', 'allocation_pools': [{'start': '215.53.237.66', 'end': '215.53.237.126'}], 'gateway_ip': '215.53.237.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.53.237.66', 'tags': [], 'project_id': '86766d52fdb24e738d148a605267bff9'}} 2025-10-08 16:48:44,707 - DEBUG - Response for create_subnet : {'subnet': {'id': '5b9e7a9d-e24e-4092-8ae2-2dae9a307d22', 'name': '', 'tenant_id': '86766d52fdb24e738d148a605267bff9', 'network_id': '54e3d0c1-c13a-4b0f-aac4-65d6d2999457', 'ip_version': 6, 'cidr': '39ea:4922:50e6:43fd:b69c:1c31::/96', 'allocation_pools': [{'start': '39ea:4922:50e6:43fd:b69c:1c31:0:2', 'end': '39ea:4922:50e6:43fd:b69c:1c31:ffff:fffe'}], 'gateway_ip': '39ea:4922:50e6:43fd:b69c:1c31:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39ea:4922:50e6:43fd:b69c:1c31:0:2', 'tags': [], 'project_id': '86766d52fdb24e738d148a605267bff9'}} 2025-10-08 16:48:44,728 - INFO - Created VN ctest-vn4-88245548 2025-10-08 16:48:44,782 - DEBUG - VN ctest-vn4-88245548 UUID is 54e3d0c1-c13a-4b0f-aac4-65d6d2999457 2025-10-08 16:48:45,010 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '54e3d0c1-c13a-4b0f-aac4-65d6d2999457', 'name': 'ctest-vn4-88245548', 'tenant_id': '86766d52fdb24e738d148a605267bff9', 'project_id': '86766d52fdb24e738d148a605267bff9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['16ab4f34-c67a-46b1-a3fd-bb6f0cc7b77c', '5b9e7a9d-e24e-4092-8ae2-2dae9a307d22'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85440118', 'ctest-vn4-88245548'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85440118', 'ctest-policy1-21303352']], 'subnet_ipam': [{'subnet_cidr': '215.53.237.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '39ea:4922:50e6:43fd:b69c:1c31::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-08 16:48:45,198 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-08 16:48:45,494 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-08 16:48:45,523 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a5b04897-686f-489f-9bee-43a751ea5f97 2025-10-08 16:48:45,535 - DEBUG - Requesting: http://10.0.0.22:8082/project/86766d52-fdb2-4e73-8d14-8a605267bff9 2025-10-08 16:48:45,614 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/54e3d0c1-c13a-4b0f-aac4-65d6d2999457 2025-10-08 16:48:45,628 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/54e3d0c1-c13a-4b0f-aac4-65d6d2999457 2025-10-08 16:48:45,638 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fca29988-bd09-46c9-910d-8e7182e9b43d 2025-10-08 16:48:45,646 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fca29988-bd09-46c9-910d-8e7182e9b43d 2025-10-08 16:48:45,654 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c8c46c39-1c93-4084-8c23-97a988f1355a 2025-10-08 16:48:45,661 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 16:48:45,661 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/54e3d0c1-c13a-4b0f-aac4-65d6d2999457 2025-10-08 16:48:45,671 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fca29988-bd09-46c9-910d-8e7182e9b43d 2025-10-08 16:48:45,685 - INFO - Verified VN network id 11 for VN 54e3d0c1-c13a-4b0f-aac4-65d6d2999457 2025-10-08 16:48:45,686 - INFO - Verifications in API Server for VN ctest-vn4-88245548 passed 2025-10-08 16:48:45,686 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/54e3d0c1-c13a-4b0f-aac4-65d6d2999457 2025-10-08 16:48:45,695 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fca29988-bd09-46c9-910d-8e7182e9b43d 2025-10-08 16:48:45,707 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fca29988-bd09-46c9-910d-8e7182e9b43d 2025-10-08 16:48:45,715 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c8c46c39-1c93-4084-8c23-97a988f1355a 2025-10-08 16:48:45,727 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85440118:ctest-vn4-88245548', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85440118', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6116962249488354063', 'uuid-lslong': '12305072055213724759'}, 'enable': 'true', 'created': '2025-10-08T16:48:44', 'last-modified': '2025-10-08T16:48:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.759093'} 2025-10-08 16:48:45,733 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 16:48:45,733 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88245548 passed 2025-10-08 16:48:45,733 - DEBUG - ====Verifying policy data for ctest-vn4-88245548 in API_Server ====== 2025-10-08 16:48:45,733 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-08 16:48:45,739 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a5b04897-686f-489f-9bee-43a751ea5f97 2025-10-08 16:48:45,752 - DEBUG - Requesting: http://10.0.0.22:8082/project/86766d52-fdb2-4e73-8d14-8a605267bff9 2025-10-08 16:48:45,827 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/54e3d0c1-c13a-4b0f-aac4-65d6d2999457 2025-10-08 16:48:45,836 - DEBUG - ==>Verifying data for policy with id: 54045dbd-5322-4014-98b2-db3436e0f5dd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85440118', 'ctest-policy1-21303352'] 2025-10-08 16:48:45,836 - INFO - VN ctest-vn4-88245548 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-08 16:48:45,836 - DEBUG - Verifying the vn in opserver 2025-10-08 16:48:45,836 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85440118:ctest-vn4-88245548 virtual network link through opserver 10.0.0.22 2025-10-08 16:48:45,836 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-08 16:48:46,126 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-08 16:48:46,190 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85440118:ctest-vn4-88245548', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85440118:ctest-vn4-88245548?flat'} 2025-10-08 16:48:46,190 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85440118:ctest-vn4-88245548 is found in opserver 2025-10-08 16:48:46,202 - DEBUG - Do not have enough data to verify VN in agent 2025-10-08 16:48:46,207 - DEBUG - VRF ids for VN ctest-vn4-88245548: {} 2025-10-08 16:48:46,208 - DEBUG - ====Verifying data for ctest-policy1-21303352 in API_Server ====== 2025-10-08 16:48:46,208 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-08 16:48:46,214 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a5b04897-686f-489f-9bee-43a751ea5f97 2025-10-08 16:48:46,230 - DEBUG - Requesting: http://10.0.0.22:8082/project/86766d52-fdb2-4e73-8d14-8a605267bff9 2025-10-08 16:48:46,311 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/54045dbd-5322-4014-98b2-db3436e0f5dd 2025-10-08 16:48:46,324 - INFO - Verified policy ctest-policy1-21303352 in API Server, Result: True 2025-10-08 16:48:46,324 - INFO - Done with setup and verification, moving onto test .. 2025-10-08 16:48:46,333 - INFO - Deleting VN ctest-vn4-88245548 2025-10-08 16:48:46,478 - DEBUG - Response for deleting network () 2025-10-08 16:48:46,479 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/fca29988-bd09-46c9-910d-8e7182e9b43d 2025-10-08 16:48:46,485 - DEBUG - Response Code: 404 2025-10-08 16:48:46,485 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-08 16:48:46,493 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a5b04897-686f-489f-9bee-43a751ea5f97 2025-10-08 16:48:46,548 - DEBUG - Requesting: http://10.0.0.22:8082/project/86766d52-fdb2-4e73-8d14-8a605267bff9 2025-10-08 16:48:46,619 - INFO - Validated that VN ctest-vn4-88245548 is not found in API Server 2025-10-08 16:48:46,628 - DEBUG - VN ctest-vn4-88245548 is not present in Agent 10.0.0.22 2025-10-08 16:48:46,628 - INFO - Validated that VN ctest-vn4-88245548 is not in any agent 2025-10-08 16:48:46,645 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88245548 info 2025-10-08 16:48:46,673 - INFO - Deleted policy ctest-policy1-21303352 2025-10-08 16:48:46,838 - DEBUG - policy ctest-policy1-21303352 is not found in API Server 2025-10-08 16:48:47,091 - DEBUG - No XMPP flaps were noticed during the test
2025-10-08 16:48:47,091 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-08 16:48:47,092 - INFO - -------------------------------------------------------------------------------- 2025-10-08 16:48:47,381 - DEBUG - No XMPP flaps were noticed during the test
2025-10-08 16:48:47,381 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-08 16:48:47,381 - INFO - -------------------------------------------------------------------------------- 2025-10-08 16:48:48,059 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-85440118, ID : 86766d52-fdb2-4e73-8d14-8a605267bff9