2025-08-26 00:19:38,068 - INFO - Domain Default found not creating 2025-08-26 00:19:38,252 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-01766436 not found, creating it 2025-08-26 00:19:38,826 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-01766436, ID : ed2d5c7f-c687-4eba-bd07-c8507d43a397 2025-08-26 00:19:40,397 - INFO - ================================================================================ 2025-08-26 00:19:40,397 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-26 00:19:40,660 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.201': '0'}} with 2025-08-26 00:19:40,660 - INFO - Initial checks done. Running the testcase now 2025-08-26 00:19:40,660 - INFO - 2025-08-26 00:19:40,660 - INFO - ================================================================================ 2025-08-26 00:19:40,660 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-26 00:19:40,660 - 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-26 00:19:40,963 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.201': '0'}} with 2025-08-26 00:19:40,963 - INFO - Initial checks done. Running the testcase now 2025-08-26 00:19:40,963 - INFO - 2025-08-26 00:19:41,369 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01766436:ctest-vn4-45888729, 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-01766436:ctest-vn4-45888729, 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-01766436:ctest-vn4-45888729, 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-01766436:ctest-vn4-45888729, 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-26 00:19:41,960 - DEBUG - Response for create_network : {'network': {'id': 'df0aa934-032e-4622-b2d2-641621c1720e', 'name': 'ctest-vn4-45888729', 'tenant_id': 'ed2d5c7fc6874ebabd07c8507d43a397', 'project_id': 'ed2d5c7fc6874ebabd07c8507d43a397', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01766436', 'ctest-vn4-45888729'], 'port_security_enabled': True, 'description': ''}} 2025-08-26 00:19:42,193 - DEBUG - Response for create_subnet : {'subnet': {'id': '51cc879d-008b-432b-b0b9-fc395a36d168', 'name': '', 'tenant_id': 'ed2d5c7fc6874ebabd07c8507d43a397', 'network_id': 'df0aa934-032e-4622-b2d2-641621c1720e', 'ip_version': 4, 'cidr': '35.199.110.64/26', 'allocation_pools': [{'start': '35.199.110.66', 'end': '35.199.110.126'}], 'gateway_ip': '35.199.110.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.199.110.66', 'tags': [], 'project_id': 'ed2d5c7fc6874ebabd07c8507d43a397'}} 2025-08-26 00:19:42,420 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f3a1ba36-1f16-4a29-9ab8-08b9d867fb15', 'name': '', 'tenant_id': 'ed2d5c7fc6874ebabd07c8507d43a397', 'network_id': 'df0aa934-032e-4622-b2d2-641621c1720e', 'ip_version': 6, 'cidr': '37a3:4537:f574:6fcb:3076:5977::/96', 'allocation_pools': [{'start': '37a3:4537:f574:6fcb:3076:5977:0:2', 'end': '37a3:4537:f574:6fcb:3076:5977:ffff:fffe'}], 'gateway_ip': '37a3:4537:f574:6fcb:3076:5977:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37a3:4537:f574:6fcb:3076:5977:0:2', 'tags': [], 'project_id': 'ed2d5c7fc6874ebabd07c8507d43a397'}} 2025-08-26 00:19:42,449 - INFO - Created VN ctest-vn4-45888729 2025-08-26 00:19:42,507 - DEBUG - VN ctest-vn4-45888729 UUID is df0aa934-032e-4622-b2d2-641621c1720e 2025-08-26 00:19:42,807 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'df0aa934-032e-4622-b2d2-641621c1720e', 'name': 'ctest-vn4-45888729', 'tenant_id': 'ed2d5c7fc6874ebabd07c8507d43a397', 'project_id': 'ed2d5c7fc6874ebabd07c8507d43a397', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51cc879d-008b-432b-b0b9-fc395a36d168', 'f3a1ba36-1f16-4a29-9ab8-08b9d867fb15'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01766436', 'ctest-vn4-45888729'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01766436', 'ctest-policy1-69054048']], 'subnet_ipam': [{'subnet_cidr': '35.199.110.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '37a3:4537:f574:6fcb:3076:5977::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-26 00:19:43,020 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-26 00:19:43,338 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-26 00:19:43,375 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4eb524ad-d28a-468b-a4e7-1992f24ba989 2025-08-26 00:19:43,393 - DEBUG - Requesting: http://10.0.0.249:8082/project/ed2d5c7f-c687-4eba-bd07-c8507d43a397 2025-08-26 00:19:43,483 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/df0aa934-032e-4622-b2d2-641621c1720e 2025-08-26 00:19:43,501 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/df0aa934-032e-4622-b2d2-641621c1720e 2025-08-26 00:19:43,517 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bbe0ae6e-61e6-4f53-9d51-e65a799a8d3b 2025-08-26 00:19:43,528 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bbe0ae6e-61e6-4f53-9d51-e65a799a8d3b 2025-08-26 00:19:43,539 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/5d4bf96f-dcfc-4744-b5fe-14a2e661005b 2025-08-26 00:19:43,548 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-26 00:19:43,548 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/df0aa934-032e-4622-b2d2-641621c1720e 2025-08-26 00:19:43,562 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bbe0ae6e-61e6-4f53-9d51-e65a799a8d3b 2025-08-26 00:19:43,586 - INFO - Verified VN network id 11 for VN df0aa934-032e-4622-b2d2-641621c1720e 2025-08-26 00:19:43,586 - INFO - Verifications in API Server for VN ctest-vn4-45888729 passed 2025-08-26 00:19:43,586 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/df0aa934-032e-4622-b2d2-641621c1720e 2025-08-26 00:19:43,601 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bbe0ae6e-61e6-4f53-9d51-e65a799a8d3b 2025-08-26 00:19:43,612 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bbe0ae6e-61e6-4f53-9d51-e65a799a8d3b 2025-08-26 00:19:43,622 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/5d4bf96f-dcfc-4744-b5fe-14a2e661005b 2025-08-26 00:19:43,641 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01766436:ctest-vn4-45888729', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-01766436', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16071844261081794082', 'uuid-lslong': '12885471530078794254'}, 'enable': 'true', 'created': '2025-08-26T00:19:41', 'last-modified': '2025-08-26T00:19:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.915097'} 2025-08-26 00:19:43,650 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-26 00:19:43,650 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-45888729 passed 2025-08-26 00:19:43,650 - DEBUG - ====Verifying policy data for ctest-vn4-45888729 in API_Server ====== 2025-08-26 00:19:43,651 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-26 00:19:43,662 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4eb524ad-d28a-468b-a4e7-1992f24ba989 2025-08-26 00:19:43,683 - DEBUG - Requesting: http://10.0.0.249:8082/project/ed2d5c7f-c687-4eba-bd07-c8507d43a397 2025-08-26 00:19:43,770 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/df0aa934-032e-4622-b2d2-641621c1720e 2025-08-26 00:19:43,786 - DEBUG - ==>Verifying data for policy with id: 318fb66e-921c-4d5c-94f4-fb9581c14728, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01766436', 'ctest-policy1-69054048'] 2025-08-26 00:19:43,786 - INFO - VN ctest-vn4-45888729 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-26 00:19:43,786 - DEBUG - Verifying the vn in opserver 2025-08-26 00:19:43,786 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01766436:ctest-vn4-45888729 virtual network link through opserver 10.0.0.249 2025-08-26 00:19:43,787 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-26 00:19:44,101 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-26 00:19:44,181 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01766436:ctest-vn4-45888729', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01766436:ctest-vn4-45888729?flat'} 2025-08-26 00:19:44,181 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01766436:ctest-vn4-45888729 is found in opserver 2025-08-26 00:19:44,196 - DEBUG - Do not have enough data to verify VN in agent 2025-08-26 00:19:44,203 - DEBUG - VRF ids for VN ctest-vn4-45888729: {} 2025-08-26 00:19:44,204 - DEBUG - ====Verifying data for ctest-policy1-69054048 in API_Server ====== 2025-08-26 00:19:44,204 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-26 00:19:44,211 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4eb524ad-d28a-468b-a4e7-1992f24ba989 2025-08-26 00:19:44,225 - DEBUG - Requesting: http://10.0.0.249:8082/project/ed2d5c7f-c687-4eba-bd07-c8507d43a397 2025-08-26 00:19:44,310 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/318fb66e-921c-4d5c-94f4-fb9581c14728 2025-08-26 00:19:44,329 - INFO - Verified policy ctest-policy1-69054048 in API Server, Result: True 2025-08-26 00:19:44,329 - INFO - Done with setup and verification, moving onto test .. 2025-08-26 00:19:44,347 - INFO - Deleting VN ctest-vn4-45888729 2025-08-26 00:19:44,523 - DEBUG - Response for deleting network () 2025-08-26 00:19:44,523 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bbe0ae6e-61e6-4f53-9d51-e65a799a8d3b 2025-08-26 00:19:44,531 - DEBUG - Response Code: 404 2025-08-26 00:19:44,531 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-26 00:19:44,539 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4eb524ad-d28a-468b-a4e7-1992f24ba989 2025-08-26 00:19:44,599 - DEBUG - Requesting: http://10.0.0.249:8082/project/ed2d5c7f-c687-4eba-bd07-c8507d43a397 2025-08-26 00:19:44,692 - INFO - Validated that VN ctest-vn4-45888729 is not found in API Server 2025-08-26 00:19:44,707 - DEBUG - VN ctest-vn4-45888729 is not present in Agent 10.0.0.249 2025-08-26 00:19:44,707 - INFO - Validated that VN ctest-vn4-45888729 is not in any agent 2025-08-26 00:19:44,728 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-45888729 info 2025-08-26 00:19:44,760 - INFO - Deleted policy ctest-policy1-69054048 2025-08-26 00:19:44,943 - DEBUG - policy ctest-policy1-69054048 is not found in API Server 2025-08-26 00:19:45,215 - DEBUG - No XMPP flaps were noticed during the test 2025-08-26 00:19:45,215 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-08-26 00:19:45,215 - INFO - -------------------------------------------------------------------------------- 2025-08-26 00:19:45,503 - DEBUG - No XMPP flaps were noticed during the test 2025-08-26 00:19:45,503 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-08-26 00:19:45,503 - INFO - -------------------------------------------------------------------------------- 2025-08-26 00:19:46,225 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-01766436, ID : ed2d5c7f-c687-4eba-bd07-c8507d43a397