2025-10-30 02:23:49,968 - INFO - Domain Default found not creating 2025-10-30 02:23:50,120 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74495288 not found, creating it 2025-10-30 02:23:50,565 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74495288, ID : 6c5724f5-baee-44d8-9f58-92dc974598e2 2025-10-30 02:23:52,015 - INFO - ================================================================================ 2025-10-30 02:23:52,015 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 02:23:52,275 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2025-10-30 02:23:52,275 - INFO - Initial checks done. Running the testcase now 2025-10-30 02:23:52,275 - INFO - 2025-10-30 02:23:52,275 - INFO - ================================================================================ 2025-10-30 02:23:52,275 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 02:23:52,275 - 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-30 02:23:52,562 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2025-10-30 02:23:52,562 - INFO - Initial checks done. Running the testcase now 2025-10-30 02:23:52,562 - INFO - 2025-10-30 02:23:52,913 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74495288:ctest-vn4-48111376, 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-74495288:ctest-vn4-48111376, 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-74495288:ctest-vn4-48111376, 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-74495288:ctest-vn4-48111376, 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-30 02:23:53,695 - DEBUG - Response for create_network : {'network': {'id': 'ca38bb2d-e573-4062-8862-97b9703c04a2', 'name': 'ctest-vn4-48111376', 'tenant_id': '6c5724f5baee44d89f5892dc974598e2', 'project_id': '6c5724f5baee44d89f5892dc974598e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74495288', 'ctest-vn4-48111376'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 02:23:53,878 - DEBUG - Response for create_subnet : {'subnet': {'id': '102d9b80-ac25-4675-a364-0b8f40105cee', 'name': '', 'tenant_id': '6c5724f5baee44d89f5892dc974598e2', 'network_id': 'ca38bb2d-e573-4062-8862-97b9703c04a2', 'ip_version': 4, 'cidr': '198.45.182.64/26', 'allocation_pools': [{'start': '198.45.182.66', 'end': '198.45.182.126'}], 'gateway_ip': '198.45.182.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.45.182.66', 'tags': [], 'project_id': '6c5724f5baee44d89f5892dc974598e2'}} 2025-10-30 02:23:54,040 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e240185-b286-431f-ad5e-2e3514de8b5e', 'name': '', 'tenant_id': '6c5724f5baee44d89f5892dc974598e2', 'network_id': 'ca38bb2d-e573-4062-8862-97b9703c04a2', 'ip_version': 6, 'cidr': '39ad:1298:8269:cd73:a6b6:10cc::/96', 'allocation_pools': [{'start': '39ad:1298:8269:cd73:a6b6:10cc:0:2', 'end': '39ad:1298:8269:cd73:a6b6:10cc:ffff:fffe'}], 'gateway_ip': '39ad:1298:8269:cd73:a6b6:10cc:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39ad:1298:8269:cd73:a6b6:10cc:0:2', 'tags': [], 'project_id': '6c5724f5baee44d89f5892dc974598e2'}} 2025-10-30 02:23:54,059 - INFO - Created VN ctest-vn4-48111376 2025-10-30 02:23:54,113 - DEBUG - VN ctest-vn4-48111376 UUID is ca38bb2d-e573-4062-8862-97b9703c04a2 2025-10-30 02:23:54,321 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ca38bb2d-e573-4062-8862-97b9703c04a2', 'name': 'ctest-vn4-48111376', 'tenant_id': '6c5724f5baee44d89f5892dc974598e2', 'project_id': '6c5724f5baee44d89f5892dc974598e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['102d9b80-ac25-4675-a364-0b8f40105cee', '3e240185-b286-431f-ad5e-2e3514de8b5e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74495288', 'ctest-vn4-48111376'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74495288', 'ctest-policy1-86344779']], 'subnet_ipam': [{'subnet_cidr': '198.45.182.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '39ad:1298:8269:cd73:a6b6:10cc::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 02:23:54,473 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 02:23:54,774 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 02:23:54,804 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b719b592-ac22-43f0-b0ca-68b60797a902 2025-10-30 02:23:54,815 - DEBUG - Requesting: http://10.0.0.38:8082/project/6c5724f5-baee-44d8-9f58-92dc974598e2 2025-10-30 02:23:54,892 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ca38bb2d-e573-4062-8862-97b9703c04a2 2025-10-30 02:23:54,903 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ca38bb2d-e573-4062-8862-97b9703c04a2 2025-10-30 02:23:54,912 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49867050-d3eb-4960-96e5-1b0a55cc184e 2025-10-30 02:23:54,919 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49867050-d3eb-4960-96e5-1b0a55cc184e 2025-10-30 02:23:54,925 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/580c9dfc-0af2-4116-8b97-4d021f7fc6c3 2025-10-30 02:23:54,933 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 02:23:54,933 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ca38bb2d-e573-4062-8862-97b9703c04a2 2025-10-30 02:23:54,942 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49867050-d3eb-4960-96e5-1b0a55cc184e 2025-10-30 02:23:54,956 - INFO - Verified VN network id 10 for VN ca38bb2d-e573-4062-8862-97b9703c04a2 2025-10-30 02:23:54,958 - INFO - Verifications in API Server for VN ctest-vn4-48111376 passed 2025-10-30 02:23:54,958 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ca38bb2d-e573-4062-8862-97b9703c04a2 2025-10-30 02:23:54,967 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49867050-d3eb-4960-96e5-1b0a55cc184e 2025-10-30 02:23:54,973 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49867050-d3eb-4960-96e5-1b0a55cc184e 2025-10-30 02:23:54,979 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/580c9dfc-0af2-4116-8b97-4d021f7fc6c3 2025-10-30 02:23:54,990 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74495288:ctest-vn4-48111376', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74495288', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14571602400154697826', 'uuid-lslong': '9827584159583569058'}, 'enable': 'true', 'created': '2025-10-30T02:23:53', 'last-modified': '2025-10-30T02:23:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.700490'} 2025-10-30 02:23:54,995 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 02:23:54,995 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-48111376 passed 2025-10-30 02:23:54,995 - DEBUG - ====Verifying policy data for ctest-vn4-48111376 in API_Server ====== 2025-10-30 02:23:54,995 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 02:23:55,000 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b719b592-ac22-43f0-b0ca-68b60797a902 2025-10-30 02:23:55,010 - DEBUG - Requesting: http://10.0.0.38:8082/project/6c5724f5-baee-44d8-9f58-92dc974598e2 2025-10-30 02:23:55,082 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ca38bb2d-e573-4062-8862-97b9703c04a2 2025-10-30 02:23:55,091 - DEBUG - ==>Verifying data for policy with id: 88957a3d-0205-447a-b0a8-6c01c7f5b3e6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74495288', 'ctest-policy1-86344779'] 2025-10-30 02:23:55,091 - INFO - VN ctest-vn4-48111376 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 02:23:55,091 - DEBUG - Verifying the vn in opserver 2025-10-30 02:23:55,091 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74495288:ctest-vn4-48111376 virtual network link through opserver 10.0.0.38 2025-10-30 02:23:55,091 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-30 02:23:55,382 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-30 02:23:55,438 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74495288:ctest-vn4-48111376', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74495288:ctest-vn4-48111376?flat'} 2025-10-30 02:23:55,438 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74495288:ctest-vn4-48111376 is found in opserver 2025-10-30 02:23:55,447 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 02:23:55,452 - DEBUG - VRF ids for VN ctest-vn4-48111376: {} 2025-10-30 02:23:55,452 - DEBUG - ====Verifying data for ctest-policy1-86344779 in API_Server ====== 2025-10-30 02:23:55,452 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 02:23:55,457 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b719b592-ac22-43f0-b0ca-68b60797a902 2025-10-30 02:23:55,467 - DEBUG - Requesting: http://10.0.0.38:8082/project/6c5724f5-baee-44d8-9f58-92dc974598e2 2025-10-30 02:23:55,536 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/88957a3d-0205-447a-b0a8-6c01c7f5b3e6 2025-10-30 02:23:55,545 - INFO - Verified policy ctest-policy1-86344779 in API Server, Result: True 2025-10-30 02:23:55,545 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 02:23:55,552 - INFO - Deleting VN ctest-vn4-48111376 2025-10-30 02:23:55,661 - DEBUG - Response for deleting network () 2025-10-30 02:23:55,662 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49867050-d3eb-4960-96e5-1b0a55cc184e 2025-10-30 02:23:55,666 - DEBUG - Response Code: 404 2025-10-30 02:23:55,666 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 02:23:55,671 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b719b592-ac22-43f0-b0ca-68b60797a902 2025-10-30 02:23:55,721 - DEBUG - Requesting: http://10.0.0.38:8082/project/6c5724f5-baee-44d8-9f58-92dc974598e2 2025-10-30 02:23:55,789 - INFO - Validated that VN ctest-vn4-48111376 is not found in API Server 2025-10-30 02:23:55,798 - DEBUG - VN ctest-vn4-48111376 is not present in Agent 10.0.0.38 2025-10-30 02:23:55,798 - INFO - Validated that VN ctest-vn4-48111376 is not in any agent 2025-10-30 02:23:55,810 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-48111376 info 2025-10-30 02:23:55,836 - INFO - Deleted policy ctest-policy1-86344779 2025-10-30 02:23:56,000 - DEBUG - policy ctest-policy1-86344779 is not found in API Server 2025-10-30 02:23:56,255 - DEBUG - No XMPP flaps were noticed during the test 2025-10-30 02:23:56,255 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-30 02:23:56,255 - INFO - -------------------------------------------------------------------------------- 2025-10-30 02:23:56,541 - DEBUG - No XMPP flaps were noticed during the test 2025-10-30 02:23:56,542 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-30 02:23:56,542 - INFO - -------------------------------------------------------------------------------- 2025-10-30 02:23:57,231 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-74495288, ID : 6c5724f5-baee-44d8-9f58-92dc974598e2