2025-09-15 10:50:12,109 - INFO - Domain Default found not creating 2025-09-15 10:50:12,288 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-24634445 not found, creating it 2025-09-15 10:50:12,800 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-24634445, ID : caa0999c-360d-4a47-a4ea-24c564c30d5b 2025-09-15 10:50:14,440 - INFO - ================================================================================ 2025-09-15 10:50:14,440 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-15 10:50:14,696 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-09-15 10:50:14,696 - INFO - Initial checks done. Running the testcase now 2025-09-15 10:50:14,696 - INFO - 2025-09-15 10:50:14,696 - INFO - ================================================================================ 2025-09-15 10:50:14,696 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-15 10:50:14,696 - 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-15 10:50:14,991 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-09-15 10:50:14,991 - INFO - Initial checks done. Running the testcase now 2025-09-15 10:50:14,991 - INFO - 2025-09-15 10:50:15,389 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24634445:ctest-vn4-00620749, 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-24634445:ctest-vn4-00620749, 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-24634445:ctest-vn4-00620749, 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-24634445:ctest-vn4-00620749, 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-15 10:50:15,925 - DEBUG - Response for create_network : {'network': {'id': '40c152ae-c6af-4b6c-bc07-8c4663d58c04', 'name': 'ctest-vn4-00620749', 'tenant_id': 'caa0999c360d4a47a4ea24c564c30d5b', 'project_id': 'caa0999c360d4a47a4ea24c564c30d5b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24634445', 'ctest-vn4-00620749'], 'port_security_enabled': True, 'description': ''}} 2025-09-15 10:50:16,154 - DEBUG - Response for create_subnet : {'subnet': {'id': '137b68b6-5d6e-4f26-bb8d-79d6520aefc3', 'name': '', 'tenant_id': 'caa0999c360d4a47a4ea24c564c30d5b', 'network_id': '40c152ae-c6af-4b6c-bc07-8c4663d58c04', 'ip_version': 4, 'cidr': '147.153.194.0/26', 'allocation_pools': [{'start': '147.153.194.2', 'end': '147.153.194.62'}], 'gateway_ip': '147.153.194.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.153.194.2', 'tags': [], 'project_id': 'caa0999c360d4a47a4ea24c564c30d5b'}} 2025-09-15 10:50:16,307 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a40a71f-5103-4ae3-82fc-bb23752fc6ac', 'name': '', 'tenant_id': 'caa0999c360d4a47a4ea24c564c30d5b', 'network_id': '40c152ae-c6af-4b6c-bc07-8c4663d58c04', 'ip_version': 6, 'cidr': '257e:d373:892f:1b6d:c67c:dbd0::/96', 'allocation_pools': [{'start': '257e:d373:892f:1b6d:c67c:dbd0:0:2', 'end': '257e:d373:892f:1b6d:c67c:dbd0:ffff:fffe'}], 'gateway_ip': '257e:d373:892f:1b6d:c67c:dbd0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '257e:d373:892f:1b6d:c67c:dbd0:0:2', 'tags': [], 'project_id': 'caa0999c360d4a47a4ea24c564c30d5b'}} 2025-09-15 10:50:16,329 - INFO - Created VN ctest-vn4-00620749 2025-09-15 10:50:16,382 - DEBUG - VN ctest-vn4-00620749 UUID is 40c152ae-c6af-4b6c-bc07-8c4663d58c04 2025-09-15 10:50:16,605 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '40c152ae-c6af-4b6c-bc07-8c4663d58c04', 'name': 'ctest-vn4-00620749', 'tenant_id': 'caa0999c360d4a47a4ea24c564c30d5b', 'project_id': 'caa0999c360d4a47a4ea24c564c30d5b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['137b68b6-5d6e-4f26-bb8d-79d6520aefc3', '8a40a71f-5103-4ae3-82fc-bb23752fc6ac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24634445', 'ctest-vn4-00620749'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24634445', 'ctest-policy1-85802823']], 'subnet_ipam': [{'subnet_cidr': '147.153.194.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '257e:d373:892f:1b6d:c67c:dbd0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-15 10:50:16,766 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-15 10:50:17,102 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-15 10:50:17,134 - DEBUG - Requesting: http://10.0.0.50:8082/domain/73426bb0-1088-4b0e-af19-1f29ea1afaf9 2025-09-15 10:50:17,149 - DEBUG - Requesting: http://10.0.0.50:8082/project/caa0999c-360d-4a47-a4ea-24c564c30d5b 2025-09-15 10:50:17,222 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/40c152ae-c6af-4b6c-bc07-8c4663d58c04 2025-09-15 10:50:17,238 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/40c152ae-c6af-4b6c-bc07-8c4663d58c04 2025-09-15 10:50:17,249 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e0619ec0-8fd7-49a0-bde6-75d27133da2d 2025-09-15 10:50:17,257 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e0619ec0-8fd7-49a0-bde6-75d27133da2d 2025-09-15 10:50:17,264 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c73492a9-4aa2-4bac-b019-a58e6962776b 2025-09-15 10:50:17,272 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 10:50:17,272 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/40c152ae-c6af-4b6c-bc07-8c4663d58c04 2025-09-15 10:50:17,282 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e0619ec0-8fd7-49a0-bde6-75d27133da2d 2025-09-15 10:50:17,298 - INFO - Verified VN network id 11 for VN 40c152ae-c6af-4b6c-bc07-8c4663d58c04 2025-09-15 10:50:17,298 - INFO - Verifications in API Server for VN ctest-vn4-00620749 passed 2025-09-15 10:50:17,298 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/40c152ae-c6af-4b6c-bc07-8c4663d58c04 2025-09-15 10:50:17,309 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e0619ec0-8fd7-49a0-bde6-75d27133da2d 2025-09-15 10:50:17,317 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e0619ec0-8fd7-49a0-bde6-75d27133da2d 2025-09-15 10:50:17,326 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c73492a9-4aa2-4bac-b019-a58e6962776b 2025-09-15 10:50:17,339 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24634445:ctest-vn4-00620749', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-24634445', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4666101599543708524', 'uuid-lslong': '13548952237917965316'}, 'enable': 'true', 'created': '2025-09-15T10:50:15', 'last-modified': '2025-09-15T10:50:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.767539'} 2025-09-15 10:50:17,346 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 10:50:17,346 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-00620749 passed 2025-09-15 10:50:17,346 - DEBUG - ====Verifying policy data for ctest-vn4-00620749 in API_Server ====== 2025-09-15 10:50:17,346 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-15 10:50:17,352 - DEBUG - Requesting: http://10.0.0.50:8082/domain/73426bb0-1088-4b0e-af19-1f29ea1afaf9 2025-09-15 10:50:17,367 - DEBUG - Requesting: http://10.0.0.50:8082/project/caa0999c-360d-4a47-a4ea-24c564c30d5b 2025-09-15 10:50:17,454 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/40c152ae-c6af-4b6c-bc07-8c4663d58c04 2025-09-15 10:50:17,465 - DEBUG - ==>Verifying data for policy with id: 7ea02cba-7ecf-481c-b06a-a4a556c18327, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24634445', 'ctest-policy1-85802823'] 2025-09-15 10:50:17,465 - INFO - VN ctest-vn4-00620749 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-15 10:50:17,465 - DEBUG - Verifying the vn in opserver 2025-09-15 10:50:17,465 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24634445:ctest-vn4-00620749 virtual network link through opserver 10.0.0.50 2025-09-15 10:50:17,465 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-09-15 10:50:17,798 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-09-15 10:50:17,860 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24634445:ctest-vn4-00620749', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24634445:ctest-vn4-00620749?flat'} 2025-09-15 10:50:17,861 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24634445:ctest-vn4-00620749 is found in opserver 2025-09-15 10:50:17,871 - DEBUG - Do not have enough data to verify VN in agent 2025-09-15 10:50:17,876 - DEBUG - VRF ids for VN ctest-vn4-00620749: {} 2025-09-15 10:50:17,877 - DEBUG - ====Verifying data for ctest-policy1-85802823 in API_Server ====== 2025-09-15 10:50:17,877 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-15 10:50:17,883 - DEBUG - Requesting: http://10.0.0.50:8082/domain/73426bb0-1088-4b0e-af19-1f29ea1afaf9 2025-09-15 10:50:17,894 - DEBUG - Requesting: http://10.0.0.50:8082/project/caa0999c-360d-4a47-a4ea-24c564c30d5b 2025-09-15 10:50:17,966 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/7ea02cba-7ecf-481c-b06a-a4a556c18327 2025-09-15 10:50:17,977 - INFO - Verified policy ctest-policy1-85802823 in API Server, Result: True 2025-09-15 10:50:17,977 - INFO - Done with setup and verification, moving onto test .. 2025-09-15 10:50:17,986 - INFO - Deleting VN ctest-vn4-00620749 2025-09-15 10:50:18,123 - DEBUG - Response for deleting network () 2025-09-15 10:50:18,123 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e0619ec0-8fd7-49a0-bde6-75d27133da2d 2025-09-15 10:50:18,130 - DEBUG - Response Code: 404 2025-09-15 10:50:18,130 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-15 10:50:18,136 - DEBUG - Requesting: http://10.0.0.50:8082/domain/73426bb0-1088-4b0e-af19-1f29ea1afaf9 2025-09-15 10:50:18,224 - DEBUG - Requesting: http://10.0.0.50:8082/project/caa0999c-360d-4a47-a4ea-24c564c30d5b 2025-09-15 10:50:18,299 - INFO - Validated that VN ctest-vn4-00620749 is not found in API Server 2025-09-15 10:50:18,310 - DEBUG - VN ctest-vn4-00620749 is not present in Agent 10.0.0.50 2025-09-15 10:50:18,310 - INFO - Validated that VN ctest-vn4-00620749 is not in any agent 2025-09-15 10:50:18,325 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-00620749 info 2025-09-15 10:50:18,354 - INFO - Deleted policy ctest-policy1-85802823 2025-09-15 10:50:18,522 - DEBUG - policy ctest-policy1-85802823 is not found in API Server 2025-09-15 10:50:18,775 - DEBUG - No XMPP flaps were noticed during the test
2025-09-15 10:50:18,775 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-15 10:50:18,775 - INFO - -------------------------------------------------------------------------------- 2025-09-15 10:50:19,063 - DEBUG - No XMPP flaps were noticed during the test
2025-09-15 10:50:19,063 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-09-15 10:50:19,063 - INFO - -------------------------------------------------------------------------------- 2025-09-15 10:50:19,814 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-24634445, ID : caa0999c-360d-4a47-a4ea-24c564c30d5b