2025-08-13 15:24:33,673 - INFO - Domain Default found not creating 2025-08-13 15:24:33,807 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-59682799 not found, creating it 2025-08-13 15:24:34,274 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-59682799, ID : c0d7d9d8-e71d-417d-969a-fb452495f4f4 2025-08-13 15:24:35,642 - INFO - ================================================================================ 2025-08-13 15:24:35,642 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-13 15:24:35,898 - DEBUG - Nothing to compare xmpp stats {'10.0.0.133': {'10.20.0.254': '0'}} with 2025-08-13 15:24:35,899 - INFO - Initial checks done. Running the testcase now 2025-08-13 15:24:35,899 - INFO - 2025-08-13 15:24:35,899 - INFO - ================================================================================ 2025-08-13 15:24:35,899 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-13 15:24:35,899 - 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-13 15:24:36,186 - DEBUG - Nothing to compare xmpp stats {'10.0.0.133': {'10.20.0.254': '0'}} with 2025-08-13 15:24:36,186 - INFO - Initial checks done. Running the testcase now 2025-08-13 15:24:36,186 - INFO - 2025-08-13 15:24:36,526 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59682799:ctest-vn4-13557975, 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-59682799:ctest-vn4-13557975, 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-59682799:ctest-vn4-13557975, 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-59682799:ctest-vn4-13557975, 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-13 15:24:37,024 - DEBUG - Response for create_network : {'network': {'id': '818caf0f-2eb2-44be-843d-83c1c743f143', 'name': 'ctest-vn4-13557975', 'tenant_id': 'c0d7d9d8e71d417d969afb452495f4f4', 'project_id': 'c0d7d9d8e71d417d969afb452495f4f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59682799', 'ctest-vn4-13557975'], 'port_security_enabled': True, 'description': ''}} 2025-08-13 15:24:37,163 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ac4e6cf0-907f-41fb-b0e4-8e6a60acd0e7', 'name': '', 'tenant_id': 'c0d7d9d8e71d417d969afb452495f4f4', 'network_id': '818caf0f-2eb2-44be-843d-83c1c743f143', 'ip_version': 4, 'cidr': '162.149.53.0/26', 'allocation_pools': [{'start': '162.149.53.2', 'end': '162.149.53.62'}], 'gateway_ip': '162.149.53.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.149.53.2', 'tags': [], 'project_id': 'c0d7d9d8e71d417d969afb452495f4f4'}} 2025-08-13 15:24:37,356 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ffba5f2-9b56-4633-b05c-6af653f47cc2', 'name': '', 'tenant_id': 'c0d7d9d8e71d417d969afb452495f4f4', 'network_id': '818caf0f-2eb2-44be-843d-83c1c743f143', 'ip_version': 6, 'cidr': '3992:d851:b7c2:6d81:aa83:6d3c::/96', 'allocation_pools': [{'start': '3992:d851:b7c2:6d81:aa83:6d3c:0:2', 'end': '3992:d851:b7c2:6d81:aa83:6d3c:ffff:fffe'}], 'gateway_ip': '3992:d851:b7c2:6d81:aa83:6d3c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3992:d851:b7c2:6d81:aa83:6d3c:0:2', 'tags': [], 'project_id': 'c0d7d9d8e71d417d969afb452495f4f4'}} 2025-08-13 15:24:37,376 - INFO - Created VN ctest-vn4-13557975 2025-08-13 15:24:37,429 - DEBUG - VN ctest-vn4-13557975 UUID is 818caf0f-2eb2-44be-843d-83c1c743f143 2025-08-13 15:24:37,628 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '818caf0f-2eb2-44be-843d-83c1c743f143', 'name': 'ctest-vn4-13557975', 'tenant_id': 'c0d7d9d8e71d417d969afb452495f4f4', 'project_id': 'c0d7d9d8e71d417d969afb452495f4f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ac4e6cf0-907f-41fb-b0e4-8e6a60acd0e7', '1ffba5f2-9b56-4633-b05c-6af653f47cc2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59682799', 'ctest-vn4-13557975'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59682799', 'ctest-policy1-89902499']], 'subnet_ipam': [{'subnet_cidr': '162.149.53.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3992:d851:b7c2:6d81:aa83:6d3c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-13 15:24:37,785 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2025-08-13 15:24:38,075 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2025-08-13 15:24:38,103 - DEBUG - Requesting: http://10.0.0.133:8082/domain/3b9be72d-044d-4b1e-bb10-908d4343a849 2025-08-13 15:24:38,117 - DEBUG - Requesting: http://10.0.0.133:8082/project/c0d7d9d8-e71d-417d-969a-fb452495f4f4 2025-08-13 15:24:38,190 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/818caf0f-2eb2-44be-843d-83c1c743f143 2025-08-13 15:24:38,202 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/818caf0f-2eb2-44be-843d-83c1c743f143 2025-08-13 15:24:38,212 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/f43a73c2-a294-4453-9779-ce36cca678b6 2025-08-13 15:24:38,220 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/f43a73c2-a294-4453-9779-ce36cca678b6 2025-08-13 15:24:38,227 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/43a840cd-96c6-4d55-8154-04b7cc6b5ec0 2025-08-13 15:24:38,234 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-13 15:24:38,234 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/818caf0f-2eb2-44be-843d-83c1c743f143 2025-08-13 15:24:38,244 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/f43a73c2-a294-4453-9779-ce36cca678b6 2025-08-13 15:24:38,259 - INFO - Verified VN network id 9 for VN 818caf0f-2eb2-44be-843d-83c1c743f143 2025-08-13 15:24:38,260 - INFO - Verifications in API Server for VN ctest-vn4-13557975 passed 2025-08-13 15:24:38,260 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/818caf0f-2eb2-44be-843d-83c1c743f143 2025-08-13 15:24:38,271 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/f43a73c2-a294-4453-9779-ce36cca678b6 2025-08-13 15:24:38,278 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/f43a73c2-a294-4453-9779-ce36cca678b6 2025-08-13 15:24:38,285 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/43a840cd-96c6-4d55-8154-04b7cc6b5ec0 2025-08-13 15:24:38,299 - DEBUG - Control-node 10.0.0.133 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59682799:ctest-vn4-13557975', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-59682799', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9335028607375000766', 'uuid-lslong': '9528917254880883011'}, 'enable': 'true', 'created': '2025-08-13T15:24:36', 'last-modified': '2025-08-13T15:24:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.704751'} 2025-08-13 15:24:38,305 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-13 15:24:38,305 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-13557975 passed 2025-08-13 15:24:38,306 - DEBUG - ====Verifying policy data for ctest-vn4-13557975 in API_Server ====== 2025-08-13 15:24:38,306 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2025-08-13 15:24:38,311 - DEBUG - Requesting: http://10.0.0.133:8082/domain/3b9be72d-044d-4b1e-bb10-908d4343a849 2025-08-13 15:24:38,322 - DEBUG - Requesting: http://10.0.0.133:8082/project/c0d7d9d8-e71d-417d-969a-fb452495f4f4 2025-08-13 15:24:38,395 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/818caf0f-2eb2-44be-843d-83c1c743f143 2025-08-13 15:24:38,407 - DEBUG - ==>Verifying data for policy with id: f9aa2565-9633-496a-b743-254b9afcbd3f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59682799', 'ctest-policy1-89902499'] 2025-08-13 15:24:38,407 - INFO - VN ctest-vn4-13557975 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-13 15:24:38,407 - DEBUG - Verifying the vn in opserver 2025-08-13 15:24:38,407 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59682799:ctest-vn4-13557975 virtual network link through opserver 10.0.0.133 2025-08-13 15:24:38,407 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks 2025-08-13 15:24:38,699 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks 2025-08-13 15:24:38,756 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59682799:ctest-vn4-13557975', 'href': 'http://10.0.0.133:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59682799:ctest-vn4-13557975?flat'} 2025-08-13 15:24:38,756 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59682799:ctest-vn4-13557975 is found in opserver 2025-08-13 15:24:38,767 - DEBUG - Do not have enough data to verify VN in agent 2025-08-13 15:24:38,772 - DEBUG - VRF ids for VN ctest-vn4-13557975: {} 2025-08-13 15:24:38,773 - DEBUG - ====Verifying data for ctest-policy1-89902499 in API_Server ====== 2025-08-13 15:24:38,773 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2025-08-13 15:24:38,778 - DEBUG - Requesting: http://10.0.0.133:8082/domain/3b9be72d-044d-4b1e-bb10-908d4343a849 2025-08-13 15:24:38,790 - DEBUG - Requesting: http://10.0.0.133:8082/project/c0d7d9d8-e71d-417d-969a-fb452495f4f4 2025-08-13 15:24:38,864 - DEBUG - Requesting: http://10.0.0.133:8082/network-policy/f9aa2565-9633-496a-b743-254b9afcbd3f 2025-08-13 15:24:38,875 - INFO - Verified policy ctest-policy1-89902499 in API Server, Result: True 2025-08-13 15:24:38,875 - INFO - Done with setup and verification, moving onto test .. 2025-08-13 15:24:38,884 - INFO - Deleting VN ctest-vn4-13557975 2025-08-13 15:24:39,009 - DEBUG - Response for deleting network () 2025-08-13 15:24:39,009 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/f43a73c2-a294-4453-9779-ce36cca678b6 2025-08-13 15:24:39,014 - DEBUG - Response Code: 404 2025-08-13 15:24:39,014 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2025-08-13 15:24:39,019 - DEBUG - Requesting: http://10.0.0.133:8082/domain/3b9be72d-044d-4b1e-bb10-908d4343a849 2025-08-13 15:24:39,074 - DEBUG - Requesting: http://10.0.0.133:8082/project/c0d7d9d8-e71d-417d-969a-fb452495f4f4 2025-08-13 15:24:39,147 - INFO - Validated that VN ctest-vn4-13557975 is not found in API Server 2025-08-13 15:24:39,158 - DEBUG - VN ctest-vn4-13557975 is not present in Agent 10.0.0.133 2025-08-13 15:24:39,158 - INFO - Validated that VN ctest-vn4-13557975 is not in any agent 2025-08-13 15:24:39,174 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-13557975 info 2025-08-13 15:24:39,199 - INFO - Deleted policy ctest-policy1-89902499 2025-08-13 15:24:39,360 - DEBUG - policy ctest-policy1-89902499 is not found in API Server 2025-08-13 15:24:39,614 - DEBUG - No XMPP flaps were noticed during the test
2025-08-13 15:24:39,614 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-13 15:24:39,614 - INFO - -------------------------------------------------------------------------------- 2025-08-13 15:24:39,902 - DEBUG - No XMPP flaps were noticed during the test
2025-08-13 15:24:39,902 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-13 15:24:39,902 - INFO - -------------------------------------------------------------------------------- 2025-08-13 15:24:40,582 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-59682799, ID : c0d7d9d8-e71d-417d-969a-fb452495f4f4