2026-01-01 02:22:59,347 - INFO - Domain Default found not creating 2026-01-01 02:22:59,561 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71997340 not found, creating it 2026-01-01 02:23:00,120 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71997340, ID : 75f115ea-68dd-4c6c-9d8c-74d1673ef9dc 2026-01-01 02:23:01,854 - INFO - ================================================================================ 2026-01-01 02:23:01,854 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-01 02:23:03,129 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.14': '0', '10.20.0.18': '0'}, '10.0.0.23': {'10.20.0.14': '0', '10.20.0.18': '0'}} with 2026-01-01 02:23:03,129 - INFO - Initial checks done. Running the testcase now 2026-01-01 02:23:03,129 - INFO - 2026-01-01 02:23:03,129 - INFO - ================================================================================ 2026-01-01 02:23:03,129 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-01 02:23:03,130 - 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-01-01 02:23:04,428 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.14': '0', '10.20.0.18': '0'}, '10.0.0.23': {'10.20.0.14': '0', '10.20.0.18': '0'}} with 2026-01-01 02:23:04,429 - INFO - Initial checks done. Running the testcase now 2026-01-01 02:23:04,429 - INFO - 2026-01-01 02:23:04,781 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71997340:ctest-vn4-14330342, 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-71997340:ctest-vn4-14330342, 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-71997340:ctest-vn4-14330342, 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-71997340:ctest-vn4-14330342, 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-01-01 02:23:05,412 - DEBUG - Response for create_network : {'network': {'id': 'cd895c1a-a614-4d99-9e9e-9a0ab7c12405', 'name': 'ctest-vn4-14330342', 'tenant_id': '75f115ea68dd4c6c9d8c74d1673ef9dc', 'project_id': '75f115ea68dd4c6c9d8c74d1673ef9dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71997340', 'ctest-vn4-14330342'], 'port_security_enabled': True, 'description': ''}} 2026-01-01 02:23:05,747 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e943681f-8960-4d77-95f1-7d4746610f99', 'name': '', 'tenant_id': '75f115ea68dd4c6c9d8c74d1673ef9dc', 'network_id': 'cd895c1a-a614-4d99-9e9e-9a0ab7c12405', 'ip_version': 4, 'cidr': '192.78.75.0/26', 'allocation_pools': [{'start': '192.78.75.2', 'end': '192.78.75.62'}], 'gateway_ip': '192.78.75.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.78.75.2', 'tags': [], 'project_id': '75f115ea68dd4c6c9d8c74d1673ef9dc'}} 2026-01-01 02:23:05,959 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ea37ec6-14d6-42fe-9670-69a966b949e6', 'name': '', 'tenant_id': '75f115ea68dd4c6c9d8c74d1673ef9dc', 'network_id': 'cd895c1a-a614-4d99-9e9e-9a0ab7c12405', 'ip_version': 6, 'cidr': '329d:870c:9a31:f9ef:fc15:f4c4::/96', 'allocation_pools': [{'start': '329d:870c:9a31:f9ef:fc15:f4c4:0:2', 'end': '329d:870c:9a31:f9ef:fc15:f4c4:ffff:fffe'}], 'gateway_ip': '329d:870c:9a31:f9ef:fc15:f4c4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '329d:870c:9a31:f9ef:fc15:f4c4:0:2', 'tags': [], 'project_id': '75f115ea68dd4c6c9d8c74d1673ef9dc'}} 2026-01-01 02:23:05,986 - INFO - Created VN ctest-vn4-14330342 2026-01-01 02:23:05,999 - DEBUG - VN ctest-vn4-14330342 UUID is cd895c1a-a614-4d99-9e9e-9a0ab7c12405 2026-01-01 02:23:06,244 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cd895c1a-a614-4d99-9e9e-9a0ab7c12405', 'name': 'ctest-vn4-14330342', 'tenant_id': '75f115ea68dd4c6c9d8c74d1673ef9dc', 'project_id': '75f115ea68dd4c6c9d8c74d1673ef9dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e943681f-8960-4d77-95f1-7d4746610f99', '7ea37ec6-14d6-42fe-9670-69a966b949e6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71997340', 'ctest-vn4-14330342'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71997340', 'ctest-policy1-86948990']], 'subnet_ipam': [{'subnet_cidr': '192.78.75.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '329d:870c:9a31:f9ef:fc15:f4c4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-01 02:23:06,357 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-01 02:23:06,667 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-01 02:23:06,703 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b5800509-dc40-4626-b491-badce4b95394 2026-01-01 02:23:06,719 - DEBUG - Requesting: http://10.0.0.38:8082/project/75f115ea-68dd-4c6c-9d8c-74d1673ef9dc 2026-01-01 02:23:06,827 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cd895c1a-a614-4d99-9e9e-9a0ab7c12405 2026-01-01 02:23:06,850 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cd895c1a-a614-4d99-9e9e-9a0ab7c12405 2026-01-01 02:23:06,864 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57cbc087-db01-4b35-976d-b663a52cfe2b 2026-01-01 02:23:06,874 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57cbc087-db01-4b35-976d-b663a52cfe2b 2026-01-01 02:23:06,883 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a0c0b2e3-8b0c-440a-8417-92bd1e77c88d 2026-01-01 02:23:06,893 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-01 02:23:06,893 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cd895c1a-a614-4d99-9e9e-9a0ab7c12405 2026-01-01 02:23:06,905 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57cbc087-db01-4b35-976d-b663a52cfe2b 2026-01-01 02:23:06,924 - INFO - Verified VN network id 14 for VN cd895c1a-a614-4d99-9e9e-9a0ab7c12405 2026-01-01 02:23:06,924 - INFO - Verifications in API Server for VN ctest-vn4-14330342 passed 2026-01-01 02:23:06,924 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cd895c1a-a614-4d99-9e9e-9a0ab7c12405 2026-01-01 02:23:06,936 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57cbc087-db01-4b35-976d-b663a52cfe2b 2026-01-01 02:23:06,945 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57cbc087-db01-4b35-976d-b663a52cfe2b 2026-01-01 02:23:06,954 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a0c0b2e3-8b0c-440a-8417-92bd1e77c88d 2026-01-01 02:23:06,969 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71997340:ctest-vn4-14330342', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71997340', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14810470119109840281', 'uuid-lslong': '11429742275136136197'}, 'enable': 'true', 'created': '2026-01-01T02:23:05', 'last-modified': '2026-01-01T02:23:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.782488'} 2026-01-01 02:23:06,976 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-01 02:23:06,982 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71997340:ctest-vn4-14330342', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71997340', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14810470119109840281', 'uuid-lslong': '11429742275136136197'}, 'enable': 'true', 'created': '2026-01-01T02:23:05', 'last-modified': '2026-01-01T02:23:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.800141'} 2026-01-01 02:23:06,989 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-01 02:23:06,995 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71997340:ctest-vn4-14330342', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71997340', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14810470119109840281', 'uuid-lslong': '11429742275136136197'}, 'enable': 'true', 'created': '2026-01-01T02:23:05', 'last-modified': '2026-01-01T02:23:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.812839'} 2026-01-01 02:23:07,004 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-01 02:23:07,004 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-14330342 passed 2026-01-01 02:23:07,004 - DEBUG - ====Verifying policy data for ctest-vn4-14330342 in API_Server ====== 2026-01-01 02:23:07,004 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-01 02:23:07,013 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b5800509-dc40-4626-b491-badce4b95394 2026-01-01 02:23:07,027 - DEBUG - Requesting: http://10.0.0.38:8082/project/75f115ea-68dd-4c6c-9d8c-74d1673ef9dc 2026-01-01 02:23:07,140 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cd895c1a-a614-4d99-9e9e-9a0ab7c12405 2026-01-01 02:23:07,162 - DEBUG - ==>Verifying data for policy with id: 7802cf48-b8fb-43cc-be8e-927a715c31dd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71997340', 'ctest-policy1-86948990'] 2026-01-01 02:23:07,163 - INFO - VN ctest-vn4-14330342 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-01 02:23:07,163 - DEBUG - Verifying the vn in opserver 2026-01-01 02:23:07,163 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71997340:ctest-vn4-14330342 virtual network link through opserver 10.0.0.38 2026-01-01 02:23:07,164 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-01 02:23:07,480 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-01 02:23:07,551 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71997340:ctest-vn4-14330342', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71997340:ctest-vn4-14330342?flat'} 2026-01-01 02:23:07,551 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71997340:ctest-vn4-14330342 virtual network link through opserver 10.0.0.249 2026-01-01 02:23:07,552 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-01 02:23:07,861 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-01 02:23:08,273 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71997340:ctest-vn4-14330342', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71997340:ctest-vn4-14330342?flat'} 2026-01-01 02:23:08,273 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71997340:ctest-vn4-14330342 virtual network link through opserver 10.0.0.27 2026-01-01 02:23:08,274 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-01 02:23:08,582 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-01 02:23:08,947 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71997340:ctest-vn4-14330342', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71997340:ctest-vn4-14330342?flat'} 2026-01-01 02:23:08,947 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71997340:ctest-vn4-14330342 is found in opserver 2026-01-01 02:23:08,971 - DEBUG - Do not have enough data to verify VN in agent 2026-01-01 02:23:08,982 - DEBUG - VRF ids for VN ctest-vn4-14330342: {} 2026-01-01 02:23:08,982 - DEBUG - ====Verifying data for ctest-policy1-86948990 in API_Server ====== 2026-01-01 02:23:08,982 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-01 02:23:08,988 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b5800509-dc40-4626-b491-badce4b95394 2026-01-01 02:23:08,999 - DEBUG - Requesting: http://10.0.0.38:8082/project/75f115ea-68dd-4c6c-9d8c-74d1673ef9dc 2026-01-01 02:23:09,099 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/7802cf48-b8fb-43cc-be8e-927a715c31dd 2026-01-01 02:23:09,109 - INFO - Verified policy ctest-policy1-86948990 in API Server, Result: True 2026-01-01 02:23:09,109 - INFO - Done with setup and verification, moving onto test .. 2026-01-01 02:23:09,120 - INFO - Deleting VN ctest-vn4-14330342 2026-01-01 02:23:09,353 - DEBUG - Response for deleting network () 2026-01-01 02:23:09,353 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57cbc087-db01-4b35-976d-b663a52cfe2b 2026-01-01 02:23:09,362 - DEBUG - Response Code: 404 2026-01-01 02:23:09,362 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-01 02:23:09,370 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b5800509-dc40-4626-b491-badce4b95394 2026-01-01 02:23:09,424 - DEBUG - Requesting: http://10.0.0.38:8082/project/75f115ea-68dd-4c6c-9d8c-74d1673ef9dc 2026-01-01 02:23:09,521 - INFO - Validated that VN ctest-vn4-14330342 is not found in API Server 2026-01-01 02:23:09,532 - DEBUG - VN ctest-vn4-14330342 is not present in Agent 10.0.0.242 2026-01-01 02:23:09,543 - DEBUG - VN ctest-vn4-14330342 is not present in Agent 10.0.0.23 2026-01-01 02:23:09,544 - INFO - Validated that VN ctest-vn4-14330342 is not in any agent 2026-01-01 02:23:09,578 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-14330342 info 2026-01-01 02:23:09,619 - INFO - Deleted policy ctest-policy1-86948990 2026-01-01 02:23:09,810 - DEBUG - policy ctest-policy1-86948990 is not found in API Server 2026-01-01 02:23:11,085 - DEBUG - No XMPP flaps were noticed during the test