2025-11-03 12:25:07,195 - INFO - Domain Default found not creating 2025-11-03 12:25:07,339 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-09750300 not found, creating it 2025-11-03 12:25:07,777 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-09750300, ID : 281122f6-f54d-4679-8157-06abdb86d2cf 2025-11-03 12:25:09,149 - INFO - ================================================================================ 2025-11-03 12:25:09,150 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-03 12:25:09,405 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-11-03 12:25:09,405 - INFO - Initial checks done. Running the testcase now 2025-11-03 12:25:09,405 - INFO - 2025-11-03 12:25:09,405 - INFO - ================================================================================ 2025-11-03 12:25:09,406 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-03 12:25:09,406 - 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-11-03 12:25:09,691 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-11-03 12:25:09,692 - INFO - Initial checks done. Running the testcase now 2025-11-03 12:25:09,692 - INFO - 2025-11-03 12:25:10,032 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09750300:ctest-vn4-97435244, 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-09750300:ctest-vn4-97435244, 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-09750300:ctest-vn4-97435244, 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-09750300:ctest-vn4-97435244, 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-11-03 12:25:10,538 - DEBUG - Response for create_network : {'network': {'id': '051057ff-2f00-4b2e-8d40-070206ed0941', 'name': 'ctest-vn4-97435244', 'tenant_id': '281122f6f54d4679815706abdb86d2cf', 'project_id': '281122f6f54d4679815706abdb86d2cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09750300', 'ctest-vn4-97435244'], 'port_security_enabled': True, 'description': ''}} 2025-11-03 12:25:10,697 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e4e592a5-bc2e-4fe0-9d36-8bbaf5a26c66', 'name': '', 'tenant_id': '281122f6f54d4679815706abdb86d2cf', 'network_id': '051057ff-2f00-4b2e-8d40-070206ed0941', 'ip_version': 4, 'cidr': '99.22.15.192/26', 'allocation_pools': [{'start': '99.22.15.194', 'end': '99.22.15.254'}], 'gateway_ip': '99.22.15.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.22.15.194', 'tags': [], 'project_id': '281122f6f54d4679815706abdb86d2cf'}} 2025-11-03 12:25:10,874 - DEBUG - Response for create_subnet : {'subnet': {'id': 'adb2c196-9f33-4138-85f3-4d73c6a00297', 'name': '', 'tenant_id': '281122f6f54d4679815706abdb86d2cf', 'network_id': '051057ff-2f00-4b2e-8d40-070206ed0941', 'ip_version': 6, 'cidr': '3d5c:f4da:4dde:2769:5889:313d::/96', 'allocation_pools': [{'start': '3d5c:f4da:4dde:2769:5889:313d:0:2', 'end': '3d5c:f4da:4dde:2769:5889:313d:ffff:fffe'}], 'gateway_ip': '3d5c:f4da:4dde:2769:5889:313d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d5c:f4da:4dde:2769:5889:313d:0:2', 'tags': [], 'project_id': '281122f6f54d4679815706abdb86d2cf'}} 2025-11-03 12:25:10,895 - INFO - Created VN ctest-vn4-97435244 2025-11-03 12:25:10,948 - DEBUG - VN ctest-vn4-97435244 UUID is 051057ff-2f00-4b2e-8d40-070206ed0941 2025-11-03 12:25:11,152 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '051057ff-2f00-4b2e-8d40-070206ed0941', 'name': 'ctest-vn4-97435244', 'tenant_id': '281122f6f54d4679815706abdb86d2cf', 'project_id': '281122f6f54d4679815706abdb86d2cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e4e592a5-bc2e-4fe0-9d36-8bbaf5a26c66', 'adb2c196-9f33-4138-85f3-4d73c6a00297'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09750300', 'ctest-vn4-97435244'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09750300', 'ctest-policy1-15736425']], 'subnet_ipam': [{'subnet_cidr': '99.22.15.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d5c:f4da:4dde:2769:5889:313d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-03 12:25:11,304 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-03 12:25:11,603 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-03 12:25:11,629 - DEBUG - Requesting: http://10.0.0.22:8082/domain/85901c10-00e9-4360-845e-cbeb878d11dd 2025-11-03 12:25:11,641 - DEBUG - Requesting: http://10.0.0.22:8082/project/281122f6-f54d-4679-8157-06abdb86d2cf 2025-11-03 12:25:11,714 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/051057ff-2f00-4b2e-8d40-070206ed0941 2025-11-03 12:25:11,724 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/051057ff-2f00-4b2e-8d40-070206ed0941 2025-11-03 12:25:11,732 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d85d6135-b57a-4104-b525-d44c08f4d672 2025-11-03 12:25:11,738 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d85d6135-b57a-4104-b525-d44c08f4d672 2025-11-03 12:25:11,746 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/54cd31b1-503a-4178-b93f-2b441b329aba 2025-11-03 12:25:11,752 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-03 12:25:11,752 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/051057ff-2f00-4b2e-8d40-070206ed0941 2025-11-03 12:25:11,759 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d85d6135-b57a-4104-b525-d44c08f4d672 2025-11-03 12:25:11,771 - INFO - Verified VN network id 9 for VN 051057ff-2f00-4b2e-8d40-070206ed0941 2025-11-03 12:25:11,771 - INFO - Verifications in API Server for VN ctest-vn4-97435244 passed 2025-11-03 12:25:11,771 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/051057ff-2f00-4b2e-8d40-070206ed0941 2025-11-03 12:25:11,781 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d85d6135-b57a-4104-b525-d44c08f4d672 2025-11-03 12:25:11,787 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d85d6135-b57a-4104-b525-d44c08f4d672 2025-11-03 12:25:11,793 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/54cd31b1-503a-4178-b93f-2b441b329aba 2025-11-03 12:25:11,805 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09750300:ctest-vn4-97435244', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-09750300', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '364888323333835566', 'uuid-lslong': '10178142863144847681'}, 'enable': 'true', 'created': '2025-11-03T12:25:10', 'last-modified': '2025-11-03T12:25:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.693034'} 2025-11-03 12:25:11,810 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-03 12:25:11,810 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-97435244 passed 2025-11-03 12:25:11,810 - DEBUG - ====Verifying policy data for ctest-vn4-97435244 in API_Server ====== 2025-11-03 12:25:11,810 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-03 12:25:11,815 - DEBUG - Requesting: http://10.0.0.22:8082/domain/85901c10-00e9-4360-845e-cbeb878d11dd 2025-11-03 12:25:11,823 - DEBUG - Requesting: http://10.0.0.22:8082/project/281122f6-f54d-4679-8157-06abdb86d2cf 2025-11-03 12:25:11,893 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/051057ff-2f00-4b2e-8d40-070206ed0941 2025-11-03 12:25:11,902 - DEBUG - ==>Verifying data for policy with id: af47dedc-2517-4443-b0ef-269aa567f0f1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09750300', 'ctest-policy1-15736425'] 2025-11-03 12:25:11,902 - INFO - VN ctest-vn4-97435244 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-03 12:25:11,902 - DEBUG - Verifying the vn in opserver 2025-11-03 12:25:11,902 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09750300:ctest-vn4-97435244 virtual network link through opserver 10.0.0.22 2025-11-03 12:25:11,902 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-03 12:25:12,191 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-03 12:25:12,243 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09750300:ctest-vn4-97435244', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09750300:ctest-vn4-97435244?flat'} 2025-11-03 12:25:12,243 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09750300:ctest-vn4-97435244 is found in opserver 2025-11-03 12:25:12,252 - DEBUG - Do not have enough data to verify VN in agent 2025-11-03 12:25:12,256 - DEBUG - VRF ids for VN ctest-vn4-97435244: {} 2025-11-03 12:25:12,256 - DEBUG - ====Verifying data for ctest-policy1-15736425 in API_Server ====== 2025-11-03 12:25:12,256 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-03 12:25:12,261 - DEBUG - Requesting: http://10.0.0.22:8082/domain/85901c10-00e9-4360-845e-cbeb878d11dd 2025-11-03 12:25:12,270 - DEBUG - Requesting: http://10.0.0.22:8082/project/281122f6-f54d-4679-8157-06abdb86d2cf 2025-11-03 12:25:12,338 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/af47dedc-2517-4443-b0ef-269aa567f0f1 2025-11-03 12:25:12,346 - INFO - Verified policy ctest-policy1-15736425 in API Server, Result: True 2025-11-03 12:25:12,346 - INFO - Done with setup and verification, moving onto test .. 2025-11-03 12:25:12,353 - INFO - Deleting VN ctest-vn4-97435244 2025-11-03 12:25:12,459 - DEBUG - Response for deleting network () 2025-11-03 12:25:12,459 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d85d6135-b57a-4104-b525-d44c08f4d672 2025-11-03 12:25:12,466 - DEBUG - Response Code: 404 2025-11-03 12:25:12,466 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-03 12:25:12,471 - DEBUG - Requesting: http://10.0.0.22:8082/domain/85901c10-00e9-4360-845e-cbeb878d11dd 2025-11-03 12:25:12,528 - DEBUG - Requesting: http://10.0.0.22:8082/project/281122f6-f54d-4679-8157-06abdb86d2cf 2025-11-03 12:25:12,597 - INFO - Validated that VN ctest-vn4-97435244 is not found in API Server 2025-11-03 12:25:12,607 - DEBUG - VN ctest-vn4-97435244 is not present in Agent 10.0.0.22 2025-11-03 12:25:12,607 - INFO - Validated that VN ctest-vn4-97435244 is not in any agent 2025-11-03 12:25:12,618 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-97435244 info 2025-11-03 12:25:12,642 - INFO - Deleted policy ctest-policy1-15736425 2025-11-03 12:25:12,799 - DEBUG - policy ctest-policy1-15736425 is not found in API Server 2025-11-03 12:25:13,056 - DEBUG - No XMPP flaps were noticed during the test 2025-11-03 12:25:13,056 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-03 12:25:13,056 - INFO - -------------------------------------------------------------------------------- 2025-11-03 12:25:13,352 - DEBUG - No XMPP flaps were noticed during the test 2025-11-03 12:25:13,352 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-03 12:25:13,352 - INFO - -------------------------------------------------------------------------------- 2025-11-03 12:25:13,997 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-09750300, ID : 281122f6-f54d-4679-8157-06abdb86d2cf