2026-05-07 02:21:30,958 - INFO - Domain Default found not creating 2026-05-07 02:21:31,128 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-44375939 not found, creating it 2026-05-07 02:21:31,576 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-44375939, ID : aadee81b-1230-45a2-960c-a604c1b87c4d 2026-05-07 02:21:33,158 - INFO - ================================================================================ 2026-05-07 02:21:33,158 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-07 02:21:33,417 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.25': '0'}} with 2026-05-07 02:21:33,418 - INFO - Initial checks done. Running the testcase now 2026-05-07 02:21:33,418 - INFO - 2026-05-07 02:21:33,418 - INFO - ================================================================================ 2026-05-07 02:21:33,418 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-07 02:21:33,418 - 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-07 02:21:33,706 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.25': '0'}} with 2026-05-07 02:21:33,706 - INFO - Initial checks done. Running the testcase now 2026-05-07 02:21:33,706 - INFO - 2026-05-07 02:21:34,034 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44375939:ctest-vn4-08998891, 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-44375939:ctest-vn4-08998891, 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-44375939:ctest-vn4-08998891, 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-44375939:ctest-vn4-08998891, 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-07 02:21:34,532 - DEBUG - Response for create_network : {'network': {'id': '6a7f367e-1f63-4aaf-966e-fcc1b4a88849', 'name': 'ctest-vn4-08998891', 'tenant_id': 'aadee81b123045a2960ca604c1b87c4d', 'project_id': 'aadee81b123045a2960ca604c1b87c4d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44375939', 'ctest-vn4-08998891'], 'port_security_enabled': True, 'description': ''}} 2026-05-07 02:21:34,707 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a770726-721e-4007-9ac3-5b1aef1dd949', 'name': '', 'tenant_id': 'aadee81b123045a2960ca604c1b87c4d', 'network_id': '6a7f367e-1f63-4aaf-966e-fcc1b4a88849', 'ip_version': 4, 'cidr': '44.167.230.0/26', 'allocation_pools': [{'start': '44.167.230.2', 'end': '44.167.230.62'}], 'gateway_ip': '44.167.230.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.167.230.2', 'tags': [], 'project_id': 'aadee81b123045a2960ca604c1b87c4d'}} 2026-05-07 02:21:34,890 - DEBUG - Response for create_subnet : {'subnet': {'id': '7d6e91c2-cc67-4220-98db-8bfabf1b71ca', 'name': '', 'tenant_id': 'aadee81b123045a2960ca604c1b87c4d', 'network_id': '6a7f367e-1f63-4aaf-966e-fcc1b4a88849', 'ip_version': 6, 'cidr': '304a:76c9:52fe:e2cb:304d:addf::/96', 'allocation_pools': [{'start': '304a:76c9:52fe:e2cb:304d:addf:0:2', 'end': '304a:76c9:52fe:e2cb:304d:addf:ffff:fffe'}], 'gateway_ip': '304a:76c9:52fe:e2cb:304d:addf:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '304a:76c9:52fe:e2cb:304d:addf:0:2', 'tags': [], 'project_id': 'aadee81b123045a2960ca604c1b87c4d'}} 2026-05-07 02:21:34,908 - INFO - Created VN ctest-vn4-08998891 2026-05-07 02:21:34,961 - DEBUG - VN ctest-vn4-08998891 UUID is 6a7f367e-1f63-4aaf-966e-fcc1b4a88849 2026-05-07 02:21:35,168 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6a7f367e-1f63-4aaf-966e-fcc1b4a88849', 'name': 'ctest-vn4-08998891', 'tenant_id': 'aadee81b123045a2960ca604c1b87c4d', 'project_id': 'aadee81b123045a2960ca604c1b87c4d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0a770726-721e-4007-9ac3-5b1aef1dd949', '7d6e91c2-cc67-4220-98db-8bfabf1b71ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44375939', 'ctest-vn4-08998891'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44375939', 'ctest-policy1-67366745']], 'subnet_ipam': [{'subnet_cidr': '44.167.230.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '304a:76c9:52fe:e2cb:304d:addf::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-07 02:21:35,325 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-05-07 02:21:35,619 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-05-07 02:21:35,649 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c482cc19-5d94-4f51-a93e-0b7f814df4a2 2026-05-07 02:21:35,659 - DEBUG - Requesting: http://10.0.0.41:8082/project/aadee81b-1230-45a2-960c-a604c1b87c4d 2026-05-07 02:21:35,728 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6a7f367e-1f63-4aaf-966e-fcc1b4a88849 2026-05-07 02:21:35,739 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6a7f367e-1f63-4aaf-966e-fcc1b4a88849 2026-05-07 02:21:35,748 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/aa01f79a-3218-4614-9c75-2160b4caf85b 2026-05-07 02:21:35,755 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/aa01f79a-3218-4614-9c75-2160b4caf85b 2026-05-07 02:21:35,761 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/2935ab2c-fce0-4173-9017-bd47d45ce66c 2026-05-07 02:21:35,767 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-07 02:21:35,767 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6a7f367e-1f63-4aaf-966e-fcc1b4a88849 2026-05-07 02:21:35,775 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/aa01f79a-3218-4614-9c75-2160b4caf85b 2026-05-07 02:21:35,788 - INFO - Verified VN network id 11 for VN 6a7f367e-1f63-4aaf-966e-fcc1b4a88849 2026-05-07 02:21:35,788 - INFO - Verifications in API Server for VN ctest-vn4-08998891 passed 2026-05-07 02:21:35,788 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6a7f367e-1f63-4aaf-966e-fcc1b4a88849 2026-05-07 02:21:35,798 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/aa01f79a-3218-4614-9c75-2160b4caf85b 2026-05-07 02:21:35,804 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/aa01f79a-3218-4614-9c75-2160b4caf85b 2026-05-07 02:21:35,810 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/2935ab2c-fce0-4173-9017-bd47d45ce66c 2026-05-07 02:21:35,820 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44375939:ctest-vn4-08998891', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-44375939', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7673912205382994607', 'uuid-lslong': '10839879262017194057'}, 'enable': 'true', 'created': '2026-05-07T02:21:34', 'last-modified': '2026-05-07T02:21:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.680370'} 2026-05-07 02:21:35,828 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-07 02:21:35,828 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-08998891 passed 2026-05-07 02:21:35,828 - DEBUG - ====Verifying policy data for ctest-vn4-08998891 in API_Server ====== 2026-05-07 02:21:35,828 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-05-07 02:21:35,833 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c482cc19-5d94-4f51-a93e-0b7f814df4a2 2026-05-07 02:21:35,844 - DEBUG - Requesting: http://10.0.0.41:8082/project/aadee81b-1230-45a2-960c-a604c1b87c4d 2026-05-07 02:21:35,912 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6a7f367e-1f63-4aaf-966e-fcc1b4a88849 2026-05-07 02:21:35,921 - DEBUG - ==>Verifying data for policy with id: 2183fce6-f06c-42e3-ad59-d8cd7fe03d45, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44375939', 'ctest-policy1-67366745'] 2026-05-07 02:21:35,921 - INFO - VN ctest-vn4-08998891 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-07 02:21:35,921 - DEBUG - Verifying the vn in opserver 2026-05-07 02:21:35,921 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44375939:ctest-vn4-08998891 virtual network link through opserver 10.0.0.41 2026-05-07 02:21:35,921 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-05-07 02:21:36,217 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-05-07 02:21:36,274 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44375939:ctest-vn4-08998891', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44375939:ctest-vn4-08998891?flat'} 2026-05-07 02:21:36,274 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44375939:ctest-vn4-08998891 is found in opserver 2026-05-07 02:21:36,283 - DEBUG - Do not have enough data to verify VN in agent 2026-05-07 02:21:36,287 - DEBUG - VRF ids for VN ctest-vn4-08998891: {} 2026-05-07 02:21:36,287 - DEBUG - ====Verifying data for ctest-policy1-67366745 in API_Server ====== 2026-05-07 02:21:36,287 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-05-07 02:21:36,292 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c482cc19-5d94-4f51-a93e-0b7f814df4a2 2026-05-07 02:21:36,300 - DEBUG - Requesting: http://10.0.0.41:8082/project/aadee81b-1230-45a2-960c-a604c1b87c4d 2026-05-07 02:21:36,375 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/2183fce6-f06c-42e3-ad59-d8cd7fe03d45 2026-05-07 02:21:36,383 - INFO - Verified policy ctest-policy1-67366745 in API Server, Result: True 2026-05-07 02:21:36,383 - INFO - Done with setup and verification, moving onto test .. 2026-05-07 02:21:36,390 - INFO - Deleting VN ctest-vn4-08998891 2026-05-07 02:21:36,502 - DEBUG - Response for deleting network () 2026-05-07 02:21:36,502 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/aa01f79a-3218-4614-9c75-2160b4caf85b 2026-05-07 02:21:36,508 - DEBUG - Response Code: 404 2026-05-07 02:21:36,508 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-05-07 02:21:36,514 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c482cc19-5d94-4f51-a93e-0b7f814df4a2 2026-05-07 02:21:36,570 - DEBUG - Requesting: http://10.0.0.41:8082/project/aadee81b-1230-45a2-960c-a604c1b87c4d 2026-05-07 02:21:36,636 - INFO - Validated that VN ctest-vn4-08998891 is not found in API Server 2026-05-07 02:21:36,645 - DEBUG - VN ctest-vn4-08998891 is not present in Agent 10.0.0.41 2026-05-07 02:21:36,645 - INFO - Validated that VN ctest-vn4-08998891 is not in any agent 2026-05-07 02:21:36,656 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-08998891 info 2026-05-07 02:21:36,679 - INFO - Deleted policy ctest-policy1-67366745 2026-05-07 02:21:36,845 - DEBUG - policy ctest-policy1-67366745 is not found in API Server 2026-05-07 02:21:37,101 - DEBUG - No XMPP flaps were noticed during the test 2026-05-07 02:21:37,101 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-07 02:21:37,101 - INFO - -------------------------------------------------------------------------------- 2026-05-07 02:21:37,394 - DEBUG - No XMPP flaps were noticed during the test 2026-05-07 02:21:37,394 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-07 02:21:37,394 - INFO - -------------------------------------------------------------------------------- 2026-05-07 02:21:38,749 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-44375939, ID : aadee81b-1230-45a2-960c-a604c1b87c4d