2025-10-31 20:04:11,941 - INFO - Domain Default found not creating 2025-10-31 20:04:12,085 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-50696529 not found, creating it 2025-10-31 20:04:12,535 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-50696529, ID : efcf091e-fbd0-426b-b0e6-fd316ac336dd 2025-10-31 20:04:13,916 - INFO - ================================================================================ 2025-10-31 20:04:13,916 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 20:04:14,175 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-10-31 20:04:14,175 - INFO - Initial checks done. Running the testcase now 2025-10-31 20:04:14,175 - INFO - 2025-10-31 20:04:14,175 - INFO - ================================================================================ 2025-10-31 20:04:14,175 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 20:04:14,175 - 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-31 20:04:14,463 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-10-31 20:04:14,463 - INFO - Initial checks done. Running the testcase now 2025-10-31 20:04:14,463 - INFO - 2025-10-31 20:04:14,819 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50696529:ctest-vn4-21793770, 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-50696529:ctest-vn4-21793770, 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-50696529:ctest-vn4-21793770, 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-50696529:ctest-vn4-21793770, 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-31 20:04:15,325 - DEBUG - Response for create_network : {'network': {'id': 'a5e19503-fe56-4a90-81f4-7426e7a12f0e', 'name': 'ctest-vn4-21793770', 'tenant_id': 'efcf091efbd0426bb0e6fd316ac336dd', 'project_id': 'efcf091efbd0426bb0e6fd316ac336dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50696529', 'ctest-vn4-21793770'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 20:04:15,467 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cd50ac81-f7b7-4982-8242-38d30c2b7ff2', 'name': '', 'tenant_id': 'efcf091efbd0426bb0e6fd316ac336dd', 'network_id': 'a5e19503-fe56-4a90-81f4-7426e7a12f0e', 'ip_version': 4, 'cidr': '11.171.232.64/26', 'allocation_pools': [{'start': '11.171.232.66', 'end': '11.171.232.126'}], 'gateway_ip': '11.171.232.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.171.232.66', 'tags': [], 'project_id': 'efcf091efbd0426bb0e6fd316ac336dd'}} 2025-10-31 20:04:15,634 - DEBUG - Response for create_subnet : {'subnet': {'id': '6923d212-cc06-48fb-8948-2cb9e09601cd', 'name': '', 'tenant_id': 'efcf091efbd0426bb0e6fd316ac336dd', 'network_id': 'a5e19503-fe56-4a90-81f4-7426e7a12f0e', 'ip_version': 6, 'cidr': '34aa:3ad6:7673:9583:6130:8cc::/96', 'allocation_pools': [{'start': '34aa:3ad6:7673:9583:6130:8cc:0:2', 'end': '34aa:3ad6:7673:9583:6130:8cc:ffff:fffe'}], 'gateway_ip': '34aa:3ad6:7673:9583:6130:8cc:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34aa:3ad6:7673:9583:6130:8cc:0:2', 'tags': [], 'project_id': 'efcf091efbd0426bb0e6fd316ac336dd'}} 2025-10-31 20:04:15,650 - INFO - Created VN ctest-vn4-21793770 2025-10-31 20:04:15,702 - DEBUG - VN ctest-vn4-21793770 UUID is a5e19503-fe56-4a90-81f4-7426e7a12f0e 2025-10-31 20:04:15,893 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a5e19503-fe56-4a90-81f4-7426e7a12f0e', 'name': 'ctest-vn4-21793770', 'tenant_id': 'efcf091efbd0426bb0e6fd316ac336dd', 'project_id': 'efcf091efbd0426bb0e6fd316ac336dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cd50ac81-f7b7-4982-8242-38d30c2b7ff2', '6923d212-cc06-48fb-8948-2cb9e09601cd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50696529', 'ctest-vn4-21793770'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50696529', 'ctest-policy1-72562161']], 'subnet_ipam': [{'subnet_cidr': '11.171.232.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34aa:3ad6:7673:9583:6130:8cc::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 20:04:16,054 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-31 20:04:16,344 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-31 20:04:16,368 - DEBUG - Requesting: http://10.0.0.38:8082/domain/31b540fc-c57c-42a1-8936-6ccb3de9022b 2025-10-31 20:04:16,378 - DEBUG - Requesting: http://10.0.0.38:8082/project/efcf091e-fbd0-426b-b0e6-fd316ac336dd 2025-10-31 20:04:16,444 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a5e19503-fe56-4a90-81f4-7426e7a12f0e 2025-10-31 20:04:16,455 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a5e19503-fe56-4a90-81f4-7426e7a12f0e 2025-10-31 20:04:16,462 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c84ca911-e7fb-4748-8e8a-c5b7e7c20ff9 2025-10-31 20:04:16,468 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c84ca911-e7fb-4748-8e8a-c5b7e7c20ff9 2025-10-31 20:04:16,474 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3724ccc1-9949-413e-8e3e-a72525030db1 2025-10-31 20:04:16,479 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 20:04:16,479 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a5e19503-fe56-4a90-81f4-7426e7a12f0e 2025-10-31 20:04:16,488 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c84ca911-e7fb-4748-8e8a-c5b7e7c20ff9 2025-10-31 20:04:16,499 - INFO - Verified VN network id 10 for VN a5e19503-fe56-4a90-81f4-7426e7a12f0e 2025-10-31 20:04:16,499 - INFO - Verifications in API Server for VN ctest-vn4-21793770 passed 2025-10-31 20:04:16,499 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a5e19503-fe56-4a90-81f4-7426e7a12f0e 2025-10-31 20:04:16,507 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c84ca911-e7fb-4748-8e8a-c5b7e7c20ff9 2025-10-31 20:04:16,512 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c84ca911-e7fb-4748-8e8a-c5b7e7c20ff9 2025-10-31 20:04:16,517 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3724ccc1-9949-413e-8e3e-a72525030db1 2025-10-31 20:04:16,526 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50696529:ctest-vn4-21793770', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-50696529', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11952998730402515600', 'uuid-lslong': '9364237235653783310'}, 'enable': 'true', 'created': '2025-10-31T20:04:15', 'last-modified': '2025-10-31T20:04:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.653965'} 2025-10-31 20:04:16,531 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 20:04:16,531 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-21793770 passed 2025-10-31 20:04:16,531 - DEBUG - ====Verifying policy data for ctest-vn4-21793770 in API_Server ====== 2025-10-31 20:04:16,531 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-31 20:04:16,535 - DEBUG - Requesting: http://10.0.0.38:8082/domain/31b540fc-c57c-42a1-8936-6ccb3de9022b 2025-10-31 20:04:16,544 - DEBUG - Requesting: http://10.0.0.38:8082/project/efcf091e-fbd0-426b-b0e6-fd316ac336dd 2025-10-31 20:04:16,614 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a5e19503-fe56-4a90-81f4-7426e7a12f0e 2025-10-31 20:04:16,623 - DEBUG - ==>Verifying data for policy with id: 94123cd0-198b-4099-8010-7ca611cbd9d9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50696529', 'ctest-policy1-72562161'] 2025-10-31 20:04:16,623 - INFO - VN ctest-vn4-21793770 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 20:04:16,623 - DEBUG - Verifying the vn in opserver 2025-10-31 20:04:16,623 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50696529:ctest-vn4-21793770 virtual network link through opserver 10.0.0.38 2025-10-31 20:04:16,623 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-31 20:04:16,918 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-31 20:04:16,968 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50696529:ctest-vn4-21793770', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50696529:ctest-vn4-21793770?flat'} 2025-10-31 20:04:16,968 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50696529:ctest-vn4-21793770 is found in opserver 2025-10-31 20:04:16,979 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 20:04:16,985 - DEBUG - VRF ids for VN ctest-vn4-21793770: {} 2025-10-31 20:04:16,985 - DEBUG - ====Verifying data for ctest-policy1-72562161 in API_Server ====== 2025-10-31 20:04:16,985 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-31 20:04:16,991 - DEBUG - Requesting: http://10.0.0.38:8082/domain/31b540fc-c57c-42a1-8936-6ccb3de9022b 2025-10-31 20:04:17,002 - DEBUG - Requesting: http://10.0.0.38:8082/project/efcf091e-fbd0-426b-b0e6-fd316ac336dd 2025-10-31 20:04:17,070 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/94123cd0-198b-4099-8010-7ca611cbd9d9 2025-10-31 20:04:17,079 - INFO - Verified policy ctest-policy1-72562161 in API Server, Result: True 2025-10-31 20:04:17,079 - INFO - Done with setup and verification, moving onto test .. 2025-10-31 20:04:17,085 - INFO - Deleting VN ctest-vn4-21793770 2025-10-31 20:04:17,198 - DEBUG - Response for deleting network () 2025-10-31 20:04:17,198 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c84ca911-e7fb-4748-8e8a-c5b7e7c20ff9 2025-10-31 20:04:17,202 - DEBUG - Response Code: 404 2025-10-31 20:04:17,202 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-31 20:04:17,207 - DEBUG - Requesting: http://10.0.0.38:8082/domain/31b540fc-c57c-42a1-8936-6ccb3de9022b 2025-10-31 20:04:17,258 - DEBUG - Requesting: http://10.0.0.38:8082/project/efcf091e-fbd0-426b-b0e6-fd316ac336dd 2025-10-31 20:04:17,328 - INFO - Validated that VN ctest-vn4-21793770 is not found in API Server 2025-10-31 20:04:17,337 - DEBUG - VN ctest-vn4-21793770 is not present in Agent 10.0.0.38 2025-10-31 20:04:17,337 - INFO - Validated that VN ctest-vn4-21793770 is not in any agent 2025-10-31 20:04:17,349 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-21793770 info 2025-10-31 20:04:17,374 - INFO - Deleted policy ctest-policy1-72562161 2025-10-31 20:04:17,537 - DEBUG - policy ctest-policy1-72562161 is not found in API Server 2025-10-31 20:04:17,795 - DEBUG - No XMPP flaps were noticed during the test