2026-04-06 02:53:08,099 - INFO - Domain Default found not creating 2026-04-06 02:53:08,268 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-17604479 not found, creating it 2026-04-06 02:53:08,819 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-17604479, ID : c706831c-df50-438e-b222-e70c51a49d1e 2026-04-06 02:53:10,358 - INFO - ================================================================================ 2026-04-06 02:53:10,359 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-06 02:53:11,646 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.193': '0', '10.20.0.129': '0'}, '10.0.0.241': {'10.20.0.18': '0', '10.20.0.129': '0'}} with 2026-04-06 02:53:11,646 - INFO - Initial checks done. Running the testcase now 2026-04-06 02:53:11,646 - INFO - 2026-04-06 02:53:11,646 - INFO - ================================================================================ 2026-04-06 02:53:11,647 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-06 02:53:11,647 - 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-04-06 02:53:12,917 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.193': '0', '10.20.0.129': '0'}, '10.0.0.241': {'10.20.0.18': '0', '10.20.0.129': '0'}} with 2026-04-06 02:53:12,918 - INFO - Initial checks done. Running the testcase now 2026-04-06 02:53:12,918 - INFO - 2026-04-06 02:53:13,274 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17604479:ctest-vn4-97430566, 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-17604479:ctest-vn4-97430566, 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-17604479:ctest-vn4-97430566, 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-17604479:ctest-vn4-97430566, 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-04-06 02:53:13,927 - DEBUG - Response for create_network : {'network': {'id': '32ef34f3-25b8-4170-aa13-c71d731fefdf', 'name': 'ctest-vn4-97430566', 'tenant_id': 'c706831cdf50438eb222e70c51a49d1e', 'project_id': 'c706831cdf50438eb222e70c51a49d1e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17604479', 'ctest-vn4-97430566'], 'port_security_enabled': True, 'description': ''}} 2026-04-06 02:53:14,193 - DEBUG - Response for create_subnet : {'subnet': {'id': '386733c6-065b-4347-8bf2-95f3259161e4', 'name': '', 'tenant_id': 'c706831cdf50438eb222e70c51a49d1e', 'network_id': '32ef34f3-25b8-4170-aa13-c71d731fefdf', 'ip_version': 4, 'cidr': '150.35.145.128/26', 'allocation_pools': [{'start': '150.35.145.130', 'end': '150.35.145.190'}], 'gateway_ip': '150.35.145.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.35.145.130', 'tags': [], 'project_id': 'c706831cdf50438eb222e70c51a49d1e'}} 2026-04-06 02:53:14,393 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec99d296-609a-483b-b663-c58f3cc34c24', 'name': '', 'tenant_id': 'c706831cdf50438eb222e70c51a49d1e', 'network_id': '32ef34f3-25b8-4170-aa13-c71d731fefdf', 'ip_version': 6, 'cidr': '2f00:b863:4669:61c6:88fc:8644::/96', 'allocation_pools': [{'start': '2f00:b863:4669:61c6:88fc:8644:0:2', 'end': '2f00:b863:4669:61c6:88fc:8644:ffff:fffe'}], 'gateway_ip': '2f00:b863:4669:61c6:88fc:8644:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f00:b863:4669:61c6:88fc:8644:0:2', 'tags': [], 'project_id': 'c706831cdf50438eb222e70c51a49d1e'}} 2026-04-06 02:53:14,417 - INFO - Created VN ctest-vn4-97430566 2026-04-06 02:53:14,430 - DEBUG - VN ctest-vn4-97430566 UUID is 32ef34f3-25b8-4170-aa13-c71d731fefdf 2026-04-06 02:53:14,631 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32ef34f3-25b8-4170-aa13-c71d731fefdf', 'name': 'ctest-vn4-97430566', 'tenant_id': 'c706831cdf50438eb222e70c51a49d1e', 'project_id': 'c706831cdf50438eb222e70c51a49d1e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['386733c6-065b-4347-8bf2-95f3259161e4', 'ec99d296-609a-483b-b663-c58f3cc34c24'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17604479', 'ctest-vn4-97430566'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17604479', 'ctest-policy1-55572688']], 'subnet_ipam': [{'subnet_cidr': '150.35.145.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f00:b863:4669:61c6:88fc:8644::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-06 02:53:14,718 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-06 02:53:15,017 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-06 02:53:15,046 - DEBUG - Requesting: http://10.0.0.249:8082/domain/500738d8-636d-4330-98c4-d5dafb5cbb39 2026-04-06 02:53:15,061 - DEBUG - Requesting: http://10.0.0.249:8082/project/c706831c-df50-438e-b222-e70c51a49d1e 2026-04-06 02:53:15,164 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/32ef34f3-25b8-4170-aa13-c71d731fefdf 2026-04-06 02:53:15,178 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/32ef34f3-25b8-4170-aa13-c71d731fefdf 2026-04-06 02:53:15,187 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/89019f3e-1999-43aa-a7b2-cc26cffaff58 2026-04-06 02:53:15,194 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/89019f3e-1999-43aa-a7b2-cc26cffaff58 2026-04-06 02:53:15,201 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/88cad4c9-16b9-49df-9953-efee35772422 2026-04-06 02:53:15,206 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-06 02:53:15,206 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/32ef34f3-25b8-4170-aa13-c71d731fefdf 2026-04-06 02:53:15,216 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/89019f3e-1999-43aa-a7b2-cc26cffaff58 2026-04-06 02:53:15,230 - INFO - Verified VN network id 12 for VN 32ef34f3-25b8-4170-aa13-c71d731fefdf 2026-04-06 02:53:15,230 - INFO - Verifications in API Server for VN ctest-vn4-97430566 passed 2026-04-06 02:53:15,230 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/32ef34f3-25b8-4170-aa13-c71d731fefdf 2026-04-06 02:53:15,239 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/89019f3e-1999-43aa-a7b2-cc26cffaff58 2026-04-06 02:53:15,246 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/89019f3e-1999-43aa-a7b2-cc26cffaff58 2026-04-06 02:53:15,252 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/88cad4c9-16b9-49df-9953-efee35772422 2026-04-06 02:53:15,263 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17604479:ctest-vn4-97430566', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-17604479', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3670210440244773232', 'uuid-lslong': '12255357940304703455'}, 'enable': 'true', 'created': '2026-04-06T02:53:13', 'last-modified': '2026-04-06T02:53:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.677687'} 2026-04-06 02:53:15,268 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-06 02:53:15,274 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17604479:ctest-vn4-97430566', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-17604479', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3670210440244773232', 'uuid-lslong': '12255357940304703455'}, 'enable': 'true', 'created': '2026-04-06T02:53:13', 'last-modified': '2026-04-06T02:53:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.682985'} 2026-04-06 02:53:15,279 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-06 02:53:15,285 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17604479:ctest-vn4-97430566', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-17604479', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3670210440244773232', 'uuid-lslong': '12255357940304703455'}, 'enable': 'true', 'created': '2026-04-06T02:53:13', 'last-modified': '2026-04-06T02:53:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.692675'} 2026-04-06 02:53:15,290 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-06 02:53:15,290 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-97430566 passed 2026-04-06 02:53:15,290 - DEBUG - ====Verifying policy data for ctest-vn4-97430566 in API_Server ====== 2026-04-06 02:53:15,290 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-06 02:53:15,296 - DEBUG - Requesting: http://10.0.0.249:8082/domain/500738d8-636d-4330-98c4-d5dafb5cbb39 2026-04-06 02:53:15,305 - DEBUG - Requesting: http://10.0.0.249:8082/project/c706831c-df50-438e-b222-e70c51a49d1e 2026-04-06 02:53:15,393 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/32ef34f3-25b8-4170-aa13-c71d731fefdf 2026-04-06 02:53:15,404 - DEBUG - ==>Verifying data for policy with id: e396069d-2c49-4924-bb91-ba62f116517c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17604479', 'ctest-policy1-55572688'] 2026-04-06 02:53:15,404 - INFO - VN ctest-vn4-97430566 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-06 02:53:15,404 - DEBUG - Verifying the vn in opserver 2026-04-06 02:53:15,405 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17604479:ctest-vn4-97430566 virtual network link through opserver 10.0.0.249 2026-04-06 02:53:15,405 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-06 02:53:15,696 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-06 02:53:15,766 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17604479:ctest-vn4-97430566', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17604479:ctest-vn4-97430566?flat'} 2026-04-06 02:53:15,766 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17604479:ctest-vn4-97430566 virtual network link through opserver 10.0.0.27 2026-04-06 02:53:15,766 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-04-06 02:53:16,063 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-04-06 02:53:16,154 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17604479:ctest-vn4-97430566', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17604479:ctest-vn4-97430566?flat'} 2026-04-06 02:53:16,154 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17604479:ctest-vn4-97430566 virtual network link through opserver 10.0.0.33 2026-04-06 02:53:16,154 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-04-06 02:53:16,631 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-04-06 02:53:16,696 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17604479:ctest-vn4-97430566', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17604479:ctest-vn4-97430566?flat'} 2026-04-06 02:53:16,696 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17604479:ctest-vn4-97430566 is found in opserver 2026-04-06 02:53:16,715 - DEBUG - Do not have enough data to verify VN in agent 2026-04-06 02:53:16,724 - DEBUG - VRF ids for VN ctest-vn4-97430566: {} 2026-04-06 02:53:16,724 - DEBUG - ====Verifying data for ctest-policy1-55572688 in API_Server ====== 2026-04-06 02:53:16,724 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-06 02:53:16,730 - DEBUG - Requesting: http://10.0.0.249:8082/domain/500738d8-636d-4330-98c4-d5dafb5cbb39 2026-04-06 02:53:16,746 - DEBUG - Requesting: http://10.0.0.249:8082/project/c706831c-df50-438e-b222-e70c51a49d1e 2026-04-06 02:53:16,844 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/e396069d-2c49-4924-bb91-ba62f116517c 2026-04-06 02:53:16,856 - INFO - Verified policy ctest-policy1-55572688 in API Server, Result: True 2026-04-06 02:53:16,856 - INFO - Done with setup and verification, moving onto test .. 2026-04-06 02:53:16,869 - INFO - Deleting VN ctest-vn4-97430566 2026-04-06 02:53:17,083 - DEBUG - Response for deleting network () 2026-04-06 02:53:17,083 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/89019f3e-1999-43aa-a7b2-cc26cffaff58 2026-04-06 02:53:17,089 - DEBUG - Response Code: 404 2026-04-06 02:53:17,090 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-06 02:53:17,096 - DEBUG - Requesting: http://10.0.0.249:8082/domain/500738d8-636d-4330-98c4-d5dafb5cbb39 2026-04-06 02:53:17,107 - DEBUG - Requesting: http://10.0.0.249:8082/project/c706831c-df50-438e-b222-e70c51a49d1e 2026-04-06 02:53:17,199 - INFO - Validated that VN ctest-vn4-97430566 is not found in API Server 2026-04-06 02:53:17,211 - DEBUG - VN ctest-vn4-97430566 is not present in Agent 10.0.0.19 2026-04-06 02:53:17,220 - DEBUG - VN ctest-vn4-97430566 is not present in Agent 10.0.0.241 2026-04-06 02:53:17,220 - INFO - Validated that VN ctest-vn4-97430566 is not in any agent 2026-04-06 02:53:17,247 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-97430566 info 2026-04-06 02:53:17,292 - INFO - Deleted policy ctest-policy1-55572688 2026-04-06 02:53:17,471 - DEBUG - policy ctest-policy1-55572688 is not found in API Server 2026-04-06 02:53:18,737 - DEBUG - No XMPP flaps were noticed during the test 2026-04-06 02:53:18,737 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-04-06 02:53:18,738 - INFO - -------------------------------------------------------------------------------- 2026-04-06 02:53:20,018 - DEBUG - No XMPP flaps were noticed during the test 2026-04-06 02:53:20,018 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-04-06 02:53:20,018 - INFO - -------------------------------------------------------------------------------- 2026-04-06 02:53:20,808 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-17604479, ID : c706831c-df50-438e-b222-e70c51a49d1e