2025-07-30 19:56:27,334 - INFO - Domain Default found not creating 2025-07-30 19:56:27,476 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-63831615 not found, creating it 2025-07-30 19:56:27,933 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-63831615, ID : 68e1d910-2368-40eb-bf1e-943d66a20eaf 2025-07-30 19:56:29,301 - INFO - ================================================================================ 2025-07-30 19:56:29,302 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-30 19:56:29,563 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.0.0.38': '0'}} with 2025-07-30 19:56:29,563 - INFO - Initial checks done. Running the testcase now 2025-07-30 19:56:29,563 - INFO - 2025-07-30 19:56:29,563 - INFO - ================================================================================ 2025-07-30 19:56:29,563 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-30 19:56:29,563 - 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-07-30 19:56:29,859 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.0.0.38': '0'}} with 2025-07-30 19:56:29,859 - INFO - Initial checks done. Running the testcase now 2025-07-30 19:56:29,859 - INFO - 2025-07-30 19:56:30,204 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63831615:ctest-vn4-49634525, 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-63831615:ctest-vn4-49634525, 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-63831615:ctest-vn4-49634525, 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-63831615:ctest-vn4-49634525, 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-07-30 19:56:30,715 - DEBUG - Response for create_network : {'network': {'id': '98e5ecf5-2fe2-439c-a12d-7f3a0101071d', 'name': 'ctest-vn4-49634525', 'tenant_id': '68e1d910236840ebbf1e943d66a20eaf', 'project_id': '68e1d910236840ebbf1e943d66a20eaf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63831615', 'ctest-vn4-49634525'], 'port_security_enabled': True, 'description': ''}} 2025-07-30 19:56:30,874 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c04de72-7dde-49cf-8385-0c4d9f193875', 'name': '', 'tenant_id': '68e1d910236840ebbf1e943d66a20eaf', 'network_id': '98e5ecf5-2fe2-439c-a12d-7f3a0101071d', 'ip_version': 4, 'cidr': '130.59.7.128/26', 'allocation_pools': [{'start': '130.59.7.130', 'end': '130.59.7.190'}], 'gateway_ip': '130.59.7.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.59.7.130', 'tags': [], 'project_id': '68e1d910236840ebbf1e943d66a20eaf'}} 2025-07-30 19:56:31,063 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6386824-e4f2-4de1-b460-18de9bb625af', 'name': '', 'tenant_id': '68e1d910236840ebbf1e943d66a20eaf', 'network_id': '98e5ecf5-2fe2-439c-a12d-7f3a0101071d', 'ip_version': 6, 'cidr': '33b5:19ac:f904:54f5:145b:4e8e::/96', 'allocation_pools': [{'start': '33b5:19ac:f904:54f5:145b:4e8e:0:2', 'end': '33b5:19ac:f904:54f5:145b:4e8e:ffff:fffe'}], 'gateway_ip': '33b5:19ac:f904:54f5:145b:4e8e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33b5:19ac:f904:54f5:145b:4e8e:0:2', 'tags': [], 'project_id': '68e1d910236840ebbf1e943d66a20eaf'}} 2025-07-30 19:56:31,083 - INFO - Created VN ctest-vn4-49634525 2025-07-30 19:56:31,134 - DEBUG - VN ctest-vn4-49634525 UUID is 98e5ecf5-2fe2-439c-a12d-7f3a0101071d 2025-07-30 19:56:31,338 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '98e5ecf5-2fe2-439c-a12d-7f3a0101071d', 'name': 'ctest-vn4-49634525', 'tenant_id': '68e1d910236840ebbf1e943d66a20eaf', 'project_id': '68e1d910236840ebbf1e943d66a20eaf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c04de72-7dde-49cf-8385-0c4d9f193875', 'f6386824-e4f2-4de1-b460-18de9bb625af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63831615', 'ctest-vn4-49634525'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63831615', 'ctest-policy1-10341429']], 'subnet_ipam': [{'subnet_cidr': '130.59.7.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '33b5:19ac:f904:54f5:145b:4e8e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-30 19:56:31,502 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-30 19:56:31,800 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-30 19:56:31,830 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ad6c8684-c58c-46f7-87b6-e9c5d8e8668f 2025-07-30 19:56:31,842 - DEBUG - Requesting: http://10.0.0.38:8082/project/68e1d910-2368-40eb-bf1e-943d66a20eaf 2025-07-30 19:56:31,912 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/98e5ecf5-2fe2-439c-a12d-7f3a0101071d 2025-07-30 19:56:31,923 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/98e5ecf5-2fe2-439c-a12d-7f3a0101071d 2025-07-30 19:56:31,933 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/615c8780-ac69-4233-bf0f-27f419b25acb 2025-07-30 19:56:31,940 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/615c8780-ac69-4233-bf0f-27f419b25acb 2025-07-30 19:56:31,946 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/76c7b951-1c61-420e-b153-1656064543f6 2025-07-30 19:56:31,952 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-30 19:56:31,952 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/98e5ecf5-2fe2-439c-a12d-7f3a0101071d 2025-07-30 19:56:31,960 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/615c8780-ac69-4233-bf0f-27f419b25acb 2025-07-30 19:56:31,973 - INFO - Verified VN network id 10 for VN 98e5ecf5-2fe2-439c-a12d-7f3a0101071d 2025-07-30 19:56:31,973 - INFO - Verifications in API Server for VN ctest-vn4-49634525 passed 2025-07-30 19:56:31,973 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/98e5ecf5-2fe2-439c-a12d-7f3a0101071d 2025-07-30 19:56:31,984 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/615c8780-ac69-4233-bf0f-27f419b25acb 2025-07-30 19:56:31,990 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/615c8780-ac69-4233-bf0f-27f419b25acb 2025-07-30 19:56:31,996 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/76c7b951-1c61-420e-b153-1656064543f6 2025-07-30 19:56:32,008 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63831615:ctest-vn4-49634525', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-63831615', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11017472601246286748', 'uuid-lslong': '11614078901160052509'}, 'enable': 'true', 'created': '2025-07-30T19:56:30', 'last-modified': '2025-07-30T19:56:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.705671'} 2025-07-30 19:56:32,015 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-30 19:56:32,015 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-49634525 passed 2025-07-30 19:56:32,016 - DEBUG - ====Verifying policy data for ctest-vn4-49634525 in API_Server ====== 2025-07-30 19:56:32,016 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-30 19:56:32,021 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ad6c8684-c58c-46f7-87b6-e9c5d8e8668f 2025-07-30 19:56:32,031 - DEBUG - Requesting: http://10.0.0.38:8082/project/68e1d910-2368-40eb-bf1e-943d66a20eaf 2025-07-30 19:56:32,098 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/98e5ecf5-2fe2-439c-a12d-7f3a0101071d 2025-07-30 19:56:32,107 - DEBUG - ==>Verifying data for policy with id: 56c08f54-51f9-4a22-b657-fccd5365693a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63831615', 'ctest-policy1-10341429'] 2025-07-30 19:56:32,107 - INFO - VN ctest-vn4-49634525 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-30 19:56:32,107 - DEBUG - Verifying the vn in opserver 2025-07-30 19:56:32,107 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63831615:ctest-vn4-49634525 virtual network link through opserver 10.0.0.38 2025-07-30 19:56:32,107 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-30 19:56:32,401 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-30 19:56:32,458 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63831615:ctest-vn4-49634525', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63831615:ctest-vn4-49634525?flat'} 2025-07-30 19:56:32,458 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63831615:ctest-vn4-49634525 is found in opserver 2025-07-30 19:56:32,469 - DEBUG - Do not have enough data to verify VN in agent 2025-07-30 19:56:32,474 - DEBUG - VRF ids for VN ctest-vn4-49634525: {} 2025-07-30 19:56:32,475 - DEBUG - ====Verifying data for ctest-policy1-10341429 in API_Server ====== 2025-07-30 19:56:32,475 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-30 19:56:32,481 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ad6c8684-c58c-46f7-87b6-e9c5d8e8668f 2025-07-30 19:56:32,492 - DEBUG - Requesting: http://10.0.0.38:8082/project/68e1d910-2368-40eb-bf1e-943d66a20eaf 2025-07-30 19:56:32,566 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/56c08f54-51f9-4a22-b657-fccd5365693a 2025-07-30 19:56:32,577 - INFO - Verified policy ctest-policy1-10341429 in API Server, Result: True 2025-07-30 19:56:32,577 - INFO - Done with setup and verification, moving onto test .. 2025-07-30 19:56:32,587 - INFO - Deleting VN ctest-vn4-49634525 2025-07-30 19:56:32,724 - DEBUG - Response for deleting network () 2025-07-30 19:56:32,724 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/615c8780-ac69-4233-bf0f-27f419b25acb 2025-07-30 19:56:32,728 - DEBUG - Response Code: 404 2025-07-30 19:56:32,729 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-30 19:56:32,733 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ad6c8684-c58c-46f7-87b6-e9c5d8e8668f 2025-07-30 19:56:32,787 - DEBUG - Requesting: http://10.0.0.38:8082/project/68e1d910-2368-40eb-bf1e-943d66a20eaf 2025-07-30 19:56:32,854 - INFO - Validated that VN ctest-vn4-49634525 is not found in API Server 2025-07-30 19:56:32,864 - DEBUG - VN ctest-vn4-49634525 is not present in Agent 10.0.0.38 2025-07-30 19:56:32,864 - INFO - Validated that VN ctest-vn4-49634525 is not in any agent 2025-07-30 19:56:32,878 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-49634525 info 2025-07-30 19:56:32,906 - INFO - Deleted policy ctest-policy1-10341429 2025-07-30 19:56:33,073 - DEBUG - policy ctest-policy1-10341429 is not found in API Server 2025-07-30 19:56:33,355 - DEBUG - No XMPP flaps were noticed during the test