2025-10-22 15:06:30,105 - INFO - Domain Default found not creating 2025-10-22 15:06:30,276 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-92681291 not found, creating it 2025-10-22 15:06:30,755 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-92681291, ID : bd74903a-d5e1-4c3e-82ff-fe24bb1d311c 2025-10-22 15:06:32,244 - INFO - ================================================================================ 2025-10-22 15:06:32,244 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 15:06:32,497 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-22 15:06:32,497 - INFO - Initial checks done. Running the testcase now 2025-10-22 15:06:32,497 - INFO - 2025-10-22 15:06:32,498 - INFO - ================================================================================ 2025-10-22 15:06:32,498 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 15:06:32,498 - 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 15:06:32,785 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-22 15:06:32,785 - INFO - Initial checks done. Running the testcase now 2025-10-22 15:06:32,785 - INFO - 2025-10-22 15:06:33,134 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92681291:ctest-vn4-16253446, 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-92681291:ctest-vn4-16253446, 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-92681291:ctest-vn4-16253446, 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-92681291:ctest-vn4-16253446, 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 15:06:33,647 - DEBUG - Response for create_network : {'network': {'id': '5b6ec688-b8c6-46e8-9d26-44cb147da061', 'name': 'ctest-vn4-16253446', 'tenant_id': 'bd74903ad5e14c3e82fffe24bb1d311c', 'project_id': 'bd74903ad5e14c3e82fffe24bb1d311c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92681291', 'ctest-vn4-16253446'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 15:06:33,790 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dd5887ae-6cbf-4644-a7a8-0902161081c1', 'name': '', 'tenant_id': 'bd74903ad5e14c3e82fffe24bb1d311c', 'network_id': '5b6ec688-b8c6-46e8-9d26-44cb147da061', 'ip_version': 4, 'cidr': '180.223.54.128/26', 'allocation_pools': [{'start': '180.223.54.130', 'end': '180.223.54.190'}], 'gateway_ip': '180.223.54.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.223.54.130', 'tags': [], 'project_id': 'bd74903ad5e14c3e82fffe24bb1d311c'}} 2025-10-22 15:06:33,967 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a82337f4-e853-4104-b4ee-3cd95e2613c1', 'name': '', 'tenant_id': 'bd74903ad5e14c3e82fffe24bb1d311c', 'network_id': '5b6ec688-b8c6-46e8-9d26-44cb147da061', 'ip_version': 6, 'cidr': '3773:cf73:7dd1:d7bd:8ec3:a7f0::/96', 'allocation_pools': [{'start': '3773:cf73:7dd1:d7bd:8ec3:a7f0:0:2', 'end': '3773:cf73:7dd1:d7bd:8ec3:a7f0:ffff:fffe'}], 'gateway_ip': '3773:cf73:7dd1:d7bd:8ec3:a7f0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3773:cf73:7dd1:d7bd:8ec3:a7f0:0:2', 'tags': [], 'project_id': 'bd74903ad5e14c3e82fffe24bb1d311c'}} 2025-10-22 15:06:33,987 - INFO - Created VN ctest-vn4-16253446 2025-10-22 15:06:34,041 - DEBUG - VN ctest-vn4-16253446 UUID is 5b6ec688-b8c6-46e8-9d26-44cb147da061 2025-10-22 15:06:34,255 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b6ec688-b8c6-46e8-9d26-44cb147da061', 'name': 'ctest-vn4-16253446', 'tenant_id': 'bd74903ad5e14c3e82fffe24bb1d311c', 'project_id': 'bd74903ad5e14c3e82fffe24bb1d311c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dd5887ae-6cbf-4644-a7a8-0902161081c1', 'a82337f4-e853-4104-b4ee-3cd95e2613c1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92681291', 'ctest-vn4-16253446'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92681291', 'ctest-policy1-63356845']], 'subnet_ipam': [{'subnet_cidr': '180.223.54.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3773:cf73:7dd1:d7bd:8ec3:a7f0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 15:06:34,413 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 15:06:34,706 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 15:06:35,008 - DEBUG - Requesting: http://10.0.0.254:8082/domain/705d2352-6ba1-4c2a-9cbc-ca4d8113b574 2025-10-22 15:06:35,021 - DEBUG - Requesting: http://10.0.0.254:8082/project/bd74903a-d5e1-4c3e-82ff-fe24bb1d311c 2025-10-22 15:06:35,093 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5b6ec688-b8c6-46e8-9d26-44cb147da061 2025-10-22 15:06:35,112 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5b6ec688-b8c6-46e8-9d26-44cb147da061 2025-10-22 15:06:35,122 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1dd69140-2b56-4928-988b-c5aad618c35f 2025-10-22 15:06:35,130 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1dd69140-2b56-4928-988b-c5aad618c35f 2025-10-22 15:06:35,137 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/de274da0-d71e-46f2-b2cc-c639b42c3271 2025-10-22 15:06:35,144 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 15:06:35,144 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5b6ec688-b8c6-46e8-9d26-44cb147da061 2025-10-22 15:06:35,154 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1dd69140-2b56-4928-988b-c5aad618c35f 2025-10-22 15:06:35,167 - INFO - Verified VN network id 11 for VN 5b6ec688-b8c6-46e8-9d26-44cb147da061 2025-10-22 15:06:35,168 - INFO - Verifications in API Server for VN ctest-vn4-16253446 passed 2025-10-22 15:06:35,168 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5b6ec688-b8c6-46e8-9d26-44cb147da061 2025-10-22 15:06:35,177 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1dd69140-2b56-4928-988b-c5aad618c35f 2025-10-22 15:06:35,184 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1dd69140-2b56-4928-988b-c5aad618c35f 2025-10-22 15:06:35,191 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/de274da0-d71e-46f2-b2cc-c639b42c3271 2025-10-22 15:06:35,205 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92681291:ctest-vn4-16253446', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-92681291', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6588421595407468264', 'uuid-lslong': '11323813952082518113'}, 'enable': 'true', 'created': '2025-10-22T15:06:33', 'last-modified': '2025-10-22T15:06:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.977129'} 2025-10-22 15:06:35,212 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 15:06:35,212 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-16253446 passed 2025-10-22 15:06:35,212 - DEBUG - ====Verifying policy data for ctest-vn4-16253446 in API_Server ====== 2025-10-22 15:06:35,212 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 15:06:35,217 - DEBUG - Requesting: http://10.0.0.254:8082/domain/705d2352-6ba1-4c2a-9cbc-ca4d8113b574 2025-10-22 15:06:35,227 - DEBUG - Requesting: http://10.0.0.254:8082/project/bd74903a-d5e1-4c3e-82ff-fe24bb1d311c 2025-10-22 15:06:35,309 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5b6ec688-b8c6-46e8-9d26-44cb147da061 2025-10-22 15:06:35,321 - DEBUG - ==>Verifying data for policy with id: cc50d570-46e1-4c1a-9f27-ec03a22413d0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92681291', 'ctest-policy1-63356845'] 2025-10-22 15:06:35,321 - INFO - VN ctest-vn4-16253446 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 15:06:35,321 - DEBUG - Verifying the vn in opserver 2025-10-22 15:06:35,321 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92681291:ctest-vn4-16253446 virtual network link through opserver 10.0.0.254 2025-10-22 15:06:35,322 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-22 15:06:35,632 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-22 15:06:35,703 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92681291:ctest-vn4-16253446', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92681291:ctest-vn4-16253446?flat'} 2025-10-22 15:06:35,703 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92681291:ctest-vn4-16253446 is found in opserver 2025-10-22 15:06:35,713 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 15:06:35,717 - DEBUG - VRF ids for VN ctest-vn4-16253446: {} 2025-10-22 15:06:35,718 - DEBUG - ====Verifying data for ctest-policy1-63356845 in API_Server ====== 2025-10-22 15:06:35,718 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 15:06:35,723 - DEBUG - Requesting: http://10.0.0.254:8082/domain/705d2352-6ba1-4c2a-9cbc-ca4d8113b574 2025-10-22 15:06:35,732 - DEBUG - Requesting: http://10.0.0.254:8082/project/bd74903a-d5e1-4c3e-82ff-fe24bb1d311c 2025-10-22 15:06:35,810 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/cc50d570-46e1-4c1a-9f27-ec03a22413d0 2025-10-22 15:06:35,821 - INFO - Verified policy ctest-policy1-63356845 in API Server, Result: True 2025-10-22 15:06:35,821 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 15:06:35,833 - INFO - Deleting VN ctest-vn4-16253446 2025-10-22 15:06:35,981 - DEBUG - Response for deleting network () 2025-10-22 15:06:35,981 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1dd69140-2b56-4928-988b-c5aad618c35f 2025-10-22 15:06:35,989 - DEBUG - Response Code: 404 2025-10-22 15:06:35,989 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 15:06:35,996 - DEBUG - Requesting: http://10.0.0.254:8082/domain/705d2352-6ba1-4c2a-9cbc-ca4d8113b574 2025-10-22 15:06:36,058 - DEBUG - Requesting: http://10.0.0.254:8082/project/bd74903a-d5e1-4c3e-82ff-fe24bb1d311c 2025-10-22 15:06:36,134 - INFO - Validated that VN ctest-vn4-16253446 is not found in API Server 2025-10-22 15:06:36,147 - DEBUG - VN ctest-vn4-16253446 is not present in Agent 10.0.0.254 2025-10-22 15:06:36,147 - INFO - Validated that VN ctest-vn4-16253446 is not in any agent 2025-10-22 15:06:36,162 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-16253446 info 2025-10-22 15:06:36,188 - INFO - Deleted policy ctest-policy1-63356845 2025-10-22 15:06:36,348 - DEBUG - policy ctest-policy1-63356845 is not found in API Server 2025-10-22 15:06:36,601 - DEBUG - No XMPP flaps were noticed during the test