2025-10-30 02:39:51,108 - INFO - Domain Default found not creating 2025-10-30 02:39:51,254 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-21822043 not found, creating it 2025-10-30 02:39:51,882 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-21822043, ID : c9c79c94-5388-40f3-8a41-c413cd482fa7 2025-10-30 02:39:53,337 - INFO - ================================================================================ 2025-10-30 02:39:53,338 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 02:39:54,611 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.131': '0', '10.20.0.254': '0'}, '10.0.0.65': {'10.20.0.254': '0', '10.20.0.131': '0'}} with 2025-10-30 02:39:54,611 - INFO - Initial checks done. Running the testcase now 2025-10-30 02:39:54,611 - INFO - 2025-10-30 02:39:54,611 - INFO - ================================================================================ 2025-10-30 02:39:54,611 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 02:39:54,611 - 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. 2025-10-30 02:39:55,892 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.131': '0', '10.20.0.254': '0'}, '10.0.0.65': {'10.20.0.254': '0', '10.20.0.131': '0'}} with 2025-10-30 02:39:55,892 - INFO - Initial checks done. Running the testcase now 2025-10-30 02:39:55,892 - INFO - 2025-10-30 02:39:56,266 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21822043:ctest-vn4-96878815, 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-21822043:ctest-vn4-96878815, 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-21822043:ctest-vn4-96878815, 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-21822043:ctest-vn4-96878815, 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] 2025-10-30 02:39:56,893 - DEBUG - Response for create_network : {'network': {'id': '9e61325c-cfeb-4b0d-9ca7-f4e12421b6de', 'name': 'ctest-vn4-96878815', 'tenant_id': 'c9c79c94538840f38a41c413cd482fa7', 'project_id': 'c9c79c94538840f38a41c413cd482fa7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21822043', 'ctest-vn4-96878815'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 02:39:57,198 - DEBUG - Response for create_subnet : {'subnet': {'id': '74023fb9-dfa9-4fdc-954e-2380a75c8e2b', 'name': '', 'tenant_id': 'c9c79c94538840f38a41c413cd482fa7', 'network_id': '9e61325c-cfeb-4b0d-9ca7-f4e12421b6de', 'ip_version': 4, 'cidr': '154.39.25.0/26', 'allocation_pools': [{'start': '154.39.25.2', 'end': '154.39.25.62'}], 'gateway_ip': '154.39.25.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.39.25.2', 'tags': [], 'project_id': 'c9c79c94538840f38a41c413cd482fa7'}} 2025-10-30 02:39:57,428 - DEBUG - Response for create_subnet : {'subnet': {'id': '98059256-cee7-42dd-b154-53f09b8157b4', 'name': '', 'tenant_id': 'c9c79c94538840f38a41c413cd482fa7', 'network_id': '9e61325c-cfeb-4b0d-9ca7-f4e12421b6de', 'ip_version': 6, 'cidr': '24ca:3d0d:4d7e:c928:47c7:9d25::/96', 'allocation_pools': [{'start': '24ca:3d0d:4d7e:c928:47c7:9d25:0:2', 'end': '24ca:3d0d:4d7e:c928:47c7:9d25:ffff:fffe'}], 'gateway_ip': '24ca:3d0d:4d7e:c928:47c7:9d25:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24ca:3d0d:4d7e:c928:47c7:9d25:0:2', 'tags': [], 'project_id': 'c9c79c94538840f38a41c413cd482fa7'}} 2025-10-30 02:39:57,455 - INFO - Created VN ctest-vn4-96878815 2025-10-30 02:39:57,468 - DEBUG - VN ctest-vn4-96878815 UUID is 9e61325c-cfeb-4b0d-9ca7-f4e12421b6de 2025-10-30 02:39:57,693 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9e61325c-cfeb-4b0d-9ca7-f4e12421b6de', 'name': 'ctest-vn4-96878815', 'tenant_id': 'c9c79c94538840f38a41c413cd482fa7', 'project_id': 'c9c79c94538840f38a41c413cd482fa7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['74023fb9-dfa9-4fdc-954e-2380a75c8e2b', '98059256-cee7-42dd-b154-53f09b8157b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21822043', 'ctest-vn4-96878815'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21822043', 'ctest-policy1-70166899']], 'subnet_ipam': [{'subnet_cidr': '154.39.25.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '24ca:3d0d:4d7e:c928:47c7:9d25::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 02:39:57,799 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-30 02:39:58,098 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-30 02:39:58,125 - DEBUG - Requesting: http://10.0.0.242:8082/domain/2be6ea5e-665d-4a78-a8ec-f940f567f06f 2025-10-30 02:39:58,139 - DEBUG - Requesting: http://10.0.0.242:8082/project/c9c79c94-5388-40f3-8a41-c413cd482fa7 2025-10-30 02:39:58,236 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9e61325c-cfeb-4b0d-9ca7-f4e12421b6de 2025-10-30 02:39:58,248 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9e61325c-cfeb-4b0d-9ca7-f4e12421b6de 2025-10-30 02:39:58,257 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c4a31c3c-47c4-4d80-93f6-07b787a88a41 2025-10-30 02:39:58,265 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c4a31c3c-47c4-4d80-93f6-07b787a88a41 2025-10-30 02:39:58,272 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/865b7123-4904-44af-aa75-ca6e764b63de 2025-10-30 02:39:58,279 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 02:39:58,279 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9e61325c-cfeb-4b0d-9ca7-f4e12421b6de 2025-10-30 02:39:58,289 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c4a31c3c-47c4-4d80-93f6-07b787a88a41 2025-10-30 02:39:58,305 - INFO - Verified VN network id 13 for VN 9e61325c-cfeb-4b0d-9ca7-f4e12421b6de 2025-10-30 02:39:58,305 - INFO - Verifications in API Server for VN ctest-vn4-96878815 passed 2025-10-30 02:39:58,305 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9e61325c-cfeb-4b0d-9ca7-f4e12421b6de 2025-10-30 02:39:58,317 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c4a31c3c-47c4-4d80-93f6-07b787a88a41 2025-10-30 02:39:58,325 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c4a31c3c-47c4-4d80-93f6-07b787a88a41 2025-10-30 02:39:58,333 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/865b7123-4904-44af-aa75-ca6e764b63de 2025-10-30 02:39:58,346 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21822043:ctest-vn4-96878815', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-21822043', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11412458304940231437', 'uuid-lslong': '11288260238838445790'}, 'enable': 'true', 'created': '2025-10-30T02:39:56', 'last-modified': '2025-10-30T02:39:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.715484'} 2025-10-30 02:39:58,352 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 02:39:58,357 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21822043:ctest-vn4-96878815', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-21822043', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11412458304940231437', 'uuid-lslong': '11288260238838445790'}, 'enable': 'true', 'created': '2025-10-30T02:39:56', 'last-modified': '2025-10-30T02:39:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.727715'} 2025-10-30 02:39:58,364 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 02:39:58,370 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21822043:ctest-vn4-96878815', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-21822043', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11412458304940231437', 'uuid-lslong': '11288260238838445790'}, 'enable': 'true', 'created': '2025-10-30T02:39:56', 'last-modified': '2025-10-30T02:39:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.732282'} 2025-10-30 02:39:58,376 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 02:39:58,376 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-96878815 passed 2025-10-30 02:39:58,376 - DEBUG - ====Verifying policy data for ctest-vn4-96878815 in API_Server ====== 2025-10-30 02:39:58,376 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-30 02:39:58,383 - DEBUG - Requesting: http://10.0.0.242:8082/domain/2be6ea5e-665d-4a78-a8ec-f940f567f06f 2025-10-30 02:39:58,396 - DEBUG - Requesting: http://10.0.0.242:8082/project/c9c79c94-5388-40f3-8a41-c413cd482fa7 2025-10-30 02:39:58,492 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9e61325c-cfeb-4b0d-9ca7-f4e12421b6de 2025-10-30 02:39:58,504 - DEBUG - ==>Verifying data for policy with id: ffeb7b6b-be7e-40e1-9c2f-16f87b60a714, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21822043', 'ctest-policy1-70166899'] 2025-10-30 02:39:58,504 - INFO - VN ctest-vn4-96878815 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 02:39:58,504 - DEBUG - Verifying the vn in opserver 2025-10-30 02:39:58,504 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21822043:ctest-vn4-96878815 virtual network link through opserver 10.0.0.242 2025-10-30 02:39:58,504 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-30 02:39:58,807 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-30 02:39:58,867 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21822043:ctest-vn4-96878815', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21822043:ctest-vn4-96878815?flat'} 2025-10-30 02:39:58,867 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21822043:ctest-vn4-96878815 virtual network link through opserver 10.0.0.254 2025-10-30 02:39:58,867 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-30 02:39:59,164 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-30 02:39:59,246 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21822043:ctest-vn4-96878815', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21822043:ctest-vn4-96878815?flat'} 2025-10-30 02:39:59,246 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21822043:ctest-vn4-96878815 virtual network link through opserver 10.0.0.240 2025-10-30 02:39:59,247 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2025-10-30 02:39:59,617 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2025-10-30 02:39:59,690 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21822043:ctest-vn4-96878815', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21822043:ctest-vn4-96878815?flat'} 2025-10-30 02:39:59,690 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21822043:ctest-vn4-96878815 is found in opserver 2025-10-30 02:39:59,710 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 02:39:59,720 - DEBUG - VRF ids for VN ctest-vn4-96878815: {} 2025-10-30 02:39:59,720 - DEBUG - ====Verifying data for ctest-policy1-70166899 in API_Server ====== 2025-10-30 02:39:59,720 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-30 02:39:59,726 - DEBUG - Requesting: http://10.0.0.242:8082/domain/2be6ea5e-665d-4a78-a8ec-f940f567f06f 2025-10-30 02:39:59,740 - DEBUG - Requesting: http://10.0.0.242:8082/project/c9c79c94-5388-40f3-8a41-c413cd482fa7 2025-10-30 02:39:59,837 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/ffeb7b6b-be7e-40e1-9c2f-16f87b60a714 2025-10-30 02:39:59,849 - INFO - Verified policy ctest-policy1-70166899 in API Server, Result: True 2025-10-30 02:39:59,849 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 02:39:59,861 - INFO - Deleting VN ctest-vn4-96878815 2025-10-30 02:40:00,109 - DEBUG - Response for deleting network () 2025-10-30 02:40:00,110 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c4a31c3c-47c4-4d80-93f6-07b787a88a41 2025-10-30 02:40:00,116 - DEBUG - Response Code: 404 2025-10-30 02:40:00,116 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-30 02:40:00,122 - DEBUG - Requesting: http://10.0.0.242:8082/domain/2be6ea5e-665d-4a78-a8ec-f940f567f06f 2025-10-30 02:40:00,176 - DEBUG - Requesting: http://10.0.0.242:8082/project/c9c79c94-5388-40f3-8a41-c413cd482fa7 2025-10-30 02:40:00,273 - INFO - Validated that VN ctest-vn4-96878815 is not found in API Server 2025-10-30 02:40:00,284 - DEBUG - VN ctest-vn4-96878815 is not present in Agent 10.0.0.129 2025-10-30 02:40:00,293 - DEBUG - VN ctest-vn4-96878815 is not present in Agent 10.0.0.65 2025-10-30 02:40:00,293 - INFO - Validated that VN ctest-vn4-96878815 is not in any agent 2025-10-30 02:40:00,325 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-96878815 info 2025-10-30 02:40:00,366 - INFO - Deleted policy ctest-policy1-70166899 2025-10-30 02:40:00,556 - DEBUG - policy ctest-policy1-70166899 is not found in API Server 2025-10-30 02:40:01,870 - DEBUG - No XMPP flaps were noticed during the test 2025-10-30 02:40:01,870 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2025-10-30 02:40:01,870 - INFO - -------------------------------------------------------------------------------- 2025-10-30 02:40:03,148 - DEBUG - No XMPP flaps were noticed during the test 2025-10-30 02:40:03,148 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2025-10-30 02:40:03,148 - INFO - -------------------------------------------------------------------------------- 2025-10-30 02:40:03,908 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-21822043, ID : c9c79c94-5388-40f3-8a41-c413cd482fa7