2026-06-04 06:35:27,032 - INFO - Domain Default found not creating 2026-06-04 06:35:27,239 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-72887451 not found, creating it 2026-06-04 06:35:27,787 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-72887451, ID : 3230f16f-764c-45b6-b6ad-9d218860b461 2026-06-04 06:35:29,447 - INFO - ================================================================================ 2026-06-04 06:35:29,447 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-04 06:35:30,761 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0', '10.20.0.17': '0'}, '10.0.0.22': {'10.20.0.14': '0', '10.20.0.17': '0'}} with 2026-06-04 06:35:30,761 - INFO - Initial checks done. Running the testcase now 2026-06-04 06:35:30,761 - INFO - 2026-06-04 06:35:30,761 - INFO - ================================================================================ 2026-06-04 06:35:30,761 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-04 06:35:30,761 - 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-06-04 06:35:32,050 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0', '10.20.0.17': '0'}, '10.0.0.22': {'10.20.0.14': '0', '10.20.0.17': '0'}} with 2026-06-04 06:35:32,051 - INFO - Initial checks done. Running the testcase now 2026-06-04 06:35:32,051 - INFO - 2026-06-04 06:35:32,540 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72887451:ctest-vn4-00081779, 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-72887451:ctest-vn4-00081779, 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-72887451:ctest-vn4-00081779, 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-72887451:ctest-vn4-00081779, 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-06-04 06:35:33,292 - DEBUG - Response for create_network : {'network': {'id': 'a70e1ac3-bc05-4ea2-ae13-8a878e18060f', 'name': 'ctest-vn4-00081779', 'tenant_id': '3230f16f764c45b6b6ad9d218860b461', 'project_id': '3230f16f764c45b6b6ad9d218860b461', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72887451', 'ctest-vn4-00081779'], 'port_security_enabled': True, 'description': ''}} 2026-06-04 06:35:33,626 - DEBUG - Response for create_subnet : {'subnet': {'id': '757c1456-4df3-4a8b-a16c-444ef9b19edc', 'name': '', 'tenant_id': '3230f16f764c45b6b6ad9d218860b461', 'network_id': 'a70e1ac3-bc05-4ea2-ae13-8a878e18060f', 'ip_version': 4, 'cidr': '165.181.128.64/26', 'allocation_pools': [{'start': '165.181.128.66', 'end': '165.181.128.126'}], 'gateway_ip': '165.181.128.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.181.128.66', 'tags': [], 'project_id': '3230f16f764c45b6b6ad9d218860b461'}} 2026-06-04 06:35:33,947 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d1f4eab-fdc3-4914-8f25-c349d6699423', 'name': '', 'tenant_id': '3230f16f764c45b6b6ad9d218860b461', 'network_id': 'a70e1ac3-bc05-4ea2-ae13-8a878e18060f', 'ip_version': 6, 'cidr': '2298:c19c:2598:2947:63a1:87e7::/96', 'allocation_pools': [{'start': '2298:c19c:2598:2947:63a1:87e7:0:2', 'end': '2298:c19c:2598:2947:63a1:87e7:ffff:fffe'}], 'gateway_ip': '2298:c19c:2598:2947:63a1:87e7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2298:c19c:2598:2947:63a1:87e7:0:2', 'tags': [], 'project_id': '3230f16f764c45b6b6ad9d218860b461'}} 2026-06-04 06:35:33,977 - INFO - Created VN ctest-vn4-00081779 2026-06-04 06:35:33,999 - DEBUG - VN ctest-vn4-00081779 UUID is a70e1ac3-bc05-4ea2-ae13-8a878e18060f 2026-06-04 06:35:34,287 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a70e1ac3-bc05-4ea2-ae13-8a878e18060f', 'name': 'ctest-vn4-00081779', 'tenant_id': '3230f16f764c45b6b6ad9d218860b461', 'project_id': '3230f16f764c45b6b6ad9d218860b461', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['757c1456-4df3-4a8b-a16c-444ef9b19edc', '4d1f4eab-fdc3-4914-8f25-c349d6699423'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72887451', 'ctest-vn4-00081779'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72887451', 'ctest-policy1-97409889']], 'subnet_ipam': [{'subnet_cidr': '165.181.128.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2298:c19c:2598:2947:63a1:87e7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-04 06:35:34,388 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-04 06:35:34,720 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-04 06:35:34,759 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a52616e4-e5b3-46e4-96d5-76760f6fc853 2026-06-04 06:35:34,776 - DEBUG - Requesting: http://10.0.0.38:8082/project/3230f16f-764c-45b6-b6ad-9d218860b461 2026-06-04 06:35:34,887 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a70e1ac3-bc05-4ea2-ae13-8a878e18060f 2026-06-04 06:35:34,904 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a70e1ac3-bc05-4ea2-ae13-8a878e18060f 2026-06-04 06:35:34,917 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6dfa641a-9bf4-4114-9972-4208cd04aaf7 2026-06-04 06:35:34,926 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6dfa641a-9bf4-4114-9972-4208cd04aaf7 2026-06-04 06:35:34,938 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/68c74598-b79c-4944-a434-5a08b7030dcc 2026-06-04 06:35:34,946 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-04 06:35:34,946 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a70e1ac3-bc05-4ea2-ae13-8a878e18060f 2026-06-04 06:35:34,957 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6dfa641a-9bf4-4114-9972-4208cd04aaf7 2026-06-04 06:35:34,988 - INFO - Verified VN network id 11 for VN a70e1ac3-bc05-4ea2-ae13-8a878e18060f 2026-06-04 06:35:34,988 - INFO - Verifications in API Server for VN ctest-vn4-00081779 passed 2026-06-04 06:35:34,988 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a70e1ac3-bc05-4ea2-ae13-8a878e18060f 2026-06-04 06:35:34,999 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6dfa641a-9bf4-4114-9972-4208cd04aaf7 2026-06-04 06:35:35,011 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6dfa641a-9bf4-4114-9972-4208cd04aaf7 2026-06-04 06:35:35,022 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/68c74598-b79c-4944-a434-5a08b7030dcc 2026-06-04 06:35:35,037 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72887451:ctest-vn4-00081779', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-72887451', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12037588281983323810', 'uuid-lslong': '12543521701966120463'}, 'enable': 'true', 'created': '2026-06-04T06:35:33', 'last-modified': '2026-06-04T06:35:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.819945'} 2026-06-04 06:35:35,044 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-04 06:35:35,050 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72887451:ctest-vn4-00081779', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-72887451', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12037588281983323810', 'uuid-lslong': '12543521701966120463'}, 'enable': 'true', 'created': '2026-06-04T06:35:33', 'last-modified': '2026-06-04T06:35:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.824281'} 2026-06-04 06:35:35,059 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-04 06:35:35,066 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72887451:ctest-vn4-00081779', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-72887451', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12037588281983323810', 'uuid-lslong': '12543521701966120463'}, 'enable': 'true', 'created': '2026-06-04T06:35:33', 'last-modified': '2026-06-04T06:35:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.853450'} 2026-06-04 06:35:35,075 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-04 06:35:35,075 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-00081779 passed 2026-06-04 06:35:35,075 - DEBUG - ====Verifying policy data for ctest-vn4-00081779 in API_Server ====== 2026-06-04 06:35:35,075 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-04 06:35:35,083 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a52616e4-e5b3-46e4-96d5-76760f6fc853 2026-06-04 06:35:35,096 - DEBUG - Requesting: http://10.0.0.38:8082/project/3230f16f-764c-45b6-b6ad-9d218860b461 2026-06-04 06:35:35,205 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a70e1ac3-bc05-4ea2-ae13-8a878e18060f 2026-06-04 06:35:35,217 - DEBUG - ==>Verifying data for policy with id: 23c3cfbe-fd3b-49ba-96c2-fd7e1d0d31a5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72887451', 'ctest-policy1-97409889'] 2026-06-04 06:35:35,217 - INFO - VN ctest-vn4-00081779 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-04 06:35:35,217 - DEBUG - Verifying the vn in opserver 2026-06-04 06:35:35,217 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72887451:ctest-vn4-00081779 virtual network link through opserver 10.0.0.38 2026-06-04 06:35:35,217 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-04 06:35:35,516 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-04 06:35:35,606 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72887451:ctest-vn4-00081779', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72887451:ctest-vn4-00081779?flat'} 2026-06-04 06:35:35,606 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72887451:ctest-vn4-00081779 virtual network link through opserver 10.0.0.50 2026-06-04 06:35:35,606 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-04 06:35:35,920 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-04 06:35:35,998 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72887451:ctest-vn4-00081779', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72887451:ctest-vn4-00081779?flat'} 2026-06-04 06:35:35,998 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72887451:ctest-vn4-00081779 virtual network link through opserver 10.0.0.33 2026-06-04 06:35:35,999 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-04 06:35:36,300 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-04 06:35:36,368 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72887451:ctest-vn4-00081779', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72887451:ctest-vn4-00081779?flat'} 2026-06-04 06:35:36,368 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72887451:ctest-vn4-00081779 is found in opserver 2026-06-04 06:35:36,391 - DEBUG - Do not have enough data to verify VN in agent 2026-06-04 06:35:36,402 - DEBUG - VRF ids for VN ctest-vn4-00081779: {} 2026-06-04 06:35:36,403 - DEBUG - ====Verifying data for ctest-policy1-97409889 in API_Server ====== 2026-06-04 06:35:36,403 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-04 06:35:36,410 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a52616e4-e5b3-46e4-96d5-76760f6fc853 2026-06-04 06:35:36,425 - DEBUG - Requesting: http://10.0.0.38:8082/project/3230f16f-764c-45b6-b6ad-9d218860b461 2026-06-04 06:35:36,523 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/23c3cfbe-fd3b-49ba-96c2-fd7e1d0d31a5 2026-06-04 06:35:36,540 - INFO - Verified policy ctest-policy1-97409889 in API Server, Result: True 2026-06-04 06:35:36,541 - INFO - Done with setup and verification, moving onto test .. 2026-06-04 06:35:36,552 - INFO - Deleting VN ctest-vn4-00081779 2026-06-04 06:35:36,784 - DEBUG - Response for deleting network () 2026-06-04 06:35:36,784 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6dfa641a-9bf4-4114-9972-4208cd04aaf7 2026-06-04 06:35:36,791 - DEBUG - Response Code: 404 2026-06-04 06:35:36,791 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-04 06:35:36,805 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a52616e4-e5b3-46e4-96d5-76760f6fc853 2026-06-04 06:35:36,828 - DEBUG - Requesting: http://10.0.0.38:8082/project/3230f16f-764c-45b6-b6ad-9d218860b461 2026-06-04 06:35:36,941 - INFO - Validated that VN ctest-vn4-00081779 is not found in API Server 2026-06-04 06:35:36,955 - DEBUG - VN ctest-vn4-00081779 is not present in Agent 10.0.0.249 2026-06-04 06:35:36,969 - DEBUG - VN ctest-vn4-00081779 is not present in Agent 10.0.0.22 2026-06-04 06:35:36,969 - INFO - Validated that VN ctest-vn4-00081779 is not in any agent 2026-06-04 06:35:37,006 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-00081779 info 2026-06-04 06:35:37,050 - INFO - Deleted policy ctest-policy1-97409889 2026-06-04 06:35:37,260 - DEBUG - policy ctest-policy1-97409889 is not found in API Server 2026-06-04 06:35:38,578 - DEBUG - No XMPP flaps were noticed during the test 2026-06-04 06:35:38,578 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2026-06-04 06:35:38,578 - INFO - -------------------------------------------------------------------------------- 2026-06-04 06:35:39,873 - DEBUG - No XMPP flaps were noticed during the test 2026-06-04 06:35:39,873 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-06-04 06:35:39,873 - INFO - -------------------------------------------------------------------------------- 2026-06-04 06:35:40,704 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-72887451, ID : 3230f16f-764c-45b6-b6ad-9d218860b461