2025-08-15 09:55:55,660 - INFO - Domain Default found not creating 2025-08-15 09:55:55,798 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-42962649 not found, creating it 2025-08-15 09:55:56,270 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-42962649, ID : 1ad26fef-756e-4097-8e11-89202a406cf7 2025-08-15 09:55:57,597 - INFO - ================================================================================ 2025-08-15 09:55:57,597 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-15 09:55:58,870 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.14': '0', '10.20.0.254': '0'}, '10.0.0.242': {'10.20.0.254': '0', '10.20.0.25': '1'}} with 2025-08-15 09:55:58,871 - INFO - Initial checks done. Running the testcase now 2025-08-15 09:55:58,871 - INFO - 2025-08-15 09:55:58,871 - INFO - ================================================================================ 2025-08-15 09:55:58,871 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-15 09:55:58,871 - 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-15 09:56:00,149 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.14': '0', '10.20.0.254': '0'}, '10.0.0.242': {'10.20.0.254': '0', '10.20.0.25': '1'}} with 2025-08-15 09:56:00,149 - INFO - Initial checks done. Running the testcase now 2025-08-15 09:56:00,149 - INFO - 2025-08-15 09:56:00,488 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42962649:ctest-vn4-08019121, 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-42962649:ctest-vn4-08019121, 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-42962649:ctest-vn4-08019121, 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-42962649:ctest-vn4-08019121, 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-15 09:56:01,045 - DEBUG - Response for create_network : {'network': {'id': '8be81e06-50af-41cc-92ab-92b23fcdc368', 'name': 'ctest-vn4-08019121', 'tenant_id': '1ad26fef756e40978e1189202a406cf7', 'project_id': '1ad26fef756e40978e1189202a406cf7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42962649', 'ctest-vn4-08019121'], 'port_security_enabled': True, 'description': ''}} 2025-08-15 09:56:01,317 - DEBUG - Response for create_subnet : {'subnet': {'id': '73a85a0c-3f76-426d-9696-42ebd003f0e0', 'name': '', 'tenant_id': '1ad26fef756e40978e1189202a406cf7', 'network_id': '8be81e06-50af-41cc-92ab-92b23fcdc368', 'ip_version': 4, 'cidr': '87.100.129.128/26', 'allocation_pools': [{'start': '87.100.129.130', 'end': '87.100.129.190'}], 'gateway_ip': '87.100.129.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.100.129.130', 'tags': [], 'project_id': '1ad26fef756e40978e1189202a406cf7'}} 2025-08-15 09:56:01,548 - DEBUG - Response for create_subnet : {'subnet': {'id': '17778b71-0c8c-4509-a9a7-ea1ba41abab5', 'name': '', 'tenant_id': '1ad26fef756e40978e1189202a406cf7', 'network_id': '8be81e06-50af-41cc-92ab-92b23fcdc368', 'ip_version': 6, 'cidr': '2ac6:fc95:a832:e67e:fc72:ee0f::/96', 'allocation_pools': [{'start': '2ac6:fc95:a832:e67e:fc72:ee0f:0:2', 'end': '2ac6:fc95:a832:e67e:fc72:ee0f:ffff:fffe'}], 'gateway_ip': '2ac6:fc95:a832:e67e:fc72:ee0f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ac6:fc95:a832:e67e:fc72:ee0f:0:2', 'tags': [], 'project_id': '1ad26fef756e40978e1189202a406cf7'}} 2025-08-15 09:56:01,573 - INFO - Created VN ctest-vn4-08019121 2025-08-15 09:56:01,584 - DEBUG - VN ctest-vn4-08019121 UUID is 8be81e06-50af-41cc-92ab-92b23fcdc368 2025-08-15 09:56:01,765 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8be81e06-50af-41cc-92ab-92b23fcdc368', 'name': 'ctest-vn4-08019121', 'tenant_id': '1ad26fef756e40978e1189202a406cf7', 'project_id': '1ad26fef756e40978e1189202a406cf7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['73a85a0c-3f76-426d-9696-42ebd003f0e0', '17778b71-0c8c-4509-a9a7-ea1ba41abab5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42962649', 'ctest-vn4-08019121'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42962649', 'ctest-policy1-25113744']], 'subnet_ipam': [{'subnet_cidr': '87.100.129.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ac6:fc95:a832:e67e:fc72:ee0f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-15 09:56:01,878 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-15 09:56:02,191 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-15 09:56:02,219 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4d954f05-13b9-4014-b839-289a92604c21 2025-08-15 09:56:02,239 - DEBUG - Requesting: http://10.0.0.50:8082/project/1ad26fef-756e-4097-8e11-89202a406cf7 2025-08-15 09:56:02,343 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8be81e06-50af-41cc-92ab-92b23fcdc368 2025-08-15 09:56:02,360 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8be81e06-50af-41cc-92ab-92b23fcdc368 2025-08-15 09:56:02,373 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/11e84c9d-4b28-4392-bb39-38660c6a7cfb 2025-08-15 09:56:02,381 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/11e84c9d-4b28-4392-bb39-38660c6a7cfb 2025-08-15 09:56:02,387 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a4b0bb74-5eb8-430c-b30c-8215ed569071 2025-08-15 09:56:02,394 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-15 09:56:02,394 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8be81e06-50af-41cc-92ab-92b23fcdc368 2025-08-15 09:56:02,405 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/11e84c9d-4b28-4392-bb39-38660c6a7cfb 2025-08-15 09:56:02,419 - INFO - Verified VN network id 15 for VN 8be81e06-50af-41cc-92ab-92b23fcdc368 2025-08-15 09:56:02,419 - INFO - Verifications in API Server for VN ctest-vn4-08019121 passed 2025-08-15 09:56:02,419 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8be81e06-50af-41cc-92ab-92b23fcdc368 2025-08-15 09:56:02,429 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/11e84c9d-4b28-4392-bb39-38660c6a7cfb 2025-08-15 09:56:02,437 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/11e84c9d-4b28-4392-bb39-38660c6a7cfb 2025-08-15 09:56:02,443 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a4b0bb74-5eb8-430c-b30c-8215ed569071 2025-08-15 09:56:02,453 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42962649:ctest-vn4-08019121', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-42962649', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10081340778341155276', 'uuid-lslong': '10568702244827284328'}, 'enable': 'true', 'created': '2025-08-15T09:56:00', 'last-modified': '2025-08-15T09:56:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.726337'} 2025-08-15 09:56:02,459 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-15 09:56:02,465 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42962649:ctest-vn4-08019121', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-42962649', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10081340778341155276', 'uuid-lslong': '10568702244827284328'}, 'enable': 'true', 'created': '2025-08-15T09:56:00', 'last-modified': '2025-08-15T09:56:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.741420'} 2025-08-15 09:56:02,470 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-15 09:56:02,475 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42962649:ctest-vn4-08019121', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-42962649', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10081340778341155276', 'uuid-lslong': '10568702244827284328'}, 'enable': 'true', 'created': '2025-08-15T09:56:00', 'last-modified': '2025-08-15T09:56:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.749622'} 2025-08-15 09:56:02,481 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-15 09:56:02,481 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-08019121 passed 2025-08-15 09:56:02,481 - DEBUG - ====Verifying policy data for ctest-vn4-08019121 in API_Server ====== 2025-08-15 09:56:02,481 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-15 09:56:02,486 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4d954f05-13b9-4014-b839-289a92604c21 2025-08-15 09:56:02,496 - DEBUG - Requesting: http://10.0.0.50:8082/project/1ad26fef-756e-4097-8e11-89202a406cf7 2025-08-15 09:56:02,612 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8be81e06-50af-41cc-92ab-92b23fcdc368 2025-08-15 09:56:02,627 - DEBUG - ==>Verifying data for policy with id: 9f99fccd-92eb-4a12-847e-1bcb3e269f43, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42962649', 'ctest-policy1-25113744'] 2025-08-15 09:56:02,627 - INFO - VN ctest-vn4-08019121 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-15 09:56:02,627 - DEBUG - Verifying the vn in opserver 2025-08-15 09:56:02,627 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42962649:ctest-vn4-08019121 virtual network link through opserver 10.0.0.50 2025-08-15 09:56:02,627 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-15 09:56:02,918 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-15 09:56:02,971 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42962649:ctest-vn4-08019121', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42962649:ctest-vn4-08019121?flat'} 2025-08-15 09:56:02,971 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42962649:ctest-vn4-08019121 virtual network link through opserver 10.0.0.22 2025-08-15 09:56:02,971 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-08-15 09:56:03,259 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-08-15 09:56:03,313 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42962649:ctest-vn4-08019121', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42962649:ctest-vn4-08019121?flat'} 2025-08-15 09:56:03,313 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42962649:ctest-vn4-08019121 virtual network link through opserver 10.0.0.19 2025-08-15 09:56:03,313 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-15 09:56:03,601 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-15 09:56:03,651 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42962649:ctest-vn4-08019121', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42962649:ctest-vn4-08019121?flat'} 2025-08-15 09:56:03,651 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42962649:ctest-vn4-08019121 is found in opserver 2025-08-15 09:56:03,674 - DEBUG - Do not have enough data to verify VN in agent 2025-08-15 09:56:03,684 - DEBUG - VRF ids for VN ctest-vn4-08019121: {} 2025-08-15 09:56:03,684 - DEBUG - ====Verifying data for ctest-policy1-25113744 in API_Server ====== 2025-08-15 09:56:03,684 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-15 09:56:03,689 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4d954f05-13b9-4014-b839-289a92604c21 2025-08-15 09:56:03,700 - DEBUG - Requesting: http://10.0.0.50:8082/project/1ad26fef-756e-4097-8e11-89202a406cf7 2025-08-15 09:56:03,804 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/9f99fccd-92eb-4a12-847e-1bcb3e269f43 2025-08-15 09:56:03,822 - INFO - Verified policy ctest-policy1-25113744 in API Server, Result: True 2025-08-15 09:56:03,822 - INFO - Done with setup and verification, moving onto test .. 2025-08-15 09:56:03,837 - INFO - Deleting VN ctest-vn4-08019121 2025-08-15 09:56:04,108 - DEBUG - Response for deleting network () 2025-08-15 09:56:04,109 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/11e84c9d-4b28-4392-bb39-38660c6a7cfb 2025-08-15 09:56:04,120 - DEBUG - Response Code: 404 2025-08-15 09:56:04,120 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-15 09:56:04,128 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4d954f05-13b9-4014-b839-289a92604c21 2025-08-15 09:56:04,139 - DEBUG - Requesting: http://10.0.0.50:8082/project/1ad26fef-756e-4097-8e11-89202a406cf7 2025-08-15 09:56:04,223 - INFO - Validated that VN ctest-vn4-08019121 is not found in API Server 2025-08-15 09:56:04,234 - DEBUG - VN ctest-vn4-08019121 is not present in Agent 10.0.0.241 2025-08-15 09:56:04,242 - DEBUG - VN ctest-vn4-08019121 is not present in Agent 10.0.0.242 2025-08-15 09:56:04,242 - INFO - Validated that VN ctest-vn4-08019121 is not in any agent 2025-08-15 09:56:04,274 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-08019121 info 2025-08-15 09:56:04,314 - INFO - Deleted policy ctest-policy1-25113744 2025-08-15 09:56:04,499 - DEBUG - policy ctest-policy1-25113744 is not found in API Server 2025-08-15 09:56:05,750 - DEBUG - No XMPP flaps were noticed during the test
2025-08-15 09:56:05,750 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2025-08-15 09:56:05,750 - INFO - -------------------------------------------------------------------------------- 2025-08-15 09:56:07,026 - DEBUG - No XMPP flaps were noticed during the test
2025-08-15 09:56:07,026 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2025-08-15 09:56:07,026 - INFO - -------------------------------------------------------------------------------- 2025-08-15 09:56:07,740 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-42962649, ID : 1ad26fef-756e-4097-8e11-89202a406cf7