2025-09-26 02:32:44,485 - INFO - Domain Default found not creating 2025-09-26 02:32:44,628 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95071191 not found, creating it 2025-09-26 02:32:45,077 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95071191, ID : f0f94775-56f6-4081-9497-641fe7a5fc42 2025-09-26 02:32:46,488 - INFO - ================================================================================ 2025-09-26 02:32:46,488 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-26 02:32:46,753 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-09-26 02:32:46,753 - INFO - Initial checks done. Running the testcase now 2025-09-26 02:32:46,753 - INFO - 2025-09-26 02:32:46,753 - INFO - ================================================================================ 2025-09-26 02:32:46,753 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-26 02:32:46,753 - 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-09-26 02:32:47,041 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-09-26 02:32:47,041 - INFO - Initial checks done. Running the testcase now 2025-09-26 02:32:47,041 - INFO - 2025-09-26 02:32:47,384 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95071191:ctest-vn4-44060774, 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-95071191:ctest-vn4-44060774, 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-95071191:ctest-vn4-44060774, 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-95071191:ctest-vn4-44060774, 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-09-26 02:32:47,892 - DEBUG - Response for create_network : {'network': {'id': 'c9aaa67b-b7f7-430a-863d-21898c8cf992', 'name': 'ctest-vn4-44060774', 'tenant_id': 'f0f9477556f640819497641fe7a5fc42', 'project_id': 'f0f9477556f640819497641fe7a5fc42', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95071191', 'ctest-vn4-44060774'], 'port_security_enabled': True, 'description': ''}} 2025-09-26 02:32:48,065 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb9e31e3-c005-41c9-9418-c0102da5a2c4', 'name': '', 'tenant_id': 'f0f9477556f640819497641fe7a5fc42', 'network_id': 'c9aaa67b-b7f7-430a-863d-21898c8cf992', 'ip_version': 4, 'cidr': '144.219.109.192/26', 'allocation_pools': [{'start': '144.219.109.194', 'end': '144.219.109.254'}], 'gateway_ip': '144.219.109.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.219.109.194', 'tags': [], 'project_id': 'f0f9477556f640819497641fe7a5fc42'}} 2025-09-26 02:32:48,220 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ebc55dc3-49ca-45bc-af3f-59983a44e8a7', 'name': '', 'tenant_id': 'f0f9477556f640819497641fe7a5fc42', 'network_id': 'c9aaa67b-b7f7-430a-863d-21898c8cf992', 'ip_version': 6, 'cidr': '24f4:a884:645e:5923:e32f:405b::/96', 'allocation_pools': [{'start': '24f4:a884:645e:5923:e32f:405b:0:2', 'end': '24f4:a884:645e:5923:e32f:405b:ffff:fffe'}], 'gateway_ip': '24f4:a884:645e:5923:e32f:405b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24f4:a884:645e:5923:e32f:405b:0:2', 'tags': [], 'project_id': 'f0f9477556f640819497641fe7a5fc42'}} 2025-09-26 02:32:48,240 - INFO - Created VN ctest-vn4-44060774 2025-09-26 02:32:48,291 - DEBUG - VN ctest-vn4-44060774 UUID is c9aaa67b-b7f7-430a-863d-21898c8cf992 2025-09-26 02:32:48,553 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9aaa67b-b7f7-430a-863d-21898c8cf992', 'name': 'ctest-vn4-44060774', 'tenant_id': 'f0f9477556f640819497641fe7a5fc42', 'project_id': 'f0f9477556f640819497641fe7a5fc42', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb9e31e3-c005-41c9-9418-c0102da5a2c4', 'ebc55dc3-49ca-45bc-af3f-59983a44e8a7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95071191', 'ctest-vn4-44060774'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95071191', 'ctest-policy1-35341644']], 'subnet_ipam': [{'subnet_cidr': '144.219.109.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '24f4:a884:645e:5923:e32f:405b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-26 02:32:48,715 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-26 02:32:49,010 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-26 02:32:49,046 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2b5d9ff4-c6d3-49fd-bb7b-c85b6abce6db 2025-09-26 02:32:49,057 - DEBUG - Requesting: http://10.0.0.38:8082/project/f0f94775-56f6-4081-9497-641fe7a5fc42 2025-09-26 02:32:49,131 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c9aaa67b-b7f7-430a-863d-21898c8cf992 2025-09-26 02:32:49,142 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c9aaa67b-b7f7-430a-863d-21898c8cf992 2025-09-26 02:32:49,152 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ada4ab9-6cf8-414e-817a-73984b909f3c 2025-09-26 02:32:49,159 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ada4ab9-6cf8-414e-817a-73984b909f3c 2025-09-26 02:32:49,165 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/47454e3b-1dd3-4b0a-baf6-9270be89aa52 2025-09-26 02:32:49,171 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-26 02:32:49,172 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c9aaa67b-b7f7-430a-863d-21898c8cf992 2025-09-26 02:32:49,181 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ada4ab9-6cf8-414e-817a-73984b909f3c 2025-09-26 02:32:49,192 - INFO - Verified VN network id 12 for VN c9aaa67b-b7f7-430a-863d-21898c8cf992 2025-09-26 02:32:49,193 - INFO - Verifications in API Server for VN ctest-vn4-44060774 passed 2025-09-26 02:32:49,193 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c9aaa67b-b7f7-430a-863d-21898c8cf992 2025-09-26 02:32:49,200 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ada4ab9-6cf8-414e-817a-73984b909f3c 2025-09-26 02:32:49,206 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ada4ab9-6cf8-414e-817a-73984b909f3c 2025-09-26 02:32:49,211 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/47454e3b-1dd3-4b0a-baf6-9270be89aa52 2025-09-26 02:32:49,222 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95071191:ctest-vn4-44060774', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95071191', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14531610197961949962', 'uuid-lslong': '9672924449313978770'}, 'enable': 'true', 'created': '2025-09-26T02:32:47', 'last-modified': '2025-09-26T02:32:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.694777'} 2025-09-26 02:32:49,229 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-26 02:32:49,229 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-44060774 passed 2025-09-26 02:32:49,229 - DEBUG - ====Verifying policy data for ctest-vn4-44060774 in API_Server ====== 2025-09-26 02:32:49,229 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-26 02:32:49,235 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2b5d9ff4-c6d3-49fd-bb7b-c85b6abce6db 2025-09-26 02:32:49,244 - DEBUG - Requesting: http://10.0.0.38:8082/project/f0f94775-56f6-4081-9497-641fe7a5fc42 2025-09-26 02:32:49,323 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c9aaa67b-b7f7-430a-863d-21898c8cf992 2025-09-26 02:32:49,333 - DEBUG - ==>Verifying data for policy with id: d447b0a8-3765-46c8-a4bb-f19ee08a1f38, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95071191', 'ctest-policy1-35341644'] 2025-09-26 02:32:49,333 - INFO - VN ctest-vn4-44060774 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-26 02:32:49,333 - DEBUG - Verifying the vn in opserver 2025-09-26 02:32:49,333 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95071191:ctest-vn4-44060774 virtual network link through opserver 10.0.0.38 2025-09-26 02:32:49,333 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-26 02:32:49,620 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-26 02:32:49,672 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95071191:ctest-vn4-44060774', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95071191:ctest-vn4-44060774?flat'} 2025-09-26 02:32:49,672 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95071191:ctest-vn4-44060774 is found in opserver 2025-09-26 02:32:49,680 - DEBUG - Do not have enough data to verify VN in agent 2025-09-26 02:32:49,684 - DEBUG - VRF ids for VN ctest-vn4-44060774: {} 2025-09-26 02:32:49,685 - DEBUG - ====Verifying data for ctest-policy1-35341644 in API_Server ====== 2025-09-26 02:32:49,685 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-26 02:32:49,689 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2b5d9ff4-c6d3-49fd-bb7b-c85b6abce6db 2025-09-26 02:32:49,698 - DEBUG - Requesting: http://10.0.0.38:8082/project/f0f94775-56f6-4081-9497-641fe7a5fc42 2025-09-26 02:32:49,768 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/d447b0a8-3765-46c8-a4bb-f19ee08a1f38 2025-09-26 02:32:49,777 - INFO - Verified policy ctest-policy1-35341644 in API Server, Result: True 2025-09-26 02:32:49,777 - INFO - Done with setup and verification, moving onto test .. 2025-09-26 02:32:49,784 - INFO - Deleting VN ctest-vn4-44060774 2025-09-26 02:32:49,893 - DEBUG - Response for deleting network () 2025-09-26 02:32:49,893 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ada4ab9-6cf8-414e-817a-73984b909f3c 2025-09-26 02:32:49,897 - DEBUG - Response Code: 404 2025-09-26 02:32:49,898 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-26 02:32:49,902 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2b5d9ff4-c6d3-49fd-bb7b-c85b6abce6db 2025-09-26 02:32:49,955 - DEBUG - Requesting: http://10.0.0.38:8082/project/f0f94775-56f6-4081-9497-641fe7a5fc42 2025-09-26 02:32:50,026 - INFO - Validated that VN ctest-vn4-44060774 is not found in API Server 2025-09-26 02:32:50,035 - DEBUG - VN ctest-vn4-44060774 is not present in Agent 10.0.0.38 2025-09-26 02:32:50,035 - INFO - Validated that VN ctest-vn4-44060774 is not in any agent 2025-09-26 02:32:50,047 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-44060774 info 2025-09-26 02:32:50,072 - INFO - Deleted policy ctest-policy1-35341644 2025-09-26 02:32:50,234 - DEBUG - policy ctest-policy1-35341644 is not found in API Server 2025-09-26 02:32:50,487 - DEBUG - No XMPP flaps were noticed during the test 2025-09-26 02:32:50,487 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-26 02:32:50,487 - INFO - -------------------------------------------------------------------------------- 2025-09-26 02:32:50,779 - DEBUG - No XMPP flaps were noticed during the test 2025-09-26 02:32:50,779 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-26 02:32:50,779 - INFO - -------------------------------------------------------------------------------- 2025-09-26 02:32:51,457 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-95071191, ID : f0f94775-56f6-4081-9497-641fe7a5fc42