2025-10-30 02:17:00,210 - INFO - Domain Default found not creating 2025-10-30 02:17:00,346 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-31086281 not found, creating it 2025-10-30 02:17:00,762 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-31086281, ID : 9349e1eb-a79e-46f2-bc03-b35c75eebd03 2025-10-30 02:17:02,122 - INFO - ================================================================================ 2025-10-30 02:17:02,122 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 02:17:02,380 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.249': '0'}} with 2025-10-30 02:17:02,381 - INFO - Initial checks done. Running the testcase now 2025-10-30 02:17:02,381 - INFO - 2025-10-30 02:17:02,381 - INFO - ================================================================================ 2025-10-30 02:17:02,381 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 02:17:02,381 - 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 02:17:02,669 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.249': '0'}} with 2025-10-30 02:17:02,669 - INFO - Initial checks done. Running the testcase now 2025-10-30 02:17:02,669 - INFO - 2025-10-30 02:17:03,012 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31086281:ctest-vn4-22886206, 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-31086281:ctest-vn4-22886206, 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-31086281:ctest-vn4-22886206, 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-31086281:ctest-vn4-22886206, 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 02:17:03,496 - DEBUG - Response for create_network : {'network': {'id': '1250cdae-cf81-48f4-89dc-8bb741a13486', 'name': 'ctest-vn4-22886206', 'tenant_id': '9349e1eba79e46f2bc03b35c75eebd03', 'project_id': '9349e1eba79e46f2bc03b35c75eebd03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31086281', 'ctest-vn4-22886206'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 02:17:03,752 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd924a1c9-6ec0-4a04-97ce-5acebad80fbb', 'name': '', 'tenant_id': '9349e1eba79e46f2bc03b35c75eebd03', 'network_id': '1250cdae-cf81-48f4-89dc-8bb741a13486', 'ip_version': 4, 'cidr': '210.170.0.0/26', 'allocation_pools': [{'start': '210.170.0.2', 'end': '210.170.0.62'}], 'gateway_ip': '210.170.0.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.170.0.2', 'tags': [], 'project_id': '9349e1eba79e46f2bc03b35c75eebd03'}} 2025-10-30 02:17:03,943 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ee54fa16-f303-4c05-958a-9cb09523e415', 'name': '', 'tenant_id': '9349e1eba79e46f2bc03b35c75eebd03', 'network_id': '1250cdae-cf81-48f4-89dc-8bb741a13486', 'ip_version': 6, 'cidr': '3d4d:9fc:e342:9e66:1742:3593::/96', 'allocation_pools': [{'start': '3d4d:9fc:e342:9e66:1742:3593:0:2', 'end': '3d4d:9fc:e342:9e66:1742:3593:ffff:fffe'}], 'gateway_ip': '3d4d:9fc:e342:9e66:1742:3593:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d4d:9fc:e342:9e66:1742:3593:0:2', 'tags': [], 'project_id': '9349e1eba79e46f2bc03b35c75eebd03'}} 2025-10-30 02:17:03,960 - INFO - Created VN ctest-vn4-22886206 2025-10-30 02:17:04,011 - DEBUG - VN ctest-vn4-22886206 UUID is 1250cdae-cf81-48f4-89dc-8bb741a13486 2025-10-30 02:17:04,188 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1250cdae-cf81-48f4-89dc-8bb741a13486', 'name': 'ctest-vn4-22886206', 'tenant_id': '9349e1eba79e46f2bc03b35c75eebd03', 'project_id': '9349e1eba79e46f2bc03b35c75eebd03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d924a1c9-6ec0-4a04-97ce-5acebad80fbb', 'ee54fa16-f303-4c05-958a-9cb09523e415'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31086281', 'ctest-vn4-22886206'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31086281', 'ctest-policy1-15239961']], 'subnet_ipam': [{'subnet_cidr': '210.170.0.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d4d:9fc:e342:9e66:1742:3593::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 02:17:04,347 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-30 02:17:04,639 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-30 02:17:04,663 - DEBUG - Requesting: http://10.0.0.33:8082/domain/72a583dd-0632-4162-9b76-43bf94529bc6 2025-10-30 02:17:04,673 - DEBUG - Requesting: http://10.0.0.33:8082/project/9349e1eb-a79e-46f2-bc03-b35c75eebd03 2025-10-30 02:17:04,744 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1250cdae-cf81-48f4-89dc-8bb741a13486 2025-10-30 02:17:04,754 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1250cdae-cf81-48f4-89dc-8bb741a13486 2025-10-30 02:17:04,762 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0895f0a6-7338-4712-b5bd-f6591f4c31d6 2025-10-30 02:17:04,768 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0895f0a6-7338-4712-b5bd-f6591f4c31d6 2025-10-30 02:17:04,774 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/2cf67eee-1258-4637-964f-653c6d42bff7 2025-10-30 02:17:04,779 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 02:17:04,779 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1250cdae-cf81-48f4-89dc-8bb741a13486 2025-10-30 02:17:04,787 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0895f0a6-7338-4712-b5bd-f6591f4c31d6 2025-10-30 02:17:04,797 - INFO - Verified VN network id 12 for VN 1250cdae-cf81-48f4-89dc-8bb741a13486 2025-10-30 02:17:04,798 - INFO - Verifications in API Server for VN ctest-vn4-22886206 passed 2025-10-30 02:17:04,798 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1250cdae-cf81-48f4-89dc-8bb741a13486 2025-10-30 02:17:04,805 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0895f0a6-7338-4712-b5bd-f6591f4c31d6 2025-10-30 02:17:04,811 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0895f0a6-7338-4712-b5bd-f6591f4c31d6 2025-10-30 02:17:04,816 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/2cf67eee-1258-4637-964f-653c6d42bff7 2025-10-30 02:17:04,825 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31086281:ctest-vn4-22886206', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-31086281', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1319780841508915444', 'uuid-lslong': '9933968497268831366'}, 'enable': 'true', 'created': '2025-10-30T02:17:03', 'last-modified': '2025-10-30T02:17:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.664194'} 2025-10-30 02:17:04,830 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 02:17:04,830 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-22886206 passed 2025-10-30 02:17:04,830 - DEBUG - ====Verifying policy data for ctest-vn4-22886206 in API_Server ====== 2025-10-30 02:17:04,830 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-30 02:17:04,835 - DEBUG - Requesting: http://10.0.0.33:8082/domain/72a583dd-0632-4162-9b76-43bf94529bc6 2025-10-30 02:17:04,846 - DEBUG - Requesting: http://10.0.0.33:8082/project/9349e1eb-a79e-46f2-bc03-b35c75eebd03 2025-10-30 02:17:04,914 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1250cdae-cf81-48f4-89dc-8bb741a13486 2025-10-30 02:17:04,922 - DEBUG - ==>Verifying data for policy with id: 5b6b4f68-39db-478f-ad47-1c683e23d6be, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31086281', 'ctest-policy1-15239961'] 2025-10-30 02:17:04,922 - INFO - VN ctest-vn4-22886206 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 02:17:04,922 - DEBUG - Verifying the vn in opserver 2025-10-30 02:17:04,922 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31086281:ctest-vn4-22886206 virtual network link through opserver 10.0.0.33 2025-10-30 02:17:04,922 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-30 02:17:05,209 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-30 02:17:05,257 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31086281:ctest-vn4-22886206', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31086281:ctest-vn4-22886206?flat'} 2025-10-30 02:17:05,257 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31086281:ctest-vn4-22886206 is found in opserver 2025-10-30 02:17:05,266 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 02:17:05,270 - DEBUG - VRF ids for VN ctest-vn4-22886206: {} 2025-10-30 02:17:05,270 - DEBUG - ====Verifying data for ctest-policy1-15239961 in API_Server ====== 2025-10-30 02:17:05,271 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-30 02:17:05,275 - DEBUG - Requesting: http://10.0.0.33:8082/domain/72a583dd-0632-4162-9b76-43bf94529bc6 2025-10-30 02:17:05,285 - DEBUG - Requesting: http://10.0.0.33:8082/project/9349e1eb-a79e-46f2-bc03-b35c75eebd03 2025-10-30 02:17:05,356 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/5b6b4f68-39db-478f-ad47-1c683e23d6be 2025-10-30 02:17:05,367 - INFO - Verified policy ctest-policy1-15239961 in API Server, Result: True 2025-10-30 02:17:05,367 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 02:17:05,376 - INFO - Deleting VN ctest-vn4-22886206 2025-10-30 02:17:05,495 - DEBUG - Response for deleting network () 2025-10-30 02:17:05,495 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0895f0a6-7338-4712-b5bd-f6591f4c31d6 2025-10-30 02:17:05,500 - DEBUG - Response Code: 404 2025-10-30 02:17:05,501 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-30 02:17:05,505 - DEBUG - Requesting: http://10.0.0.33:8082/domain/72a583dd-0632-4162-9b76-43bf94529bc6 2025-10-30 02:17:05,555 - DEBUG - Requesting: http://10.0.0.33:8082/project/9349e1eb-a79e-46f2-bc03-b35c75eebd03 2025-10-30 02:17:05,625 - INFO - Validated that VN ctest-vn4-22886206 is not found in API Server 2025-10-30 02:17:05,633 - DEBUG - VN ctest-vn4-22886206 is not present in Agent 10.0.0.33 2025-10-30 02:17:05,633 - INFO - Validated that VN ctest-vn4-22886206 is not in any agent 2025-10-30 02:17:05,645 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-22886206 info 2025-10-30 02:17:05,667 - INFO - Deleted policy ctest-policy1-15239961 2025-10-30 02:17:05,831 - DEBUG - policy ctest-policy1-15239961 is not found in API Server 2025-10-30 02:17:06,088 - DEBUG - No XMPP flaps were noticed during the test
2025-10-30 02:17:06,088 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-30 02:17:06,088 - INFO - -------------------------------------------------------------------------------- 2025-10-30 02:17:06,375 - DEBUG - No XMPP flaps were noticed during the test
2025-10-30 02:17:06,375 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-30 02:17:06,375 - INFO - -------------------------------------------------------------------------------- 2025-10-30 02:17:07,018 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-31086281, ID : 9349e1eb-a79e-46f2-bc03-b35c75eebd03