2025-09-19 22:44:12,099 - INFO - Domain Default found not creating 2025-09-19 22:44:12,212 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-33696670 not found, creating it 2025-09-19 22:44:12,648 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-33696670, ID : fb0c8d19-6c51-4c23-a4e5-954f741f0d71 2025-09-19 22:44:13,945 - INFO - ================================================================================ 2025-09-19 22:44:13,945 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-19 22:44:14,202 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-09-19 22:44:14,203 - INFO - Initial checks done. Running the testcase now 2025-09-19 22:44:14,203 - INFO - 2025-09-19 22:44:14,203 - INFO - ================================================================================ 2025-09-19 22:44:14,203 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-19 22:44:14,203 - 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 22:44:14,490 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-09-19 22:44:14,490 - INFO - Initial checks done. Running the testcase now 2025-09-19 22:44:14,490 - INFO - 2025-09-19 22:44:14,823 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33696670:ctest-vn4-30579861, 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-33696670:ctest-vn4-30579861, 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-33696670:ctest-vn4-30579861, 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-33696670:ctest-vn4-30579861, 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 22:44:15,353 - DEBUG - Response for create_network : {'network': {'id': 'fe477fde-9544-441c-b136-188322d74bc6', 'name': 'ctest-vn4-30579861', 'tenant_id': 'fb0c8d196c514c23a4e5954f741f0d71', 'project_id': 'fb0c8d196c514c23a4e5954f741f0d71', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33696670', 'ctest-vn4-30579861'], 'port_security_enabled': True, 'description': ''}} 2025-09-19 22:44:15,535 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b1dd23da-c14b-4f64-b21a-154d27f93278', 'name': '', 'tenant_id': 'fb0c8d196c514c23a4e5954f741f0d71', 'network_id': 'fe477fde-9544-441c-b136-188322d74bc6', 'ip_version': 4, 'cidr': '119.140.63.0/26', 'allocation_pools': [{'start': '119.140.63.2', 'end': '119.140.63.62'}], 'gateway_ip': '119.140.63.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.140.63.2', 'tags': [], 'project_id': 'fb0c8d196c514c23a4e5954f741f0d71'}} 2025-09-19 22:44:15,715 - DEBUG - Response for create_subnet : {'subnet': {'id': '6869eb45-6a01-494a-ae66-77d3953c9353', 'name': '', 'tenant_id': 'fb0c8d196c514c23a4e5954f741f0d71', 'network_id': 'fe477fde-9544-441c-b136-188322d74bc6', 'ip_version': 6, 'cidr': '30ed:c86d:3ca4:8ad4:fb08:d1dd::/96', 'allocation_pools': [{'start': '30ed:c86d:3ca4:8ad4:fb08:d1dd:0:2', 'end': '30ed:c86d:3ca4:8ad4:fb08:d1dd:ffff:fffe'}], 'gateway_ip': '30ed:c86d:3ca4:8ad4:fb08:d1dd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30ed:c86d:3ca4:8ad4:fb08:d1dd:0:2', 'tags': [], 'project_id': 'fb0c8d196c514c23a4e5954f741f0d71'}} 2025-09-19 22:44:15,732 - INFO - Created VN ctest-vn4-30579861 2025-09-19 22:44:15,781 - DEBUG - VN ctest-vn4-30579861 UUID is fe477fde-9544-441c-b136-188322d74bc6 2025-09-19 22:44:15,952 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fe477fde-9544-441c-b136-188322d74bc6', 'name': 'ctest-vn4-30579861', 'tenant_id': 'fb0c8d196c514c23a4e5954f741f0d71', 'project_id': 'fb0c8d196c514c23a4e5954f741f0d71', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b1dd23da-c14b-4f64-b21a-154d27f93278', '6869eb45-6a01-494a-ae66-77d3953c9353'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33696670', 'ctest-vn4-30579861'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33696670', 'ctest-policy1-17988200']], 'subnet_ipam': [{'subnet_cidr': '119.140.63.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '30ed:c86d:3ca4:8ad4:fb08:d1dd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-19 22:44:16,110 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-19 22:44:16,398 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-19 22:44:16,422 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bf4f4071-db54-434c-bc60-97611e445508 2025-09-19 22:44:16,432 - DEBUG - Requesting: http://10.0.0.38:8082/project/fb0c8d19-6c51-4c23-a4e5-954f741f0d71 2025-09-19 22:44:16,497 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fe477fde-9544-441c-b136-188322d74bc6 2025-09-19 22:44:16,510 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fe477fde-9544-441c-b136-188322d74bc6 2025-09-19 22:44:16,519 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe6dac34-0a91-497e-bf9b-b884b6fa306d 2025-09-19 22:44:16,525 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe6dac34-0a91-497e-bf9b-b884b6fa306d 2025-09-19 22:44:16,531 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5a4bee8c-ba17-41a6-926e-7d1872549973 2025-09-19 22:44:16,535 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-19 22:44:16,535 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fe477fde-9544-441c-b136-188322d74bc6 2025-09-19 22:44:16,543 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe6dac34-0a91-497e-bf9b-b884b6fa306d 2025-09-19 22:44:16,555 - INFO - Verified VN network id 12 for VN fe477fde-9544-441c-b136-188322d74bc6 2025-09-19 22:44:16,555 - INFO - Verifications in API Server for VN ctest-vn4-30579861 passed 2025-09-19 22:44:16,555 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fe477fde-9544-441c-b136-188322d74bc6 2025-09-19 22:44:16,563 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe6dac34-0a91-497e-bf9b-b884b6fa306d 2025-09-19 22:44:16,568 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe6dac34-0a91-497e-bf9b-b884b6fa306d 2025-09-19 22:44:16,573 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5a4bee8c-ba17-41a6-926e-7d1872549973 2025-09-19 22:44:16,582 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33696670:ctest-vn4-30579861', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33696670', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18322754202943898652', 'uuid-lslong': '12769420744959937478'}, 'enable': 'true', 'created': '2025-09-19T22:44:15', 'last-modified': '2025-09-19T22:44:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.650330'} 2025-09-19 22:44:16,586 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-19 22:44:16,586 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-30579861 passed 2025-09-19 22:44:16,587 - DEBUG - ====Verifying policy data for ctest-vn4-30579861 in API_Server ====== 2025-09-19 22:44:16,587 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-19 22:44:16,590 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bf4f4071-db54-434c-bc60-97611e445508 2025-09-19 22:44:16,599 - DEBUG - Requesting: http://10.0.0.38:8082/project/fb0c8d19-6c51-4c23-a4e5-954f741f0d71 2025-09-19 22:44:16,664 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fe477fde-9544-441c-b136-188322d74bc6 2025-09-19 22:44:16,672 - DEBUG - ==>Verifying data for policy with id: 283feff8-5040-40f1-969c-82965bef0269, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33696670', 'ctest-policy1-17988200'] 2025-09-19 22:44:16,672 - INFO - VN ctest-vn4-30579861 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-19 22:44:16,672 - DEBUG - Verifying the vn in opserver 2025-09-19 22:44:16,672 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33696670:ctest-vn4-30579861 virtual network link through opserver 10.0.0.38 2025-09-19 22:44:16,672 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-19 22:44:16,963 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-19 22:44:17,009 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33696670:ctest-vn4-30579861', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33696670:ctest-vn4-30579861?flat'} 2025-09-19 22:44:17,009 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33696670:ctest-vn4-30579861 is found in opserver 2025-09-19 22:44:17,018 - DEBUG - Do not have enough data to verify VN in agent 2025-09-19 22:44:17,022 - DEBUG - VRF ids for VN ctest-vn4-30579861: {} 2025-09-19 22:44:17,022 - DEBUG - ====Verifying data for ctest-policy1-17988200 in API_Server ====== 2025-09-19 22:44:17,022 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-19 22:44:17,027 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bf4f4071-db54-434c-bc60-97611e445508 2025-09-19 22:44:17,035 - DEBUG - Requesting: http://10.0.0.38:8082/project/fb0c8d19-6c51-4c23-a4e5-954f741f0d71 2025-09-19 22:44:17,100 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/283feff8-5040-40f1-969c-82965bef0269 2025-09-19 22:44:17,108 - INFO - Verified policy ctest-policy1-17988200 in API Server, Result: True 2025-09-19 22:44:17,108 - INFO - Done with setup and verification, moving onto test .. 2025-09-19 22:44:17,114 - INFO - Deleting VN ctest-vn4-30579861 2025-09-19 22:44:17,212 - DEBUG - Response for deleting network () 2025-09-19 22:44:17,212 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe6dac34-0a91-497e-bf9b-b884b6fa306d 2025-09-19 22:44:17,216 - DEBUG - Response Code: 404 2025-09-19 22:44:17,216 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-19 22:44:17,221 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bf4f4071-db54-434c-bc60-97611e445508 2025-09-19 22:44:17,269 - DEBUG - Requesting: http://10.0.0.38:8082/project/fb0c8d19-6c51-4c23-a4e5-954f741f0d71 2025-09-19 22:44:17,339 - INFO - Validated that VN ctest-vn4-30579861 is not found in API Server 2025-09-19 22:44:17,347 - DEBUG - VN ctest-vn4-30579861 is not present in Agent 10.0.0.38 2025-09-19 22:44:17,347 - INFO - Validated that VN ctest-vn4-30579861 is not in any agent 2025-09-19 22:44:17,358 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-30579861 info 2025-09-19 22:44:17,378 - INFO - Deleted policy ctest-policy1-17988200 2025-09-19 22:44:17,537 - DEBUG - policy ctest-policy1-17988200 is not found in API Server 2025-09-19 22:44:17,785 - DEBUG - No XMPP flaps were noticed during the test