2025-09-13 17:10:16,737 - INFO - Domain Default found not creating 2025-09-13 17:10:16,907 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-21260571 not found, creating it 2025-09-13 17:10:17,381 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-21260571, ID : f53b4bc4-f310-411e-930b-a8eecbab8150 2025-09-13 17:10:18,902 - INFO - ================================================================================ 2025-09-13 17:10:18,903 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-13 17:10:19,173 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2025-09-13 17:10:19,173 - INFO - Initial checks done. Running the testcase now 2025-09-13 17:10:19,173 - INFO - 2025-09-13 17:10:19,173 - INFO - ================================================================================ 2025-09-13 17:10:19,173 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-13 17:10:19,174 - 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-13 17:10:19,455 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2025-09-13 17:10:19,455 - INFO - Initial checks done. Running the testcase now 2025-09-13 17:10:19,455 - INFO - 2025-09-13 17:10:19,832 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21260571:ctest-vn4-44436828, 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-21260571:ctest-vn4-44436828, 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-21260571:ctest-vn4-44436828, 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-21260571:ctest-vn4-44436828, 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-13 17:10:20,395 - DEBUG - Response for create_network : {'network': {'id': 'f1785065-a697-4767-9e0c-ad0760e8e2f5', 'name': 'ctest-vn4-44436828', 'tenant_id': 'f53b4bc4f310411e930ba8eecbab8150', 'project_id': 'f53b4bc4f310411e930ba8eecbab8150', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21260571', 'ctest-vn4-44436828'], 'port_security_enabled': True, 'description': ''}} 2025-09-13 17:10:20,605 - DEBUG - Response for create_subnet : {'subnet': {'id': '9384ba1f-2d8d-46a7-8966-2f84516ec658', 'name': '', 'tenant_id': 'f53b4bc4f310411e930ba8eecbab8150', 'network_id': 'f1785065-a697-4767-9e0c-ad0760e8e2f5', 'ip_version': 4, 'cidr': '50.226.155.64/26', 'allocation_pools': [{'start': '50.226.155.66', 'end': '50.226.155.126'}], 'gateway_ip': '50.226.155.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.226.155.66', 'tags': [], 'project_id': 'f53b4bc4f310411e930ba8eecbab8150'}} 2025-09-13 17:10:20,823 - DEBUG - Response for create_subnet : {'subnet': {'id': '717e1c66-1ff9-408b-98be-4d028f420888', 'name': '', 'tenant_id': 'f53b4bc4f310411e930ba8eecbab8150', 'network_id': 'f1785065-a697-4767-9e0c-ad0760e8e2f5', 'ip_version': 6, 'cidr': '3e95:cece:a6f5:13e4:a9ab:b592::/96', 'allocation_pools': [{'start': '3e95:cece:a6f5:13e4:a9ab:b592:0:2', 'end': '3e95:cece:a6f5:13e4:a9ab:b592:ffff:fffe'}], 'gateway_ip': '3e95:cece:a6f5:13e4:a9ab:b592:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e95:cece:a6f5:13e4:a9ab:b592:0:2', 'tags': [], 'project_id': 'f53b4bc4f310411e930ba8eecbab8150'}} 2025-09-13 17:10:20,846 - INFO - Created VN ctest-vn4-44436828 2025-09-13 17:10:20,901 - DEBUG - VN ctest-vn4-44436828 UUID is f1785065-a697-4767-9e0c-ad0760e8e2f5 2025-09-13 17:10:21,115 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1785065-a697-4767-9e0c-ad0760e8e2f5', 'name': 'ctest-vn4-44436828', 'tenant_id': 'f53b4bc4f310411e930ba8eecbab8150', 'project_id': 'f53b4bc4f310411e930ba8eecbab8150', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9384ba1f-2d8d-46a7-8966-2f84516ec658', '717e1c66-1ff9-408b-98be-4d028f420888'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21260571', 'ctest-vn4-44436828'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21260571', 'ctest-policy1-83502513']], 'subnet_ipam': [{'subnet_cidr': '50.226.155.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e95:cece:a6f5:13e4:a9ab:b592::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-13 17:10:21,277 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 17:10:21,587 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 17:10:21,620 - DEBUG - Requesting: http://10.0.0.22:8082/domain/612602fc-a563-4737-9e20-188ea0c643df 2025-09-13 17:10:21,632 - DEBUG - Requesting: http://10.0.0.22:8082/project/f53b4bc4-f310-411e-930b-a8eecbab8150 2025-09-13 17:10:21,709 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f1785065-a697-4767-9e0c-ad0760e8e2f5 2025-09-13 17:10:21,721 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f1785065-a697-4767-9e0c-ad0760e8e2f5 2025-09-13 17:10:21,732 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/71163bc9-0dc9-4308-845e-472883aaf52a 2025-09-13 17:10:21,739 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/71163bc9-0dc9-4308-845e-472883aaf52a 2025-09-13 17:10:21,746 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c385f13c-b7af-47db-9dcf-1c42486bb8ce 2025-09-13 17:10:21,752 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-13 17:10:21,752 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f1785065-a697-4767-9e0c-ad0760e8e2f5 2025-09-13 17:10:21,761 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/71163bc9-0dc9-4308-845e-472883aaf52a 2025-09-13 17:10:21,777 - INFO - Verified VN network id 11 for VN f1785065-a697-4767-9e0c-ad0760e8e2f5 2025-09-13 17:10:21,777 - INFO - Verifications in API Server for VN ctest-vn4-44436828 passed 2025-09-13 17:10:21,777 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f1785065-a697-4767-9e0c-ad0760e8e2f5 2025-09-13 17:10:21,787 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/71163bc9-0dc9-4308-845e-472883aaf52a 2025-09-13 17:10:21,795 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/71163bc9-0dc9-4308-845e-472883aaf52a 2025-09-13 17:10:21,803 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c385f13c-b7af-47db-9dcf-1c42486bb8ce 2025-09-13 17:10:21,818 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21260571:ctest-vn4-44436828', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-21260571', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17399745557862762343', 'uuid-lslong': '11388667804915393269'}, 'enable': 'true', 'created': '2025-09-13T17:10:20', 'last-modified': '2025-09-13T17:10:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.728099'} 2025-09-13 17:10:21,826 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-13 17:10:21,826 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-44436828 passed 2025-09-13 17:10:21,826 - DEBUG - ====Verifying policy data for ctest-vn4-44436828 in API_Server ====== 2025-09-13 17:10:21,827 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 17:10:21,834 - DEBUG - Requesting: http://10.0.0.22:8082/domain/612602fc-a563-4737-9e20-188ea0c643df 2025-09-13 17:10:21,846 - DEBUG - Requesting: http://10.0.0.22:8082/project/f53b4bc4-f310-411e-930b-a8eecbab8150 2025-09-13 17:10:21,919 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f1785065-a697-4767-9e0c-ad0760e8e2f5 2025-09-13 17:10:21,931 - DEBUG - ==>Verifying data for policy with id: aef806c6-a8fa-4636-9db6-de59b8530922, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21260571', 'ctest-policy1-83502513'] 2025-09-13 17:10:21,931 - INFO - VN ctest-vn4-44436828 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-13 17:10:21,931 - DEBUG - Verifying the vn in opserver 2025-09-13 17:10:21,932 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21260571:ctest-vn4-44436828 virtual network link through opserver 10.0.0.22 2025-09-13 17:10:21,932 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-13 17:10:22,254 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-13 17:10:22,316 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21260571:ctest-vn4-44436828', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21260571:ctest-vn4-44436828?flat'} 2025-09-13 17:10:22,316 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21260571:ctest-vn4-44436828 is found in opserver 2025-09-13 17:10:22,327 - DEBUG - Do not have enough data to verify VN in agent 2025-09-13 17:10:22,332 - DEBUG - VRF ids for VN ctest-vn4-44436828: {} 2025-09-13 17:10:22,333 - DEBUG - ====Verifying data for ctest-policy1-83502513 in API_Server ====== 2025-09-13 17:10:22,333 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 17:10:22,339 - DEBUG - Requesting: http://10.0.0.22:8082/domain/612602fc-a563-4737-9e20-188ea0c643df 2025-09-13 17:10:22,351 - DEBUG - Requesting: http://10.0.0.22:8082/project/f53b4bc4-f310-411e-930b-a8eecbab8150 2025-09-13 17:10:22,421 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/aef806c6-a8fa-4636-9db6-de59b8530922 2025-09-13 17:10:22,430 - INFO - Verified policy ctest-policy1-83502513 in API Server, Result: True 2025-09-13 17:10:22,430 - INFO - Done with setup and verification, moving onto test .. 2025-09-13 17:10:22,438 - INFO - Deleting VN ctest-vn4-44436828 2025-09-13 17:10:22,589 - DEBUG - Response for deleting network () 2025-09-13 17:10:22,589 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/71163bc9-0dc9-4308-845e-472883aaf52a 2025-09-13 17:10:22,595 - DEBUG - Response Code: 404 2025-09-13 17:10:22,595 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-13 17:10:22,601 - DEBUG - Requesting: http://10.0.0.22:8082/domain/612602fc-a563-4737-9e20-188ea0c643df 2025-09-13 17:10:22,655 - DEBUG - Requesting: http://10.0.0.22:8082/project/f53b4bc4-f310-411e-930b-a8eecbab8150 2025-09-13 17:10:22,731 - INFO - Validated that VN ctest-vn4-44436828 is not found in API Server 2025-09-13 17:10:22,743 - DEBUG - VN ctest-vn4-44436828 is not present in Agent 10.0.0.22 2025-09-13 17:10:22,743 - INFO - Validated that VN ctest-vn4-44436828 is not in any agent 2025-09-13 17:10:22,759 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-44436828 info 2025-09-13 17:10:22,785 - INFO - Deleted policy ctest-policy1-83502513 2025-09-13 17:10:22,961 - DEBUG - policy ctest-policy1-83502513 is not found in API Server 2025-09-13 17:10:23,230 - DEBUG - No XMPP flaps were noticed during the test
2025-09-13 17:10:23,231 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-13 17:10:23,231 - INFO - -------------------------------------------------------------------------------- 2025-09-13 17:10:23,522 - DEBUG - No XMPP flaps were noticed during the test
2025-09-13 17:10:23,522 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-09-13 17:10:23,522 - INFO - -------------------------------------------------------------------------------- 2025-09-13 17:10:24,296 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-21260571, ID : f53b4bc4-f310-411e-930b-a8eecbab8150