2025-10-30 15:27:52,650 - INFO - Domain Default found not creating 2025-10-30 15:27:52,911 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-83547284 not found, creating it 2025-10-30 15:27:53,562 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-83547284, ID : 51ab4ed1-0a2c-4ead-86a8-0e4e0d3071c1 2025-10-30 15:27:55,459 - INFO - ================================================================================ 2025-10-30 15:27:55,459 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 15:27:55,746 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-30 15:27:55,747 - INFO - Initial checks done. Running the testcase now 2025-10-30 15:27:55,747 - INFO - 2025-10-30 15:27:55,747 - INFO - ================================================================================ 2025-10-30 15:27:55,747 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 15:27:55,747 - 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-30 15:27:56,057 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-30 15:27:56,057 - INFO - Initial checks done. Running the testcase now 2025-10-30 15:27:56,057 - INFO - 2025-10-30 15:27:56,459 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83547284:ctest-vn4-87189392, 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-83547284:ctest-vn4-87189392, 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-83547284:ctest-vn4-87189392, 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-83547284:ctest-vn4-87189392, 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-30 15:27:57,069 - DEBUG - Response for create_network : {'network': {'id': 'a4ca3a65-72a3-41ff-b319-cd9641110b59', 'name': 'ctest-vn4-87189392', 'tenant_id': '51ab4ed10a2c4ead86a80e4e0d3071c1', 'project_id': '51ab4ed10a2c4ead86a80e4e0d3071c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83547284', 'ctest-vn4-87189392'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 15:27:57,268 - DEBUG - Response for create_subnet : {'subnet': {'id': '4439787d-1e67-4122-abbe-84d4a4d5c414', 'name': '', 'tenant_id': '51ab4ed10a2c4ead86a80e4e0d3071c1', 'network_id': 'a4ca3a65-72a3-41ff-b319-cd9641110b59', 'ip_version': 4, 'cidr': '207.139.191.128/26', 'allocation_pools': [{'start': '207.139.191.130', 'end': '207.139.191.190'}], 'gateway_ip': '207.139.191.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.139.191.130', 'tags': [], 'project_id': '51ab4ed10a2c4ead86a80e4e0d3071c1'}} 2025-10-30 15:27:57,484 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e680368-aa94-4121-87ff-543cba36d5b1', 'name': '', 'tenant_id': '51ab4ed10a2c4ead86a80e4e0d3071c1', 'network_id': 'a4ca3a65-72a3-41ff-b319-cd9641110b59', 'ip_version': 6, 'cidr': '33f6:bd73:27fc:b7bd:4673:513d::/96', 'allocation_pools': [{'start': '33f6:bd73:27fc:b7bd:4673:513d:0:2', 'end': '33f6:bd73:27fc:b7bd:4673:513d:ffff:fffe'}], 'gateway_ip': '33f6:bd73:27fc:b7bd:4673:513d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33f6:bd73:27fc:b7bd:4673:513d:0:2', 'tags': [], 'project_id': '51ab4ed10a2c4ead86a80e4e0d3071c1'}} 2025-10-30 15:27:57,511 - INFO - Created VN ctest-vn4-87189392 2025-10-30 15:27:57,567 - DEBUG - VN ctest-vn4-87189392 UUID is a4ca3a65-72a3-41ff-b319-cd9641110b59 2025-10-30 15:27:57,834 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4ca3a65-72a3-41ff-b319-cd9641110b59', 'name': 'ctest-vn4-87189392', 'tenant_id': '51ab4ed10a2c4ead86a80e4e0d3071c1', 'project_id': '51ab4ed10a2c4ead86a80e4e0d3071c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4439787d-1e67-4122-abbe-84d4a4d5c414', '2e680368-aa94-4121-87ff-543cba36d5b1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83547284', 'ctest-vn4-87189392'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83547284', 'ctest-policy1-88920414']], 'subnet_ipam': [{'subnet_cidr': '207.139.191.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '33f6:bd73:27fc:b7bd:4673:513d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 15:27:58,006 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-30 15:27:58,305 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-30 15:27:58,348 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f86596b4-702b-490e-9836-c3cee65b9471 2025-10-30 15:27:58,366 - DEBUG - Requesting: http://10.0.0.254:8082/project/51ab4ed1-0a2c-4ead-86a8-0e4e0d3071c1 2025-10-30 15:27:58,460 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a4ca3a65-72a3-41ff-b319-cd9641110b59 2025-10-30 15:27:58,478 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a4ca3a65-72a3-41ff-b319-cd9641110b59 2025-10-30 15:27:58,490 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a2436f60-2be1-44fc-ba6e-7bbeccb445b6 2025-10-30 15:27:58,498 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a2436f60-2be1-44fc-ba6e-7bbeccb445b6 2025-10-30 15:27:58,506 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e4d52595-0573-4ce8-88c6-5309f7c04256 2025-10-30 15:27:58,513 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 15:27:58,513 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a4ca3a65-72a3-41ff-b319-cd9641110b59 2025-10-30 15:27:58,524 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a2436f60-2be1-44fc-ba6e-7bbeccb445b6 2025-10-30 15:27:58,541 - INFO - Verified VN network id 11 for VN a4ca3a65-72a3-41ff-b319-cd9641110b59 2025-10-30 15:27:58,541 - INFO - Verifications in API Server for VN ctest-vn4-87189392 passed 2025-10-30 15:27:58,541 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a4ca3a65-72a3-41ff-b319-cd9641110b59 2025-10-30 15:27:58,553 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a2436f60-2be1-44fc-ba6e-7bbeccb445b6 2025-10-30 15:27:58,561 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a2436f60-2be1-44fc-ba6e-7bbeccb445b6 2025-10-30 15:27:58,570 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e4d52595-0573-4ce8-88c6-5309f7c04256 2025-10-30 15:27:58,585 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83547284:ctest-vn4-87189392', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-83547284', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11874367574905143807', 'uuid-lslong': '12905572252427291481'}, 'enable': 'true', 'created': '2025-10-30T15:27:57', 'last-modified': '2025-10-30T15:27:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.788297'} 2025-10-30 15:27:58,592 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 15:27:58,592 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-87189392 passed 2025-10-30 15:27:58,593 - DEBUG - ====Verifying policy data for ctest-vn4-87189392 in API_Server ====== 2025-10-30 15:27:58,593 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-30 15:27:58,598 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f86596b4-702b-490e-9836-c3cee65b9471 2025-10-30 15:27:58,609 - DEBUG - Requesting: http://10.0.0.254:8082/project/51ab4ed1-0a2c-4ead-86a8-0e4e0d3071c1 2025-10-30 15:27:58,685 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a4ca3a65-72a3-41ff-b319-cd9641110b59 2025-10-30 15:27:58,696 - DEBUG - ==>Verifying data for policy with id: d921a366-76eb-46cf-912a-0d01186cce0e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83547284', 'ctest-policy1-88920414'] 2025-10-30 15:27:58,696 - INFO - VN ctest-vn4-87189392 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 15:27:58,696 - DEBUG - Verifying the vn in opserver 2025-10-30 15:27:58,696 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83547284:ctest-vn4-87189392 virtual network link through opserver 10.0.0.254 2025-10-30 15:27:58,696 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-30 15:27:58,996 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-30 15:27:59,066 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83547284:ctest-vn4-87189392', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83547284:ctest-vn4-87189392?flat'} 2025-10-30 15:27:59,066 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83547284:ctest-vn4-87189392 is found in opserver 2025-10-30 15:27:59,079 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 15:27:59,086 - DEBUG - VRF ids for VN ctest-vn4-87189392: {} 2025-10-30 15:27:59,087 - DEBUG - ====Verifying data for ctest-policy1-88920414 in API_Server ====== 2025-10-30 15:27:59,087 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-30 15:27:59,094 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f86596b4-702b-490e-9836-c3cee65b9471 2025-10-30 15:27:59,109 - DEBUG - Requesting: http://10.0.0.254:8082/project/51ab4ed1-0a2c-4ead-86a8-0e4e0d3071c1 2025-10-30 15:27:59,202 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/d921a366-76eb-46cf-912a-0d01186cce0e 2025-10-30 15:27:59,217 - INFO - Verified policy ctest-policy1-88920414 in API Server, Result: True 2025-10-30 15:27:59,217 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 15:27:59,230 - INFO - Deleting VN ctest-vn4-87189392 2025-10-30 15:27:59,383 - DEBUG - Response for deleting network () 2025-10-30 15:27:59,384 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a2436f60-2be1-44fc-ba6e-7bbeccb445b6 2025-10-30 15:27:59,390 - DEBUG - Response Code: 404 2025-10-30 15:27:59,390 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-30 15:27:59,396 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f86596b4-702b-490e-9836-c3cee65b9471 2025-10-30 15:27:59,456 - DEBUG - Requesting: http://10.0.0.254:8082/project/51ab4ed1-0a2c-4ead-86a8-0e4e0d3071c1 2025-10-30 15:27:59,531 - INFO - Validated that VN ctest-vn4-87189392 is not found in API Server 2025-10-30 15:27:59,542 - DEBUG - VN ctest-vn4-87189392 is not present in Agent 10.0.0.254 2025-10-30 15:27:59,542 - INFO - Validated that VN ctest-vn4-87189392 is not in any agent 2025-10-30 15:27:59,562 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-87189392 info 2025-10-30 15:27:59,598 - INFO - Deleted policy ctest-policy1-88920414 2025-10-30 15:27:59,782 - DEBUG - policy ctest-policy1-88920414 is not found in API Server 2025-10-30 15:28:00,074 - DEBUG - No XMPP flaps were noticed during the test 2025-10-30 15:28:00,074 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-10-30 15:28:00,074 - INFO - -------------------------------------------------------------------------------- 2025-10-30 15:28:00,394 - DEBUG - No XMPP flaps were noticed during the test 2025-10-30 15:28:00,394 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-10-30 15:28:00,395 - INFO - -------------------------------------------------------------------------------- 2025-10-30 15:28:01,359 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-83547284, ID : 51ab4ed1-0a2c-4ead-86a8-0e4e0d3071c1