2025-08-11 06:28:06,859 - INFO - Domain Default found not creating 2025-08-11 06:28:07,015 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-94755681 not found, creating it 2025-08-11 06:28:07,608 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-94755681, ID : d15a9197-8ac2-4b4f-ac57-38a2e1d206e0 2025-08-11 06:28:09,199 - INFO - ================================================================================ 2025-08-11 06:28:09,199 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 06:28:10,480 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0', '10.20.0.25': '0'}, '10.0.0.57': {'10.20.0.17': '0', '10.20.0.254': '0'}} with 2025-08-11 06:28:10,480 - INFO - Initial checks done. Running the testcase now 2025-08-11 06:28:10,480 - INFO - 2025-08-11 06:28:10,481 - INFO - ================================================================================ 2025-08-11 06:28:10,481 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 06:28:10,481 - 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 06:28:11,773 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0', '10.20.0.25': '0'}, '10.0.0.57': {'10.20.0.17': '0', '10.20.0.254': '0'}} with 2025-08-11 06:28:11,774 - INFO - Initial checks done. Running the testcase now 2025-08-11 06:28:11,774 - INFO - 2025-08-11 06:28:12,157 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94755681:ctest-vn4-15046212, 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-94755681:ctest-vn4-15046212, 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-94755681:ctest-vn4-15046212, 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-94755681:ctest-vn4-15046212, 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 06:28:12,836 - DEBUG - Response for create_network : {'network': {'id': '3c76f22d-5fb9-48be-a918-ebe6d7a6d99b', 'name': 'ctest-vn4-15046212', 'tenant_id': 'd15a91978ac24b4fac5738a2e1d206e0', 'project_id': 'd15a91978ac24b4fac5738a2e1d206e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94755681', 'ctest-vn4-15046212'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 06:28:13,139 - DEBUG - Response for create_subnet : {'subnet': {'id': '2ebd2833-21e7-4fdb-9d52-40d99f7564a1', 'name': '', 'tenant_id': 'd15a91978ac24b4fac5738a2e1d206e0', 'network_id': '3c76f22d-5fb9-48be-a918-ebe6d7a6d99b', 'ip_version': 4, 'cidr': '151.17.247.64/26', 'allocation_pools': [{'start': '151.17.247.66', 'end': '151.17.247.126'}], 'gateway_ip': '151.17.247.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.17.247.66', 'tags': [], 'project_id': 'd15a91978ac24b4fac5738a2e1d206e0'}} 2025-08-11 06:28:13,373 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a82468d-c9b7-45c7-a41f-5209d33c6a94', 'name': '', 'tenant_id': 'd15a91978ac24b4fac5738a2e1d206e0', 'network_id': '3c76f22d-5fb9-48be-a918-ebe6d7a6d99b', 'ip_version': 6, 'cidr': '3c2c:31e6:a68:bfc3:3a48:e327::/96', 'allocation_pools': [{'start': '3c2c:31e6:a68:bfc3:3a48:e327:0:2', 'end': '3c2c:31e6:a68:bfc3:3a48:e327:ffff:fffe'}], 'gateway_ip': '3c2c:31e6:a68:bfc3:3a48:e327:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c2c:31e6:a68:bfc3:3a48:e327:0:2', 'tags': [], 'project_id': 'd15a91978ac24b4fac5738a2e1d206e0'}} 2025-08-11 06:28:13,409 - INFO - Created VN ctest-vn4-15046212 2025-08-11 06:28:13,424 - DEBUG - VN ctest-vn4-15046212 UUID is 3c76f22d-5fb9-48be-a918-ebe6d7a6d99b 2025-08-11 06:28:13,698 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c76f22d-5fb9-48be-a918-ebe6d7a6d99b', 'name': 'ctest-vn4-15046212', 'tenant_id': 'd15a91978ac24b4fac5738a2e1d206e0', 'project_id': 'd15a91978ac24b4fac5738a2e1d206e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2ebd2833-21e7-4fdb-9d52-40d99f7564a1', '5a82468d-c9b7-45c7-a41f-5209d33c6a94'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94755681', 'ctest-vn4-15046212'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94755681', 'ctest-policy1-69367864']], 'subnet_ipam': [{'subnet_cidr': '151.17.247.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c2c:31e6:a68:bfc3:3a48:e327::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 06:28:13,825 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-11 06:28:14,119 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-11 06:28:14,151 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0566ad86-51fd-4570-9dcc-fd1153322979 2025-08-11 06:28:14,169 - DEBUG - Requesting: http://10.0.0.254:8082/project/d15a9197-8ac2-4b4f-ac57-38a2e1d206e0 2025-08-11 06:28:14,264 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c76f22d-5fb9-48be-a918-ebe6d7a6d99b 2025-08-11 06:28:14,282 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c76f22d-5fb9-48be-a918-ebe6d7a6d99b 2025-08-11 06:28:14,295 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0c7f59a0-4378-4519-a2b4-3fc57f33666b 2025-08-11 06:28:14,305 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0c7f59a0-4378-4519-a2b4-3fc57f33666b 2025-08-11 06:28:14,314 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1867eb89-e875-48ba-99a5-badd27e8e9e5 2025-08-11 06:28:14,324 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 06:28:14,324 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c76f22d-5fb9-48be-a918-ebe6d7a6d99b 2025-08-11 06:28:14,340 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0c7f59a0-4378-4519-a2b4-3fc57f33666b 2025-08-11 06:28:14,360 - INFO - Verified VN network id 14 for VN 3c76f22d-5fb9-48be-a918-ebe6d7a6d99b 2025-08-11 06:28:14,361 - INFO - Verifications in API Server for VN ctest-vn4-15046212 passed 2025-08-11 06:28:14,361 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c76f22d-5fb9-48be-a918-ebe6d7a6d99b 2025-08-11 06:28:14,374 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0c7f59a0-4378-4519-a2b4-3fc57f33666b 2025-08-11 06:28:14,383 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0c7f59a0-4378-4519-a2b4-3fc57f33666b 2025-08-11 06:28:14,392 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1867eb89-e875-48ba-99a5-badd27e8e9e5 2025-08-11 06:28:14,406 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94755681:ctest-vn4-15046212', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94755681', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4356935966220961982', 'uuid-lslong': '12184748168543918491'}, 'enable': 'true', 'created': '2025-08-11T06:28:12', 'last-modified': '2025-08-11T06:28:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.783577'} 2025-08-11 06:28:14,415 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 06:28:14,424 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94755681:ctest-vn4-15046212', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94755681', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4356935966220961982', 'uuid-lslong': '12184748168543918491'}, 'enable': 'true', 'created': '2025-08-11T06:28:12', 'last-modified': '2025-08-11T06:28:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.798669'} 2025-08-11 06:28:14,431 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 06:28:14,438 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94755681:ctest-vn4-15046212', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94755681', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4356935966220961982', 'uuid-lslong': '12184748168543918491'}, 'enable': 'true', 'created': '2025-08-11T06:28:12', 'last-modified': '2025-08-11T06:28:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.812845'} 2025-08-11 06:28:14,444 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 06:28:14,445 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15046212 passed 2025-08-11 06:28:14,445 - DEBUG - ====Verifying policy data for ctest-vn4-15046212 in API_Server ====== 2025-08-11 06:28:14,445 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-11 06:28:14,452 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0566ad86-51fd-4570-9dcc-fd1153322979 2025-08-11 06:28:14,466 - DEBUG - Requesting: http://10.0.0.254:8082/project/d15a9197-8ac2-4b4f-ac57-38a2e1d206e0 2025-08-11 06:28:14,565 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c76f22d-5fb9-48be-a918-ebe6d7a6d99b 2025-08-11 06:28:14,587 - DEBUG - ==>Verifying data for policy with id: 5700a192-9e14-4726-bde5-509fb2855ed0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94755681', 'ctest-policy1-69367864'] 2025-08-11 06:28:14,587 - INFO - VN ctest-vn4-15046212 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 06:28:14,587 - DEBUG - Verifying the vn in opserver 2025-08-11 06:28:14,587 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94755681:ctest-vn4-15046212 virtual network link through opserver 10.0.0.254 2025-08-11 06:28:14,587 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-11 06:28:14,900 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-11 06:28:14,970 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94755681:ctest-vn4-15046212', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94755681:ctest-vn4-15046212?flat'} 2025-08-11 06:28:14,970 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94755681:ctest-vn4-15046212 virtual network link through opserver 10.0.0.38 2025-08-11 06:28:14,970 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 06:28:15,262 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 06:28:15,324 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94755681:ctest-vn4-15046212', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94755681:ctest-vn4-15046212?flat'} 2025-08-11 06:28:15,324 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94755681:ctest-vn4-15046212 virtual network link through opserver 10.0.0.50 2025-08-11 06:28:15,324 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-11 06:28:15,622 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-11 06:28:15,686 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94755681:ctest-vn4-15046212', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94755681:ctest-vn4-15046212?flat'} 2025-08-11 06:28:15,686 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94755681:ctest-vn4-15046212 is found in opserver 2025-08-11 06:28:15,712 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 06:28:15,723 - DEBUG - VRF ids for VN ctest-vn4-15046212: {} 2025-08-11 06:28:15,723 - DEBUG - ====Verifying data for ctest-policy1-69367864 in API_Server ====== 2025-08-11 06:28:15,723 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-11 06:28:15,730 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0566ad86-51fd-4570-9dcc-fd1153322979 2025-08-11 06:28:15,769 - DEBUG - Requesting: http://10.0.0.254:8082/project/d15a9197-8ac2-4b4f-ac57-38a2e1d206e0 2025-08-11 06:28:15,859 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/5700a192-9e14-4726-bde5-509fb2855ed0 2025-08-11 06:28:15,872 - INFO - Verified policy ctest-policy1-69367864 in API Server, Result: True 2025-08-11 06:28:15,872 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 06:28:15,885 - INFO - Deleting VN ctest-vn4-15046212 2025-08-11 06:28:16,116 - DEBUG - Response for deleting network () 2025-08-11 06:28:16,116 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0c7f59a0-4378-4519-a2b4-3fc57f33666b 2025-08-11 06:28:16,132 - DEBUG - Response Code: 404 2025-08-11 06:28:16,132 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-11 06:28:16,147 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0566ad86-51fd-4570-9dcc-fd1153322979 2025-08-11 06:28:16,166 - DEBUG - Requesting: http://10.0.0.254:8082/project/d15a9197-8ac2-4b4f-ac57-38a2e1d206e0 2025-08-11 06:28:16,270 - INFO - Validated that VN ctest-vn4-15046212 is not found in API Server 2025-08-11 06:28:16,287 - DEBUG - VN ctest-vn4-15046212 is not present in Agent 10.0.0.49 2025-08-11 06:28:16,303 - DEBUG - VN ctest-vn4-15046212 is not present in Agent 10.0.0.57 2025-08-11 06:28:16,303 - INFO - Validated that VN ctest-vn4-15046212 is not in any agent 2025-08-11 06:28:16,340 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15046212 info 2025-08-11 06:28:16,392 - INFO - Deleted policy ctest-policy1-69367864 2025-08-11 06:28:16,585 - DEBUG - policy ctest-policy1-69367864 is not found in API Server 2025-08-11 06:28:17,865 - DEBUG - No XMPP flaps were noticed during the test