2025-10-23 01:46:34,055 - INFO - Domain Default found not creating 2025-10-23 01:46:34,184 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-86220531 not found, creating it 2025-10-23 01:46:34,600 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-86220531, ID : 9e5f779b-e39a-49ff-b388-5b8ba7d1373f 2025-10-23 01:46:35,960 - INFO - ================================================================================ 2025-10-23 01:46:35,960 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 01:46:36,216 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-10-23 01:46:36,216 - INFO - Initial checks done. Running the testcase now 2025-10-23 01:46:36,216 - INFO - 2025-10-23 01:46:36,216 - INFO - ================================================================================ 2025-10-23 01:46:36,216 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 01:46:36,216 - 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:46:36,501 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-10-23 01:46:36,501 - INFO - Initial checks done. Running the testcase now 2025-10-23 01:46:36,501 - INFO - 2025-10-23 01:46:36,840 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86220531:ctest-vn4-71659187, 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-86220531:ctest-vn4-71659187, 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-86220531:ctest-vn4-71659187, 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-86220531:ctest-vn4-71659187, 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:46:37,333 - DEBUG - Response for create_network : {'network': {'id': 'a269c09f-4894-4ad8-b514-3fefbbcacfc0', 'name': 'ctest-vn4-71659187', 'tenant_id': '9e5f779be39a49ffb3885b8ba7d1373f', 'project_id': '9e5f779be39a49ffb3885b8ba7d1373f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86220531', 'ctest-vn4-71659187'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 01:46:37,512 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e013625-9757-481c-b811-284adddd5519', 'name': '', 'tenant_id': '9e5f779be39a49ffb3885b8ba7d1373f', 'network_id': 'a269c09f-4894-4ad8-b514-3fefbbcacfc0', 'ip_version': 4, 'cidr': '215.17.26.64/26', 'allocation_pools': [{'start': '215.17.26.66', 'end': '215.17.26.126'}], 'gateway_ip': '215.17.26.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.17.26.66', 'tags': [], 'project_id': '9e5f779be39a49ffb3885b8ba7d1373f'}} 2025-10-23 01:46:37,711 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7ad9e11-5296-4dfc-b7a0-cf9577102574', 'name': '', 'tenant_id': '9e5f779be39a49ffb3885b8ba7d1373f', 'network_id': 'a269c09f-4894-4ad8-b514-3fefbbcacfc0', 'ip_version': 6, 'cidr': '20c1:88ba:8fc6:cc88:4131:8ba0::/96', 'allocation_pools': [{'start': '20c1:88ba:8fc6:cc88:4131:8ba0:0:2', 'end': '20c1:88ba:8fc6:cc88:4131:8ba0:ffff:fffe'}], 'gateway_ip': '20c1:88ba:8fc6:cc88:4131:8ba0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20c1:88ba:8fc6:cc88:4131:8ba0:0:2', 'tags': [], 'project_id': '9e5f779be39a49ffb3885b8ba7d1373f'}} 2025-10-23 01:46:37,729 - INFO - Created VN ctest-vn4-71659187 2025-10-23 01:46:37,781 - DEBUG - VN ctest-vn4-71659187 UUID is a269c09f-4894-4ad8-b514-3fefbbcacfc0 2025-10-23 01:46:37,956 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a269c09f-4894-4ad8-b514-3fefbbcacfc0', 'name': 'ctest-vn4-71659187', 'tenant_id': '9e5f779be39a49ffb3885b8ba7d1373f', 'project_id': '9e5f779be39a49ffb3885b8ba7d1373f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e013625-9757-481c-b811-284adddd5519', 'd7ad9e11-5296-4dfc-b7a0-cf9577102574'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86220531', 'ctest-vn4-71659187'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86220531', 'ctest-policy1-44973727']], 'subnet_ipam': [{'subnet_cidr': '215.17.26.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '20c1:88ba:8fc6:cc88:4131:8ba0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-23 01:46:38,117 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-23 01:46:38,404 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-23 01:46:38,429 - DEBUG - Requesting: http://10.0.0.242:8082/domain/dd0d4c61-0d50-4e29-8a46-e322f7a70cdd 2025-10-23 01:46:38,439 - DEBUG - Requesting: http://10.0.0.242:8082/project/9e5f779b-e39a-49ff-b388-5b8ba7d1373f 2025-10-23 01:46:38,508 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a269c09f-4894-4ad8-b514-3fefbbcacfc0 2025-10-23 01:46:38,517 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a269c09f-4894-4ad8-b514-3fefbbcacfc0 2025-10-23 01:46:38,526 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5aa04fbd-dcfc-491b-afb8-e460f5a7df90 2025-10-23 01:46:38,531 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5aa04fbd-dcfc-491b-afb8-e460f5a7df90 2025-10-23 01:46:38,537 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/1d55da4b-c41b-49f8-915f-fc86dd0b5963 2025-10-23 01:46:38,542 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 01:46:38,542 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a269c09f-4894-4ad8-b514-3fefbbcacfc0 2025-10-23 01:46:38,550 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5aa04fbd-dcfc-491b-afb8-e460f5a7df90 2025-10-23 01:46:38,562 - INFO - Verified VN network id 12 for VN a269c09f-4894-4ad8-b514-3fefbbcacfc0 2025-10-23 01:46:38,562 - INFO - Verifications in API Server for VN ctest-vn4-71659187 passed 2025-10-23 01:46:38,563 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a269c09f-4894-4ad8-b514-3fefbbcacfc0 2025-10-23 01:46:38,570 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5aa04fbd-dcfc-491b-afb8-e460f5a7df90 2025-10-23 01:46:38,576 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5aa04fbd-dcfc-491b-afb8-e460f5a7df90 2025-10-23 01:46:38,580 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/1d55da4b-c41b-49f8-915f-fc86dd0b5963 2025-10-23 01:46:38,589 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86220531:ctest-vn4-71659187', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-86220531', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11703096897048955608', 'uuid-lslong': '13048124319279534016'}, 'enable': 'true', 'created': '2025-10-23T01:46:37', 'last-modified': '2025-10-23T01:46:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.656080'} 2025-10-23 01:46:38,595 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 01:46:38,595 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-71659187 passed 2025-10-23 01:46:38,595 - DEBUG - ====Verifying policy data for ctest-vn4-71659187 in API_Server ====== 2025-10-23 01:46:38,595 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-23 01:46:38,599 - DEBUG - Requesting: http://10.0.0.242:8082/domain/dd0d4c61-0d50-4e29-8a46-e322f7a70cdd 2025-10-23 01:46:38,608 - DEBUG - Requesting: http://10.0.0.242:8082/project/9e5f779b-e39a-49ff-b388-5b8ba7d1373f 2025-10-23 01:46:38,674 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a269c09f-4894-4ad8-b514-3fefbbcacfc0 2025-10-23 01:46:38,683 - DEBUG - ==>Verifying data for policy with id: 74e40e47-5a4c-4429-b008-7a9826feca0f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86220531', 'ctest-policy1-44973727'] 2025-10-23 01:46:38,683 - INFO - VN ctest-vn4-71659187 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-23 01:46:38,683 - DEBUG - Verifying the vn in opserver 2025-10-23 01:46:38,683 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86220531:ctest-vn4-71659187 virtual network link through opserver 10.0.0.242 2025-10-23 01:46:38,683 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-23 01:46:38,971 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-23 01:46:39,018 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86220531:ctest-vn4-71659187', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86220531:ctest-vn4-71659187?flat'} 2025-10-23 01:46:39,018 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86220531:ctest-vn4-71659187 is found in opserver 2025-10-23 01:46:39,027 - DEBUG - Do not have enough data to verify VN in agent 2025-10-23 01:46:39,030 - DEBUG - VRF ids for VN ctest-vn4-71659187: {} 2025-10-23 01:46:39,031 - DEBUG - ====Verifying data for ctest-policy1-44973727 in API_Server ====== 2025-10-23 01:46:39,031 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-23 01:46:39,035 - DEBUG - Requesting: http://10.0.0.242:8082/domain/dd0d4c61-0d50-4e29-8a46-e322f7a70cdd 2025-10-23 01:46:39,044 - DEBUG - Requesting: http://10.0.0.242:8082/project/9e5f779b-e39a-49ff-b388-5b8ba7d1373f 2025-10-23 01:46:39,112 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/74e40e47-5a4c-4429-b008-7a9826feca0f 2025-10-23 01:46:39,120 - INFO - Verified policy ctest-policy1-44973727 in API Server, Result: True 2025-10-23 01:46:39,121 - INFO - Done with setup and verification, moving onto test .. 2025-10-23 01:46:39,127 - INFO - Deleting VN ctest-vn4-71659187 2025-10-23 01:46:39,214 - DEBUG - Response for deleting network () 2025-10-23 01:46:39,215 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5aa04fbd-dcfc-491b-afb8-e460f5a7df90 2025-10-23 01:46:39,218 - DEBUG - Response Code: 404 2025-10-23 01:46:39,218 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-23 01:46:39,222 - DEBUG - Requesting: http://10.0.0.242:8082/domain/dd0d4c61-0d50-4e29-8a46-e322f7a70cdd 2025-10-23 01:46:39,272 - DEBUG - Requesting: http://10.0.0.242:8082/project/9e5f779b-e39a-49ff-b388-5b8ba7d1373f 2025-10-23 01:46:39,340 - INFO - Validated that VN ctest-vn4-71659187 is not found in API Server 2025-10-23 01:46:39,349 - DEBUG - VN ctest-vn4-71659187 is not present in Agent 10.0.0.242 2025-10-23 01:46:39,349 - INFO - Validated that VN ctest-vn4-71659187 is not in any agent 2025-10-23 01:46:39,360 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-71659187 info 2025-10-23 01:46:39,385 - INFO - Deleted policy ctest-policy1-44973727 2025-10-23 01:46:39,545 - DEBUG - policy ctest-policy1-44973727 is not found in API Server 2025-10-23 01:46:39,798 - DEBUG - No XMPP flaps were noticed during the test 2025-10-23 01:46:39,798 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-10-23 01:46:39,798 - INFO - -------------------------------------------------------------------------------- 2025-10-23 01:46:40,087 - DEBUG - No XMPP flaps were noticed during the test 2025-10-23 01:46:40,087 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-10-23 01:46:40,087 - INFO - -------------------------------------------------------------------------------- 2025-10-23 01:46:40,724 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-86220531, ID : 9e5f779b-e39a-49ff-b388-5b8ba7d1373f