2025-10-23 13:15:46,765 - INFO - Domain Default found not creating 2025-10-23 13:15:46,907 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35783779 not found, creating it 2025-10-23 13:15:47,340 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35783779, ID : 416aecac-6197-4307-8643-fe27b2d1a7ed 2025-10-23 13:15:48,745 - INFO - ================================================================================ 2025-10-23 13:15:48,745 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 13:15:49,002 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-23 13:15:49,002 - INFO - Initial checks done. Running the testcase now 2025-10-23 13:15:49,002 - INFO - 2025-10-23 13:15:49,002 - INFO - ================================================================================ 2025-10-23 13:15:49,003 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 13:15:49,003 - 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-23 13:15:49,299 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-23 13:15:49,299 - INFO - Initial checks done. Running the testcase now 2025-10-23 13:15:49,299 - INFO - 2025-10-23 13:15:49,658 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35783779:ctest-vn4-87608996, 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-35783779:ctest-vn4-87608996, 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-35783779:ctest-vn4-87608996, 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-35783779:ctest-vn4-87608996, 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-23 13:15:50,174 - DEBUG - Response for create_network : {'network': {'id': 'fc7bd05a-7ede-4316-9ff3-c787ba37c675', 'name': 'ctest-vn4-87608996', 'tenant_id': '416aecac619743078643fe27b2d1a7ed', 'project_id': '416aecac619743078643fe27b2d1a7ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35783779', 'ctest-vn4-87608996'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 13:15:50,353 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a4f671e1-3c16-4954-9bfe-19f946cd9b83', 'name': '', 'tenant_id': '416aecac619743078643fe27b2d1a7ed', 'network_id': 'fc7bd05a-7ede-4316-9ff3-c787ba37c675', 'ip_version': 4, 'cidr': '21.234.188.192/26', 'allocation_pools': [{'start': '21.234.188.194', 'end': '21.234.188.254'}], 'gateway_ip': '21.234.188.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.234.188.194', 'tags': [], 'project_id': '416aecac619743078643fe27b2d1a7ed'}} 2025-10-23 13:15:50,558 - DEBUG - Response for create_subnet : {'subnet': {'id': '63dd149d-9d19-4708-8011-6e54931150a4', 'name': '', 'tenant_id': '416aecac619743078643fe27b2d1a7ed', 'network_id': 'fc7bd05a-7ede-4316-9ff3-c787ba37c675', 'ip_version': 6, 'cidr': '356e:dbd3:d052:511d:3288:6e28::/96', 'allocation_pools': [{'start': '356e:dbd3:d052:511d:3288:6e28:0:2', 'end': '356e:dbd3:d052:511d:3288:6e28:ffff:fffe'}], 'gateway_ip': '356e:dbd3:d052:511d:3288:6e28:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '356e:dbd3:d052:511d:3288:6e28:0:2', 'tags': [], 'project_id': '416aecac619743078643fe27b2d1a7ed'}} 2025-10-23 13:15:50,578 - INFO - Created VN ctest-vn4-87608996 2025-10-23 13:15:50,633 - DEBUG - VN ctest-vn4-87608996 UUID is fc7bd05a-7ede-4316-9ff3-c787ba37c675 2025-10-23 13:15:50,837 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc7bd05a-7ede-4316-9ff3-c787ba37c675', 'name': 'ctest-vn4-87608996', 'tenant_id': '416aecac619743078643fe27b2d1a7ed', 'project_id': '416aecac619743078643fe27b2d1a7ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a4f671e1-3c16-4954-9bfe-19f946cd9b83', '63dd149d-9d19-4708-8011-6e54931150a4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35783779', 'ctest-vn4-87608996'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35783779', 'ctest-policy1-64000996']], 'subnet_ipam': [{'subnet_cidr': '21.234.188.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '356e:dbd3:d052:511d:3288:6e28::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-23 13:15:51,001 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-23 13:15:51,446 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-23 13:15:51,484 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a0dfb5cd-ddb8-4df7-9cb2-c3e1b3606637 2025-10-23 13:15:51,499 - DEBUG - Requesting: http://10.0.0.38:8082/project/416aecac-6197-4307-8643-fe27b2d1a7ed 2025-10-23 13:15:51,572 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fc7bd05a-7ede-4316-9ff3-c787ba37c675 2025-10-23 13:15:51,585 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fc7bd05a-7ede-4316-9ff3-c787ba37c675 2025-10-23 13:15:51,595 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a66337ab-3882-46e2-8974-eeb7998f9f6e 2025-10-23 13:15:51,601 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a66337ab-3882-46e2-8974-eeb7998f9f6e 2025-10-23 13:15:51,607 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/27152bf9-684e-482f-b415-200aeb28eb8c 2025-10-23 13:15:51,683 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 13:15:51,683 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fc7bd05a-7ede-4316-9ff3-c787ba37c675 2025-10-23 13:15:51,693 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a66337ab-3882-46e2-8974-eeb7998f9f6e 2025-10-23 13:15:51,705 - INFO - Verified VN network id 11 for VN fc7bd05a-7ede-4316-9ff3-c787ba37c675 2025-10-23 13:15:51,706 - INFO - Verifications in API Server for VN ctest-vn4-87608996 passed 2025-10-23 13:15:51,706 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fc7bd05a-7ede-4316-9ff3-c787ba37c675 2025-10-23 13:15:51,715 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a66337ab-3882-46e2-8974-eeb7998f9f6e 2025-10-23 13:15:51,722 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a66337ab-3882-46e2-8974-eeb7998f9f6e 2025-10-23 13:15:51,730 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/27152bf9-684e-482f-b415-200aeb28eb8c 2025-10-23 13:15:51,741 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35783779:ctest-vn4-87608996', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35783779', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18193364206787379990', 'uuid-lslong': '11525775257129961077'}, 'enable': 'true', 'created': '2025-10-23T13:15:50', 'last-modified': '2025-10-23T13:15:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.926364'} 2025-10-23 13:15:51,747 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 13:15:51,747 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-87608996 passed 2025-10-23 13:15:51,747 - DEBUG - ====Verifying policy data for ctest-vn4-87608996 in API_Server ====== 2025-10-23 13:15:51,748 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-23 13:15:51,753 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a0dfb5cd-ddb8-4df7-9cb2-c3e1b3606637 2025-10-23 13:15:51,762 - DEBUG - Requesting: http://10.0.0.38:8082/project/416aecac-6197-4307-8643-fe27b2d1a7ed 2025-10-23 13:15:51,829 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fc7bd05a-7ede-4316-9ff3-c787ba37c675 2025-10-23 13:15:51,839 - DEBUG - ==>Verifying data for policy with id: 8068eb49-2493-45fc-868b-8f190195860a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35783779', 'ctest-policy1-64000996'] 2025-10-23 13:15:51,839 - INFO - VN ctest-vn4-87608996 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-23 13:15:51,839 - DEBUG - Verifying the vn in opserver 2025-10-23 13:15:51,839 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35783779:ctest-vn4-87608996 virtual network link through opserver 10.0.0.38 2025-10-23 13:15:51,839 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-23 13:15:52,143 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-23 13:15:52,194 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35783779:ctest-vn4-87608996', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35783779:ctest-vn4-87608996?flat'} 2025-10-23 13:15:52,194 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35783779:ctest-vn4-87608996 is found in opserver 2025-10-23 13:15:52,203 - DEBUG - Do not have enough data to verify VN in agent 2025-10-23 13:15:52,207 - DEBUG - VRF ids for VN ctest-vn4-87608996: {} 2025-10-23 13:15:52,207 - DEBUG - ====Verifying data for ctest-policy1-64000996 in API_Server ====== 2025-10-23 13:15:52,207 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-23 13:15:52,212 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a0dfb5cd-ddb8-4df7-9cb2-c3e1b3606637 2025-10-23 13:15:52,222 - DEBUG - Requesting: http://10.0.0.38:8082/project/416aecac-6197-4307-8643-fe27b2d1a7ed 2025-10-23 13:15:52,291 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/8068eb49-2493-45fc-868b-8f190195860a 2025-10-23 13:15:52,299 - INFO - Verified policy ctest-policy1-64000996 in API Server, Result: True 2025-10-23 13:15:52,300 - INFO - Done with setup and verification, moving onto test .. 2025-10-23 13:15:52,307 - INFO - Deleting VN ctest-vn4-87608996 2025-10-23 13:15:52,431 - DEBUG - Response for deleting network () 2025-10-23 13:15:52,431 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a66337ab-3882-46e2-8974-eeb7998f9f6e 2025-10-23 13:15:52,435 - DEBUG - Response Code: 404 2025-10-23 13:15:52,435 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-23 13:15:52,440 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a0dfb5cd-ddb8-4df7-9cb2-c3e1b3606637 2025-10-23 13:15:52,494 - DEBUG - Requesting: http://10.0.0.38:8082/project/416aecac-6197-4307-8643-fe27b2d1a7ed 2025-10-23 13:15:52,564 - INFO - Validated that VN ctest-vn4-87608996 is not found in API Server 2025-10-23 13:15:52,574 - DEBUG - VN ctest-vn4-87608996 is not present in Agent 10.0.0.38 2025-10-23 13:15:52,574 - INFO - Validated that VN ctest-vn4-87608996 is not in any agent 2025-10-23 13:15:52,586 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-87608996 info 2025-10-23 13:15:52,608 - INFO - Deleted policy ctest-policy1-64000996 2025-10-23 13:15:52,769 - DEBUG - policy ctest-policy1-64000996 is not found in API Server 2025-10-23 13:15:53,022 - DEBUG - No XMPP flaps were noticed during the test