2025-09-22 02:25:48,518 - INFO - Domain Default found not creating 2025-09-22 02:25:48,654 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-90169932 not found, creating it 2025-09-22 02:25:49,216 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-90169932, ID : 4e7a1bbe-2c9d-4129-a7ae-af265ba39aa9 2025-09-22 02:25:50,557 - INFO - ================================================================================ 2025-09-22 02:25:50,557 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-22 02:25:51,813 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0', '10.20.0.25': '0'}, '10.0.0.23': {'10.20.0.254': '0', '10.20.0.193': '0'}} with 2025-09-22 02:25:51,813 - INFO - Initial checks done. Running the testcase now 2025-09-22 02:25:51,813 - INFO - 2025-09-22 02:25:51,813 - INFO - ================================================================================ 2025-09-22 02:25:51,813 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-22 02:25:51,813 - 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-09-22 02:25:53,106 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0', '10.20.0.25': '0'}, '10.0.0.23': {'10.20.0.254': '0', '10.20.0.193': '0'}} with 2025-09-22 02:25:53,106 - INFO - Initial checks done. Running the testcase now 2025-09-22 02:25:53,106 - INFO - 2025-09-22 02:25:53,452 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90169932:ctest-vn4-42495280, 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-90169932:ctest-vn4-42495280, 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-90169932:ctest-vn4-42495280, 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-90169932:ctest-vn4-42495280, 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-09-22 02:25:54,041 - DEBUG - Response for create_network : {'network': {'id': '767d9cea-0812-4791-bbbd-4f72a8c60217', 'name': 'ctest-vn4-42495280', 'tenant_id': '4e7a1bbe2c9d4129a7aeaf265ba39aa9', 'project_id': '4e7a1bbe2c9d4129a7aeaf265ba39aa9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90169932', 'ctest-vn4-42495280'], 'port_security_enabled': True, 'description': ''}} 2025-09-22 02:25:54,277 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ad5eba7-d658-4fbe-8348-c69f63b877f4', 'name': '', 'tenant_id': '4e7a1bbe2c9d4129a7aeaf265ba39aa9', 'network_id': '767d9cea-0812-4791-bbbd-4f72a8c60217', 'ip_version': 4, 'cidr': '104.57.115.64/26', 'allocation_pools': [{'start': '104.57.115.66', 'end': '104.57.115.126'}], 'gateway_ip': '104.57.115.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.57.115.66', 'tags': [], 'project_id': '4e7a1bbe2c9d4129a7aeaf265ba39aa9'}} 2025-09-22 02:25:54,496 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eefb8d8b-32a6-46da-9d72-a91652c8ad7b', 'name': '', 'tenant_id': '4e7a1bbe2c9d4129a7aeaf265ba39aa9', 'network_id': '767d9cea-0812-4791-bbbd-4f72a8c60217', 'ip_version': 6, 'cidr': '272a:2f16:3ff3:443d:fe6a:4d05::/96', 'allocation_pools': [{'start': '272a:2f16:3ff3:443d:fe6a:4d05:0:2', 'end': '272a:2f16:3ff3:443d:fe6a:4d05:ffff:fffe'}], 'gateway_ip': '272a:2f16:3ff3:443d:fe6a:4d05:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '272a:2f16:3ff3:443d:fe6a:4d05:0:2', 'tags': [], 'project_id': '4e7a1bbe2c9d4129a7aeaf265ba39aa9'}} 2025-09-22 02:25:54,524 - INFO - Created VN ctest-vn4-42495280 2025-09-22 02:25:54,538 - DEBUG - VN ctest-vn4-42495280 UUID is 767d9cea-0812-4791-bbbd-4f72a8c60217 2025-09-22 02:25:54,795 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '767d9cea-0812-4791-bbbd-4f72a8c60217', 'name': 'ctest-vn4-42495280', 'tenant_id': '4e7a1bbe2c9d4129a7aeaf265ba39aa9', 'project_id': '4e7a1bbe2c9d4129a7aeaf265ba39aa9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5ad5eba7-d658-4fbe-8348-c69f63b877f4', 'eefb8d8b-32a6-46da-9d72-a91652c8ad7b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90169932', 'ctest-vn4-42495280'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90169932', 'ctest-policy1-88820448']], 'subnet_ipam': [{'subnet_cidr': '104.57.115.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '272a:2f16:3ff3:443d:fe6a:4d05::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-22 02:25:54,888 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-09-22 02:25:55,182 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-09-22 02:25:55,207 - DEBUG - Requesting: http://10.0.0.56:8082/domain/ccce3d88-d117-4380-892c-193ef8fcc90d 2025-09-22 02:25:55,233 - DEBUG - Requesting: http://10.0.0.56:8082/project/4e7a1bbe-2c9d-4129-a7ae-af265ba39aa9 2025-09-22 02:25:55,331 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/767d9cea-0812-4791-bbbd-4f72a8c60217 2025-09-22 02:25:55,343 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/767d9cea-0812-4791-bbbd-4f72a8c60217 2025-09-22 02:25:55,352 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/5001a151-ae84-4e16-8e8c-7efc881a19dc 2025-09-22 02:25:55,358 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/5001a151-ae84-4e16-8e8c-7efc881a19dc 2025-09-22 02:25:55,364 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/fbfdd537-5fff-40fb-9d5b-c3f50a0427d4 2025-09-22 02:25:55,370 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-22 02:25:55,370 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/767d9cea-0812-4791-bbbd-4f72a8c60217 2025-09-22 02:25:55,379 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/5001a151-ae84-4e16-8e8c-7efc881a19dc 2025-09-22 02:25:55,395 - INFO - Verified VN network id 11 for VN 767d9cea-0812-4791-bbbd-4f72a8c60217 2025-09-22 02:25:55,395 - INFO - Verifications in API Server for VN ctest-vn4-42495280 passed 2025-09-22 02:25:55,395 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/767d9cea-0812-4791-bbbd-4f72a8c60217 2025-09-22 02:25:55,405 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/5001a151-ae84-4e16-8e8c-7efc881a19dc 2025-09-22 02:25:55,411 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/5001a151-ae84-4e16-8e8c-7efc881a19dc 2025-09-22 02:25:55,417 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/fbfdd537-5fff-40fb-9d5b-c3f50a0427d4 2025-09-22 02:25:55,428 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90169932:ctest-vn4-42495280', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-90169932', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8538152997536024465', 'uuid-lslong': '13528056209567253015'}, 'enable': 'true', 'created': '2025-09-22T02:25:53', 'last-modified': '2025-09-22T02:25:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.721758'} 2025-09-22 02:25:55,432 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-22 02:25:55,438 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90169932:ctest-vn4-42495280', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-90169932', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8538152997536024465', 'uuid-lslong': '13528056209567253015'}, 'enable': 'true', 'created': '2025-09-22T02:25:53', 'last-modified': '2025-09-22T02:25:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.727804'} 2025-09-22 02:25:55,444 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-22 02:25:55,449 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90169932:ctest-vn4-42495280', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-90169932', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8538152997536024465', 'uuid-lslong': '13528056209567253015'}, 'enable': 'true', 'created': '2025-09-22T02:25:53', 'last-modified': '2025-09-22T02:25:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.745026'} 2025-09-22 02:25:55,454 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-22 02:25:55,454 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-42495280 passed 2025-09-22 02:25:55,454 - DEBUG - ====Verifying policy data for ctest-vn4-42495280 in API_Server ====== 2025-09-22 02:25:55,454 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-09-22 02:25:55,459 - DEBUG - Requesting: http://10.0.0.56:8082/domain/ccce3d88-d117-4380-892c-193ef8fcc90d 2025-09-22 02:25:55,472 - DEBUG - Requesting: http://10.0.0.56:8082/project/4e7a1bbe-2c9d-4129-a7ae-af265ba39aa9 2025-09-22 02:25:55,562 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/767d9cea-0812-4791-bbbd-4f72a8c60217 2025-09-22 02:25:55,573 - DEBUG - ==>Verifying data for policy with id: f080bcef-ab65-4e14-a885-87e79d0afe2b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90169932', 'ctest-policy1-88820448'] 2025-09-22 02:25:55,573 - INFO - VN ctest-vn4-42495280 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-22 02:25:55,573 - DEBUG - Verifying the vn in opserver 2025-09-22 02:25:55,573 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90169932:ctest-vn4-42495280 virtual network link through opserver 10.0.0.56 2025-09-22 02:25:55,573 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-09-22 02:25:55,860 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-09-22 02:25:55,911 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90169932:ctest-vn4-42495280', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90169932:ctest-vn4-42495280?flat'} 2025-09-22 02:25:55,911 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90169932:ctest-vn4-42495280 virtual network link through opserver 10.0.0.38 2025-09-22 02:25:55,912 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-22 02:25:56,200 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-22 02:25:56,264 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90169932:ctest-vn4-42495280', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90169932:ctest-vn4-42495280?flat'} 2025-09-22 02:25:56,264 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90169932:ctest-vn4-42495280 virtual network link through opserver 10.0.0.27 2025-09-22 02:25:56,264 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-09-22 02:25:56,553 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-09-22 02:25:56,603 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90169932:ctest-vn4-42495280', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90169932:ctest-vn4-42495280?flat'} 2025-09-22 02:25:56,603 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90169932:ctest-vn4-42495280 is found in opserver 2025-09-22 02:25:56,623 - DEBUG - Do not have enough data to verify VN in agent 2025-09-22 02:25:56,632 - DEBUG - VRF ids for VN ctest-vn4-42495280: {} 2025-09-22 02:25:56,632 - DEBUG - ====Verifying data for ctest-policy1-88820448 in API_Server ====== 2025-09-22 02:25:56,632 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-09-22 02:25:56,638 - DEBUG - Requesting: http://10.0.0.56:8082/domain/ccce3d88-d117-4380-892c-193ef8fcc90d 2025-09-22 02:25:56,648 - DEBUG - Requesting: http://10.0.0.56:8082/project/4e7a1bbe-2c9d-4129-a7ae-af265ba39aa9 2025-09-22 02:25:56,737 - DEBUG - Requesting: http://10.0.0.56:8082/network-policy/f080bcef-ab65-4e14-a885-87e79d0afe2b 2025-09-22 02:25:56,746 - INFO - Verified policy ctest-policy1-88820448 in API Server, Result: True 2025-09-22 02:25:56,746 - INFO - Done with setup and verification, moving onto test .. 2025-09-22 02:25:56,756 - INFO - Deleting VN ctest-vn4-42495280 2025-09-22 02:25:56,960 - DEBUG - Response for deleting network () 2025-09-22 02:25:56,961 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/5001a151-ae84-4e16-8e8c-7efc881a19dc 2025-09-22 02:25:56,971 - DEBUG - Response Code: 404 2025-09-22 02:25:56,971 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-09-22 02:25:56,978 - DEBUG - Requesting: http://10.0.0.56:8082/domain/ccce3d88-d117-4380-892c-193ef8fcc90d 2025-09-22 02:25:56,989 - DEBUG - Requesting: http://10.0.0.56:8082/project/4e7a1bbe-2c9d-4129-a7ae-af265ba39aa9 2025-09-22 02:25:57,076 - INFO - Validated that VN ctest-vn4-42495280 is not found in API Server 2025-09-22 02:25:57,088 - DEBUG - VN ctest-vn4-42495280 is not present in Agent 10.0.0.33 2025-09-22 02:25:57,100 - DEBUG - VN ctest-vn4-42495280 is not present in Agent 10.0.0.23 2025-09-22 02:25:57,100 - INFO - Validated that VN ctest-vn4-42495280 is not in any agent 2025-09-22 02:25:57,128 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-42495280 info 2025-09-22 02:25:57,171 - INFO - Deleted policy ctest-policy1-88820448 2025-09-22 02:25:57,364 - DEBUG - policy ctest-policy1-88820448 is not found in API Server 2025-09-22 02:25:58,634 - DEBUG - No XMPP flaps were noticed during the test