2025-09-08 12:00:45,411 - INFO - Domain Default found not creating 2025-09-08 12:00:45,552 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-62900671 not found, creating it 2025-09-08 12:00:45,971 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-62900671, ID : 6280d7ff-7186-4781-a64a-e6b3483acf24 2025-09-08 12:00:47,364 - INFO - ================================================================================ 2025-09-08 12:00:47,364 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-08 12:00:47,625 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-08 12:00:47,625 - INFO - Initial checks done. Running the testcase now 2025-09-08 12:00:47,625 - INFO - 2025-09-08 12:00:47,625 - INFO - ================================================================================ 2025-09-08 12:00:47,625 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-08 12:00:47,625 - 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-08 12:00:47,917 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-08 12:00:47,917 - INFO - Initial checks done. Running the testcase now 2025-09-08 12:00:47,917 - INFO - 2025-09-08 12:00:48,260 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62900671:ctest-vn4-62162013, 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-62900671:ctest-vn4-62162013, 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-62900671:ctest-vn4-62162013, 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-62900671:ctest-vn4-62162013, 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-08 12:00:48,752 - DEBUG - Response for create_network : {'network': {'id': 'bd03628f-1344-4799-a17e-477ed3e13dd2', 'name': 'ctest-vn4-62162013', 'tenant_id': '6280d7ff71864781a64ae6b3483acf24', 'project_id': '6280d7ff71864781a64ae6b3483acf24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62900671', 'ctest-vn4-62162013'], 'port_security_enabled': True, 'description': ''}} 2025-09-08 12:00:48,936 - DEBUG - Response for create_subnet : {'subnet': {'id': '86356780-2396-415a-bff9-09e0013a0277', 'name': '', 'tenant_id': '6280d7ff71864781a64ae6b3483acf24', 'network_id': 'bd03628f-1344-4799-a17e-477ed3e13dd2', 'ip_version': 4, 'cidr': '97.30.77.64/26', 'allocation_pools': [{'start': '97.30.77.66', 'end': '97.30.77.126'}], 'gateway_ip': '97.30.77.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.30.77.66', 'tags': [], 'project_id': '6280d7ff71864781a64ae6b3483acf24'}} 2025-09-08 12:00:49,072 - DEBUG - Response for create_subnet : {'subnet': {'id': '92d60eb8-31f2-4ceb-be1e-8694b6cd5cbb', 'name': '', 'tenant_id': '6280d7ff71864781a64ae6b3483acf24', 'network_id': 'bd03628f-1344-4799-a17e-477ed3e13dd2', 'ip_version': 6, 'cidr': '3301:4c24:7534:65de:618c:a387::/96', 'allocation_pools': [{'start': '3301:4c24:7534:65de:618c:a387:0:2', 'end': '3301:4c24:7534:65de:618c:a387:ffff:fffe'}], 'gateway_ip': '3301:4c24:7534:65de:618c:a387:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3301:4c24:7534:65de:618c:a387:0:2', 'tags': [], 'project_id': '6280d7ff71864781a64ae6b3483acf24'}} 2025-09-08 12:00:49,092 - INFO - Created VN ctest-vn4-62162013 2025-09-08 12:00:49,144 - DEBUG - VN ctest-vn4-62162013 UUID is bd03628f-1344-4799-a17e-477ed3e13dd2 2025-09-08 12:00:49,349 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bd03628f-1344-4799-a17e-477ed3e13dd2', 'name': 'ctest-vn4-62162013', 'tenant_id': '6280d7ff71864781a64ae6b3483acf24', 'project_id': '6280d7ff71864781a64ae6b3483acf24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['86356780-2396-415a-bff9-09e0013a0277', '92d60eb8-31f2-4ceb-be1e-8694b6cd5cbb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62900671', 'ctest-vn4-62162013'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62900671', 'ctest-policy1-35490766']], 'subnet_ipam': [{'subnet_cidr': '97.30.77.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3301:4c24:7534:65de:618c:a387::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-08 12:00:49,508 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-08 12:00:49,806 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-08 12:00:49,833 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0fe0a250-1561-4c42-ae6c-0056308b180a 2025-09-08 12:00:49,847 - DEBUG - Requesting: http://10.0.0.22:8082/project/6280d7ff-7186-4781-a64a-e6b3483acf24 2025-09-08 12:00:49,918 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bd03628f-1344-4799-a17e-477ed3e13dd2 2025-09-08 12:00:49,928 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bd03628f-1344-4799-a17e-477ed3e13dd2 2025-09-08 12:00:49,937 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c546cd8-d542-48af-a50d-5370cb9186d4 2025-09-08 12:00:49,943 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c546cd8-d542-48af-a50d-5370cb9186d4 2025-09-08 12:00:49,949 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0988c519-24cf-4ad8-b9c4-9d7a3f647646 2025-09-08 12:00:49,954 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-08 12:00:49,954 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bd03628f-1344-4799-a17e-477ed3e13dd2 2025-09-08 12:00:49,962 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c546cd8-d542-48af-a50d-5370cb9186d4 2025-09-08 12:00:49,975 - INFO - Verified VN network id 12 for VN bd03628f-1344-4799-a17e-477ed3e13dd2 2025-09-08 12:00:49,975 - INFO - Verifications in API Server for VN ctest-vn4-62162013 passed 2025-09-08 12:00:49,975 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bd03628f-1344-4799-a17e-477ed3e13dd2 2025-09-08 12:00:49,984 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c546cd8-d542-48af-a50d-5370cb9186d4 2025-09-08 12:00:49,990 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c546cd8-d542-48af-a50d-5370cb9186d4 2025-09-08 12:00:49,995 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0988c519-24cf-4ad8-b9c4-9d7a3f647646 2025-09-08 12:00:50,006 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62900671:ctest-vn4-62162013', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-62900671', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13619838064741599129', 'uuid-lslong': '11636817097218145746'}, 'enable': 'true', 'created': '2025-09-08T12:00:48', 'last-modified': '2025-09-08T12:00:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.688401'} 2025-09-08 12:00:50,011 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-08 12:00:50,012 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-62162013 passed 2025-09-08 12:00:50,012 - DEBUG - ====Verifying policy data for ctest-vn4-62162013 in API_Server ====== 2025-09-08 12:00:50,012 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-08 12:00:50,017 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0fe0a250-1561-4c42-ae6c-0056308b180a 2025-09-08 12:00:50,027 - DEBUG - Requesting: http://10.0.0.22:8082/project/6280d7ff-7186-4781-a64a-e6b3483acf24 2025-09-08 12:00:50,102 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bd03628f-1344-4799-a17e-477ed3e13dd2 2025-09-08 12:00:50,111 - DEBUG - ==>Verifying data for policy with id: 98cc0197-8dd9-43b7-b188-9a1f24779110, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62900671', 'ctest-policy1-35490766'] 2025-09-08 12:00:50,111 - INFO - VN ctest-vn4-62162013 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-08 12:00:50,111 - DEBUG - Verifying the vn in opserver 2025-09-08 12:00:50,111 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62900671:ctest-vn4-62162013 virtual network link through opserver 10.0.0.22 2025-09-08 12:00:50,112 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-08 12:00:50,411 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-08 12:00:50,466 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62900671:ctest-vn4-62162013', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62900671:ctest-vn4-62162013?flat'} 2025-09-08 12:00:50,466 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62900671:ctest-vn4-62162013 is found in opserver 2025-09-08 12:00:50,474 - DEBUG - Do not have enough data to verify VN in agent 2025-09-08 12:00:50,479 - DEBUG - VRF ids for VN ctest-vn4-62162013: {} 2025-09-08 12:00:50,479 - DEBUG - ====Verifying data for ctest-policy1-35490766 in API_Server ====== 2025-09-08 12:00:50,479 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-08 12:00:50,485 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0fe0a250-1561-4c42-ae6c-0056308b180a 2025-09-08 12:00:50,497 - DEBUG - Requesting: http://10.0.0.22:8082/project/6280d7ff-7186-4781-a64a-e6b3483acf24 2025-09-08 12:00:50,571 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/98cc0197-8dd9-43b7-b188-9a1f24779110 2025-09-08 12:00:50,581 - INFO - Verified policy ctest-policy1-35490766 in API Server, Result: True 2025-09-08 12:00:50,581 - INFO - Done with setup and verification, moving onto test .. 2025-09-08 12:00:50,588 - INFO - Deleting VN ctest-vn4-62162013 2025-09-08 12:00:50,690 - DEBUG - Response for deleting network () 2025-09-08 12:00:50,690 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c546cd8-d542-48af-a50d-5370cb9186d4 2025-09-08 12:00:50,694 - DEBUG - Response Code: 404 2025-09-08 12:00:50,694 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-08 12:00:50,699 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0fe0a250-1561-4c42-ae6c-0056308b180a 2025-09-08 12:00:50,752 - DEBUG - Requesting: http://10.0.0.22:8082/project/6280d7ff-7186-4781-a64a-e6b3483acf24 2025-09-08 12:00:50,826 - INFO - Validated that VN ctest-vn4-62162013 is not found in API Server 2025-09-08 12:00:50,834 - DEBUG - VN ctest-vn4-62162013 is not present in Agent 10.0.0.22 2025-09-08 12:00:50,834 - INFO - Validated that VN ctest-vn4-62162013 is not in any agent 2025-09-08 12:00:50,848 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-62162013 info 2025-09-08 12:00:50,871 - INFO - Deleted policy ctest-policy1-35490766 2025-09-08 12:00:51,028 - DEBUG - policy ctest-policy1-35490766 is not found in API Server 2025-09-08 12:00:51,280 - DEBUG - No XMPP flaps were noticed during the test
2025-09-08 12:00:51,280 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-08 12:00:51,280 - INFO - -------------------------------------------------------------------------------- 2025-09-08 12:00:51,568 - DEBUG - No XMPP flaps were noticed during the test
2025-09-08 12:00:51,568 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-08 12:00:51,568 - INFO - -------------------------------------------------------------------------------- 2025-09-08 12:00:52,230 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-62900671, ID : 6280d7ff-7186-4781-a64a-e6b3483acf24