2026-05-20 15:00:57,882 - INFO - Domain Default found not creating 2026-05-20 15:00:58,157 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-81204550 not found, creating it 2026-05-20 15:00:58,811 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-81204550, ID : 0120e255-3021-44bf-bcf1-0d1aef8a17ec 2026-05-20 15:01:00,976 - INFO - ================================================================================ 2026-05-20 15:01:00,976 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-20 15:01:02,321 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.25': '0', '10.20.0.193': '0'}, '10.0.0.249': {'10.20.0.25': '0', '10.20.0.14': '0'}} with 2026-05-20 15:01:02,321 - INFO - Initial checks done. Running the testcase now 2026-05-20 15:01:02,322 - INFO - 2026-05-20 15:01:02,322 - INFO - ================================================================================ 2026-05-20 15:01:02,322 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-20 15:01:02,323 - 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-20 15:01:03,668 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.25': '0', '10.20.0.193': '0'}, '10.0.0.249': {'10.20.0.25': '0', '10.20.0.14': '0'}} with 2026-05-20 15:01:03,668 - INFO - Initial checks done. Running the testcase now 2026-05-20 15:01:03,668 - INFO - 2026-05-20 15:01:04,144 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81204550:ctest-vn4-01519360, 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-81204550:ctest-vn4-01519360, 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-81204550:ctest-vn4-01519360, 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-81204550:ctest-vn4-01519360, 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-20 15:01:04,911 - DEBUG - Response for create_network : {'network': {'id': 'b10ef27f-6d7e-45ea-9457-75d698c6ef66', 'name': 'ctest-vn4-01519360', 'tenant_id': '0120e255302144bfbcf10d1aef8a17ec', 'project_id': '0120e255302144bfbcf10d1aef8a17ec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81204550', 'ctest-vn4-01519360'], 'port_security_enabled': True, 'description': ''}} 2026-05-20 15:01:05,308 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b3fc5df6-d22b-4712-9b2b-60bd36ff8657', 'name': '', 'tenant_id': '0120e255302144bfbcf10d1aef8a17ec', 'network_id': 'b10ef27f-6d7e-45ea-9457-75d698c6ef66', 'ip_version': 4, 'cidr': '76.86.210.0/26', 'allocation_pools': [{'start': '76.86.210.2', 'end': '76.86.210.62'}], 'gateway_ip': '76.86.210.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.86.210.2', 'tags': [], 'project_id': '0120e255302144bfbcf10d1aef8a17ec'}} 2026-05-20 15:01:05,602 - DEBUG - Response for create_subnet : {'subnet': {'id': '07c08527-502e-4e2f-8a80-3583805e7dd5', 'name': '', 'tenant_id': '0120e255302144bfbcf10d1aef8a17ec', 'network_id': 'b10ef27f-6d7e-45ea-9457-75d698c6ef66', 'ip_version': 6, 'cidr': '338e:33ea:f94:c113:c800:d5b6::/96', 'allocation_pools': [{'start': '338e:33ea:f94:c113:c800:d5b6:0:2', 'end': '338e:33ea:f94:c113:c800:d5b6:ffff:fffe'}], 'gateway_ip': '338e:33ea:f94:c113:c800:d5b6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '338e:33ea:f94:c113:c800:d5b6:0:2', 'tags': [], 'project_id': '0120e255302144bfbcf10d1aef8a17ec'}} 2026-05-20 15:01:05,639 - INFO - Created VN ctest-vn4-01519360 2026-05-20 15:01:05,655 - DEBUG - VN ctest-vn4-01519360 UUID is b10ef27f-6d7e-45ea-9457-75d698c6ef66 2026-05-20 15:01:06,006 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b10ef27f-6d7e-45ea-9457-75d698c6ef66', 'name': 'ctest-vn4-01519360', 'tenant_id': '0120e255302144bfbcf10d1aef8a17ec', 'project_id': '0120e255302144bfbcf10d1aef8a17ec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b3fc5df6-d22b-4712-9b2b-60bd36ff8657', '07c08527-502e-4e2f-8a80-3583805e7dd5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81204550', 'ctest-vn4-01519360'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81204550', 'ctest-policy1-12510616']], 'subnet_ipam': [{'subnet_cidr': '76.86.210.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '338e:33ea:f94:c113:c800:d5b6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-20 15:01:06,147 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2026-05-20 15:01:06,624 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2026-05-20 15:01:06,693 - DEBUG - Requesting: http://10.0.0.57:8082/domain/ffb590f3-7b6e-40e6-89b8-bd634f94ea0b 2026-05-20 15:01:06,721 - DEBUG - Requesting: http://10.0.0.57:8082/project/0120e255-3021-44bf-bcf1-0d1aef8a17ec 2026-05-20 15:01:06,823 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b10ef27f-6d7e-45ea-9457-75d698c6ef66 2026-05-20 15:01:06,844 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b10ef27f-6d7e-45ea-9457-75d698c6ef66 2026-05-20 15:01:06,860 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/7521b614-71e4-4d09-b2d7-1c89a1edfc2c 2026-05-20 15:01:06,872 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/7521b614-71e4-4d09-b2d7-1c89a1edfc2c 2026-05-20 15:01:06,882 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/d4e1504e-e780-43df-b19e-255da95235db 2026-05-20 15:01:06,893 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-20 15:01:06,893 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b10ef27f-6d7e-45ea-9457-75d698c6ef66 2026-05-20 15:01:06,906 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/7521b614-71e4-4d09-b2d7-1c89a1edfc2c 2026-05-20 15:01:06,927 - INFO - Verified VN network id 12 for VN b10ef27f-6d7e-45ea-9457-75d698c6ef66 2026-05-20 15:01:06,927 - INFO - Verifications in API Server for VN ctest-vn4-01519360 passed 2026-05-20 15:01:06,927 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b10ef27f-6d7e-45ea-9457-75d698c6ef66 2026-05-20 15:01:06,942 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/7521b614-71e4-4d09-b2d7-1c89a1edfc2c 2026-05-20 15:01:06,964 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/7521b614-71e4-4d09-b2d7-1c89a1edfc2c 2026-05-20 15:01:06,978 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/d4e1504e-e780-43df-b19e-255da95235db 2026-05-20 15:01:06,994 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81204550:ctest-vn4-01519360', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-81204550', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12758401423498954218', 'uuid-lslong': '10689141805133786982'}, 'enable': 'true', 'created': '2026-05-20T15:01:04', 'last-modified': '2026-05-20T15:01:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.062231'} 2026-05-20 15:01:07,004 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-20 15:01:07,014 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81204550:ctest-vn4-01519360', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-81204550', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12758401423498954218', 'uuid-lslong': '10689141805133786982'}, 'enable': 'true', 'created': '2026-05-20T15:01:04', 'last-modified': '2026-05-20T15:01:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.086876'} 2026-05-20 15:01:07,022 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-20 15:01:07,031 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81204550:ctest-vn4-01519360', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-81204550', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12758401423498954218', 'uuid-lslong': '10689141805133786982'}, 'enable': 'true', 'created': '2026-05-20T15:01:04', 'last-modified': '2026-05-20T15:01:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.092325'} 2026-05-20 15:01:07,048 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-20 15:01:07,048 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-01519360 passed 2026-05-20 15:01:07,050 - DEBUG - ====Verifying policy data for ctest-vn4-01519360 in API_Server ====== 2026-05-20 15:01:07,050 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2026-05-20 15:01:07,059 - DEBUG - Requesting: http://10.0.0.57:8082/domain/ffb590f3-7b6e-40e6-89b8-bd634f94ea0b 2026-05-20 15:01:07,077 - DEBUG - Requesting: http://10.0.0.57:8082/project/0120e255-3021-44bf-bcf1-0d1aef8a17ec 2026-05-20 15:01:07,203 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b10ef27f-6d7e-45ea-9457-75d698c6ef66 2026-05-20 15:01:07,218 - DEBUG - ==>Verifying data for policy with id: 99b991fe-37d9-44e2-b953-5ccd1a65ba62, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81204550', 'ctest-policy1-12510616'] 2026-05-20 15:01:07,218 - INFO - VN ctest-vn4-01519360 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-20 15:01:07,218 - DEBUG - Verifying the vn in opserver 2026-05-20 15:01:07,219 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81204550:ctest-vn4-01519360 virtual network link through opserver 10.0.0.57 2026-05-20 15:01:07,219 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2026-05-20 15:01:07,583 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2026-05-20 15:01:07,682 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81204550:ctest-vn4-01519360', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81204550:ctest-vn4-01519360?flat'} 2026-05-20 15:01:07,683 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81204550:ctest-vn4-01519360 virtual network link through opserver 10.0.0.141 2026-05-20 15:01:07,683 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-05-20 15:01:08,053 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-05-20 15:01:08,141 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81204550:ctest-vn4-01519360', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81204550:ctest-vn4-01519360?flat'} 2026-05-20 15:01:08,141 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81204550:ctest-vn4-01519360 virtual network link through opserver 10.0.0.56 2026-05-20 15:01:08,141 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2026-05-20 15:01:08,525 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2026-05-20 15:01:08,612 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81204550:ctest-vn4-01519360', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81204550:ctest-vn4-01519360?flat'} 2026-05-20 15:01:08,612 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81204550:ctest-vn4-01519360 is found in opserver 2026-05-20 15:01:08,647 - DEBUG - Do not have enough data to verify VN in agent 2026-05-20 15:01:08,662 - DEBUG - VRF ids for VN ctest-vn4-01519360: {} 2026-05-20 15:01:08,662 - DEBUG - ====Verifying data for ctest-policy1-12510616 in API_Server ====== 2026-05-20 15:01:08,662 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2026-05-20 15:01:08,670 - DEBUG - Requesting: http://10.0.0.57:8082/domain/ffb590f3-7b6e-40e6-89b8-bd634f94ea0b 2026-05-20 15:01:08,685 - DEBUG - Requesting: http://10.0.0.57:8082/project/0120e255-3021-44bf-bcf1-0d1aef8a17ec 2026-05-20 15:01:08,790 - DEBUG - Requesting: http://10.0.0.57:8082/network-policy/99b991fe-37d9-44e2-b953-5ccd1a65ba62 2026-05-20 15:01:08,810 - INFO - Verified policy ctest-policy1-12510616 in API Server, Result: True 2026-05-20 15:01:08,810 - INFO - Done with setup and verification, moving onto test .. 2026-05-20 15:01:08,822 - INFO - Deleting VN ctest-vn4-01519360 2026-05-20 15:01:09,089 - DEBUG - Response for deleting network () 2026-05-20 15:01:09,089 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/7521b614-71e4-4d09-b2d7-1c89a1edfc2c 2026-05-20 15:01:09,102 - DEBUG - Response Code: 404 2026-05-20 15:01:09,102 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2026-05-20 15:01:09,115 - DEBUG - Requesting: http://10.0.0.57:8082/domain/ffb590f3-7b6e-40e6-89b8-bd634f94ea0b 2026-05-20 15:01:09,139 - DEBUG - Requesting: http://10.0.0.57:8082/project/0120e255-3021-44bf-bcf1-0d1aef8a17ec 2026-05-20 15:01:09,261 - INFO - Validated that VN ctest-vn4-01519360 is not found in API Server 2026-05-20 15:01:09,279 - DEBUG - VN ctest-vn4-01519360 is not present in Agent 10.0.0.242 2026-05-20 15:01:09,296 - DEBUG - VN ctest-vn4-01519360 is not present in Agent 10.0.0.249 2026-05-20 15:01:09,296 - INFO - Validated that VN ctest-vn4-01519360 is not in any agent 2026-05-20 15:01:09,350 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-01519360 info 2026-05-20 15:01:09,401 - INFO - Deleted policy ctest-policy1-12510616 2026-05-20 15:01:09,610 - DEBUG - policy ctest-policy1-12510616 is not found in API Server 2026-05-20 15:01:10,942 - DEBUG - No XMPP flaps were noticed during the test
2026-05-20 15:01:10,943 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08]
2026-05-20 15:01:10,943 - INFO - -------------------------------------------------------------------------------- 2026-05-20 15:01:12,261 - DEBUG - No XMPP flaps were noticed during the test
2026-05-20 15:01:12,261 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:12]
2026-05-20 15:01:12,261 - INFO - -------------------------------------------------------------------------------- 2026-05-20 15:01:13,148 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-81204550, ID : 0120e255-3021-44bf-bcf1-0d1aef8a17ec