2025-10-09 09:23:52,751 - INFO - Domain Default found not creating 2025-10-09 09:23:52,894 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-04960355 not found, creating it 2025-10-09 09:23:53,348 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-04960355, ID : 1adbc3be-61c6-4a01-bdc9-51d8aaa546d5 2025-10-09 09:23:54,753 - INFO - ================================================================================ 2025-10-09 09:23:54,753 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 09:23:55,008 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-10-09 09:23:55,008 - INFO - Initial checks done. Running the testcase now 2025-10-09 09:23:55,008 - INFO - 2025-10-09 09:23:55,008 - INFO - ================================================================================ 2025-10-09 09:23:55,008 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 09:23:55,008 - 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-09 09:23:55,301 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-10-09 09:23:55,301 - INFO - Initial checks done. Running the testcase now 2025-10-09 09:23:55,302 - INFO - 2025-10-09 09:23:55,649 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04960355:ctest-vn4-75871917, 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-04960355:ctest-vn4-75871917, 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-04960355:ctest-vn4-75871917, 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-04960355:ctest-vn4-75871917, 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-09 09:23:56,151 - DEBUG - Response for create_network : {'network': {'id': 'e4569319-98d9-4114-a0ca-7a6980743cb9', 'name': 'ctest-vn4-75871917', 'tenant_id': '1adbc3be61c64a01bdc951d8aaa546d5', 'project_id': '1adbc3be61c64a01bdc951d8aaa546d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04960355', 'ctest-vn4-75871917'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 09:23:56,309 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de052ef2-81da-4dd7-8fb9-65cc25897e46', 'name': '', 'tenant_id': '1adbc3be61c64a01bdc951d8aaa546d5', 'network_id': 'e4569319-98d9-4114-a0ca-7a6980743cb9', 'ip_version': 4, 'cidr': '40.52.202.128/26', 'allocation_pools': [{'start': '40.52.202.130', 'end': '40.52.202.190'}], 'gateway_ip': '40.52.202.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.52.202.130', 'tags': [], 'project_id': '1adbc3be61c64a01bdc951d8aaa546d5'}} 2025-10-09 09:23:56,445 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b82ad035-1787-4ed3-8795-5e123ee7f9a0', 'name': '', 'tenant_id': '1adbc3be61c64a01bdc951d8aaa546d5', 'network_id': 'e4569319-98d9-4114-a0ca-7a6980743cb9', 'ip_version': 6, 'cidr': '284f:179b:3b23:8ffb:ccbc:b6ab::/96', 'allocation_pools': [{'start': '284f:179b:3b23:8ffb:ccbc:b6ab:0:2', 'end': '284f:179b:3b23:8ffb:ccbc:b6ab:ffff:fffe'}], 'gateway_ip': '284f:179b:3b23:8ffb:ccbc:b6ab:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '284f:179b:3b23:8ffb:ccbc:b6ab:0:2', 'tags': [], 'project_id': '1adbc3be61c64a01bdc951d8aaa546d5'}} 2025-10-09 09:23:56,476 - INFO - Created VN ctest-vn4-75871917 2025-10-09 09:23:56,531 - DEBUG - VN ctest-vn4-75871917 UUID is e4569319-98d9-4114-a0ca-7a6980743cb9 2025-10-09 09:23:56,728 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e4569319-98d9-4114-a0ca-7a6980743cb9', 'name': 'ctest-vn4-75871917', 'tenant_id': '1adbc3be61c64a01bdc951d8aaa546d5', 'project_id': '1adbc3be61c64a01bdc951d8aaa546d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['de052ef2-81da-4dd7-8fb9-65cc25897e46', 'b82ad035-1787-4ed3-8795-5e123ee7f9a0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04960355', 'ctest-vn4-75871917'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04960355', 'ctest-policy1-26668936']], 'subnet_ipam': [{'subnet_cidr': '40.52.202.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '284f:179b:3b23:8ffb:ccbc:b6ab::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 09:23:56,887 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 09:23:57,184 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 09:23:57,212 - DEBUG - Requesting: http://10.0.0.33:8082/domain/167dd854-1fc3-4ffe-a685-ab45cd131818 2025-10-09 09:23:57,222 - DEBUG - Requesting: http://10.0.0.33:8082/project/1adbc3be-61c6-4a01-bdc9-51d8aaa546d5 2025-10-09 09:23:57,296 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e4569319-98d9-4114-a0ca-7a6980743cb9 2025-10-09 09:23:57,307 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e4569319-98d9-4114-a0ca-7a6980743cb9 2025-10-09 09:23:57,316 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6ef6bfaf-6ba5-4748-84ab-8c2362e5e6c3 2025-10-09 09:23:57,321 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6ef6bfaf-6ba5-4748-84ab-8c2362e5e6c3 2025-10-09 09:23:57,327 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ed5a05d0-20e2-489c-ab11-634de515dc36 2025-10-09 09:23:57,332 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 09:23:57,332 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e4569319-98d9-4114-a0ca-7a6980743cb9 2025-10-09 09:23:57,340 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6ef6bfaf-6ba5-4748-84ab-8c2362e5e6c3 2025-10-09 09:23:57,352 - INFO - Verified VN network id 12 for VN e4569319-98d9-4114-a0ca-7a6980743cb9 2025-10-09 09:23:57,352 - INFO - Verifications in API Server for VN ctest-vn4-75871917 passed 2025-10-09 09:23:57,352 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e4569319-98d9-4114-a0ca-7a6980743cb9 2025-10-09 09:23:57,361 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6ef6bfaf-6ba5-4748-84ab-8c2362e5e6c3 2025-10-09 09:23:57,368 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6ef6bfaf-6ba5-4748-84ab-8c2362e5e6c3 2025-10-09 09:23:57,374 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ed5a05d0-20e2-489c-ab11-634de515dc36 2025-10-09 09:23:57,385 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04960355:ctest-vn4-75871917', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04960355', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16453500026792526100', 'uuid-lslong': '11586207584909278393'}, 'enable': 'true', 'created': '2025-10-09T09:23:56', 'last-modified': '2025-10-09T09:23:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.684455'} 2025-10-09 09:23:57,391 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 09:23:57,393 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-75871917 passed 2025-10-09 09:23:57,393 - DEBUG - ====Verifying policy data for ctest-vn4-75871917 in API_Server ====== 2025-10-09 09:23:57,393 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 09:23:57,398 - DEBUG - Requesting: http://10.0.0.33:8082/domain/167dd854-1fc3-4ffe-a685-ab45cd131818 2025-10-09 09:23:57,407 - DEBUG - Requesting: http://10.0.0.33:8082/project/1adbc3be-61c6-4a01-bdc9-51d8aaa546d5 2025-10-09 09:23:57,480 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e4569319-98d9-4114-a0ca-7a6980743cb9 2025-10-09 09:23:57,489 - DEBUG - ==>Verifying data for policy with id: 67165cec-a3ee-44cc-88db-00fe3abe4dbb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04960355', 'ctest-policy1-26668936'] 2025-10-09 09:23:57,489 - INFO - VN ctest-vn4-75871917 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 09:23:57,489 - DEBUG - Verifying the vn in opserver 2025-10-09 09:23:57,489 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04960355:ctest-vn4-75871917 virtual network link through opserver 10.0.0.33 2025-10-09 09:23:57,489 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-09 09:23:57,775 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-09 09:23:57,836 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04960355:ctest-vn4-75871917', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04960355:ctest-vn4-75871917?flat'} 2025-10-09 09:23:57,836 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04960355:ctest-vn4-75871917 is found in opserver 2025-10-09 09:23:57,847 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 09:23:57,850 - DEBUG - VRF ids for VN ctest-vn4-75871917: {} 2025-10-09 09:23:57,851 - DEBUG - ====Verifying data for ctest-policy1-26668936 in API_Server ====== 2025-10-09 09:23:57,851 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 09:23:57,855 - DEBUG - Requesting: http://10.0.0.33:8082/domain/167dd854-1fc3-4ffe-a685-ab45cd131818 2025-10-09 09:23:57,865 - DEBUG - Requesting: http://10.0.0.33:8082/project/1adbc3be-61c6-4a01-bdc9-51d8aaa546d5 2025-10-09 09:23:57,933 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/67165cec-a3ee-44cc-88db-00fe3abe4dbb 2025-10-09 09:23:57,940 - INFO - Verified policy ctest-policy1-26668936 in API Server, Result: True 2025-10-09 09:23:57,940 - INFO - Done with setup and verification, moving onto test .. 2025-10-09 09:23:57,947 - INFO - Deleting VN ctest-vn4-75871917 2025-10-09 09:23:58,051 - DEBUG - Response for deleting network () 2025-10-09 09:23:58,051 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6ef6bfaf-6ba5-4748-84ab-8c2362e5e6c3 2025-10-09 09:23:58,056 - DEBUG - Response Code: 404 2025-10-09 09:23:58,056 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 09:23:58,062 - DEBUG - Requesting: http://10.0.0.33:8082/domain/167dd854-1fc3-4ffe-a685-ab45cd131818 2025-10-09 09:23:58,116 - DEBUG - Requesting: http://10.0.0.33:8082/project/1adbc3be-61c6-4a01-bdc9-51d8aaa546d5 2025-10-09 09:23:58,192 - INFO - Validated that VN ctest-vn4-75871917 is not found in API Server 2025-10-09 09:23:58,201 - DEBUG - VN ctest-vn4-75871917 is not present in Agent 10.0.0.33 2025-10-09 09:23:58,201 - INFO - Validated that VN ctest-vn4-75871917 is not in any agent 2025-10-09 09:23:58,213 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-75871917 info 2025-10-09 09:23:58,237 - INFO - Deleted policy ctest-policy1-26668936 2025-10-09 09:23:58,399 - DEBUG - policy ctest-policy1-26668936 is not found in API Server 2025-10-09 09:23:58,656 - DEBUG - No XMPP flaps were noticed during the test