2025-09-19 08:30:50,534 - INFO - Domain Default found not creating 2025-09-19 08:30:50,664 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-25384519 not found, creating it 2025-09-19 08:30:51,097 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-25384519, ID : 478a5c25-8116-4c97-8f2c-c9df88f71fe8 2025-09-19 08:30:52,436 - INFO - ================================================================================ 2025-09-19 08:30:52,436 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-19 08:30:52,689 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-09-19 08:30:52,689 - INFO - Initial checks done. Running the testcase now 2025-09-19 08:30:52,689 - INFO - 2025-09-19 08:30:52,689 - INFO - ================================================================================ 2025-09-19 08:30:52,690 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-19 08:30:52,690 - 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-19 08:30:52,985 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-09-19 08:30:52,985 - INFO - Initial checks done. Running the testcase now 2025-09-19 08:30:52,985 - INFO - 2025-09-19 08:30:53,332 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25384519:ctest-vn4-00518130, 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-25384519:ctest-vn4-00518130, 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-25384519:ctest-vn4-00518130, 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-25384519:ctest-vn4-00518130, 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-19 08:30:53,825 - DEBUG - Response for create_network : {'network': {'id': 'bb351587-1519-4f1a-a93e-d67813f4bedd', 'name': 'ctest-vn4-00518130', 'tenant_id': '478a5c2581164c978f2cc9df88f71fe8', 'project_id': '478a5c2581164c978f2cc9df88f71fe8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25384519', 'ctest-vn4-00518130'], 'port_security_enabled': True, 'description': ''}} 2025-09-19 08:30:53,979 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e157ff7e-c36b-4ff4-a58c-049a39c74fc5', 'name': '', 'tenant_id': '478a5c2581164c978f2cc9df88f71fe8', 'network_id': 'bb351587-1519-4f1a-a93e-d67813f4bedd', 'ip_version': 4, 'cidr': '122.223.46.0/26', 'allocation_pools': [{'start': '122.223.46.2', 'end': '122.223.46.62'}], 'gateway_ip': '122.223.46.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.223.46.2', 'tags': [], 'project_id': '478a5c2581164c978f2cc9df88f71fe8'}} 2025-09-19 08:30:54,197 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c5adfd4e-ad30-4378-837e-c0389eefc384', 'name': '', 'tenant_id': '478a5c2581164c978f2cc9df88f71fe8', 'network_id': 'bb351587-1519-4f1a-a93e-d67813f4bedd', 'ip_version': 6, 'cidr': '270b:c8c4:a0ad:6453:250a:3d59::/96', 'allocation_pools': [{'start': '270b:c8c4:a0ad:6453:250a:3d59:0:2', 'end': '270b:c8c4:a0ad:6453:250a:3d59:ffff:fffe'}], 'gateway_ip': '270b:c8c4:a0ad:6453:250a:3d59:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '270b:c8c4:a0ad:6453:250a:3d59:0:2', 'tags': [], 'project_id': '478a5c2581164c978f2cc9df88f71fe8'}} 2025-09-19 08:30:54,218 - INFO - Created VN ctest-vn4-00518130 2025-09-19 08:30:54,268 - DEBUG - VN ctest-vn4-00518130 UUID is bb351587-1519-4f1a-a93e-d67813f4bedd 2025-09-19 08:30:54,455 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bb351587-1519-4f1a-a93e-d67813f4bedd', 'name': 'ctest-vn4-00518130', 'tenant_id': '478a5c2581164c978f2cc9df88f71fe8', 'project_id': '478a5c2581164c978f2cc9df88f71fe8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e157ff7e-c36b-4ff4-a58c-049a39c74fc5', 'c5adfd4e-ad30-4378-837e-c0389eefc384'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25384519', 'ctest-vn4-00518130'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25384519', 'ctest-policy1-72472680']], 'subnet_ipam': [{'subnet_cidr': '122.223.46.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '270b:c8c4:a0ad:6453:250a:3d59::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-19 08:30:54,676 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-19 08:30:54,972 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-19 08:30:55,001 - DEBUG - Requesting: http://10.0.0.38:8082/domain/403581c2-be73-43db-93c1-a8f0aac181c5 2025-09-19 08:30:55,013 - DEBUG - Requesting: http://10.0.0.38:8082/project/478a5c25-8116-4c97-8f2c-c9df88f71fe8 2025-09-19 08:30:55,085 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bb351587-1519-4f1a-a93e-d67813f4bedd 2025-09-19 08:30:55,117 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bb351587-1519-4f1a-a93e-d67813f4bedd 2025-09-19 08:30:55,127 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0992ee45-5c00-4b25-b0fa-e7e24a49696b 2025-09-19 08:30:55,133 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0992ee45-5c00-4b25-b0fa-e7e24a49696b 2025-09-19 08:30:55,140 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/52ca7e42-0b01-4ef5-b94e-8ac44d8db0b1 2025-09-19 08:30:55,146 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-19 08:30:55,146 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bb351587-1519-4f1a-a93e-d67813f4bedd 2025-09-19 08:30:55,155 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0992ee45-5c00-4b25-b0fa-e7e24a49696b 2025-09-19 08:30:55,170 - INFO - Verified VN network id 11 for VN bb351587-1519-4f1a-a93e-d67813f4bedd 2025-09-19 08:30:55,170 - INFO - Verifications in API Server for VN ctest-vn4-00518130 passed 2025-09-19 08:30:55,170 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bb351587-1519-4f1a-a93e-d67813f4bedd 2025-09-19 08:30:55,182 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0992ee45-5c00-4b25-b0fa-e7e24a49696b 2025-09-19 08:30:55,191 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0992ee45-5c00-4b25-b0fa-e7e24a49696b 2025-09-19 08:30:55,199 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/52ca7e42-0b01-4ef5-b94e-8ac44d8db0b1 2025-09-19 08:30:55,211 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25384519:ctest-vn4-00518130', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25384519', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13489711928776937242', 'uuid-lslong': '12195420652185108189'}, 'enable': 'true', 'created': '2025-09-19T08:30:53', 'last-modified': '2025-09-19T08:30:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.776387'} 2025-09-19 08:30:55,216 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-19 08:30:55,216 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-00518130 passed 2025-09-19 08:30:55,217 - DEBUG - ====Verifying policy data for ctest-vn4-00518130 in API_Server ====== 2025-09-19 08:30:55,217 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-19 08:30:55,222 - DEBUG - Requesting: http://10.0.0.38:8082/domain/403581c2-be73-43db-93c1-a8f0aac181c5 2025-09-19 08:30:55,233 - DEBUG - Requesting: http://10.0.0.38:8082/project/478a5c25-8116-4c97-8f2c-c9df88f71fe8 2025-09-19 08:30:55,301 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bb351587-1519-4f1a-a93e-d67813f4bedd 2025-09-19 08:30:55,310 - DEBUG - ==>Verifying data for policy with id: 01981c15-8515-4f0e-b4b2-50facbb94eda, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25384519', 'ctest-policy1-72472680'] 2025-09-19 08:30:55,310 - INFO - VN ctest-vn4-00518130 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-19 08:30:55,310 - DEBUG - Verifying the vn in opserver 2025-09-19 08:30:55,310 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25384519:ctest-vn4-00518130 virtual network link through opserver 10.0.0.38 2025-09-19 08:30:55,310 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-19 08:30:55,600 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-19 08:30:55,654 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25384519:ctest-vn4-00518130', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25384519:ctest-vn4-00518130?flat'} 2025-09-19 08:30:55,654 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25384519:ctest-vn4-00518130 is found in opserver 2025-09-19 08:30:55,663 - DEBUG - Do not have enough data to verify VN in agent 2025-09-19 08:30:55,668 - DEBUG - VRF ids for VN ctest-vn4-00518130: {} 2025-09-19 08:30:55,668 - DEBUG - ====Verifying data for ctest-policy1-72472680 in API_Server ====== 2025-09-19 08:30:55,668 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-19 08:30:55,673 - DEBUG - Requesting: http://10.0.0.38:8082/domain/403581c2-be73-43db-93c1-a8f0aac181c5 2025-09-19 08:30:55,683 - DEBUG - Requesting: http://10.0.0.38:8082/project/478a5c25-8116-4c97-8f2c-c9df88f71fe8 2025-09-19 08:30:55,751 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/01981c15-8515-4f0e-b4b2-50facbb94eda 2025-09-19 08:30:55,760 - INFO - Verified policy ctest-policy1-72472680 in API Server, Result: True 2025-09-19 08:30:55,760 - INFO - Done with setup and verification, moving onto test .. 2025-09-19 08:30:55,768 - INFO - Deleting VN ctest-vn4-00518130 2025-09-19 08:30:55,869 - DEBUG - Response for deleting network () 2025-09-19 08:30:55,869 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0992ee45-5c00-4b25-b0fa-e7e24a49696b 2025-09-19 08:30:55,874 - DEBUG - Response Code: 404 2025-09-19 08:30:55,874 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-19 08:30:55,879 - DEBUG - Requesting: http://10.0.0.38:8082/domain/403581c2-be73-43db-93c1-a8f0aac181c5 2025-09-19 08:30:55,929 - DEBUG - Requesting: http://10.0.0.38:8082/project/478a5c25-8116-4c97-8f2c-c9df88f71fe8 2025-09-19 08:30:56,002 - INFO - Validated that VN ctest-vn4-00518130 is not found in API Server 2025-09-19 08:30:56,011 - DEBUG - VN ctest-vn4-00518130 is not present in Agent 10.0.0.38 2025-09-19 08:30:56,011 - INFO - Validated that VN ctest-vn4-00518130 is not in any agent 2025-09-19 08:30:56,025 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-00518130 info 2025-09-19 08:30:56,052 - INFO - Deleted policy ctest-policy1-72472680 2025-09-19 08:30:56,216 - DEBUG - policy ctest-policy1-72472680 is not found in API Server 2025-09-19 08:30:56,472 - DEBUG - No XMPP flaps were noticed during the test 2025-09-19 08:30:56,472 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-19 08:30:56,473 - INFO - -------------------------------------------------------------------------------- 2025-09-19 08:30:56,761 - DEBUG - No XMPP flaps were noticed during the test 2025-09-19 08:30:56,761 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-19 08:30:56,761 - INFO - -------------------------------------------------------------------------------- 2025-09-19 08:30:57,419 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-25384519, ID : 478a5c25-8116-4c97-8f2c-c9df88f71fe8