2026-01-28 19:50:30,518 - INFO - Domain Default found not creating 2026-01-28 19:50:30,699 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-83107034 not found, creating it 2026-01-28 19:50:31,129 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-83107034, ID : c0b9a7f6-dbfa-4b6f-bdc7-21dc6b8a7dee 2026-01-28 19:50:32,510 - INFO - ================================================================================ 2026-01-28 19:50:32,510 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 19:50:32,764 - DEBUG - Nothing to compare xmpp stats {'10.0.0.156': {'10.20.0.17': '0'}} with 2026-01-28 19:50:32,764 - INFO - Initial checks done. Running the testcase now 2026-01-28 19:50:32,764 - INFO - 2026-01-28 19:50:32,764 - INFO - ================================================================================ 2026-01-28 19:50:32,765 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 19:50:32,765 - 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-01-28 19:50:33,050 - DEBUG - Nothing to compare xmpp stats {'10.0.0.156': {'10.20.0.17': '0'}} with 2026-01-28 19:50:33,050 - INFO - Initial checks done. Running the testcase now 2026-01-28 19:50:33,050 - INFO - 2026-01-28 19:50:33,396 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83107034:ctest-vn4-76038632, 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-83107034:ctest-vn4-76038632, 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-83107034:ctest-vn4-76038632, 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-83107034:ctest-vn4-76038632, 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-01-28 19:50:33,887 - DEBUG - Response for create_network : {'network': {'id': '7397d8c4-832f-4380-987f-871fd70145e9', 'name': 'ctest-vn4-76038632', 'tenant_id': 'c0b9a7f6dbfa4b6fbdc721dc6b8a7dee', 'project_id': 'c0b9a7f6dbfa4b6fbdc721dc6b8a7dee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83107034', 'ctest-vn4-76038632'], 'port_security_enabled': True, 'description': ''}} 2026-01-28 19:50:34,075 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e501f42-e851-4827-b095-84a054e5fdce', 'name': '', 'tenant_id': 'c0b9a7f6dbfa4b6fbdc721dc6b8a7dee', 'network_id': '7397d8c4-832f-4380-987f-871fd70145e9', 'ip_version': 4, 'cidr': '140.183.130.64/26', 'allocation_pools': [{'start': '140.183.130.66', 'end': '140.183.130.126'}], 'gateway_ip': '140.183.130.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.183.130.66', 'tags': [], 'project_id': 'c0b9a7f6dbfa4b6fbdc721dc6b8a7dee'}} 2026-01-28 19:50:34,274 - DEBUG - Response for create_subnet : {'subnet': {'id': '08dcdb5e-7851-438f-8dbf-e8617428300a', 'name': '', 'tenant_id': 'c0b9a7f6dbfa4b6fbdc721dc6b8a7dee', 'network_id': '7397d8c4-832f-4380-987f-871fd70145e9', 'ip_version': 6, 'cidr': '219b:7599:77a3:c5ee:56ef:9203::/96', 'allocation_pools': [{'start': '219b:7599:77a3:c5ee:56ef:9203:0:2', 'end': '219b:7599:77a3:c5ee:56ef:9203:ffff:fffe'}], 'gateway_ip': '219b:7599:77a3:c5ee:56ef:9203:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219b:7599:77a3:c5ee:56ef:9203:0:2', 'tags': [], 'project_id': 'c0b9a7f6dbfa4b6fbdc721dc6b8a7dee'}} 2026-01-28 19:50:34,292 - INFO - Created VN ctest-vn4-76038632 2026-01-28 19:50:34,342 - DEBUG - VN ctest-vn4-76038632 UUID is 7397d8c4-832f-4380-987f-871fd70145e9 2026-01-28 19:50:34,524 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7397d8c4-832f-4380-987f-871fd70145e9', 'name': 'ctest-vn4-76038632', 'tenant_id': 'c0b9a7f6dbfa4b6fbdc721dc6b8a7dee', 'project_id': 'c0b9a7f6dbfa4b6fbdc721dc6b8a7dee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e501f42-e851-4827-b095-84a054e5fdce', '08dcdb5e-7851-438f-8dbf-e8617428300a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83107034', 'ctest-vn4-76038632'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83107034', 'ctest-policy1-63932717']], 'subnet_ipam': [{'subnet_cidr': '140.183.130.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '219b:7599:77a3:c5ee:56ef:9203::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-28 19:50:34,686 - DEBUG - Requesting: http://10.0.0.156:8082/domains 2026-01-28 19:50:34,980 - DEBUG - Requesting: http://10.0.0.156:8082/domains 2026-01-28 19:50:35,012 - DEBUG - Requesting: http://10.0.0.156:8082/domain/3dd0d628-0c71-4c2c-b3e0-c94e8da421f2 2026-01-28 19:50:35,022 - DEBUG - Requesting: http://10.0.0.156:8082/project/c0b9a7f6-dbfa-4b6f-bdc7-21dc6b8a7dee 2026-01-28 19:50:35,088 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/7397d8c4-832f-4380-987f-871fd70145e9 2026-01-28 19:50:35,103 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/7397d8c4-832f-4380-987f-871fd70145e9 2026-01-28 19:50:35,111 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/f8fe9d64-1fd7-4eaa-acf7-9121e50d9d6f 2026-01-28 19:50:35,118 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/f8fe9d64-1fd7-4eaa-acf7-9121e50d9d6f 2026-01-28 19:50:35,123 - DEBUG - Requesting: http://10.0.0.156:8082/route-target/6735cf2b-3e4d-4a47-a82f-da69f5ecd746 2026-01-28 19:50:35,128 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 19:50:35,128 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/7397d8c4-832f-4380-987f-871fd70145e9 2026-01-28 19:50:35,135 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/f8fe9d64-1fd7-4eaa-acf7-9121e50d9d6f 2026-01-28 19:50:35,146 - INFO - Verified VN network id 11 for VN 7397d8c4-832f-4380-987f-871fd70145e9 2026-01-28 19:50:35,147 - INFO - Verifications in API Server for VN ctest-vn4-76038632 passed 2026-01-28 19:50:35,147 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/7397d8c4-832f-4380-987f-871fd70145e9 2026-01-28 19:50:35,157 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/f8fe9d64-1fd7-4eaa-acf7-9121e50d9d6f 2026-01-28 19:50:35,162 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/f8fe9d64-1fd7-4eaa-acf7-9121e50d9d6f 2026-01-28 19:50:35,167 - DEBUG - Requesting: http://10.0.0.156:8082/route-target/6735cf2b-3e4d-4a47-a82f-da69f5ecd746 2026-01-28 19:50:35,175 - DEBUG - Control-node 10.0.0.156 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83107034:ctest-vn4-76038632', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-83107034', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8329364374371124096', 'uuid-lslong': '10988650186628220393'}, 'enable': 'true', 'created': '2026-01-28T19:50:33', 'last-modified': '2026-01-28T19:50:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.676974'} 2026-01-28 19:50:35,180 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 19:50:35,180 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-76038632 passed 2026-01-28 19:50:35,181 - DEBUG - ====Verifying policy data for ctest-vn4-76038632 in API_Server ====== 2026-01-28 19:50:35,181 - DEBUG - Requesting: http://10.0.0.156:8082/domains 2026-01-28 19:50:35,184 - DEBUG - Requesting: http://10.0.0.156:8082/domain/3dd0d628-0c71-4c2c-b3e0-c94e8da421f2 2026-01-28 19:50:35,192 - DEBUG - Requesting: http://10.0.0.156:8082/project/c0b9a7f6-dbfa-4b6f-bdc7-21dc6b8a7dee 2026-01-28 19:50:35,257 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/7397d8c4-832f-4380-987f-871fd70145e9 2026-01-28 19:50:35,266 - DEBUG - ==>Verifying data for policy with id: be7b96c4-e196-4a17-b907-76a7ea8629db, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83107034', 'ctest-policy1-63932717'] 2026-01-28 19:50:35,266 - INFO - VN ctest-vn4-76038632 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-28 19:50:35,266 - DEBUG - Verifying the vn in opserver 2026-01-28 19:50:35,266 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83107034:ctest-vn4-76038632 virtual network link through opserver 10.0.0.156 2026-01-28 19:50:35,266 - DEBUG - Requesting: http://10.0.0.156:8081/analytics/uves/virtual-networks 2026-01-28 19:50:35,557 - DEBUG - Requesting: http://10.0.0.156:8081/analytics/uves/virtual-networks 2026-01-28 19:50:35,623 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83107034:ctest-vn4-76038632', 'href': 'http://10.0.0.156:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83107034:ctest-vn4-76038632?flat'} 2026-01-28 19:50:35,623 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83107034:ctest-vn4-76038632 is found in opserver 2026-01-28 19:50:35,631 - DEBUG - Do not have enough data to verify VN in agent 2026-01-28 19:50:35,635 - DEBUG - VRF ids for VN ctest-vn4-76038632: {} 2026-01-28 19:50:35,636 - DEBUG - ====Verifying data for ctest-policy1-63932717 in API_Server ====== 2026-01-28 19:50:35,636 - DEBUG - Requesting: http://10.0.0.156:8082/domains 2026-01-28 19:50:35,640 - DEBUG - Requesting: http://10.0.0.156:8082/domain/3dd0d628-0c71-4c2c-b3e0-c94e8da421f2 2026-01-28 19:50:35,649 - DEBUG - Requesting: http://10.0.0.156:8082/project/c0b9a7f6-dbfa-4b6f-bdc7-21dc6b8a7dee 2026-01-28 19:50:35,713 - DEBUG - Requesting: http://10.0.0.156:8082/network-policy/be7b96c4-e196-4a17-b907-76a7ea8629db 2026-01-28 19:50:35,722 - INFO - Verified policy ctest-policy1-63932717 in API Server, Result: True 2026-01-28 19:50:35,722 - INFO - Done with setup and verification, moving onto test .. 2026-01-28 19:50:35,728 - INFO - Deleting VN ctest-vn4-76038632 2026-01-28 19:50:35,827 - DEBUG - Response for deleting network () 2026-01-28 19:50:35,827 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/f8fe9d64-1fd7-4eaa-acf7-9121e50d9d6f 2026-01-28 19:50:35,831 - DEBUG - Response Code: 404 2026-01-28 19:50:35,831 - DEBUG - Requesting: http://10.0.0.156:8082/domains 2026-01-28 19:50:35,835 - DEBUG - Requesting: http://10.0.0.156:8082/domain/3dd0d628-0c71-4c2c-b3e0-c94e8da421f2 2026-01-28 19:50:35,886 - DEBUG - Requesting: http://10.0.0.156:8082/project/c0b9a7f6-dbfa-4b6f-bdc7-21dc6b8a7dee 2026-01-28 19:50:35,954 - INFO - Validated that VN ctest-vn4-76038632 is not found in API Server 2026-01-28 19:50:35,962 - DEBUG - VN ctest-vn4-76038632 is not present in Agent 10.0.0.156 2026-01-28 19:50:35,962 - INFO - Validated that VN ctest-vn4-76038632 is not in any agent 2026-01-28 19:50:35,973 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-76038632 info 2026-01-28 19:50:35,993 - INFO - Deleted policy ctest-policy1-63932717 2026-01-28 19:50:36,150 - DEBUG - policy ctest-policy1-63932717 is not found in API Server 2026-01-28 19:50:36,402 - DEBUG - No XMPP flaps were noticed during the test