2026-03-30 04:17:32,813 - INFO - Domain Default found not creating 2026-03-30 04:17:33,103 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-01548117 not found, creating it 2026-03-30 04:17:33,791 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-01548117, ID : 3aeaa3a6-aa68-4912-bd71-6675ca69fd78 2026-03-30 04:17:35,681 - INFO - ================================================================================ 2026-03-30 04:17:35,682 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-30 04:17:36,987 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.27': {'10.20.0.17': '0', '10.20.0.25': '0'}} with 2026-03-30 04:17:36,987 - INFO - Initial checks done. Running the testcase now 2026-03-30 04:17:36,987 - INFO - 2026-03-30 04:17:36,988 - INFO - ================================================================================ 2026-03-30 04:17:36,988 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-30 04:17:36,988 - 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-03-30 04:17:38,272 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.27': {'10.20.0.17': '0', '10.20.0.25': '0'}} with 2026-03-30 04:17:38,272 - INFO - Initial checks done. Running the testcase now 2026-03-30 04:17:38,272 - INFO - 2026-03-30 04:17:38,701 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01548117:ctest-vn4-08459089, 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-01548117:ctest-vn4-08459089, 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-01548117:ctest-vn4-08459089, 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-01548117:ctest-vn4-08459089, 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-03-30 04:17:39,388 - DEBUG - Response for create_network : {'network': {'id': 'fb1f72fd-b88e-40c7-920d-44600ad3cde9', 'name': 'ctest-vn4-08459089', 'tenant_id': '3aeaa3a6aa684912bd716675ca69fd78', 'project_id': '3aeaa3a6aa684912bd716675ca69fd78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01548117', 'ctest-vn4-08459089'], 'port_security_enabled': True, 'description': ''}} 2026-03-30 04:17:39,734 - DEBUG - Response for create_subnet : {'subnet': {'id': '7af66e30-b872-4456-ae52-a08b20999dfb', 'name': '', 'tenant_id': '3aeaa3a6aa684912bd716675ca69fd78', 'network_id': 'fb1f72fd-b88e-40c7-920d-44600ad3cde9', 'ip_version': 4, 'cidr': '64.134.164.128/26', 'allocation_pools': [{'start': '64.134.164.130', 'end': '64.134.164.190'}], 'gateway_ip': '64.134.164.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.134.164.130', 'tags': [], 'project_id': '3aeaa3a6aa684912bd716675ca69fd78'}} 2026-03-30 04:17:39,944 - DEBUG - Response for create_subnet : {'subnet': {'id': '55e2aa97-51a4-42e2-8133-7d3e7c8916b1', 'name': '', 'tenant_id': '3aeaa3a6aa684912bd716675ca69fd78', 'network_id': 'fb1f72fd-b88e-40c7-920d-44600ad3cde9', 'ip_version': 6, 'cidr': '2485:b348:c675:dcaf:3607:423f::/96', 'allocation_pools': [{'start': '2485:b348:c675:dcaf:3607:423f:0:2', 'end': '2485:b348:c675:dcaf:3607:423f:ffff:fffe'}], 'gateway_ip': '2485:b348:c675:dcaf:3607:423f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2485:b348:c675:dcaf:3607:423f:0:2', 'tags': [], 'project_id': '3aeaa3a6aa684912bd716675ca69fd78'}} 2026-03-30 04:17:39,972 - INFO - Created VN ctest-vn4-08459089 2026-03-30 04:17:39,985 - DEBUG - VN ctest-vn4-08459089 UUID is fb1f72fd-b88e-40c7-920d-44600ad3cde9 2026-03-30 04:17:40,229 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fb1f72fd-b88e-40c7-920d-44600ad3cde9', 'name': 'ctest-vn4-08459089', 'tenant_id': '3aeaa3a6aa684912bd716675ca69fd78', 'project_id': '3aeaa3a6aa684912bd716675ca69fd78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7af66e30-b872-4456-ae52-a08b20999dfb', '55e2aa97-51a4-42e2-8133-7d3e7c8916b1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01548117', 'ctest-vn4-08459089'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01548117', 'ctest-policy1-44610976']], 'subnet_ipam': [{'subnet_cidr': '64.134.164.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2485:b348:c675:dcaf:3607:423f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-30 04:17:40,335 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-30 04:17:40,638 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-30 04:17:40,673 - DEBUG - Requesting: http://10.0.0.249:8082/domain/915c2541-ccc7-4e90-b8b1-1d89c2512d73 2026-03-30 04:17:40,692 - DEBUG - Requesting: http://10.0.0.249:8082/project/3aeaa3a6-aa68-4912-bd71-6675ca69fd78 2026-03-30 04:17:40,811 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/fb1f72fd-b88e-40c7-920d-44600ad3cde9 2026-03-30 04:17:40,831 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/fb1f72fd-b88e-40c7-920d-44600ad3cde9 2026-03-30 04:17:40,849 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f8d98993-237f-4bca-a3a3-27fbe81d4484 2026-03-30 04:17:40,857 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f8d98993-237f-4bca-a3a3-27fbe81d4484 2026-03-30 04:17:40,865 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/05e28c0b-7bca-44c9-a11b-7003bf15a679 2026-03-30 04:17:40,874 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-30 04:17:40,874 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/fb1f72fd-b88e-40c7-920d-44600ad3cde9 2026-03-30 04:17:40,886 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f8d98993-237f-4bca-a3a3-27fbe81d4484 2026-03-30 04:17:40,908 - INFO - Verified VN network id 11 for VN fb1f72fd-b88e-40c7-920d-44600ad3cde9 2026-03-30 04:17:40,909 - INFO - Verifications in API Server for VN ctest-vn4-08459089 passed 2026-03-30 04:17:40,916 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/fb1f72fd-b88e-40c7-920d-44600ad3cde9 2026-03-30 04:17:40,930 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f8d98993-237f-4bca-a3a3-27fbe81d4484 2026-03-30 04:17:40,940 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f8d98993-237f-4bca-a3a3-27fbe81d4484 2026-03-30 04:17:40,949 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/05e28c0b-7bca-44c9-a11b-7003bf15a679 2026-03-30 04:17:40,966 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01548117:ctest-vn4-08459089', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-01548117', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18095308261846565063', 'uuid-lslong': '10524143083523919337'}, 'enable': 'true', 'created': '2026-03-30T04:17:39', 'last-modified': '2026-03-30T04:17:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.795706'} 2026-03-30 04:17:40,975 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-30 04:17:40,983 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01548117:ctest-vn4-08459089', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-01548117', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18095308261846565063', 'uuid-lslong': '10524143083523919337'}, 'enable': 'true', 'created': '2026-03-30T04:17:39', 'last-modified': '2026-03-30T04:17:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.807010'} 2026-03-30 04:17:40,996 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-30 04:17:41,001 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01548117:ctest-vn4-08459089', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-01548117', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18095308261846565063', 'uuid-lslong': '10524143083523919337'}, 'enable': 'true', 'created': '2026-03-30T04:17:39', 'last-modified': '2026-03-30T04:17:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.820286'} 2026-03-30 04:17:41,007 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-30 04:17:41,008 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-08459089 passed 2026-03-30 04:17:41,008 - DEBUG - ====Verifying policy data for ctest-vn4-08459089 in API_Server ====== 2026-03-30 04:17:41,008 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-30 04:17:41,015 - DEBUG - Requesting: http://10.0.0.249:8082/domain/915c2541-ccc7-4e90-b8b1-1d89c2512d73 2026-03-30 04:17:41,033 - DEBUG - Requesting: http://10.0.0.249:8082/project/3aeaa3a6-aa68-4912-bd71-6675ca69fd78 2026-03-30 04:17:41,166 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/fb1f72fd-b88e-40c7-920d-44600ad3cde9 2026-03-30 04:17:41,186 - DEBUG - ==>Verifying data for policy with id: 2d1aec3a-18f2-40aa-8ee2-29c11ee26119, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01548117', 'ctest-policy1-44610976'] 2026-03-30 04:17:41,186 - INFO - VN ctest-vn4-08459089 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-30 04:17:41,186 - DEBUG - Verifying the vn in opserver 2026-03-30 04:17:41,186 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01548117:ctest-vn4-08459089 virtual network link through opserver 10.0.0.249 2026-03-30 04:17:41,186 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-30 04:17:41,544 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-30 04:17:41,627 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01548117:ctest-vn4-08459089', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01548117:ctest-vn4-08459089?flat'} 2026-03-30 04:17:41,628 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01548117:ctest-vn4-08459089 virtual network link through opserver 10.0.0.241 2026-03-30 04:17:41,628 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-03-30 04:17:41,938 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-03-30 04:17:42,008 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01548117:ctest-vn4-08459089', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01548117:ctest-vn4-08459089?flat'} 2026-03-30 04:17:42,009 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01548117:ctest-vn4-08459089 virtual network link through opserver 10.0.0.141 2026-03-30 04:17:42,009 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-03-30 04:17:42,348 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-03-30 04:17:42,463 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01548117:ctest-vn4-08459089', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01548117:ctest-vn4-08459089?flat'} 2026-03-30 04:17:42,463 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01548117:ctest-vn4-08459089 is found in opserver 2026-03-30 04:17:42,488 - DEBUG - Do not have enough data to verify VN in agent 2026-03-30 04:17:42,501 - DEBUG - VRF ids for VN ctest-vn4-08459089: {} 2026-03-30 04:17:42,501 - DEBUG - ====Verifying data for ctest-policy1-44610976 in API_Server ====== 2026-03-30 04:17:42,501 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-30 04:17:42,508 - DEBUG - Requesting: http://10.0.0.249:8082/domain/915c2541-ccc7-4e90-b8b1-1d89c2512d73 2026-03-30 04:17:42,522 - DEBUG - Requesting: http://10.0.0.249:8082/project/3aeaa3a6-aa68-4912-bd71-6675ca69fd78 2026-03-30 04:17:42,639 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/2d1aec3a-18f2-40aa-8ee2-29c11ee26119 2026-03-30 04:17:42,652 - INFO - Verified policy ctest-policy1-44610976 in API Server, Result: True 2026-03-30 04:17:42,652 - INFO - Done with setup and verification, moving onto test .. 2026-03-30 04:17:42,667 - INFO - Deleting VN ctest-vn4-08459089 2026-03-30 04:17:42,901 - DEBUG - Response for deleting network () 2026-03-30 04:17:42,901 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f8d98993-237f-4bca-a3a3-27fbe81d4484 2026-03-30 04:17:42,908 - DEBUG - Response Code: 404 2026-03-30 04:17:42,909 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-30 04:17:42,919 - DEBUG - Requesting: http://10.0.0.249:8082/domain/915c2541-ccc7-4e90-b8b1-1d89c2512d73 2026-03-30 04:17:42,979 - DEBUG - Requesting: http://10.0.0.249:8082/project/3aeaa3a6-aa68-4912-bd71-6675ca69fd78 2026-03-30 04:17:43,089 - INFO - Validated that VN ctest-vn4-08459089 is not found in API Server 2026-03-30 04:17:43,099 - DEBUG - VN ctest-vn4-08459089 is not present in Agent 10.0.0.129 2026-03-30 04:17:43,108 - DEBUG - VN ctest-vn4-08459089 is not present in Agent 10.0.0.27 2026-03-30 04:17:43,109 - INFO - Validated that VN ctest-vn4-08459089 is not in any agent 2026-03-30 04:17:43,142 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-08459089 info 2026-03-30 04:17:43,182 - INFO - Deleted policy ctest-policy1-44610976 2026-03-30 04:17:43,392 - DEBUG - policy ctest-policy1-44610976 is not found in API Server 2026-03-30 04:17:44,692 - DEBUG - No XMPP flaps were noticed during the test 2026-03-30 04:17:44,692 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2026-03-30 04:17:44,692 - INFO - -------------------------------------------------------------------------------- 2026-03-30 04:17:46,071 - DEBUG - No XMPP flaps were noticed during the test 2026-03-30 04:17:46,071 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:11] 2026-03-30 04:17:46,072 - INFO - -------------------------------------------------------------------------------- 2026-03-30 04:17:46,902 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-01548117, ID : 3aeaa3a6-aa68-4912-bd71-6675ca69fd78