2025-08-11 16:04:07,913 - INFO - Domain Default found not creating 2025-08-11 16:04:08,048 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-47165712 not found, creating it 2025-08-11 16:04:08,495 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-47165712, ID : 01b3e467-092b-471e-9adf-b7fe3e3377ab 2025-08-11 16:04:09,998 - INFO - ================================================================================ 2025-08-11 16:04:09,998 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 16:04:10,258 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0'}} with 2025-08-11 16:04:10,258 - INFO - Initial checks done. Running the testcase now 2025-08-11 16:04:10,258 - INFO - 2025-08-11 16:04:10,258 - INFO - ================================================================================ 2025-08-11 16:04:10,258 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 16:04:10,258 - 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-11 16:04:10,553 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0'}} with 2025-08-11 16:04:10,553 - INFO - Initial checks done. Running the testcase now 2025-08-11 16:04:10,553 - INFO - 2025-08-11 16:04:10,949 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47165712:ctest-vn4-67558664, 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-47165712:ctest-vn4-67558664, 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-47165712:ctest-vn4-67558664, 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-47165712:ctest-vn4-67558664, 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-11 16:04:11,472 - DEBUG - Response for create_network : {'network': {'id': '2455fda0-d2a8-42cb-9808-a1a53fee9e01', 'name': 'ctest-vn4-67558664', 'tenant_id': '01b3e467092b471e9adfb7fe3e3377ab', 'project_id': '01b3e467092b471e9adfb7fe3e3377ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47165712', 'ctest-vn4-67558664'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 16:04:11,667 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f505967-19e6-4aac-85d3-47d9eed640cb', 'name': '', 'tenant_id': '01b3e467092b471e9adfb7fe3e3377ab', 'network_id': '2455fda0-d2a8-42cb-9808-a1a53fee9e01', 'ip_version': 4, 'cidr': '79.254.203.64/26', 'allocation_pools': [{'start': '79.254.203.66', 'end': '79.254.203.126'}], 'gateway_ip': '79.254.203.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.254.203.66', 'tags': [], 'project_id': '01b3e467092b471e9adfb7fe3e3377ab'}} 2025-08-11 16:04:11,899 - DEBUG - Response for create_subnet : {'subnet': {'id': '62a4b243-b6e4-48c3-aa3d-d05f56b9dce0', 'name': '', 'tenant_id': '01b3e467092b471e9adfb7fe3e3377ab', 'network_id': '2455fda0-d2a8-42cb-9808-a1a53fee9e01', 'ip_version': 6, 'cidr': '2fa8:3117:75ce:e61d:34f4:4309::/96', 'allocation_pools': [{'start': '2fa8:3117:75ce:e61d:34f4:4309:0:2', 'end': '2fa8:3117:75ce:e61d:34f4:4309:ffff:fffe'}], 'gateway_ip': '2fa8:3117:75ce:e61d:34f4:4309:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2fa8:3117:75ce:e61d:34f4:4309:0:2', 'tags': [], 'project_id': '01b3e467092b471e9adfb7fe3e3377ab'}} 2025-08-11 16:04:11,920 - INFO - Created VN ctest-vn4-67558664 2025-08-11 16:04:11,975 - DEBUG - VN ctest-vn4-67558664 UUID is 2455fda0-d2a8-42cb-9808-a1a53fee9e01 2025-08-11 16:04:12,195 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2455fda0-d2a8-42cb-9808-a1a53fee9e01', 'name': 'ctest-vn4-67558664', 'tenant_id': '01b3e467092b471e9adfb7fe3e3377ab', 'project_id': '01b3e467092b471e9adfb7fe3e3377ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5f505967-19e6-4aac-85d3-47d9eed640cb', '62a4b243-b6e4-48c3-aa3d-d05f56b9dce0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47165712', 'ctest-vn4-67558664'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47165712', 'ctest-policy1-98036938']], 'subnet_ipam': [{'subnet_cidr': '79.254.203.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2fa8:3117:75ce:e61d:34f4:4309::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 16:04:12,363 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-08-11 16:04:12,708 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-08-11 16:04:12,737 - DEBUG - Requesting: http://10.0.0.22:8082/domain/643a94c5-4849-463a-a353-4619a162fafa 2025-08-11 16:04:12,751 - DEBUG - Requesting: http://10.0.0.22:8082/project/01b3e467-092b-471e-9adf-b7fe3e3377ab 2025-08-11 16:04:12,825 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2455fda0-d2a8-42cb-9808-a1a53fee9e01 2025-08-11 16:04:12,838 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2455fda0-d2a8-42cb-9808-a1a53fee9e01 2025-08-11 16:04:12,850 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1a596dc0-e398-4fd1-85d6-7056a8eec5d7 2025-08-11 16:04:12,858 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1a596dc0-e398-4fd1-85d6-7056a8eec5d7 2025-08-11 16:04:12,866 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9f95ab0d-3f3a-40de-a730-9313db1fd632 2025-08-11 16:04:12,873 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 16:04:12,873 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2455fda0-d2a8-42cb-9808-a1a53fee9e01 2025-08-11 16:04:12,884 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1a596dc0-e398-4fd1-85d6-7056a8eec5d7 2025-08-11 16:04:12,898 - INFO - Verified VN network id 11 for VN 2455fda0-d2a8-42cb-9808-a1a53fee9e01 2025-08-11 16:04:12,898 - INFO - Verifications in API Server for VN ctest-vn4-67558664 passed 2025-08-11 16:04:12,898 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2455fda0-d2a8-42cb-9808-a1a53fee9e01 2025-08-11 16:04:12,909 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1a596dc0-e398-4fd1-85d6-7056a8eec5d7 2025-08-11 16:04:12,924 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1a596dc0-e398-4fd1-85d6-7056a8eec5d7 2025-08-11 16:04:12,931 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9f95ab0d-3f3a-40de-a730-9313db1fd632 2025-08-11 16:04:12,944 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47165712:ctest-vn4-67558664', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-47165712', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2618277625556648651', 'uuid-lslong': '10955183824693009921'}, 'enable': 'true', 'created': '2025-08-11T16:04:11', 'last-modified': '2025-08-11T16:04:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.789765'} 2025-08-11 16:04:12,951 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 16:04:12,951 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-67558664 passed 2025-08-11 16:04:12,952 - DEBUG - ====Verifying policy data for ctest-vn4-67558664 in API_Server ====== 2025-08-11 16:04:12,952 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-08-11 16:04:12,957 - DEBUG - Requesting: http://10.0.0.22:8082/domain/643a94c5-4849-463a-a353-4619a162fafa 2025-08-11 16:04:12,969 - DEBUG - Requesting: http://10.0.0.22:8082/project/01b3e467-092b-471e-9adf-b7fe3e3377ab 2025-08-11 16:04:13,043 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2455fda0-d2a8-42cb-9808-a1a53fee9e01 2025-08-11 16:04:13,054 - DEBUG - ==>Verifying data for policy with id: 27ff0119-7165-4c72-94dd-205422b6c066, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47165712', 'ctest-policy1-98036938'] 2025-08-11 16:04:13,055 - INFO - VN ctest-vn4-67558664 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 16:04:13,055 - DEBUG - Verifying the vn in opserver 2025-08-11 16:04:13,055 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47165712:ctest-vn4-67558664 virtual network link through opserver 10.0.0.22 2025-08-11 16:04:13,055 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-08-11 16:04:13,389 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-08-11 16:04:13,450 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47165712:ctest-vn4-67558664', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47165712:ctest-vn4-67558664?flat'} 2025-08-11 16:04:13,450 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47165712:ctest-vn4-67558664 is found in opserver 2025-08-11 16:04:13,461 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 16:04:13,466 - DEBUG - VRF ids for VN ctest-vn4-67558664: {} 2025-08-11 16:04:13,467 - DEBUG - ====Verifying data for ctest-policy1-98036938 in API_Server ====== 2025-08-11 16:04:13,467 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-08-11 16:04:13,473 - DEBUG - Requesting: http://10.0.0.22:8082/domain/643a94c5-4849-463a-a353-4619a162fafa 2025-08-11 16:04:13,484 - DEBUG - Requesting: http://10.0.0.22:8082/project/01b3e467-092b-471e-9adf-b7fe3e3377ab 2025-08-11 16:04:13,562 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/27ff0119-7165-4c72-94dd-205422b6c066 2025-08-11 16:04:13,575 - INFO - Verified policy ctest-policy1-98036938 in API Server, Result: True 2025-08-11 16:04:13,576 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 16:04:13,583 - INFO - Deleting VN ctest-vn4-67558664 2025-08-11 16:04:13,711 - DEBUG - Response for deleting network () 2025-08-11 16:04:13,711 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1a596dc0-e398-4fd1-85d6-7056a8eec5d7 2025-08-11 16:04:13,717 - DEBUG - Response Code: 404 2025-08-11 16:04:13,717 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-08-11 16:04:13,723 - DEBUG - Requesting: http://10.0.0.22:8082/domain/643a94c5-4849-463a-a353-4619a162fafa 2025-08-11 16:04:13,776 - DEBUG - Requesting: http://10.0.0.22:8082/project/01b3e467-092b-471e-9adf-b7fe3e3377ab 2025-08-11 16:04:13,853 - INFO - Validated that VN ctest-vn4-67558664 is not found in API Server 2025-08-11 16:04:13,866 - DEBUG - VN ctest-vn4-67558664 is not present in Agent 10.0.0.22 2025-08-11 16:04:13,866 - INFO - Validated that VN ctest-vn4-67558664 is not in any agent 2025-08-11 16:04:13,882 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-67558664 info 2025-08-11 16:04:13,907 - INFO - Deleted policy ctest-policy1-98036938 2025-08-11 16:04:14,075 - DEBUG - policy ctest-policy1-98036938 is not found in API Server 2025-08-11 16:04:14,338 - DEBUG - No XMPP flaps were noticed during the test 2025-08-11 16:04:14,338 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-11 16:04:14,338 - INFO - -------------------------------------------------------------------------------- 2025-08-11 16:04:14,630 - DEBUG - No XMPP flaps were noticed during the test 2025-08-11 16:04:14,630 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-08-11 16:04:14,630 - INFO - -------------------------------------------------------------------------------- 2025-08-11 16:04:15,413 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-47165712, ID : 01b3e467-092b-471e-9adf-b7fe3e3377ab