2025-10-23 01:50:32,195 - INFO - Domain Default found not creating 2025-10-23 01:50:32,314 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-75588432 not found, creating it 2025-10-23 01:50:32,771 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-75588432, ID : af0faede-3137-4e52-8a71-6413183c1635 2025-10-23 01:50:34,163 - INFO - ================================================================================ 2025-10-23 01:50:34,163 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 01:50:34,418 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-10-23 01:50:34,418 - INFO - Initial checks done. Running the testcase now 2025-10-23 01:50:34,418 - INFO - 2025-10-23 01:50:34,418 - INFO - ================================================================================ 2025-10-23 01:50:34,418 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 01:50:34,418 - 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-10-23 01:50:34,708 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-10-23 01:50:34,708 - INFO - Initial checks done. Running the testcase now 2025-10-23 01:50:34,708 - INFO - 2025-10-23 01:50:35,041 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75588432:ctest-vn4-54155751, 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-75588432:ctest-vn4-54155751, 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-75588432:ctest-vn4-54155751, 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-75588432:ctest-vn4-54155751, 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-10-23 01:50:35,524 - DEBUG - Response for create_network : {'network': {'id': '9e09912b-7b08-4299-a0d3-6d5e461d797b', 'name': 'ctest-vn4-54155751', 'tenant_id': 'af0faede31374e528a716413183c1635', 'project_id': 'af0faede31374e528a716413183c1635', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75588432', 'ctest-vn4-54155751'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 01:50:35,732 - DEBUG - Response for create_subnet : {'subnet': {'id': '6736e8e8-5d5a-405f-9944-efeb5b0a4db8', 'name': '', 'tenant_id': 'af0faede31374e528a716413183c1635', 'network_id': '9e09912b-7b08-4299-a0d3-6d5e461d797b', 'ip_version': 4, 'cidr': '55.163.242.0/26', 'allocation_pools': [{'start': '55.163.242.2', 'end': '55.163.242.62'}], 'gateway_ip': '55.163.242.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.163.242.2', 'tags': [], 'project_id': 'af0faede31374e528a716413183c1635'}} 2025-10-23 01:50:35,929 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0e90401-c9d8-4122-aefc-00ed7a59074b', 'name': '', 'tenant_id': 'af0faede31374e528a716413183c1635', 'network_id': '9e09912b-7b08-4299-a0d3-6d5e461d797b', 'ip_version': 6, 'cidr': '3f98:f1e2:7694:c3d8:1e2d:b314::/96', 'allocation_pools': [{'start': '3f98:f1e2:7694:c3d8:1e2d:b314:0:2', 'end': '3f98:f1e2:7694:c3d8:1e2d:b314:ffff:fffe'}], 'gateway_ip': '3f98:f1e2:7694:c3d8:1e2d:b314:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f98:f1e2:7694:c3d8:1e2d:b314:0:2', 'tags': [], 'project_id': 'af0faede31374e528a716413183c1635'}} 2025-10-23 01:50:35,946 - INFO - Created VN ctest-vn4-54155751 2025-10-23 01:50:36,000 - DEBUG - VN ctest-vn4-54155751 UUID is 9e09912b-7b08-4299-a0d3-6d5e461d797b 2025-10-23 01:50:36,175 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9e09912b-7b08-4299-a0d3-6d5e461d797b', 'name': 'ctest-vn4-54155751', 'tenant_id': 'af0faede31374e528a716413183c1635', 'project_id': 'af0faede31374e528a716413183c1635', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6736e8e8-5d5a-405f-9944-efeb5b0a4db8', 'e0e90401-c9d8-4122-aefc-00ed7a59074b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75588432', 'ctest-vn4-54155751'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75588432', 'ctest-policy1-37988241']], 'subnet_ipam': [{'subnet_cidr': '55.163.242.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f98:f1e2:7694:c3d8:1e2d:b314::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-23 01:50:36,336 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-23 01:50:36,624 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-23 01:50:36,649 - DEBUG - Requesting: http://10.0.0.141:8082/domain/013499b7-13b8-4472-821f-4c26323ffecb 2025-10-23 01:50:36,660 - DEBUG - Requesting: http://10.0.0.141:8082/project/af0faede-3137-4e52-8a71-6413183c1635 2025-10-23 01:50:36,726 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9e09912b-7b08-4299-a0d3-6d5e461d797b 2025-10-23 01:50:36,736 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9e09912b-7b08-4299-a0d3-6d5e461d797b 2025-10-23 01:50:36,745 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/55c8bbd6-5517-47d7-84ca-ef1ec4318cb9 2025-10-23 01:50:36,750 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/55c8bbd6-5517-47d7-84ca-ef1ec4318cb9 2025-10-23 01:50:36,756 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/b8f8820c-ee0b-40ef-8152-9e3a17601fa2 2025-10-23 01:50:36,761 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 01:50:36,761 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9e09912b-7b08-4299-a0d3-6d5e461d797b 2025-10-23 01:50:36,768 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/55c8bbd6-5517-47d7-84ca-ef1ec4318cb9 2025-10-23 01:50:36,779 - INFO - Verified VN network id 12 for VN 9e09912b-7b08-4299-a0d3-6d5e461d797b 2025-10-23 01:50:36,779 - INFO - Verifications in API Server for VN ctest-vn4-54155751 passed 2025-10-23 01:50:36,779 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9e09912b-7b08-4299-a0d3-6d5e461d797b 2025-10-23 01:50:36,786 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/55c8bbd6-5517-47d7-84ca-ef1ec4318cb9 2025-10-23 01:50:36,792 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/55c8bbd6-5517-47d7-84ca-ef1ec4318cb9 2025-10-23 01:50:36,797 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/b8f8820c-ee0b-40ef-8152-9e3a17601fa2 2025-10-23 01:50:36,806 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75588432:ctest-vn4-54155751', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-75588432', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11387792748716769945', 'uuid-lslong': '11588726517825108347'}, 'enable': 'true', 'created': '2025-10-23T01:50:35', 'last-modified': '2025-10-23T01:50:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.652448'} 2025-10-23 01:50:36,812 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 01:50:36,812 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-54155751 passed 2025-10-23 01:50:36,812 - DEBUG - ====Verifying policy data for ctest-vn4-54155751 in API_Server ====== 2025-10-23 01:50:36,812 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-23 01:50:36,816 - DEBUG - Requesting: http://10.0.0.141:8082/domain/013499b7-13b8-4472-821f-4c26323ffecb 2025-10-23 01:50:36,826 - DEBUG - Requesting: http://10.0.0.141:8082/project/af0faede-3137-4e52-8a71-6413183c1635 2025-10-23 01:50:36,890 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9e09912b-7b08-4299-a0d3-6d5e461d797b 2025-10-23 01:50:36,898 - DEBUG - ==>Verifying data for policy with id: 69ab28c4-5053-4214-af46-bcf120b63b2b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75588432', 'ctest-policy1-37988241'] 2025-10-23 01:50:36,898 - INFO - VN ctest-vn4-54155751 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-23 01:50:36,898 - DEBUG - Verifying the vn in opserver 2025-10-23 01:50:36,898 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75588432:ctest-vn4-54155751 virtual network link through opserver 10.0.0.141 2025-10-23 01:50:36,899 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-23 01:50:37,188 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-23 01:50:37,237 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75588432:ctest-vn4-54155751', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75588432:ctest-vn4-54155751?flat'} 2025-10-23 01:50:37,237 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75588432:ctest-vn4-54155751 is found in opserver 2025-10-23 01:50:37,245 - DEBUG - Do not have enough data to verify VN in agent 2025-10-23 01:50:37,248 - DEBUG - VRF ids for VN ctest-vn4-54155751: {} 2025-10-23 01:50:37,249 - DEBUG - ====Verifying data for ctest-policy1-37988241 in API_Server ====== 2025-10-23 01:50:37,249 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-23 01:50:37,253 - DEBUG - Requesting: http://10.0.0.141:8082/domain/013499b7-13b8-4472-821f-4c26323ffecb 2025-10-23 01:50:37,262 - DEBUG - Requesting: http://10.0.0.141:8082/project/af0faede-3137-4e52-8a71-6413183c1635 2025-10-23 01:50:37,327 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/69ab28c4-5053-4214-af46-bcf120b63b2b 2025-10-23 01:50:37,334 - INFO - Verified policy ctest-policy1-37988241 in API Server, Result: True 2025-10-23 01:50:37,335 - INFO - Done with setup and verification, moving onto test .. 2025-10-23 01:50:37,341 - INFO - Deleting VN ctest-vn4-54155751 2025-10-23 01:50:37,456 - DEBUG - Response for deleting network () 2025-10-23 01:50:37,456 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/55c8bbd6-5517-47d7-84ca-ef1ec4318cb9 2025-10-23 01:50:37,460 - DEBUG - Response Code: 404 2025-10-23 01:50:37,460 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-23 01:50:37,465 - DEBUG - Requesting: http://10.0.0.141:8082/domain/013499b7-13b8-4472-821f-4c26323ffecb 2025-10-23 01:50:37,517 - DEBUG - Requesting: http://10.0.0.141:8082/project/af0faede-3137-4e52-8a71-6413183c1635 2025-10-23 01:50:37,582 - INFO - Validated that VN ctest-vn4-54155751 is not found in API Server 2025-10-23 01:50:37,590 - DEBUG - VN ctest-vn4-54155751 is not present in Agent 10.0.0.141 2025-10-23 01:50:37,590 - INFO - Validated that VN ctest-vn4-54155751 is not in any agent 2025-10-23 01:50:37,600 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-54155751 info 2025-10-23 01:50:37,620 - INFO - Deleted policy ctest-policy1-37988241 2025-10-23 01:50:37,792 - DEBUG - policy ctest-policy1-37988241 is not found in API Server 2025-10-23 01:50:38,040 - DEBUG - No XMPP flaps were noticed during the test
2025-10-23 01:50:38,040 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-23 01:50:38,040 - INFO - -------------------------------------------------------------------------------- 2025-10-23 01:50:38,324 - DEBUG - No XMPP flaps were noticed during the test
2025-10-23 01:50:38,324 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-23 01:50:38,324 - INFO - -------------------------------------------------------------------------------- 2025-10-23 01:50:38,961 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-75588432, ID : af0faede-3137-4e52-8a71-6413183c1635