2025-10-27 15:31:02,422 - INFO - Domain Default found not creating 2025-10-27 15:31:02,623 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-90669868 not found, creating it 2025-10-27 15:31:03,210 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-90669868, ID : aa1bc122-025a-4f2d-96dd-8dfd391d9f0a 2025-10-27 15:31:04,759 - INFO - ================================================================================ 2025-10-27 15:31:04,759 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 15:31:05,037 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2025-10-27 15:31:05,037 - INFO - Initial checks done. Running the testcase now 2025-10-27 15:31:05,037 - INFO - 2025-10-27 15:31:05,037 - INFO - ================================================================================ 2025-10-27 15:31:05,037 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 15:31:05,037 - 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-27 15:31:05,325 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2025-10-27 15:31:05,325 - INFO - Initial checks done. Running the testcase now 2025-10-27 15:31:05,326 - INFO - 2025-10-27 15:31:05,736 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90669868:ctest-vn4-73528460, 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-90669868:ctest-vn4-73528460, 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-90669868:ctest-vn4-73528460, 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-90669868:ctest-vn4-73528460, 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-27 15:31:06,314 - DEBUG - Response for create_network : {'network': {'id': '23d25a5e-ef3a-42e5-8f00-23c8ee51975a', 'name': 'ctest-vn4-73528460', 'tenant_id': 'aa1bc122025a4f2d96dd8dfd391d9f0a', 'project_id': 'aa1bc122025a4f2d96dd8dfd391d9f0a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90669868', 'ctest-vn4-73528460'], 'port_security_enabled': True, 'description': ''}} 2025-10-27 15:31:06,553 - DEBUG - Response for create_subnet : {'subnet': {'id': '54ee154f-4da1-4583-9d0d-6cd6fd8e4cda', 'name': '', 'tenant_id': 'aa1bc122025a4f2d96dd8dfd391d9f0a', 'network_id': '23d25a5e-ef3a-42e5-8f00-23c8ee51975a', 'ip_version': 4, 'cidr': '19.122.70.64/26', 'allocation_pools': [{'start': '19.122.70.66', 'end': '19.122.70.126'}], 'gateway_ip': '19.122.70.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.122.70.66', 'tags': [], 'project_id': 'aa1bc122025a4f2d96dd8dfd391d9f0a'}} 2025-10-27 15:31:06,781 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd155b37d-ebc4-4c8a-af8c-ed261a9b3994', 'name': '', 'tenant_id': 'aa1bc122025a4f2d96dd8dfd391d9f0a', 'network_id': '23d25a5e-ef3a-42e5-8f00-23c8ee51975a', 'ip_version': 6, 'cidr': '2aaa:54d:616f:64d4:f2f3:17ac::/96', 'allocation_pools': [{'start': '2aaa:54d:616f:64d4:f2f3:17ac:0:2', 'end': '2aaa:54d:616f:64d4:f2f3:17ac:ffff:fffe'}], 'gateway_ip': '2aaa:54d:616f:64d4:f2f3:17ac:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2aaa:54d:616f:64d4:f2f3:17ac:0:2', 'tags': [], 'project_id': 'aa1bc122025a4f2d96dd8dfd391d9f0a'}} 2025-10-27 15:31:06,811 - INFO - Created VN ctest-vn4-73528460 2025-10-27 15:31:06,868 - DEBUG - VN ctest-vn4-73528460 UUID is 23d25a5e-ef3a-42e5-8f00-23c8ee51975a 2025-10-27 15:31:07,117 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '23d25a5e-ef3a-42e5-8f00-23c8ee51975a', 'name': 'ctest-vn4-73528460', 'tenant_id': 'aa1bc122025a4f2d96dd8dfd391d9f0a', 'project_id': 'aa1bc122025a4f2d96dd8dfd391d9f0a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['54ee154f-4da1-4583-9d0d-6cd6fd8e4cda', 'd155b37d-ebc4-4c8a-af8c-ed261a9b3994'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90669868', 'ctest-vn4-73528460'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90669868', 'ctest-policy1-18561763']], 'subnet_ipam': [{'subnet_cidr': '19.122.70.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2aaa:54d:616f:64d4:f2f3:17ac::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-27 15:31:07,288 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-27 15:31:07,590 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-27 15:31:07,625 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d76280c2-653c-4aba-871f-8168b1bbb601 2025-10-27 15:31:07,638 - DEBUG - Requesting: http://10.0.0.27:8082/project/aa1bc122-025a-4f2d-96dd-8dfd391d9f0a 2025-10-27 15:31:07,713 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/23d25a5e-ef3a-42e5-8f00-23c8ee51975a 2025-10-27 15:31:07,726 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/23d25a5e-ef3a-42e5-8f00-23c8ee51975a 2025-10-27 15:31:07,735 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/02d8af15-53fb-4d2d-9537-a881a78f8e59 2025-10-27 15:31:07,743 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/02d8af15-53fb-4d2d-9537-a881a78f8e59 2025-10-27 15:31:07,751 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/66f8e98a-dde1-4a49-a79e-87a349025c1b 2025-10-27 15:31:07,758 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 15:31:07,758 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/23d25a5e-ef3a-42e5-8f00-23c8ee51975a 2025-10-27 15:31:07,768 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/02d8af15-53fb-4d2d-9537-a881a78f8e59 2025-10-27 15:31:07,784 - INFO - Verified VN network id 11 for VN 23d25a5e-ef3a-42e5-8f00-23c8ee51975a 2025-10-27 15:31:07,784 - INFO - Verifications in API Server for VN ctest-vn4-73528460 passed 2025-10-27 15:31:07,785 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/23d25a5e-ef3a-42e5-8f00-23c8ee51975a 2025-10-27 15:31:07,795 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/02d8af15-53fb-4d2d-9537-a881a78f8e59 2025-10-27 15:31:07,803 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/02d8af15-53fb-4d2d-9537-a881a78f8e59 2025-10-27 15:31:07,812 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/66f8e98a-dde1-4a49-a79e-87a349025c1b 2025-10-27 15:31:07,825 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90669868:ctest-vn4-73528460', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-90669868', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2581224900223714021', 'uuid-lslong': '10304275293322450778'}, 'enable': 'true', 'created': '2025-10-27T15:31:06', 'last-modified': '2025-10-27T15:31:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.738969'} 2025-10-27 15:31:07,832 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 15:31:07,832 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-73528460 passed 2025-10-27 15:31:07,833 - DEBUG - ====Verifying policy data for ctest-vn4-73528460 in API_Server ====== 2025-10-27 15:31:07,833 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-27 15:31:07,839 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d76280c2-653c-4aba-871f-8168b1bbb601 2025-10-27 15:31:07,850 - DEBUG - Requesting: http://10.0.0.27:8082/project/aa1bc122-025a-4f2d-96dd-8dfd391d9f0a 2025-10-27 15:31:07,924 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/23d25a5e-ef3a-42e5-8f00-23c8ee51975a 2025-10-27 15:31:07,933 - DEBUG - ==>Verifying data for policy with id: fc1ffc85-3eca-4ed6-8790-436e34fdae11, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90669868', 'ctest-policy1-18561763'] 2025-10-27 15:31:07,933 - INFO - VN ctest-vn4-73528460 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-27 15:31:07,934 - DEBUG - Verifying the vn in opserver 2025-10-27 15:31:07,934 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90669868:ctest-vn4-73528460 virtual network link through opserver 10.0.0.27 2025-10-27 15:31:07,934 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-27 15:31:08,233 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-27 15:31:08,296 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90669868:ctest-vn4-73528460', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90669868:ctest-vn4-73528460?flat'} 2025-10-27 15:31:08,297 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90669868:ctest-vn4-73528460 is found in opserver 2025-10-27 15:31:08,307 - DEBUG - Do not have enough data to verify VN in agent 2025-10-27 15:31:08,312 - DEBUG - VRF ids for VN ctest-vn4-73528460: {} 2025-10-27 15:31:08,312 - DEBUG - ====Verifying data for ctest-policy1-18561763 in API_Server ====== 2025-10-27 15:31:08,313 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-27 15:31:08,318 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d76280c2-653c-4aba-871f-8168b1bbb601 2025-10-27 15:31:08,331 - DEBUG - Requesting: http://10.0.0.27:8082/project/aa1bc122-025a-4f2d-96dd-8dfd391d9f0a 2025-10-27 15:31:08,405 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/fc1ffc85-3eca-4ed6-8790-436e34fdae11 2025-10-27 15:31:08,416 - INFO - Verified policy ctest-policy1-18561763 in API Server, Result: True 2025-10-27 15:31:08,416 - INFO - Done with setup and verification, moving onto test .. 2025-10-27 15:31:08,424 - INFO - Deleting VN ctest-vn4-73528460 2025-10-27 15:31:08,546 - DEBUG - Response for deleting network () 2025-10-27 15:31:08,547 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/02d8af15-53fb-4d2d-9537-a881a78f8e59 2025-10-27 15:31:08,552 - DEBUG - Response Code: 404 2025-10-27 15:31:08,552 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-27 15:31:08,558 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d76280c2-653c-4aba-871f-8168b1bbb601 2025-10-27 15:31:08,614 - DEBUG - Requesting: http://10.0.0.27:8082/project/aa1bc122-025a-4f2d-96dd-8dfd391d9f0a 2025-10-27 15:31:08,684 - INFO - Validated that VN ctest-vn4-73528460 is not found in API Server 2025-10-27 15:31:08,696 - DEBUG - VN ctest-vn4-73528460 is not present in Agent 10.0.0.27 2025-10-27 15:31:08,696 - INFO - Validated that VN ctest-vn4-73528460 is not in any agent 2025-10-27 15:31:08,710 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-73528460 info 2025-10-27 15:31:08,736 - INFO - Deleted policy ctest-policy1-18561763 2025-10-27 15:31:08,900 - DEBUG - policy ctest-policy1-18561763 is not found in API Server 2025-10-27 15:31:09,174 - DEBUG - No XMPP flaps were noticed during the test 2025-10-27 15:31:09,174 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-27 15:31:09,174 - INFO - -------------------------------------------------------------------------------- 2025-10-27 15:31:09,463 - DEBUG - No XMPP flaps were noticed during the test 2025-10-27 15:31:09,463 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-10-27 15:31:09,463 - INFO - -------------------------------------------------------------------------------- 2025-10-27 15:31:10,184 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-90669868, ID : aa1bc122-025a-4f2d-96dd-8dfd391d9f0a