2026-09-02 00:22:16,302 - INFO - Domain Default found not creating 2026-09-02 00:22:16,473 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-19687243 not found, creating it 2026-09-02 00:22:16,957 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-19687243, ID : 306b23c7-875e-4e9d-bc7b-302c7e75d826 2026-09-02 00:22:18,473 - INFO - ================================================================================ 2026-09-02 00:22:18,473 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-02 00:22:18,743 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-09-02 00:22:18,743 - INFO - Initial checks done. Running the testcase now 2026-09-02 00:22:18,743 - INFO - 2026-09-02 00:22:18,743 - INFO - ================================================================================ 2026-09-02 00:22:18,743 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-02 00:22:18,743 - 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-09-02 00:22:19,028 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-09-02 00:22:19,028 - INFO - Initial checks done. Running the testcase now 2026-09-02 00:22:19,028 - INFO - 2026-09-02 00:22:19,411 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19687243:ctest-vn4-97094357, 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-19687243:ctest-vn4-97094357, 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-19687243:ctest-vn4-97094357, 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-19687243:ctest-vn4-97094357, 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-09-02 00:22:19,936 - DEBUG - Response for create_network : {'network': {'id': '8a2d7b7f-d207-4cfb-822f-757f4b8df88e', 'name': 'ctest-vn4-97094357', 'tenant_id': '306b23c7875e4e9dbc7b302c7e75d826', 'project_id': '306b23c7875e4e9dbc7b302c7e75d826', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19687243', 'ctest-vn4-97094357'], 'port_security_enabled': True, 'description': ''}} 2026-09-02 00:22:20,172 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b027f474-ea48-40ef-a3f8-8a6eb698af27', 'name': '', 'tenant_id': '306b23c7875e4e9dbc7b302c7e75d826', 'network_id': '8a2d7b7f-d207-4cfb-822f-757f4b8df88e', 'ip_version': 4, 'cidr': '112.182.73.128/26', 'allocation_pools': [{'start': '112.182.73.130', 'end': '112.182.73.190'}], 'gateway_ip': '112.182.73.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.182.73.130', 'tags': [], 'project_id': '306b23c7875e4e9dbc7b302c7e75d826'}} 2026-09-02 00:22:20,403 - DEBUG - Response for create_subnet : {'subnet': {'id': '4119e6b0-af5f-4f11-b9da-336254136a9a', 'name': '', 'tenant_id': '306b23c7875e4e9dbc7b302c7e75d826', 'network_id': '8a2d7b7f-d207-4cfb-822f-757f4b8df88e', 'ip_version': 6, 'cidr': '3b8a:567b:ca1b:5df:9dad:cb05::/96', 'allocation_pools': [{'start': '3b8a:567b:ca1b:5df:9dad:cb05:0:2', 'end': '3b8a:567b:ca1b:5df:9dad:cb05:ffff:fffe'}], 'gateway_ip': '3b8a:567b:ca1b:5df:9dad:cb05:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b8a:567b:ca1b:5df:9dad:cb05:0:2', 'tags': [], 'project_id': '306b23c7875e4e9dbc7b302c7e75d826'}} 2026-09-02 00:22:20,426 - INFO - Created VN ctest-vn4-97094357 2026-09-02 00:22:20,478 - DEBUG - VN ctest-vn4-97094357 UUID is 8a2d7b7f-d207-4cfb-822f-757f4b8df88e 2026-09-02 00:22:20,779 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8a2d7b7f-d207-4cfb-822f-757f4b8df88e', 'name': 'ctest-vn4-97094357', 'tenant_id': '306b23c7875e4e9dbc7b302c7e75d826', 'project_id': '306b23c7875e4e9dbc7b302c7e75d826', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['b027f474-ea48-40ef-a3f8-8a6eb698af27', '4119e6b0-af5f-4f11-b9da-336254136a9a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19687243', 'ctest-vn4-97094357'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19687243', 'ctest-policy1-75183715']], 'subnet_ipam': [{'subnet_cidr': '112.182.73.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b8a:567b:ca1b:5df:9dad:cb05::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-02 00:22:20,938 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-02 00:22:21,269 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-02 00:22:21,299 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6b94f452-8164-41f9-9611-e51f06b655c4 2026-09-02 00:22:21,311 - DEBUG - Requesting: http://10.0.0.38:8082/project/306b23c7-875e-4e9d-bc7b-302c7e75d826 2026-09-02 00:22:21,393 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8a2d7b7f-d207-4cfb-822f-757f4b8df88e 2026-09-02 00:22:21,407 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8a2d7b7f-d207-4cfb-822f-757f4b8df88e 2026-09-02 00:22:21,417 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/edb91132-8bdf-468d-a477-915c26715d62 2026-09-02 00:22:21,425 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/edb91132-8bdf-468d-a477-915c26715d62 2026-09-02 00:22:21,432 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4d059236-d56e-4d74-9534-776c3a94a2e5 2026-09-02 00:22:21,439 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-02 00:22:21,440 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8a2d7b7f-d207-4cfb-822f-757f4b8df88e 2026-09-02 00:22:21,450 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/edb91132-8bdf-468d-a477-915c26715d62 2026-09-02 00:22:21,465 - INFO - Verified VN network id 12 for VN 8a2d7b7f-d207-4cfb-822f-757f4b8df88e 2026-09-02 00:22:21,465 - INFO - Verifications in API Server for VN ctest-vn4-97094357 passed 2026-09-02 00:22:21,465 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8a2d7b7f-d207-4cfb-822f-757f4b8df88e 2026-09-02 00:22:21,476 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/edb91132-8bdf-468d-a477-915c26715d62 2026-09-02 00:22:21,484 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/edb91132-8bdf-468d-a477-915c26715d62 2026-09-02 00:22:21,490 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4d059236-d56e-4d74-9534-776c3a94a2e5 2026-09-02 00:22:21,505 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19687243:ctest-vn4-97094357', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-19687243', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9956750140100791547', 'uuid-lslong': '9380845738424924302'}, 'enable': 'true', 'created': '2026-09-02T00:22:19', 'last-modified': '2026-09-02T00:22:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.776532'} 2026-09-02 00:22:21,512 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-02 00:22:21,512 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-97094357 passed 2026-09-02 00:22:21,512 - DEBUG - ====Verifying policy data for ctest-vn4-97094357 in API_Server ====== 2026-09-02 00:22:21,512 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-02 00:22:21,518 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6b94f452-8164-41f9-9611-e51f06b655c4 2026-09-02 00:22:21,529 - DEBUG - Requesting: http://10.0.0.38:8082/project/306b23c7-875e-4e9d-bc7b-302c7e75d826 2026-09-02 00:22:21,605 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8a2d7b7f-d207-4cfb-822f-757f4b8df88e 2026-09-02 00:22:21,617 - DEBUG - ==>Verifying data for policy with id: 06e20ac8-8dcf-45cf-baf1-23dd6045f84d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19687243', 'ctest-policy1-75183715'] 2026-09-02 00:22:21,617 - INFO - VN ctest-vn4-97094357 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-02 00:22:21,617 - DEBUG - Verifying the vn in opserver 2026-09-02 00:22:21,617 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19687243:ctest-vn4-97094357 virtual network link through opserver 10.0.0.38 2026-09-02 00:22:21,617 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-02 00:22:21,943 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-02 00:22:21,994 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19687243:ctest-vn4-97094357', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19687243:ctest-vn4-97094357?flat'} 2026-09-02 00:22:21,995 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19687243:ctest-vn4-97094357 is found in opserver 2026-09-02 00:22:22,006 - DEBUG - Do not have enough data to verify VN in agent 2026-09-02 00:22:22,011 - DEBUG - VRF ids for VN ctest-vn4-97094357: {} 2026-09-02 00:22:22,012 - DEBUG - ====Verifying data for ctest-policy1-75183715 in API_Server ====== 2026-09-02 00:22:22,012 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-02 00:22:22,018 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6b94f452-8164-41f9-9611-e51f06b655c4 2026-09-02 00:22:22,030 - DEBUG - Requesting: http://10.0.0.38:8082/project/306b23c7-875e-4e9d-bc7b-302c7e75d826 2026-09-02 00:22:22,113 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/06e20ac8-8dcf-45cf-baf1-23dd6045f84d 2026-09-02 00:22:22,125 - INFO - Verified policy ctest-policy1-75183715 in API Server, Result: True 2026-09-02 00:22:22,125 - INFO - Done with setup and verification, moving onto test .. 2026-09-02 00:22:22,137 - INFO - Deleting VN ctest-vn4-97094357 2026-09-02 00:22:22,272 - DEBUG - Response for deleting network () 2026-09-02 00:22:22,272 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/edb91132-8bdf-468d-a477-915c26715d62 2026-09-02 00:22:22,280 - DEBUG - Response Code: 404 2026-09-02 00:22:22,280 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-02 00:22:22,286 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6b94f452-8164-41f9-9611-e51f06b655c4 2026-09-02 00:22:22,343 - DEBUG - Requesting: http://10.0.0.38:8082/project/306b23c7-875e-4e9d-bc7b-302c7e75d826 2026-09-02 00:22:22,421 - INFO - Validated that VN ctest-vn4-97094357 is not found in API Server 2026-09-02 00:22:22,431 - DEBUG - VN ctest-vn4-97094357 is not present in Agent 10.0.0.38 2026-09-02 00:22:22,431 - INFO - Validated that VN ctest-vn4-97094357 is not in any agent 2026-09-02 00:22:22,449 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-97094357 info 2026-09-02 00:22:22,477 - INFO - Deleted policy ctest-policy1-75183715 2026-09-02 00:22:22,645 - DEBUG - policy ctest-policy1-75183715 is not found in API Server 2026-09-02 00:22:22,907 - DEBUG - No XMPP flaps were noticed during the test