2025-10-22 11:08:12,023 - INFO - Domain Default found not creating 2025-10-22 11:08:12,154 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-34639856 not found, creating it 2025-10-22 11:08:12,586 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-34639856, ID : 870f3362-1dc9-4eda-85ad-ecf13a1ea785 2025-10-22 11:08:13,924 - INFO - ================================================================================ 2025-10-22 11:08:13,924 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 11:08:14,181 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.25': '0'}} with 2025-10-22 11:08:14,181 - INFO - Initial checks done. Running the testcase now 2025-10-22 11:08:14,181 - INFO - 2025-10-22 11:08:14,181 - INFO - ================================================================================ 2025-10-22 11:08:14,181 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 11:08:14,182 - 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-22 11:08:14,473 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.25': '0'}} with 2025-10-22 11:08:14,473 - INFO - Initial checks done. Running the testcase now 2025-10-22 11:08:14,473 - INFO - 2025-10-22 11:08:14,813 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34639856:ctest-vn4-15700617, 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-34639856:ctest-vn4-15700617, 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-34639856:ctest-vn4-15700617, 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-34639856:ctest-vn4-15700617, 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-22 11:08:15,344 - DEBUG - Response for create_network : {'network': {'id': '78cd8bb1-deb9-4ff3-8117-a2d8a9d6d48f', 'name': 'ctest-vn4-15700617', 'tenant_id': '870f33621dc94eda85adecf13a1ea785', 'project_id': '870f33621dc94eda85adecf13a1ea785', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34639856', 'ctest-vn4-15700617'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 11:08:15,476 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e56ad5ac-8395-4e03-a93f-badd1e7ad23b', 'name': '', 'tenant_id': '870f33621dc94eda85adecf13a1ea785', 'network_id': '78cd8bb1-deb9-4ff3-8117-a2d8a9d6d48f', 'ip_version': 4, 'cidr': '163.208.140.64/26', 'allocation_pools': [{'start': '163.208.140.66', 'end': '163.208.140.126'}], 'gateway_ip': '163.208.140.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.208.140.66', 'tags': [], 'project_id': '870f33621dc94eda85adecf13a1ea785'}} 2025-10-22 11:08:15,666 - DEBUG - Response for create_subnet : {'subnet': {'id': '16b9effc-b586-47d6-9f4d-6b3e1c26b712', 'name': '', 'tenant_id': '870f33621dc94eda85adecf13a1ea785', 'network_id': '78cd8bb1-deb9-4ff3-8117-a2d8a9d6d48f', 'ip_version': 6, 'cidr': '256e:2b66:a067:b023:50c5:e3a4::/96', 'allocation_pools': [{'start': '256e:2b66:a067:b023:50c5:e3a4:0:2', 'end': '256e:2b66:a067:b023:50c5:e3a4:ffff:fffe'}], 'gateway_ip': '256e:2b66:a067:b023:50c5:e3a4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '256e:2b66:a067:b023:50c5:e3a4:0:2', 'tags': [], 'project_id': '870f33621dc94eda85adecf13a1ea785'}} 2025-10-22 11:08:15,684 - INFO - Created VN ctest-vn4-15700617 2025-10-22 11:08:15,732 - DEBUG - VN ctest-vn4-15700617 UUID is 78cd8bb1-deb9-4ff3-8117-a2d8a9d6d48f 2025-10-22 11:08:15,917 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '78cd8bb1-deb9-4ff3-8117-a2d8a9d6d48f', 'name': 'ctest-vn4-15700617', 'tenant_id': '870f33621dc94eda85adecf13a1ea785', 'project_id': '870f33621dc94eda85adecf13a1ea785', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e56ad5ac-8395-4e03-a93f-badd1e7ad23b', '16b9effc-b586-47d6-9f4d-6b3e1c26b712'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34639856', 'ctest-vn4-15700617'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34639856', 'ctest-policy1-25930267']], 'subnet_ipam': [{'subnet_cidr': '163.208.140.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '256e:2b66:a067:b023:50c5:e3a4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 11:08:16,068 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-10-22 11:08:16,357 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-10-22 11:08:16,382 - DEBUG - Requesting: http://10.0.0.65:8082/domain/9de5d58a-792b-4ea5-8f22-60089dfd4a08 2025-10-22 11:08:16,395 - DEBUG - Requesting: http://10.0.0.65:8082/project/870f3362-1dc9-4eda-85ad-ecf13a1ea785 2025-10-22 11:08:16,461 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/78cd8bb1-deb9-4ff3-8117-a2d8a9d6d48f 2025-10-22 11:08:16,472 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/78cd8bb1-deb9-4ff3-8117-a2d8a9d6d48f 2025-10-22 11:08:16,482 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/878042e6-e464-4deb-98ad-93d26e15db81 2025-10-22 11:08:16,488 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/878042e6-e464-4deb-98ad-93d26e15db81 2025-10-22 11:08:16,494 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/9bdac880-68b7-4622-bb4b-49670ab062e6 2025-10-22 11:08:16,499 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 11:08:16,499 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/78cd8bb1-deb9-4ff3-8117-a2d8a9d6d48f 2025-10-22 11:08:16,507 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/878042e6-e464-4deb-98ad-93d26e15db81 2025-10-22 11:08:16,518 - INFO - Verified VN network id 12 for VN 78cd8bb1-deb9-4ff3-8117-a2d8a9d6d48f 2025-10-22 11:08:16,518 - INFO - Verifications in API Server for VN ctest-vn4-15700617 passed 2025-10-22 11:08:16,518 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/78cd8bb1-deb9-4ff3-8117-a2d8a9d6d48f 2025-10-22 11:08:16,525 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/878042e6-e464-4deb-98ad-93d26e15db81 2025-10-22 11:08:16,531 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/878042e6-e464-4deb-98ad-93d26e15db81 2025-10-22 11:08:16,536 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/9bdac880-68b7-4622-bb4b-49670ab062e6 2025-10-22 11:08:16,546 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34639856:ctest-vn4-15700617', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-34639856', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8704767250839195635', 'uuid-lslong': '9302082606803113103'}, 'enable': 'true', 'created': '2025-10-22T11:08:15', 'last-modified': '2025-10-22T11:08:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.660444'} 2025-10-22 11:08:16,551 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 11:08:16,551 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15700617 passed 2025-10-22 11:08:16,551 - DEBUG - ====Verifying policy data for ctest-vn4-15700617 in API_Server ====== 2025-10-22 11:08:16,551 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-10-22 11:08:16,558 - DEBUG - Requesting: http://10.0.0.65:8082/domain/9de5d58a-792b-4ea5-8f22-60089dfd4a08 2025-10-22 11:08:16,568 - DEBUG - Requesting: http://10.0.0.65:8082/project/870f3362-1dc9-4eda-85ad-ecf13a1ea785 2025-10-22 11:08:16,634 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/78cd8bb1-deb9-4ff3-8117-a2d8a9d6d48f 2025-10-22 11:08:16,642 - DEBUG - ==>Verifying data for policy with id: b619e758-902c-402b-a429-61a778aa477c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34639856', 'ctest-policy1-25930267'] 2025-10-22 11:08:16,642 - INFO - VN ctest-vn4-15700617 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 11:08:16,642 - DEBUG - Verifying the vn in opserver 2025-10-22 11:08:16,642 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34639856:ctest-vn4-15700617 virtual network link through opserver 10.0.0.65 2025-10-22 11:08:16,642 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-10-22 11:08:16,929 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-10-22 11:08:16,976 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34639856:ctest-vn4-15700617', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34639856:ctest-vn4-15700617?flat'} 2025-10-22 11:08:16,977 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34639856:ctest-vn4-15700617 is found in opserver 2025-10-22 11:08:16,985 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 11:08:16,989 - DEBUG - VRF ids for VN ctest-vn4-15700617: {} 2025-10-22 11:08:16,989 - DEBUG - ====Verifying data for ctest-policy1-25930267 in API_Server ====== 2025-10-22 11:08:16,989 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-10-22 11:08:16,993 - DEBUG - Requesting: http://10.0.0.65:8082/domain/9de5d58a-792b-4ea5-8f22-60089dfd4a08 2025-10-22 11:08:17,003 - DEBUG - Requesting: http://10.0.0.65:8082/project/870f3362-1dc9-4eda-85ad-ecf13a1ea785 2025-10-22 11:08:17,068 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/b619e758-902c-402b-a429-61a778aa477c 2025-10-22 11:08:17,076 - INFO - Verified policy ctest-policy1-25930267 in API Server, Result: True 2025-10-22 11:08:17,077 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 11:08:17,084 - INFO - Deleting VN ctest-vn4-15700617 2025-10-22 11:08:17,184 - DEBUG - Response for deleting network () 2025-10-22 11:08:17,184 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/878042e6-e464-4deb-98ad-93d26e15db81 2025-10-22 11:08:17,188 - DEBUG - Response Code: 404 2025-10-22 11:08:17,188 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-10-22 11:08:17,192 - DEBUG - Requesting: http://10.0.0.65:8082/domain/9de5d58a-792b-4ea5-8f22-60089dfd4a08 2025-10-22 11:08:17,245 - DEBUG - Requesting: http://10.0.0.65:8082/project/870f3362-1dc9-4eda-85ad-ecf13a1ea785 2025-10-22 11:08:17,310 - INFO - Validated that VN ctest-vn4-15700617 is not found in API Server 2025-10-22 11:08:17,319 - DEBUG - VN ctest-vn4-15700617 is not present in Agent 10.0.0.65 2025-10-22 11:08:17,319 - INFO - Validated that VN ctest-vn4-15700617 is not in any agent 2025-10-22 11:08:17,330 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15700617 info 2025-10-22 11:08:17,353 - INFO - Deleted policy ctest-policy1-25930267 2025-10-22 11:08:17,516 - DEBUG - policy ctest-policy1-25930267 is not found in API Server 2025-10-22 11:08:17,765 - DEBUG - No XMPP flaps were noticed during the test