2025-09-05 11:02:29,587 - INFO - Domain Default found not creating 2025-09-05 11:02:29,724 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-65055513 not found, creating it 2025-09-05 11:02:30,174 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-65055513, ID : 479743a2-2994-4283-89d5-9cbdd3bc676f 2025-09-05 11:02:31,564 - INFO - ================================================================================ 2025-09-05 11:02:31,564 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-05 11:02:31,818 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-09-05 11:02:31,818 - INFO - Initial checks done. Running the testcase now 2025-09-05 11:02:31,819 - INFO - 2025-09-05 11:02:31,819 - INFO - ================================================================================ 2025-09-05 11:02:31,819 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-05 11:02:31,819 - 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-05 11:02:32,105 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-09-05 11:02:32,105 - INFO - Initial checks done. Running the testcase now 2025-09-05 11:02:32,106 - INFO - 2025-09-05 11:02:32,457 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65055513:ctest-vn4-39120439, 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-65055513:ctest-vn4-39120439, 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-65055513:ctest-vn4-39120439, 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-65055513:ctest-vn4-39120439, 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-05 11:02:32,963 - DEBUG - Response for create_network : {'network': {'id': '9ee1e29a-fe4a-4fdb-a5f8-a8f9c1faa466', 'name': 'ctest-vn4-39120439', 'tenant_id': '479743a22994428389d59cbdd3bc676f', 'project_id': '479743a22994428389d59cbdd3bc676f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65055513', 'ctest-vn4-39120439'], 'port_security_enabled': True, 'description': ''}} 2025-09-05 11:02:33,151 - DEBUG - Response for create_subnet : {'subnet': {'id': '341cd61f-c29b-4a1d-b2e3-a6d046d0db41', 'name': '', 'tenant_id': '479743a22994428389d59cbdd3bc676f', 'network_id': '9ee1e29a-fe4a-4fdb-a5f8-a8f9c1faa466', 'ip_version': 4, 'cidr': '189.47.161.192/26', 'allocation_pools': [{'start': '189.47.161.194', 'end': '189.47.161.254'}], 'gateway_ip': '189.47.161.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.47.161.194', 'tags': [], 'project_id': '479743a22994428389d59cbdd3bc676f'}} 2025-09-05 11:02:33,345 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e4f44d2a-0477-4d9e-a6e0-2abfb62937ec', 'name': '', 'tenant_id': '479743a22994428389d59cbdd3bc676f', 'network_id': '9ee1e29a-fe4a-4fdb-a5f8-a8f9c1faa466', 'ip_version': 6, 'cidr': '2757:cab7:1367:f024:68c9:c182::/96', 'allocation_pools': [{'start': '2757:cab7:1367:f024:68c9:c182:0:2', 'end': '2757:cab7:1367:f024:68c9:c182:ffff:fffe'}], 'gateway_ip': '2757:cab7:1367:f024:68c9:c182:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2757:cab7:1367:f024:68c9:c182:0:2', 'tags': [], 'project_id': '479743a22994428389d59cbdd3bc676f'}} 2025-09-05 11:02:33,363 - INFO - Created VN ctest-vn4-39120439 2025-09-05 11:02:33,417 - DEBUG - VN ctest-vn4-39120439 UUID is 9ee1e29a-fe4a-4fdb-a5f8-a8f9c1faa466 2025-09-05 11:02:33,608 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9ee1e29a-fe4a-4fdb-a5f8-a8f9c1faa466', 'name': 'ctest-vn4-39120439', 'tenant_id': '479743a22994428389d59cbdd3bc676f', 'project_id': '479743a22994428389d59cbdd3bc676f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['341cd61f-c29b-4a1d-b2e3-a6d046d0db41', 'e4f44d2a-0477-4d9e-a6e0-2abfb62937ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65055513', 'ctest-vn4-39120439'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65055513', 'ctest-policy1-18016925']], 'subnet_ipam': [{'subnet_cidr': '189.47.161.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2757:cab7:1367:f024:68c9:c182::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-05 11:02:33,833 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-05 11:02:34,123 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-05 11:02:34,151 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f5eae07f-6a76-4102-b0b8-1be413eba3a1 2025-09-05 11:02:34,162 - DEBUG - Requesting: http://10.0.0.50:8082/project/479743a2-2994-4283-89d5-9cbdd3bc676f 2025-09-05 11:02:34,234 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9ee1e29a-fe4a-4fdb-a5f8-a8f9c1faa466 2025-09-05 11:02:34,246 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9ee1e29a-fe4a-4fdb-a5f8-a8f9c1faa466 2025-09-05 11:02:34,256 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ec274ea2-524b-4c4d-993c-13ccb23400cc 2025-09-05 11:02:34,264 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ec274ea2-524b-4c4d-993c-13ccb23400cc 2025-09-05 11:02:34,271 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/920e70d2-795a-4608-a784-d6d49af33789 2025-09-05 11:02:34,278 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-05 11:02:34,278 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9ee1e29a-fe4a-4fdb-a5f8-a8f9c1faa466 2025-09-05 11:02:34,288 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ec274ea2-524b-4c4d-993c-13ccb23400cc 2025-09-05 11:02:34,299 - INFO - Verified VN network id 12 for VN 9ee1e29a-fe4a-4fdb-a5f8-a8f9c1faa466 2025-09-05 11:02:34,300 - INFO - Verifications in API Server for VN ctest-vn4-39120439 passed 2025-09-05 11:02:34,300 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9ee1e29a-fe4a-4fdb-a5f8-a8f9c1faa466 2025-09-05 11:02:34,308 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ec274ea2-524b-4c4d-993c-13ccb23400cc 2025-09-05 11:02:34,314 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ec274ea2-524b-4c4d-993c-13ccb23400cc 2025-09-05 11:02:34,320 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/920e70d2-795a-4608-a784-d6d49af33789 2025-09-05 11:02:34,329 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65055513:ctest-vn4-39120439', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-65055513', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11448680883071635419', 'uuid-lslong': '11959494601137103974'}, 'enable': 'true', 'created': '2025-09-05T11:02:32', 'last-modified': '2025-09-05T11:02:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.746940'} 2025-09-05 11:02:34,335 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-05 11:02:34,335 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-39120439 passed 2025-09-05 11:02:34,335 - DEBUG - ====Verifying policy data for ctest-vn4-39120439 in API_Server ====== 2025-09-05 11:02:34,335 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-05 11:02:34,340 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f5eae07f-6a76-4102-b0b8-1be413eba3a1 2025-09-05 11:02:34,349 - DEBUG - Requesting: http://10.0.0.50:8082/project/479743a2-2994-4283-89d5-9cbdd3bc676f 2025-09-05 11:02:34,416 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9ee1e29a-fe4a-4fdb-a5f8-a8f9c1faa466 2025-09-05 11:02:34,425 - DEBUG - ==>Verifying data for policy with id: 126382aa-6db4-47eb-945d-df81a659baed, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65055513', 'ctest-policy1-18016925'] 2025-09-05 11:02:34,425 - INFO - VN ctest-vn4-39120439 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-05 11:02:34,425 - DEBUG - Verifying the vn in opserver 2025-09-05 11:02:34,425 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65055513:ctest-vn4-39120439 virtual network link through opserver 10.0.0.50 2025-09-05 11:02:34,426 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-09-05 11:02:34,717 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-09-05 11:02:34,772 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65055513:ctest-vn4-39120439', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65055513:ctest-vn4-39120439?flat'} 2025-09-05 11:02:34,772 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65055513:ctest-vn4-39120439 is found in opserver 2025-09-05 11:02:34,781 - DEBUG - Do not have enough data to verify VN in agent 2025-09-05 11:02:34,785 - DEBUG - VRF ids for VN ctest-vn4-39120439: {} 2025-09-05 11:02:34,785 - DEBUG - ====Verifying data for ctest-policy1-18016925 in API_Server ====== 2025-09-05 11:02:34,786 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-05 11:02:34,791 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f5eae07f-6a76-4102-b0b8-1be413eba3a1 2025-09-05 11:02:34,801 - DEBUG - Requesting: http://10.0.0.50:8082/project/479743a2-2994-4283-89d5-9cbdd3bc676f 2025-09-05 11:02:34,871 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/126382aa-6db4-47eb-945d-df81a659baed 2025-09-05 11:02:34,880 - INFO - Verified policy ctest-policy1-18016925 in API Server, Result: True 2025-09-05 11:02:34,880 - INFO - Done with setup and verification, moving onto test .. 2025-09-05 11:02:34,888 - INFO - Deleting VN ctest-vn4-39120439 2025-09-05 11:02:34,996 - DEBUG - Response for deleting network () 2025-09-05 11:02:34,996 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ec274ea2-524b-4c4d-993c-13ccb23400cc 2025-09-05 11:02:35,000 - DEBUG - Response Code: 404 2025-09-05 11:02:35,001 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-05 11:02:35,006 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f5eae07f-6a76-4102-b0b8-1be413eba3a1 2025-09-05 11:02:35,058 - DEBUG - Requesting: http://10.0.0.50:8082/project/479743a2-2994-4283-89d5-9cbdd3bc676f 2025-09-05 11:02:35,124 - INFO - Validated that VN ctest-vn4-39120439 is not found in API Server 2025-09-05 11:02:35,134 - DEBUG - VN ctest-vn4-39120439 is not present in Agent 10.0.0.50 2025-09-05 11:02:35,134 - INFO - Validated that VN ctest-vn4-39120439 is not in any agent 2025-09-05 11:02:35,146 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-39120439 info 2025-09-05 11:02:35,169 - INFO - Deleted policy ctest-policy1-18016925 2025-09-05 11:02:35,337 - DEBUG - policy ctest-policy1-18016925 is not found in API Server 2025-09-05 11:02:35,593 - DEBUG - No XMPP flaps were noticed during the test
2025-09-05 11:02:35,593 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-05 11:02:35,593 - INFO - -------------------------------------------------------------------------------- 2025-09-05 11:02:35,882 - DEBUG - No XMPP flaps were noticed during the test
2025-09-05 11:02:35,882 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-05 11:02:35,882 - INFO - -------------------------------------------------------------------------------- 2025-09-05 11:02:36,545 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-65055513, ID : 479743a2-2994-4283-89d5-9cbdd3bc676f