2025-08-11 10:51:27,658 - INFO - Domain Default found not creating 2025-08-11 10:51:27,774 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-05176265 not found, creating it 2025-08-11 10:51:28,269 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-05176265, ID : 589008b3-acbf-4aa3-8963-cda0178417dd 2025-08-11 10:51:29,589 - INFO - ================================================================================ 2025-08-11 10:51:29,589 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 10:51:29,851 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2025-08-11 10:51:29,851 - INFO - Initial checks done. Running the testcase now 2025-08-11 10:51:29,851 - INFO - 2025-08-11 10:51:29,851 - INFO - ================================================================================ 2025-08-11 10:51:29,851 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 10:51:29,851 - 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-11 10:51:30,135 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2025-08-11 10:51:30,135 - INFO - Initial checks done. Running the testcase now 2025-08-11 10:51:30,135 - INFO - 2025-08-11 10:51:30,472 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05176265:ctest-vn4-37895313, 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-05176265:ctest-vn4-37895313, 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-05176265:ctest-vn4-37895313, 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-05176265:ctest-vn4-37895313, 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-11 10:51:30,971 - DEBUG - Response for create_network : {'network': {'id': 'b8c439bb-c71c-4c6a-a231-d20c34737f5e', 'name': 'ctest-vn4-37895313', 'tenant_id': '589008b3acbf4aa38963cda0178417dd', 'project_id': '589008b3acbf4aa38963cda0178417dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05176265', 'ctest-vn4-37895313'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 10:51:31,148 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd832c45c-7bb6-40f7-a25b-1aa2c415ac25', 'name': '', 'tenant_id': '589008b3acbf4aa38963cda0178417dd', 'network_id': 'b8c439bb-c71c-4c6a-a231-d20c34737f5e', 'ip_version': 4, 'cidr': '117.179.138.128/26', 'allocation_pools': [{'start': '117.179.138.130', 'end': '117.179.138.190'}], 'gateway_ip': '117.179.138.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.179.138.130', 'tags': [], 'project_id': '589008b3acbf4aa38963cda0178417dd'}} 2025-08-11 10:51:31,312 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e611dd53-c1a8-49da-bf01-dca8e16d6023', 'name': '', 'tenant_id': '589008b3acbf4aa38963cda0178417dd', 'network_id': 'b8c439bb-c71c-4c6a-a231-d20c34737f5e', 'ip_version': 6, 'cidr': '25b0:211b:4e88:58eb:ad15:14a3::/96', 'allocation_pools': [{'start': '25b0:211b:4e88:58eb:ad15:14a3:0:2', 'end': '25b0:211b:4e88:58eb:ad15:14a3:ffff:fffe'}], 'gateway_ip': '25b0:211b:4e88:58eb:ad15:14a3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25b0:211b:4e88:58eb:ad15:14a3:0:2', 'tags': [], 'project_id': '589008b3acbf4aa38963cda0178417dd'}} 2025-08-11 10:51:31,329 - INFO - Created VN ctest-vn4-37895313 2025-08-11 10:51:31,381 - DEBUG - VN ctest-vn4-37895313 UUID is b8c439bb-c71c-4c6a-a231-d20c34737f5e 2025-08-11 10:51:31,552 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8c439bb-c71c-4c6a-a231-d20c34737f5e', 'name': 'ctest-vn4-37895313', 'tenant_id': '589008b3acbf4aa38963cda0178417dd', 'project_id': '589008b3acbf4aa38963cda0178417dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d832c45c-7bb6-40f7-a25b-1aa2c415ac25', 'e611dd53-c1a8-49da-bf01-dca8e16d6023'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05176265', 'ctest-vn4-37895313'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05176265', 'ctest-policy1-35792076']], 'subnet_ipam': [{'subnet_cidr': '117.179.138.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '25b0:211b:4e88:58eb:ad15:14a3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 10:51:31,717 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-11 10:51:32,005 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-11 10:51:32,029 - DEBUG - Requesting: http://10.0.0.249:8082/domain/2b35dbf8-2e90-4696-a23c-75b3c0f12a8c 2025-08-11 10:51:32,040 - DEBUG - Requesting: http://10.0.0.249:8082/project/589008b3-acbf-4aa3-8963-cda0178417dd 2025-08-11 10:51:32,113 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b8c439bb-c71c-4c6a-a231-d20c34737f5e 2025-08-11 10:51:32,124 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b8c439bb-c71c-4c6a-a231-d20c34737f5e 2025-08-11 10:51:32,133 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bf25d1fc-106a-4046-8e83-2e8db2b0de25 2025-08-11 10:51:32,139 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bf25d1fc-106a-4046-8e83-2e8db2b0de25 2025-08-11 10:51:32,144 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/57ec5d50-ddd8-4535-ad4d-2072cb237e8a 2025-08-11 10:51:32,149 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 10:51:32,149 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b8c439bb-c71c-4c6a-a231-d20c34737f5e 2025-08-11 10:51:32,158 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bf25d1fc-106a-4046-8e83-2e8db2b0de25 2025-08-11 10:51:32,169 - INFO - Verified VN network id 12 for VN b8c439bb-c71c-4c6a-a231-d20c34737f5e 2025-08-11 10:51:32,169 - INFO - Verifications in API Server for VN ctest-vn4-37895313 passed 2025-08-11 10:51:32,169 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b8c439bb-c71c-4c6a-a231-d20c34737f5e 2025-08-11 10:51:32,178 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bf25d1fc-106a-4046-8e83-2e8db2b0de25 2025-08-11 10:51:32,184 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bf25d1fc-106a-4046-8e83-2e8db2b0de25 2025-08-11 10:51:32,189 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/57ec5d50-ddd8-4535-ad4d-2072cb237e8a 2025-08-11 10:51:32,199 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05176265:ctest-vn4-37895313', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-05176265', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13313829877076216938', 'uuid-lslong': '11687353457864572766'}, 'enable': 'true', 'created': '2025-08-11T10:51:30', 'last-modified': '2025-08-11T10:51:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.672821'} 2025-08-11 10:51:32,205 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 10:51:32,205 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-37895313 passed 2025-08-11 10:51:32,205 - DEBUG - ====Verifying policy data for ctest-vn4-37895313 in API_Server ====== 2025-08-11 10:51:32,205 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-11 10:51:32,210 - DEBUG - Requesting: http://10.0.0.249:8082/domain/2b35dbf8-2e90-4696-a23c-75b3c0f12a8c 2025-08-11 10:51:32,220 - DEBUG - Requesting: http://10.0.0.249:8082/project/589008b3-acbf-4aa3-8963-cda0178417dd 2025-08-11 10:51:32,289 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b8c439bb-c71c-4c6a-a231-d20c34737f5e 2025-08-11 10:51:32,298 - DEBUG - ==>Verifying data for policy with id: bd38194d-1ed5-446e-bf40-216d1a499a56, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05176265', 'ctest-policy1-35792076'] 2025-08-11 10:51:32,298 - INFO - VN ctest-vn4-37895313 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 10:51:32,298 - DEBUG - Verifying the vn in opserver 2025-08-11 10:51:32,298 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05176265:ctest-vn4-37895313 virtual network link through opserver 10.0.0.249 2025-08-11 10:51:32,299 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-11 10:51:32,589 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-11 10:51:32,639 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05176265:ctest-vn4-37895313', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05176265:ctest-vn4-37895313?flat'} 2025-08-11 10:51:32,640 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05176265:ctest-vn4-37895313 is found in opserver 2025-08-11 10:51:32,650 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 10:51:32,654 - DEBUG - VRF ids for VN ctest-vn4-37895313: {} 2025-08-11 10:51:32,655 - DEBUG - ====Verifying data for ctest-policy1-35792076 in API_Server ====== 2025-08-11 10:51:32,655 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-11 10:51:32,660 - DEBUG - Requesting: http://10.0.0.249:8082/domain/2b35dbf8-2e90-4696-a23c-75b3c0f12a8c 2025-08-11 10:51:32,670 - DEBUG - Requesting: http://10.0.0.249:8082/project/589008b3-acbf-4aa3-8963-cda0178417dd 2025-08-11 10:51:32,742 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/bd38194d-1ed5-446e-bf40-216d1a499a56 2025-08-11 10:51:32,752 - INFO - Verified policy ctest-policy1-35792076 in API Server, Result: True 2025-08-11 10:51:32,752 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 10:51:32,759 - INFO - Deleting VN ctest-vn4-37895313 2025-08-11 10:51:32,864 - DEBUG - Response for deleting network () 2025-08-11 10:51:32,864 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/bf25d1fc-106a-4046-8e83-2e8db2b0de25 2025-08-11 10:51:32,869 - DEBUG - Response Code: 404 2025-08-11 10:51:32,869 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-11 10:51:32,873 - DEBUG - Requesting: http://10.0.0.249:8082/domain/2b35dbf8-2e90-4696-a23c-75b3c0f12a8c 2025-08-11 10:51:32,926 - DEBUG - Requesting: http://10.0.0.249:8082/project/589008b3-acbf-4aa3-8963-cda0178417dd 2025-08-11 10:51:32,993 - INFO - Validated that VN ctest-vn4-37895313 is not found in API Server 2025-08-11 10:51:33,002 - DEBUG - VN ctest-vn4-37895313 is not present in Agent 10.0.0.249 2025-08-11 10:51:33,002 - INFO - Validated that VN ctest-vn4-37895313 is not in any agent 2025-08-11 10:51:33,016 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-37895313 info 2025-08-11 10:51:33,038 - INFO - Deleted policy ctest-policy1-35792076 2025-08-11 10:51:33,201 - DEBUG - policy ctest-policy1-35792076 is not found in API Server 2025-08-11 10:51:33,458 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 10:51:33,458 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-11 10:51:33,458 - INFO - -------------------------------------------------------------------------------- 2025-08-11 10:51:33,746 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 10:51:33,746 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-11 10:51:33,746 - INFO - -------------------------------------------------------------------------------- 2025-08-11 10:51:34,374 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-05176265, ID : 589008b3-acbf-4aa3-8963-cda0178417dd