2025-10-22 23:02:09,590 - INFO - Domain Default found not creating 2025-10-22 23:02:09,749 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-82413740 not found, creating it 2025-10-22 23:02:10,195 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-82413740, ID : 2fc70238-bd12-4619-8a93-b47066aea008 2025-10-22 23:02:11,642 - INFO - ================================================================================ 2025-10-22 23:02:11,642 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 23:02:11,900 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-22 23:02:11,900 - INFO - Initial checks done. Running the testcase now 2025-10-22 23:02:11,900 - INFO - 2025-10-22 23:02:11,900 - INFO - ================================================================================ 2025-10-22 23:02:11,900 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 23:02:11,900 - 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-22 23:02:12,195 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-22 23:02:12,195 - INFO - Initial checks done. Running the testcase now 2025-10-22 23:02:12,195 - INFO - 2025-10-22 23:02:12,580 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82413740:ctest-vn4-17224972, 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-82413740:ctest-vn4-17224972, 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-82413740:ctest-vn4-17224972, 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-82413740:ctest-vn4-17224972, 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-22 23:02:13,255 - DEBUG - Response for create_network : {'network': {'id': '3931ec27-9a14-43f0-bd70-5524a39317b0', 'name': 'ctest-vn4-17224972', 'tenant_id': '2fc70238bd1246198a93b47066aea008', 'project_id': '2fc70238bd1246198a93b47066aea008', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82413740', 'ctest-vn4-17224972'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 23:02:13,452 - DEBUG - Response for create_subnet : {'subnet': {'id': '7a993c89-d714-4246-a7ac-0ffdd08c08fb', 'name': '', 'tenant_id': '2fc70238bd1246198a93b47066aea008', 'network_id': '3931ec27-9a14-43f0-bd70-5524a39317b0', 'ip_version': 4, 'cidr': '32.227.4.0/26', 'allocation_pools': [{'start': '32.227.4.2', 'end': '32.227.4.62'}], 'gateway_ip': '32.227.4.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.227.4.2', 'tags': [], 'project_id': '2fc70238bd1246198a93b47066aea008'}} 2025-10-22 23:02:13,618 - DEBUG - Response for create_subnet : {'subnet': {'id': '47def5eb-cf66-46e2-b701-9527ac5190be', 'name': '', 'tenant_id': '2fc70238bd1246198a93b47066aea008', 'network_id': '3931ec27-9a14-43f0-bd70-5524a39317b0', 'ip_version': 6, 'cidr': '21c6:11be:160e:5c96:2260:a8fa::/96', 'allocation_pools': [{'start': '21c6:11be:160e:5c96:2260:a8fa:0:2', 'end': '21c6:11be:160e:5c96:2260:a8fa:ffff:fffe'}], 'gateway_ip': '21c6:11be:160e:5c96:2260:a8fa:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21c6:11be:160e:5c96:2260:a8fa:0:2', 'tags': [], 'project_id': '2fc70238bd1246198a93b47066aea008'}} 2025-10-22 23:02:13,647 - INFO - Created VN ctest-vn4-17224972 2025-10-22 23:02:13,701 - DEBUG - VN ctest-vn4-17224972 UUID is 3931ec27-9a14-43f0-bd70-5524a39317b0 2025-10-22 23:02:13,974 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3931ec27-9a14-43f0-bd70-5524a39317b0', 'name': 'ctest-vn4-17224972', 'tenant_id': '2fc70238bd1246198a93b47066aea008', 'project_id': '2fc70238bd1246198a93b47066aea008', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7a993c89-d714-4246-a7ac-0ffdd08c08fb', '47def5eb-cf66-46e2-b701-9527ac5190be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82413740', 'ctest-vn4-17224972'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82413740', 'ctest-policy1-49863087']], 'subnet_ipam': [{'subnet_cidr': '32.227.4.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21c6:11be:160e:5c96:2260:a8fa::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 23:02:14,138 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 23:02:14,444 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 23:02:14,473 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fcfba6dc-2315-409c-88c5-8ecd791307ae 2025-10-22 23:02:14,484 - DEBUG - Requesting: http://10.0.0.254:8082/project/2fc70238-bd12-4619-8a93-b47066aea008 2025-10-22 23:02:14,553 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3931ec27-9a14-43f0-bd70-5524a39317b0 2025-10-22 23:02:14,567 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3931ec27-9a14-43f0-bd70-5524a39317b0 2025-10-22 23:02:14,578 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6549aabd-7bbc-4d35-bd40-fde5696b5bab 2025-10-22 23:02:14,585 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6549aabd-7bbc-4d35-bd40-fde5696b5bab 2025-10-22 23:02:14,590 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/09d13618-52af-4864-8441-1deda3574654 2025-10-22 23:02:14,597 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 23:02:14,597 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3931ec27-9a14-43f0-bd70-5524a39317b0 2025-10-22 23:02:14,606 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6549aabd-7bbc-4d35-bd40-fde5696b5bab 2025-10-22 23:02:14,620 - INFO - Verified VN network id 11 for VN 3931ec27-9a14-43f0-bd70-5524a39317b0 2025-10-22 23:02:14,620 - INFO - Verifications in API Server for VN ctest-vn4-17224972 passed 2025-10-22 23:02:14,620 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3931ec27-9a14-43f0-bd70-5524a39317b0 2025-10-22 23:02:14,629 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6549aabd-7bbc-4d35-bd40-fde5696b5bab 2025-10-22 23:02:14,634 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6549aabd-7bbc-4d35-bd40-fde5696b5bab 2025-10-22 23:02:14,640 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/09d13618-52af-4864-8441-1deda3574654 2025-10-22 23:02:14,652 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82413740:ctest-vn4-17224972', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-82413740', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4121334788853613552', 'uuid-lslong': '13650504086411483056'}, 'enable': 'true', 'created': '2025-10-22T23:02:13', 'last-modified': '2025-10-22T23:02:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711586'} 2025-10-22 23:02:14,658 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 23:02:14,658 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-17224972 passed 2025-10-22 23:02:14,658 - DEBUG - ====Verifying policy data for ctest-vn4-17224972 in API_Server ====== 2025-10-22 23:02:14,658 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 23:02:14,663 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fcfba6dc-2315-409c-88c5-8ecd791307ae 2025-10-22 23:02:14,673 - DEBUG - Requesting: http://10.0.0.254:8082/project/2fc70238-bd12-4619-8a93-b47066aea008 2025-10-22 23:02:14,741 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3931ec27-9a14-43f0-bd70-5524a39317b0 2025-10-22 23:02:14,751 - DEBUG - ==>Verifying data for policy with id: f19adaae-cdab-47d4-aaf4-63958eaff3a7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82413740', 'ctest-policy1-49863087'] 2025-10-22 23:02:14,751 - INFO - VN ctest-vn4-17224972 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 23:02:14,751 - DEBUG - Verifying the vn in opserver 2025-10-22 23:02:14,752 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82413740:ctest-vn4-17224972 virtual network link through opserver 10.0.0.254 2025-10-22 23:02:14,752 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-22 23:02:15,057 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-22 23:02:15,106 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82413740:ctest-vn4-17224972', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82413740:ctest-vn4-17224972?flat'} 2025-10-22 23:02:15,106 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82413740:ctest-vn4-17224972 is found in opserver 2025-10-22 23:02:15,114 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 23:02:15,118 - DEBUG - VRF ids for VN ctest-vn4-17224972: {} 2025-10-22 23:02:15,118 - DEBUG - ====Verifying data for ctest-policy1-49863087 in API_Server ====== 2025-10-22 23:02:15,118 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 23:02:15,125 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fcfba6dc-2315-409c-88c5-8ecd791307ae 2025-10-22 23:02:15,135 - DEBUG - Requesting: http://10.0.0.254:8082/project/2fc70238-bd12-4619-8a93-b47066aea008 2025-10-22 23:02:15,207 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/f19adaae-cdab-47d4-aaf4-63958eaff3a7 2025-10-22 23:02:15,216 - INFO - Verified policy ctest-policy1-49863087 in API Server, Result: True 2025-10-22 23:02:15,216 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 23:02:15,223 - INFO - Deleting VN ctest-vn4-17224972 2025-10-22 23:02:15,363 - DEBUG - Response for deleting network () 2025-10-22 23:02:15,364 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6549aabd-7bbc-4d35-bd40-fde5696b5bab 2025-10-22 23:02:15,367 - DEBUG - Response Code: 404 2025-10-22 23:02:15,368 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 23:02:15,372 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fcfba6dc-2315-409c-88c5-8ecd791307ae 2025-10-22 23:02:15,426 - DEBUG - Requesting: http://10.0.0.254:8082/project/2fc70238-bd12-4619-8a93-b47066aea008 2025-10-22 23:02:15,502 - INFO - Validated that VN ctest-vn4-17224972 is not found in API Server 2025-10-22 23:02:15,511 - DEBUG - VN ctest-vn4-17224972 is not present in Agent 10.0.0.254 2025-10-22 23:02:15,511 - INFO - Validated that VN ctest-vn4-17224972 is not in any agent 2025-10-22 23:02:15,523 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-17224972 info 2025-10-22 23:02:15,548 - INFO - Deleted policy ctest-policy1-49863087 2025-10-22 23:02:15,709 - DEBUG - policy ctest-policy1-49863087 is not found in API Server 2025-10-22 23:02:15,978 - DEBUG - No XMPP flaps were noticed during the test