2025-08-08 09:54:01,062 - INFO - Domain Default found not creating 2025-08-08 09:54:01,240 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06445693 not found, creating it 2025-08-08 09:54:01,716 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06445693, ID : d1086765-1e51-4b8a-9e60-a515e4b2c5cf 2025-08-08 09:54:03,229 - INFO - ================================================================================ 2025-08-08 09:54:03,229 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-08 09:54:03,486 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.252': '0'}} with 2025-08-08 09:54:03,486 - INFO - Initial checks done. Running the testcase now 2025-08-08 09:54:03,486 - INFO - 2025-08-08 09:54:03,486 - INFO - ================================================================================ 2025-08-08 09:54:03,486 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-08 09:54:03,486 - 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-08-08 09:54:03,785 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.252': '0'}} with 2025-08-08 09:54:03,785 - INFO - Initial checks done. Running the testcase now 2025-08-08 09:54:03,785 - INFO - 2025-08-08 09:54:04,137 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06445693:ctest-vn4-96657058, 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-06445693:ctest-vn4-96657058, 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-06445693:ctest-vn4-96657058, 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-06445693:ctest-vn4-96657058, 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-08-08 09:54:04,668 - DEBUG - Response for create_network : {'network': {'id': '6ba099ca-e180-47f1-8710-65719bf8bdb6', 'name': 'ctest-vn4-96657058', 'tenant_id': 'd10867651e514b8a9e60a515e4b2c5cf', 'project_id': 'd10867651e514b8a9e60a515e4b2c5cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06445693', 'ctest-vn4-96657058'], 'port_security_enabled': True, 'description': ''}} 2025-08-08 09:54:04,882 - DEBUG - Response for create_subnet : {'subnet': {'id': '64176bc1-ef43-4221-ad19-1967c019d9c1', 'name': '', 'tenant_id': 'd10867651e514b8a9e60a515e4b2c5cf', 'network_id': '6ba099ca-e180-47f1-8710-65719bf8bdb6', 'ip_version': 4, 'cidr': '66.65.186.64/26', 'allocation_pools': [{'start': '66.65.186.66', 'end': '66.65.186.126'}], 'gateway_ip': '66.65.186.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.65.186.66', 'tags': [], 'project_id': 'd10867651e514b8a9e60a515e4b2c5cf'}} 2025-08-08 09:54:05,206 - DEBUG - Response for create_subnet : {'subnet': {'id': '255a392c-9f47-4cfe-91f8-94ad8c5cd060', 'name': '', 'tenant_id': 'd10867651e514b8a9e60a515e4b2c5cf', 'network_id': '6ba099ca-e180-47f1-8710-65719bf8bdb6', 'ip_version': 6, 'cidr': '3bb4:3781:db20:9a53:e881:b02::/96', 'allocation_pools': [{'start': '3bb4:3781:db20:9a53:e881:b02:0:2', 'end': '3bb4:3781:db20:9a53:e881:b02:ffff:fffe'}], 'gateway_ip': '3bb4:3781:db20:9a53:e881:b02:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3bb4:3781:db20:9a53:e881:b02:0:2', 'tags': [], 'project_id': 'd10867651e514b8a9e60a515e4b2c5cf'}} 2025-08-08 09:54:05,236 - INFO - Created VN ctest-vn4-96657058 2025-08-08 09:54:05,300 - DEBUG - VN ctest-vn4-96657058 UUID is 6ba099ca-e180-47f1-8710-65719bf8bdb6 2025-08-08 09:54:05,623 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6ba099ca-e180-47f1-8710-65719bf8bdb6', 'name': 'ctest-vn4-96657058', 'tenant_id': 'd10867651e514b8a9e60a515e4b2c5cf', 'project_id': 'd10867651e514b8a9e60a515e4b2c5cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64176bc1-ef43-4221-ad19-1967c019d9c1', '255a392c-9f47-4cfe-91f8-94ad8c5cd060'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06445693', 'ctest-vn4-96657058'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06445693', 'ctest-policy1-32228452']], 'subnet_ipam': [{'subnet_cidr': '66.65.186.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3bb4:3781:db20:9a53:e881:b02::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-08 09:54:05,764 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-08 09:54:06,067 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-08 09:54:06,099 - DEBUG - Requesting: http://10.0.0.19:8082/domain/c3134b19-a992-456a-b41b-028373c69cd2 2025-08-08 09:54:06,119 - DEBUG - Requesting: http://10.0.0.19:8082/project/d1086765-1e51-4b8a-9e60-a515e4b2c5cf 2025-08-08 09:54:06,199 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6ba099ca-e180-47f1-8710-65719bf8bdb6 2025-08-08 09:54:06,213 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6ba099ca-e180-47f1-8710-65719bf8bdb6 2025-08-08 09:54:06,225 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/b4cb2f49-a2d9-4968-9217-ef7cc961cfd3 2025-08-08 09:54:06,235 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/b4cb2f49-a2d9-4968-9217-ef7cc961cfd3 2025-08-08 09:54:06,244 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/16559bd0-a481-41c0-86b7-e0730252508d 2025-08-08 09:54:06,252 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-08 09:54:06,252 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6ba099ca-e180-47f1-8710-65719bf8bdb6 2025-08-08 09:54:06,263 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/b4cb2f49-a2d9-4968-9217-ef7cc961cfd3 2025-08-08 09:54:06,279 - INFO - Verified VN network id 10 for VN 6ba099ca-e180-47f1-8710-65719bf8bdb6 2025-08-08 09:54:06,279 - INFO - Verifications in API Server for VN ctest-vn4-96657058 passed 2025-08-08 09:54:06,279 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6ba099ca-e180-47f1-8710-65719bf8bdb6 2025-08-08 09:54:06,291 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/b4cb2f49-a2d9-4968-9217-ef7cc961cfd3 2025-08-08 09:54:06,300 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/b4cb2f49-a2d9-4968-9217-ef7cc961cfd3 2025-08-08 09:54:06,309 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/16559bd0-a481-41c0-86b7-e0730252508d 2025-08-08 09:54:06,325 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06445693:ctest-vn4-96657058', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06445693', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7755367654977718257', 'uuid-lslong': '9732390333370121654'}, 'enable': 'true', 'created': '2025-08-08T09:54:04', 'last-modified': '2025-08-08T09:54:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.747274'} 2025-08-08 09:54:06,332 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-08 09:54:06,332 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-96657058 passed 2025-08-08 09:54:06,332 - DEBUG - ====Verifying policy data for ctest-vn4-96657058 in API_Server ====== 2025-08-08 09:54:06,332 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-08 09:54:06,339 - DEBUG - Requesting: http://10.0.0.19:8082/domain/c3134b19-a992-456a-b41b-028373c69cd2 2025-08-08 09:54:06,351 - DEBUG - Requesting: http://10.0.0.19:8082/project/d1086765-1e51-4b8a-9e60-a515e4b2c5cf 2025-08-08 09:54:06,425 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6ba099ca-e180-47f1-8710-65719bf8bdb6 2025-08-08 09:54:06,436 - DEBUG - ==>Verifying data for policy with id: 90e41049-6fb5-4cd4-baca-0f4b8adf8ed7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06445693', 'ctest-policy1-32228452'] 2025-08-08 09:54:06,436 - INFO - VN ctest-vn4-96657058 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-08 09:54:06,436 - DEBUG - Verifying the vn in opserver 2025-08-08 09:54:06,436 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06445693:ctest-vn4-96657058 virtual network link through opserver 10.0.0.19 2025-08-08 09:54:06,436 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-08 09:54:06,730 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-08 09:54:06,798 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06445693:ctest-vn4-96657058', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06445693:ctest-vn4-96657058?flat'} 2025-08-08 09:54:06,798 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06445693:ctest-vn4-96657058 is found in opserver 2025-08-08 09:54:06,810 - DEBUG - Do not have enough data to verify VN in agent 2025-08-08 09:54:06,816 - DEBUG - VRF ids for VN ctest-vn4-96657058: {} 2025-08-08 09:54:06,817 - DEBUG - ====Verifying data for ctest-policy1-32228452 in API_Server ====== 2025-08-08 09:54:06,817 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-08 09:54:06,823 - DEBUG - Requesting: http://10.0.0.19:8082/domain/c3134b19-a992-456a-b41b-028373c69cd2 2025-08-08 09:54:06,835 - DEBUG - Requesting: http://10.0.0.19:8082/project/d1086765-1e51-4b8a-9e60-a515e4b2c5cf 2025-08-08 09:54:06,905 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/90e41049-6fb5-4cd4-baca-0f4b8adf8ed7 2025-08-08 09:54:06,918 - INFO - Verified policy ctest-policy1-32228452 in API Server, Result: True 2025-08-08 09:54:06,918 - INFO - Done with setup and verification, moving onto test .. 2025-08-08 09:54:06,927 - INFO - Deleting VN ctest-vn4-96657058 2025-08-08 09:54:07,066 - DEBUG - Response for deleting network () 2025-08-08 09:54:07,066 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/b4cb2f49-a2d9-4968-9217-ef7cc961cfd3 2025-08-08 09:54:07,073 - DEBUG - Response Code: 404 2025-08-08 09:54:07,073 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-08 09:54:07,081 - DEBUG - Requesting: http://10.0.0.19:8082/domain/c3134b19-a992-456a-b41b-028373c69cd2 2025-08-08 09:54:07,138 - DEBUG - Requesting: http://10.0.0.19:8082/project/d1086765-1e51-4b8a-9e60-a515e4b2c5cf 2025-08-08 09:54:07,212 - INFO - Validated that VN ctest-vn4-96657058 is not found in API Server 2025-08-08 09:54:07,224 - DEBUG - VN ctest-vn4-96657058 is not present in Agent 10.0.0.19 2025-08-08 09:54:07,224 - INFO - Validated that VN ctest-vn4-96657058 is not in any agent 2025-08-08 09:54:07,242 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-96657058 info 2025-08-08 09:54:07,269 - INFO - Deleted policy ctest-policy1-32228452 2025-08-08 09:54:07,444 - DEBUG - policy ctest-policy1-32228452 is not found in API Server 2025-08-08 09:54:07,701 - DEBUG - No XMPP flaps were noticed during the test
2025-08-08 09:54:07,701 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-08 09:54:07,701 - INFO - -------------------------------------------------------------------------------- 2025-08-08 09:54:07,994 - DEBUG - No XMPP flaps were noticed during the test
2025-08-08 09:54:07,994 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-08 09:54:07,994 - INFO - -------------------------------------------------------------------------------- 2025-08-08 09:54:09,018 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-06445693, ID : d1086765-1e51-4b8a-9e60-a515e4b2c5cf