2025-09-18 23:52:19,966 - INFO - Domain Default found not creating 2025-09-18 23:52:20,128 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-20466322 not found, creating it 2025-09-18 23:52:20,606 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-20466322, ID : 9177457c-e142-40f6-ad11-79ddfb41d1a6 2025-09-18 23:52:22,034 - INFO - ================================================================================ 2025-09-18 23:52:22,035 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-18 23:52:22,290 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-09-18 23:52:22,290 - INFO - Initial checks done. Running the testcase now 2025-09-18 23:52:22,290 - INFO - 2025-09-18 23:52:22,290 - INFO - ================================================================================ 2025-09-18 23:52:22,290 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-18 23:52:22,290 - 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-09-18 23:52:22,592 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-09-18 23:52:22,592 - INFO - Initial checks done. Running the testcase now 2025-09-18 23:52:22,592 - INFO - 2025-09-18 23:52:22,933 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20466322:ctest-vn4-44329825, 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-20466322:ctest-vn4-44329825, 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-20466322:ctest-vn4-44329825, 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-20466322:ctest-vn4-44329825, 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-09-18 23:52:23,445 - DEBUG - Response for create_network : {'network': {'id': '875659bd-bd38-40c7-b12a-00b34db9a7f0', 'name': 'ctest-vn4-44329825', 'tenant_id': '9177457ce14240f6ad1179ddfb41d1a6', 'project_id': '9177457ce14240f6ad1179ddfb41d1a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20466322', 'ctest-vn4-44329825'], 'port_security_enabled': True, 'description': ''}} 2025-09-18 23:52:23,650 - DEBUG - Response for create_subnet : {'subnet': {'id': '753c9afb-ead3-4cfa-b299-517126e50849', 'name': '', 'tenant_id': '9177457ce14240f6ad1179ddfb41d1a6', 'network_id': '875659bd-bd38-40c7-b12a-00b34db9a7f0', 'ip_version': 4, 'cidr': '29.244.189.192/26', 'allocation_pools': [{'start': '29.244.189.194', 'end': '29.244.189.254'}], 'gateway_ip': '29.244.189.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.244.189.194', 'tags': [], 'project_id': '9177457ce14240f6ad1179ddfb41d1a6'}} 2025-09-18 23:52:23,834 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7b33a35-25ef-41b8-9fd1-9165bf0cdd7f', 'name': '', 'tenant_id': '9177457ce14240f6ad1179ddfb41d1a6', 'network_id': '875659bd-bd38-40c7-b12a-00b34db9a7f0', 'ip_version': 6, 'cidr': '2389:aa92:aa89:1c70:4d85:9df5::/96', 'allocation_pools': [{'start': '2389:aa92:aa89:1c70:4d85:9df5:0:2', 'end': '2389:aa92:aa89:1c70:4d85:9df5:ffff:fffe'}], 'gateway_ip': '2389:aa92:aa89:1c70:4d85:9df5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2389:aa92:aa89:1c70:4d85:9df5:0:2', 'tags': [], 'project_id': '9177457ce14240f6ad1179ddfb41d1a6'}} 2025-09-18 23:52:23,856 - INFO - Created VN ctest-vn4-44329825 2025-09-18 23:52:23,909 - DEBUG - VN ctest-vn4-44329825 UUID is 875659bd-bd38-40c7-b12a-00b34db9a7f0 2025-09-18 23:52:24,108 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '875659bd-bd38-40c7-b12a-00b34db9a7f0', 'name': 'ctest-vn4-44329825', 'tenant_id': '9177457ce14240f6ad1179ddfb41d1a6', 'project_id': '9177457ce14240f6ad1179ddfb41d1a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['753c9afb-ead3-4cfa-b299-517126e50849', 'f7b33a35-25ef-41b8-9fd1-9165bf0cdd7f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20466322', 'ctest-vn4-44329825'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20466322', 'ctest-policy1-70253060']], 'subnet_ipam': [{'subnet_cidr': '29.244.189.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2389:aa92:aa89:1c70:4d85:9df5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-18 23:52:24,277 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-18 23:52:24,570 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-18 23:52:24,598 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d789ab2d-28d2-4b01-a04e-f8ca66c076dd 2025-09-18 23:52:24,609 - DEBUG - Requesting: http://10.0.0.38:8082/project/9177457c-e142-40f6-ad11-79ddfb41d1a6 2025-09-18 23:52:24,691 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/875659bd-bd38-40c7-b12a-00b34db9a7f0 2025-09-18 23:52:24,703 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/875659bd-bd38-40c7-b12a-00b34db9a7f0 2025-09-18 23:52:24,712 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ec6a5ab-14c0-41ae-ae3d-e2465e128eb8 2025-09-18 23:52:24,719 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ec6a5ab-14c0-41ae-ae3d-e2465e128eb8 2025-09-18 23:52:24,724 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/03d3cf6c-75e2-461c-b1ab-f9b50ad1bf71 2025-09-18 23:52:24,729 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-18 23:52:24,729 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/875659bd-bd38-40c7-b12a-00b34db9a7f0 2025-09-18 23:52:24,737 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ec6a5ab-14c0-41ae-ae3d-e2465e128eb8 2025-09-18 23:52:24,812 - INFO - Verified VN network id 11 for VN 875659bd-bd38-40c7-b12a-00b34db9a7f0 2025-09-18 23:52:24,812 - INFO - Verifications in API Server for VN ctest-vn4-44329825 passed 2025-09-18 23:52:24,812 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/875659bd-bd38-40c7-b12a-00b34db9a7f0 2025-09-18 23:52:24,821 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ec6a5ab-14c0-41ae-ae3d-e2465e128eb8 2025-09-18 23:52:24,827 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ec6a5ab-14c0-41ae-ae3d-e2465e128eb8 2025-09-18 23:52:24,833 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/03d3cf6c-75e2-461c-b1ab-f9b50ad1bf71 2025-09-18 23:52:24,843 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20466322:ctest-vn4-44329825', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-20466322', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9752080714575659207', 'uuid-lslong': '12766016863838250992'}, 'enable': 'true', 'created': '2025-09-18T23:52:23', 'last-modified': '2025-09-18T23:52:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.759699'} 2025-09-18 23:52:24,849 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-18 23:52:24,849 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-44329825 passed 2025-09-18 23:52:24,850 - DEBUG - ====Verifying policy data for ctest-vn4-44329825 in API_Server ====== 2025-09-18 23:52:24,850 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-18 23:52:24,856 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d789ab2d-28d2-4b01-a04e-f8ca66c076dd 2025-09-18 23:52:24,866 - DEBUG - Requesting: http://10.0.0.38:8082/project/9177457c-e142-40f6-ad11-79ddfb41d1a6 2025-09-18 23:52:24,935 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/875659bd-bd38-40c7-b12a-00b34db9a7f0 2025-09-18 23:52:24,943 - DEBUG - ==>Verifying data for policy with id: d9fce466-c22a-467a-85b2-4bf708790932, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20466322', 'ctest-policy1-70253060'] 2025-09-18 23:52:24,943 - INFO - VN ctest-vn4-44329825 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-18 23:52:24,943 - DEBUG - Verifying the vn in opserver 2025-09-18 23:52:24,944 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20466322:ctest-vn4-44329825 virtual network link through opserver 10.0.0.38 2025-09-18 23:52:24,944 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-18 23:52:25,240 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-18 23:52:25,293 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20466322:ctest-vn4-44329825', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20466322:ctest-vn4-44329825?flat'} 2025-09-18 23:52:25,293 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20466322:ctest-vn4-44329825 is found in opserver 2025-09-18 23:52:25,303 - DEBUG - Do not have enough data to verify VN in agent 2025-09-18 23:52:25,308 - DEBUG - VRF ids for VN ctest-vn4-44329825: {} 2025-09-18 23:52:25,308 - DEBUG - ====Verifying data for ctest-policy1-70253060 in API_Server ====== 2025-09-18 23:52:25,308 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-18 23:52:25,314 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d789ab2d-28d2-4b01-a04e-f8ca66c076dd 2025-09-18 23:52:25,324 - DEBUG - Requesting: http://10.0.0.38:8082/project/9177457c-e142-40f6-ad11-79ddfb41d1a6 2025-09-18 23:52:25,393 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/d9fce466-c22a-467a-85b2-4bf708790932 2025-09-18 23:52:25,401 - INFO - Verified policy ctest-policy1-70253060 in API Server, Result: True 2025-09-18 23:52:25,401 - INFO - Done with setup and verification, moving onto test .. 2025-09-18 23:52:25,408 - INFO - Deleting VN ctest-vn4-44329825 2025-09-18 23:52:25,524 - DEBUG - Response for deleting network () 2025-09-18 23:52:25,524 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5ec6a5ab-14c0-41ae-ae3d-e2465e128eb8 2025-09-18 23:52:25,529 - DEBUG - Response Code: 404 2025-09-18 23:52:25,529 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-18 23:52:25,533 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d789ab2d-28d2-4b01-a04e-f8ca66c076dd 2025-09-18 23:52:25,589 - DEBUG - Requesting: http://10.0.0.38:8082/project/9177457c-e142-40f6-ad11-79ddfb41d1a6 2025-09-18 23:52:25,657 - INFO - Validated that VN ctest-vn4-44329825 is not found in API Server 2025-09-18 23:52:25,666 - DEBUG - VN ctest-vn4-44329825 is not present in Agent 10.0.0.38 2025-09-18 23:52:25,666 - INFO - Validated that VN ctest-vn4-44329825 is not in any agent 2025-09-18 23:52:25,678 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-44329825 info 2025-09-18 23:52:25,698 - INFO - Deleted policy ctest-policy1-70253060 2025-09-18 23:52:25,877 - DEBUG - policy ctest-policy1-70253060 is not found in API Server 2025-09-18 23:52:26,130 - DEBUG - No XMPP flaps were noticed during the test
2025-09-18 23:52:26,130 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-18 23:52:26,130 - INFO - -------------------------------------------------------------------------------- 2025-09-18 23:52:26,422 - DEBUG - No XMPP flaps were noticed during the test
2025-09-18 23:52:26,422 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-18 23:52:26,422 - INFO - -------------------------------------------------------------------------------- 2025-09-18 23:52:27,099 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-20466322, ID : 9177457c-e142-40f6-ad11-79ddfb41d1a6