2025-10-30 21:54:06,052 - INFO - Domain Default found not creating 2025-10-30 21:54:06,184 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-64690613 not found, creating it 2025-10-30 21:54:06,591 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-64690613, ID : 62f5ccb4-e972-4348-b5ac-0c1bd8aad0db 2025-10-30 21:54:07,978 - INFO - ================================================================================ 2025-10-30 21:54:07,978 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 21:54:08,239 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.242': '0'}} with 2025-10-30 21:54:08,239 - INFO - Initial checks done. Running the testcase now 2025-10-30 21:54:08,239 - INFO - 2025-10-30 21:54:08,239 - INFO - ================================================================================ 2025-10-30 21:54:08,239 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 21:54:08,239 - 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 21:54:08,527 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.242': '0'}} with 2025-10-30 21:54:08,527 - INFO - Initial checks done. Running the testcase now 2025-10-30 21:54:08,527 - INFO - 2025-10-30 21:54:08,866 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64690613:ctest-vn4-56602535, 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-64690613:ctest-vn4-56602535, 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-64690613:ctest-vn4-56602535, 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-64690613:ctest-vn4-56602535, 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 21:54:09,353 - DEBUG - Response for create_network : {'network': {'id': '57519c67-502d-45f6-8ffe-2710b69f03e0', 'name': 'ctest-vn4-56602535', 'tenant_id': '62f5ccb4e9724348b5ac0c1bd8aad0db', 'project_id': '62f5ccb4e9724348b5ac0c1bd8aad0db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64690613', 'ctest-vn4-56602535'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 21:54:09,531 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ced556b-18d3-4bab-8932-1f22690df3c5', 'name': '', 'tenant_id': '62f5ccb4e9724348b5ac0c1bd8aad0db', 'network_id': '57519c67-502d-45f6-8ffe-2710b69f03e0', 'ip_version': 4, 'cidr': '7.43.104.128/26', 'allocation_pools': [{'start': '7.43.104.130', 'end': '7.43.104.190'}], 'gateway_ip': '7.43.104.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.43.104.130', 'tags': [], 'project_id': '62f5ccb4e9724348b5ac0c1bd8aad0db'}} 2025-10-30 21:54:09,703 - DEBUG - Response for create_subnet : {'subnet': {'id': '8e41bcd4-4ab3-4174-aa89-10b9747cd5ab', 'name': '', 'tenant_id': '62f5ccb4e9724348b5ac0c1bd8aad0db', 'network_id': '57519c67-502d-45f6-8ffe-2710b69f03e0', 'ip_version': 6, 'cidr': '3a26:9a38:5f8e:c950:9820:8dd5::/96', 'allocation_pools': [{'start': '3a26:9a38:5f8e:c950:9820:8dd5:0:2', 'end': '3a26:9a38:5f8e:c950:9820:8dd5:ffff:fffe'}], 'gateway_ip': '3a26:9a38:5f8e:c950:9820:8dd5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a26:9a38:5f8e:c950:9820:8dd5:0:2', 'tags': [], 'project_id': '62f5ccb4e9724348b5ac0c1bd8aad0db'}} 2025-10-30 21:54:09,721 - INFO - Created VN ctest-vn4-56602535 2025-10-30 21:54:09,770 - DEBUG - VN ctest-vn4-56602535 UUID is 57519c67-502d-45f6-8ffe-2710b69f03e0 2025-10-30 21:54:09,952 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '57519c67-502d-45f6-8ffe-2710b69f03e0', 'name': 'ctest-vn4-56602535', 'tenant_id': '62f5ccb4e9724348b5ac0c1bd8aad0db', 'project_id': '62f5ccb4e9724348b5ac0c1bd8aad0db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7ced556b-18d3-4bab-8932-1f22690df3c5', '8e41bcd4-4ab3-4174-aa89-10b9747cd5ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64690613', 'ctest-vn4-56602535'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64690613', 'ctest-policy1-97849866']], 'subnet_ipam': [{'subnet_cidr': '7.43.104.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a26:9a38:5f8e:c950:9820:8dd5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 21:54:10,114 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2025-10-30 21:54:10,410 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2025-10-30 21:54:10,436 - DEBUG - Requesting: http://10.0.0.240:8082/domain/6289de67-18cd-4eae-96a8-1e72dffd8a03 2025-10-30 21:54:10,448 - DEBUG - Requesting: http://10.0.0.240:8082/project/62f5ccb4-e972-4348-b5ac-0c1bd8aad0db 2025-10-30 21:54:10,513 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/57519c67-502d-45f6-8ffe-2710b69f03e0 2025-10-30 21:54:10,523 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/57519c67-502d-45f6-8ffe-2710b69f03e0 2025-10-30 21:54:10,531 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/ca9c6760-29af-4e3a-af2c-6cdb56036640 2025-10-30 21:54:10,537 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/ca9c6760-29af-4e3a-af2c-6cdb56036640 2025-10-30 21:54:10,543 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/1123eba5-8b51-4a8c-8d7c-aaa5227001a9 2025-10-30 21:54:10,547 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 21:54:10,547 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/57519c67-502d-45f6-8ffe-2710b69f03e0 2025-10-30 21:54:10,554 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/ca9c6760-29af-4e3a-af2c-6cdb56036640 2025-10-30 21:54:10,565 - INFO - Verified VN network id 12 for VN 57519c67-502d-45f6-8ffe-2710b69f03e0 2025-10-30 21:54:10,565 - INFO - Verifications in API Server for VN ctest-vn4-56602535 passed 2025-10-30 21:54:10,565 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/57519c67-502d-45f6-8ffe-2710b69f03e0 2025-10-30 21:54:10,572 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/ca9c6760-29af-4e3a-af2c-6cdb56036640 2025-10-30 21:54:10,578 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/ca9c6760-29af-4e3a-af2c-6cdb56036640 2025-10-30 21:54:10,583 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/1123eba5-8b51-4a8c-8d7c-aaa5227001a9 2025-10-30 21:54:10,594 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64690613:ctest-vn4-56602535', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-64690613', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6291982121954002422', 'uuid-lslong': '10375773544245036000'}, 'enable': 'true', 'created': '2025-10-30T21:54:09', 'last-modified': '2025-10-30T21:54:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.664164'} 2025-10-30 21:54:10,599 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 21:54:10,599 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-56602535 passed 2025-10-30 21:54:10,599 - DEBUG - ====Verifying policy data for ctest-vn4-56602535 in API_Server ====== 2025-10-30 21:54:10,599 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2025-10-30 21:54:10,604 - DEBUG - Requesting: http://10.0.0.240:8082/domain/6289de67-18cd-4eae-96a8-1e72dffd8a03 2025-10-30 21:54:10,615 - DEBUG - Requesting: http://10.0.0.240:8082/project/62f5ccb4-e972-4348-b5ac-0c1bd8aad0db 2025-10-30 21:54:10,682 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/57519c67-502d-45f6-8ffe-2710b69f03e0 2025-10-30 21:54:10,693 - DEBUG - ==>Verifying data for policy with id: 64943076-383c-4872-a6ff-c132fcd92078, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64690613', 'ctest-policy1-97849866'] 2025-10-30 21:54:10,693 - INFO - VN ctest-vn4-56602535 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 21:54:10,693 - DEBUG - Verifying the vn in opserver 2025-10-30 21:54:10,693 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64690613:ctest-vn4-56602535 virtual network link through opserver 10.0.0.240 2025-10-30 21:54:10,693 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2025-10-30 21:54:10,984 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2025-10-30 21:54:11,036 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64690613:ctest-vn4-56602535', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64690613:ctest-vn4-56602535?flat'} 2025-10-30 21:54:11,036 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64690613:ctest-vn4-56602535 is found in opserver 2025-10-30 21:54:11,046 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 21:54:11,050 - DEBUG - VRF ids for VN ctest-vn4-56602535: {} 2025-10-30 21:54:11,051 - DEBUG - ====Verifying data for ctest-policy1-97849866 in API_Server ====== 2025-10-30 21:54:11,051 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2025-10-30 21:54:11,055 - DEBUG - Requesting: http://10.0.0.240:8082/domain/6289de67-18cd-4eae-96a8-1e72dffd8a03 2025-10-30 21:54:11,125 - DEBUG - Requesting: http://10.0.0.240:8082/project/62f5ccb4-e972-4348-b5ac-0c1bd8aad0db 2025-10-30 21:54:11,195 - DEBUG - Requesting: http://10.0.0.240:8082/network-policy/64943076-383c-4872-a6ff-c132fcd92078 2025-10-30 21:54:11,205 - INFO - Verified policy ctest-policy1-97849866 in API Server, Result: True 2025-10-30 21:54:11,205 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 21:54:11,213 - INFO - Deleting VN ctest-vn4-56602535 2025-10-30 21:54:11,319 - DEBUG - Response for deleting network () 2025-10-30 21:54:11,319 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/ca9c6760-29af-4e3a-af2c-6cdb56036640 2025-10-30 21:54:11,324 - DEBUG - Response Code: 404 2025-10-30 21:54:11,324 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2025-10-30 21:54:11,328 - DEBUG - Requesting: http://10.0.0.240:8082/domain/6289de67-18cd-4eae-96a8-1e72dffd8a03 2025-10-30 21:54:11,378 - DEBUG - Requesting: http://10.0.0.240:8082/project/62f5ccb4-e972-4348-b5ac-0c1bd8aad0db 2025-10-30 21:54:11,445 - INFO - Validated that VN ctest-vn4-56602535 is not found in API Server 2025-10-30 21:54:11,453 - DEBUG - VN ctest-vn4-56602535 is not present in Agent 10.0.0.240 2025-10-30 21:54:11,454 - INFO - Validated that VN ctest-vn4-56602535 is not in any agent 2025-10-30 21:54:11,466 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-56602535 info 2025-10-30 21:54:11,489 - INFO - Deleted policy ctest-policy1-97849866 2025-10-30 21:54:11,654 - DEBUG - policy ctest-policy1-97849866 is not found in API Server 2025-10-30 21:54:11,907 - DEBUG - No XMPP flaps were noticed during the test 2025-10-30 21:54:11,907 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-10-30 21:54:11,907 - INFO - -------------------------------------------------------------------------------- 2025-10-30 21:54:12,196 - DEBUG - No XMPP flaps were noticed during the test 2025-10-30 21:54:12,197 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-10-30 21:54:12,197 - INFO - -------------------------------------------------------------------------------- 2025-10-30 21:54:12,846 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-64690613, ID : 62f5ccb4-e972-4348-b5ac-0c1bd8aad0db