2025-10-30 14:04:45,207 - INFO - Domain Default found not creating 2025-10-30 14:04:45,359 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-33472130 not found, creating it 2025-10-30 14:04:45,796 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-33472130, ID : 6d9fdea3-34f8-42b5-afa2-e8c50a71ca37 2025-10-30 14:04:47,197 - INFO - ================================================================================ 2025-10-30 14:04:47,197 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 14:04:47,450 - DEBUG - Nothing to compare xmpp stats {'10.0.0.128': {'10.20.0.14': '0'}} with 2025-10-30 14:04:47,450 - INFO - Initial checks done. Running the testcase now 2025-10-30 14:04:47,450 - INFO - 2025-10-30 14:04:47,450 - INFO - ================================================================================ 2025-10-30 14:04:47,450 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 14:04:47,451 - 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 14:04:47,738 - DEBUG - Nothing to compare xmpp stats {'10.0.0.128': {'10.20.0.14': '0'}} with 2025-10-30 14:04:47,738 - INFO - Initial checks done. Running the testcase now 2025-10-30 14:04:47,738 - INFO - 2025-10-30 14:04:48,089 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33472130:ctest-vn4-90381313, 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-33472130:ctest-vn4-90381313, 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-33472130:ctest-vn4-90381313, 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-33472130:ctest-vn4-90381313, 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 14:04:48,607 - DEBUG - Response for create_network : {'network': {'id': '9518aa4e-94fe-4808-a331-d6e35477d020', 'name': 'ctest-vn4-90381313', 'tenant_id': '6d9fdea334f842b5afa2e8c50a71ca37', 'project_id': '6d9fdea334f842b5afa2e8c50a71ca37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33472130', 'ctest-vn4-90381313'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 14:04:48,783 - DEBUG - Response for create_subnet : {'subnet': {'id': '547e3524-dc10-4a11-b5a3-baff458a3fa6', 'name': '', 'tenant_id': '6d9fdea334f842b5afa2e8c50a71ca37', 'network_id': '9518aa4e-94fe-4808-a331-d6e35477d020', 'ip_version': 4, 'cidr': '137.10.28.192/26', 'allocation_pools': [{'start': '137.10.28.194', 'end': '137.10.28.254'}], 'gateway_ip': '137.10.28.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.10.28.194', 'tags': [], 'project_id': '6d9fdea334f842b5afa2e8c50a71ca37'}} 2025-10-30 14:04:48,943 - DEBUG - Response for create_subnet : {'subnet': {'id': '586181ca-50db-44c7-bb83-93b7f410393f', 'name': '', 'tenant_id': '6d9fdea334f842b5afa2e8c50a71ca37', 'network_id': '9518aa4e-94fe-4808-a331-d6e35477d020', 'ip_version': 6, 'cidr': '3003:21a2:649:86da:3d62:348a::/96', 'allocation_pools': [{'start': '3003:21a2:649:86da:3d62:348a:0:2', 'end': '3003:21a2:649:86da:3d62:348a:ffff:fffe'}], 'gateway_ip': '3003:21a2:649:86da:3d62:348a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3003:21a2:649:86da:3d62:348a:0:2', 'tags': [], 'project_id': '6d9fdea334f842b5afa2e8c50a71ca37'}} 2025-10-30 14:04:48,966 - INFO - Created VN ctest-vn4-90381313 2025-10-30 14:04:49,020 - DEBUG - VN ctest-vn4-90381313 UUID is 9518aa4e-94fe-4808-a331-d6e35477d020 2025-10-30 14:04:49,227 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9518aa4e-94fe-4808-a331-d6e35477d020', 'name': 'ctest-vn4-90381313', 'tenant_id': '6d9fdea334f842b5afa2e8c50a71ca37', 'project_id': '6d9fdea334f842b5afa2e8c50a71ca37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['547e3524-dc10-4a11-b5a3-baff458a3fa6', '586181ca-50db-44c7-bb83-93b7f410393f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33472130', 'ctest-vn4-90381313'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33472130', 'ctest-policy1-15769114']], 'subnet_ipam': [{'subnet_cidr': '137.10.28.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3003:21a2:649:86da:3d62:348a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 14:04:49,396 - DEBUG - Requesting: http://10.0.0.128:8082/domains 2025-10-30 14:04:49,695 - DEBUG - Requesting: http://10.0.0.128:8082/domains 2025-10-30 14:04:49,732 - DEBUG - Requesting: http://10.0.0.128:8082/domain/7b0167b2-e3c6-4936-b536-d7af9649390b 2025-10-30 14:04:49,745 - DEBUG - Requesting: http://10.0.0.128:8082/project/6d9fdea3-34f8-42b5-afa2-e8c50a71ca37 2025-10-30 14:04:49,878 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/9518aa4e-94fe-4808-a331-d6e35477d020 2025-10-30 14:04:49,893 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/9518aa4e-94fe-4808-a331-d6e35477d020 2025-10-30 14:04:49,903 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/fe1f8ab8-7713-4461-b26c-1f0ae5ca6b38 2025-10-30 14:04:49,910 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/fe1f8ab8-7713-4461-b26c-1f0ae5ca6b38 2025-10-30 14:04:49,917 - DEBUG - Requesting: http://10.0.0.128:8082/route-target/6ccdf59f-4f2e-415a-97e2-88bd3cfd199f 2025-10-30 14:04:49,923 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 14:04:49,923 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/9518aa4e-94fe-4808-a331-d6e35477d020 2025-10-30 14:04:49,933 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/fe1f8ab8-7713-4461-b26c-1f0ae5ca6b38 2025-10-30 14:04:49,946 - INFO - Verified VN network id 11 for VN 9518aa4e-94fe-4808-a331-d6e35477d020 2025-10-30 14:04:49,946 - INFO - Verifications in API Server for VN ctest-vn4-90381313 passed 2025-10-30 14:04:49,946 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/9518aa4e-94fe-4808-a331-d6e35477d020 2025-10-30 14:04:49,956 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/fe1f8ab8-7713-4461-b26c-1f0ae5ca6b38 2025-10-30 14:04:49,962 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/fe1f8ab8-7713-4461-b26c-1f0ae5ca6b38 2025-10-30 14:04:49,968 - DEBUG - Requesting: http://10.0.0.128:8082/route-target/6ccdf59f-4f2e-415a-97e2-88bd3cfd199f 2025-10-30 14:04:49,980 - DEBUG - Control-node 10.0.0.128 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33472130:ctest-vn4-90381313', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33472130', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10743524165576181768', 'uuid-lslong': '11759416373904134176'}, 'enable': 'true', 'created': '2025-10-30T14:04:48', 'last-modified': '2025-10-30T14:04:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.780814'} 2025-10-30 14:04:49,986 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 14:04:49,986 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-90381313 passed 2025-10-30 14:04:49,986 - DEBUG - ====Verifying policy data for ctest-vn4-90381313 in API_Server ====== 2025-10-30 14:04:49,986 - DEBUG - Requesting: http://10.0.0.128:8082/domains 2025-10-30 14:04:49,991 - DEBUG - Requesting: http://10.0.0.128:8082/domain/7b0167b2-e3c6-4936-b536-d7af9649390b 2025-10-30 14:04:50,004 - DEBUG - Requesting: http://10.0.0.128:8082/project/6d9fdea3-34f8-42b5-afa2-e8c50a71ca37 2025-10-30 14:04:50,073 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/9518aa4e-94fe-4808-a331-d6e35477d020 2025-10-30 14:04:50,084 - DEBUG - ==>Verifying data for policy with id: 5040baba-a000-4cc1-a0f6-801d70a205b0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33472130', 'ctest-policy1-15769114'] 2025-10-30 14:04:50,084 - INFO - VN ctest-vn4-90381313 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 14:04:50,084 - DEBUG - Verifying the vn in opserver 2025-10-30 14:04:50,084 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33472130:ctest-vn4-90381313 virtual network link through opserver 10.0.0.128 2025-10-30 14:04:50,084 - DEBUG - Requesting: http://10.0.0.128:8081/analytics/uves/virtual-networks 2025-10-30 14:04:50,385 - DEBUG - Requesting: http://10.0.0.128:8081/analytics/uves/virtual-networks 2025-10-30 14:04:50,449 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33472130:ctest-vn4-90381313', 'href': 'http://10.0.0.128:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33472130:ctest-vn4-90381313?flat'} 2025-10-30 14:04:50,449 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33472130:ctest-vn4-90381313 is found in opserver 2025-10-30 14:04:50,459 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 14:04:50,463 - DEBUG - VRF ids for VN ctest-vn4-90381313: {} 2025-10-30 14:04:50,464 - DEBUG - ====Verifying data for ctest-policy1-15769114 in API_Server ====== 2025-10-30 14:04:50,464 - DEBUG - Requesting: http://10.0.0.128:8082/domains 2025-10-30 14:04:50,470 - DEBUG - Requesting: http://10.0.0.128:8082/domain/7b0167b2-e3c6-4936-b536-d7af9649390b 2025-10-30 14:04:50,483 - DEBUG - Requesting: http://10.0.0.128:8082/project/6d9fdea3-34f8-42b5-afa2-e8c50a71ca37 2025-10-30 14:04:50,557 - DEBUG - Requesting: http://10.0.0.128:8082/network-policy/5040baba-a000-4cc1-a0f6-801d70a205b0 2025-10-30 14:04:50,567 - INFO - Verified policy ctest-policy1-15769114 in API Server, Result: True 2025-10-30 14:04:50,568 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 14:04:50,576 - INFO - Deleting VN ctest-vn4-90381313 2025-10-30 14:04:50,703 - DEBUG - Response for deleting network () 2025-10-30 14:04:50,703 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/fe1f8ab8-7713-4461-b26c-1f0ae5ca6b38 2025-10-30 14:04:50,709 - DEBUG - Response Code: 404 2025-10-30 14:04:50,709 - DEBUG - Requesting: http://10.0.0.128:8082/domains 2025-10-30 14:04:50,715 - DEBUG - Requesting: http://10.0.0.128:8082/domain/7b0167b2-e3c6-4936-b536-d7af9649390b 2025-10-30 14:04:50,770 - DEBUG - Requesting: http://10.0.0.128:8082/project/6d9fdea3-34f8-42b5-afa2-e8c50a71ca37 2025-10-30 14:04:50,843 - INFO - Validated that VN ctest-vn4-90381313 is not found in API Server 2025-10-30 14:04:50,854 - DEBUG - VN ctest-vn4-90381313 is not present in Agent 10.0.0.128 2025-10-30 14:04:50,854 - INFO - Validated that VN ctest-vn4-90381313 is not in any agent 2025-10-30 14:04:50,869 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-90381313 info 2025-10-30 14:04:50,897 - INFO - Deleted policy ctest-policy1-15769114 2025-10-30 14:04:51,060 - DEBUG - policy ctest-policy1-15769114 is not found in API Server 2025-10-30 14:04:51,323 - DEBUG - No XMPP flaps were noticed during the test